From mboxrd@z Thu Jan 1 00:00:00 1970 From: l.majewski@majess.pl (Lukasz Majewski) Date: Fri, 7 Oct 2016 08:41:20 +0200 Subject: [PATCH v2 5/6] arm: dts: imx7-colibri: Use pwm polarity control In-Reply-To: <5fd194a3-5bfb-2fab-af82-95c87a0e7af1@toradex.com> References: <20161001101235.24598-1-bhuvanchandra.dv@toradex.com> <20161001101235.24598-6-bhuvanchandra.dv@toradex.com> <20161006084007.44c5cbae@jawa> <5fd194a3-5bfb-2fab-af82-95c87a0e7af1@toradex.com> Message-ID: <20161007084120.32a92ca8@jawa> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Fri, 7 Oct 2016 11:38:52 +0530 Bhuvanchandra DV wrote: > On 10/06/16 12:10, Lukasz Majewski wrote: > > > On Sat, 1 Oct 2016 15:42:34 +0530 > > Bhuvanchandra DV wrote: > > > >> Configure PWM polarity control. > >> > >> Signed-off-by: Bhuvanchandra DV > >> --- > >> arch/arm/boot/dts/imx7-colibri.dtsi | 2 +- > >> 1 file changed, 1 insertion(+), 1 deletion(-) > >> > >> diff --git a/arch/arm/boot/dts/imx7-colibri.dtsi > >> b/arch/arm/boot/dts/imx7-colibri.dtsi index a9cc657..2af5e3e 100644 > >> --- a/arch/arm/boot/dts/imx7-colibri.dtsi > >> +++ b/arch/arm/boot/dts/imx7-colibri.dtsi > >> @@ -43,7 +43,7 @@ > >> / { > >> bl: backlight { > >> compatible = "pwm-backlight"; > >> - pwms = <&pwm1 0 5000000>; > >> + pwms = <&pwm1 0 5000000 0>; > > My recommendation would be to add: > > #include > > > > and then define pwms as: > > > > pwms = <&pwm1 0 5000000 PWM_POLARITY_NORMAL>; > > Addendum: > There is no "PWM_POLARITY_NORMAL" defined in "#include > " I guess it is helpful when polarity > inversion is enabled. Yes, you are right :-), the normal polarity is assumed to be the default. There is only defined flag for inversion. Sorry for the noise. Best regards, ?ukasz Majewski > > -- > Bhuvan > > > > > It would be more readable > > > > Best regards, > > ?ukasz Majewski > > > >> }; > >> > >> reg_module_3v3: regulator-module-3v3 { > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: