From: Lothar Waßmann Date: Wed, 9 Jul 2014 08:57:29 +0000 (+0200) Subject: ARM: dts: tx6: adjust the pwm polarity X-Git-Tag: KARO-TX6-2014-08-21~1^2~13 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-linux.git;a=commitdiff_plain;h=3632b60382deb67ac6b5230e9a318862637f5804 ARM: dts: tx6: adjust the pwm polarity --- diff --git a/arch/arm/boot/dts/imx6dl-tx6dl-comtft.dts b/arch/arm/boot/dts/imx6dl-tx6dl-comtft.dts index 98e3e04c0771..aea48347730e 100644 --- a/arch/arm/boot/dts/imx6dl-tx6dl-comtft.dts +++ b/arch/arm/boot/dts/imx6dl-tx6dl-comtft.dts @@ -24,7 +24,7 @@ backlight: backlight { compatible = "pwm-backlight"; - pwms = <&pwm2 0 500000>; + pwms = <&pwm2 0 500000 0>; power-supply = <®_3v3>; /* * a poor man's way to create a 1:1 relationship between diff --git a/arch/arm/boot/dts/imx6dl-tx6u-801x.dts b/arch/arm/boot/dts/imx6dl-tx6u-801x.dts index 924c412e28bf..1e7401c842a8 100644 --- a/arch/arm/boot/dts/imx6dl-tx6u-801x.dts +++ b/arch/arm/boot/dts/imx6dl-tx6u-801x.dts @@ -24,7 +24,7 @@ backlight: backlight { compatible = "pwm-backlight"; - pwms = <&pwm2 0 500000>; + pwms = <&pwm2 0 500000 PWM_POLARITY_INVERTED>; power-supply = <®_3v3>; /* * a poor man's way to create a 1:1 relationship between diff --git a/arch/arm/boot/dts/imx6q-tx6q-1010-comtft.dts b/arch/arm/boot/dts/imx6q-tx6q-1010-comtft.dts index e170d4e69a58..cc3524eea559 100644 --- a/arch/arm/boot/dts/imx6q-tx6q-1010-comtft.dts +++ b/arch/arm/boot/dts/imx6q-tx6q-1010-comtft.dts @@ -24,7 +24,7 @@ backlight: backlight { compatible = "pwm-backlight"; - pwms = <&pwm2 0 500000>; + pwms = <&pwm2 0 500000 0>; power-supply = <®_3v3>; /* * a poor man's way to create a 1:1 relationship between diff --git a/arch/arm/boot/dts/imx6q-tx6q-1010.dts b/arch/arm/boot/dts/imx6q-tx6q-1010.dts index f20b774e46b8..6eeccdaeba66 100644 --- a/arch/arm/boot/dts/imx6q-tx6q-1010.dts +++ b/arch/arm/boot/dts/imx6q-tx6q-1010.dts @@ -24,7 +24,7 @@ backlight: backlight { compatible = "pwm-backlight"; - pwms = <&pwm2 0 500000>; + pwms = <&pwm2 0 500000 PWM_POLARITY_INVERTED>; power-supply = <®_3v3>; /* * a poor man's way to create a 1:1 relationship between diff --git a/arch/arm/boot/dts/imx6q-tx6q-1020-comtft.dts b/arch/arm/boot/dts/imx6q-tx6q-1020-comtft.dts index 8f8a26146093..44f3cc8b9374 100644 --- a/arch/arm/boot/dts/imx6q-tx6q-1020-comtft.dts +++ b/arch/arm/boot/dts/imx6q-tx6q-1020-comtft.dts @@ -24,7 +24,7 @@ backlight: backlight { compatible = "pwm-backlight"; - pwms = <&pwm2 0 500000>; + pwms = <&pwm2 0 500000 0>; power-supply = <®_3v3>; /* * a poor man's way to create a 1:1 relationship between diff --git a/arch/arm/boot/dts/imx6q-tx6q-1020.dts b/arch/arm/boot/dts/imx6q-tx6q-1020.dts index 33fab4db03c6..6c62f0c073ca 100644 --- a/arch/arm/boot/dts/imx6q-tx6q-1020.dts +++ b/arch/arm/boot/dts/imx6q-tx6q-1020.dts @@ -24,7 +24,7 @@ backlight: backlight { compatible = "pwm-backlight"; - pwms = <&pwm2 0 500000>; + pwms = <&pwm2 0 500000 PWM_POLARITY_INVERTED>; power-supply = <®_3v3>; /* * a poor man's way to create a 1:1 relationship between diff --git a/arch/arm/boot/dts/imx6qdl-tx6.dtsi b/arch/arm/boot/dts/imx6qdl-tx6.dtsi index 078b73eb3d93..97099560efc4 100644 --- a/arch/arm/boot/dts/imx6qdl-tx6.dtsi +++ b/arch/arm/boot/dts/imx6qdl-tx6.dtsi @@ -11,6 +11,7 @@ #include #include +#include / { aliases { @@ -631,14 +632,14 @@ &pwm1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pwm1>; - #pwm-cells = <2>; + #pwm-cells = <3>; status = "disabled"; }; &pwm2 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pwm2>; - #pwm-cells = <2>; + #pwm-cells = <3>; status = "okay"; };