Re: [PATCH v1 1/5] docs: firmware-guide: ACPI: Add a PWM example

From: Andy Shevchenko
Date: Mon May 31 2021 - 13:05:17 EST


On Mon, May 31, 2021 at 06:43:47PM +0300, Andy Shevchenko wrote:
> When PWM support for ACPI has been added into the kernel, it missed
> the documentation update. Hence update documentation here.

I am actually in doubt that original commit message provides that short period
intentionally. Possibly it was misinterpretation of nanoseconds (which is
expected by PWM framework) with microseconds than might sound logical for LED.

Perhaps we may add 000 to the value (1) and replace us by ms in the text (2).

...

> + Package () {
> + "\\_SB.PCI0.PWM", // <PWM device reference>
> + 0, // <PWM index>

> + 600000, // <PWM period>

(1)

> + 0, // <PWM flags>
> + }

> +In the above example the PWM-based LED driver references to the PWM channel 0
> +of \_SB.PCI0.PWM device with initial period setting equal to 600 us (note that

(2)

> +value is given in nanoseconds).

--
With Best Regards,
Andy Shevchenko