Re: [PATCH v7 2/8] pwm: pca9685: Support hardware readout

2021-04-07 Thread Clemens Gruber
On Wed, Apr 07, 2021 at 11:09:43AM +0200, Uwe Kleine-König wrote: > On Wed, Apr 07, 2021 at 09:33:20AM +0200, Clemens Gruber wrote: > > On Wed, Apr 07, 2021 at 07:31:35AM +0200, Uwe Kleine-König wrote: > > > On Tue, Apr 06, 2021 at 06:41:34PM +0200, Clemens Gruber wrote: > > > > Implements .get_sta

Re: [PATCH v7 2/8] pwm: pca9685: Support hardware readout

2021-04-07 Thread Uwe Kleine-König
On Wed, Apr 07, 2021 at 09:33:20AM +0200, Clemens Gruber wrote: > On Wed, Apr 07, 2021 at 07:31:35AM +0200, Uwe Kleine-König wrote: > > On Tue, Apr 06, 2021 at 06:41:34PM +0200, Clemens Gruber wrote: > > > Implements .get_state to read-out the current hardware state. > > > > > > The hardware reado

Re: [PATCH v7 2/8] pwm: pca9685: Support hardware readout

2021-04-07 Thread Clemens Gruber
On Wed, Apr 07, 2021 at 07:31:35AM +0200, Uwe Kleine-König wrote: > On Tue, Apr 06, 2021 at 06:41:34PM +0200, Clemens Gruber wrote: > > Implements .get_state to read-out the current hardware state. > > > > The hardware readout may return slightly different values than those > > that were set in ap

Re: [PATCH v7 2/8] pwm: pca9685: Support hardware readout

2021-04-06 Thread Uwe Kleine-König
On Tue, Apr 06, 2021 at 06:41:34PM +0200, Clemens Gruber wrote: > Implements .get_state to read-out the current hardware state. > > The hardware readout may return slightly different values than those > that were set in apply due to the limited range of possible prescale and > counter register val

[PATCH v7 2/8] pwm: pca9685: Support hardware readout

2021-04-06 Thread Clemens Gruber
Implements .get_state to read-out the current hardware state. The hardware readout may return slightly different values than those that were set in apply due to the limited range of possible prescale and counter register values. Also note that although the datasheet mentions 200 Hz as default fre