[RFC,v2,5/6] arm: dts: pwm: replace flag 1 with PWM_POLARITY_INVERTED
diff mbox series

Message ID 20200405192246.3741784-6-oleksandr.suvorov@toradex.com
State New
Headers show
Series
  • Untitled series #266655
Related show

Commit Message

Oleksandr Suvorov April 5, 2020, 7:22 p.m. UTC
The flag '1' in the 3rd cell of the "pwms" property means the inverted
polarity.

This patch converts '1' flag into PWM_POLARITY_INVERTED.

Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
---

Changes in v2: None

 arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi | 4 +++-
 arch/arm/boot/dts/rk3229-evb.dts               | 4 ++--
 arch/arm/boot/dts/rk3229-xms6.dts              | 4 ++--
 3 files changed, 7 insertions(+), 5 deletions(-)

Patch
diff mbox series

diff --git a/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi b/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi
index a78849fd2afa..3707f13ffd83 100644
--- a/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi
+++ b/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi
@@ -3,6 +3,8 @@ 
  * Copyright 2017 Toradex AG
  */
 
+#include <dt-bindings/pwm/pwm.h>
+
 / {
 	chosen {
 		stdout-path = "serial0:115200n8";
@@ -75,7 +77,7 @@  &bl {
 	brightness-levels = <0 4 8 16 32 64 128 255>;
 	default-brightness-level = <6>;
 	power-supply = <&reg_3v3>;
-	pwms = <&pwm4 0 5000000 1>;
+	pwms = <&pwm4 0 5000000 PWM_POLARITY_INVERTED>;
 	status = "okay";
 };
 
diff --git a/arch/arm/boot/dts/rk3229-evb.dts b/arch/arm/boot/dts/rk3229-evb.dts
index 350497a3ca86..68ea0c320ab4 100644
--- a/arch/arm/boot/dts/rk3229-evb.dts
+++ b/arch/arm/boot/dts/rk3229-evb.dts
@@ -83,7 +83,7 @@  vccio_3v3: vccio-3v3-regulator {
 
 	vdd_arm: vdd-arm-regulator {
 		compatible = "pwm-regulator";
-		pwms = <&pwm1 0 25000 1>;
+		pwms = <&pwm1 0 25000 PWM_POLARITY_INVERTED>;
 		pwm-supply = <&vcc_sys>;
 		regulator-name = "vdd_arm";
 		regulator-min-microvolt = <950000>;
@@ -94,7 +94,7 @@  vdd_arm: vdd-arm-regulator {
 
 	vdd_log: vdd-log-regulator {
 		compatible = "pwm-regulator";
-		pwms = <&pwm2 0 25000 1>;
+		pwms = <&pwm2 0 25000 PWM_POLARITY_INVERTED>;
 		pwm-supply = <&vcc_sys>;
 		regulator-name = "vdd_log";
 		regulator-min-microvolt = <1000000>;
diff --git a/arch/arm/boot/dts/rk3229-xms6.dts b/arch/arm/boot/dts/rk3229-xms6.dts
index 679fc2b00e5a..f11088ae855b 100644
--- a/arch/arm/boot/dts/rk3229-xms6.dts
+++ b/arch/arm/boot/dts/rk3229-xms6.dts
@@ -92,7 +92,7 @@  vccio_3v3: vccio-3v3-regulator {
 
 	vdd_arm: vdd-arm-regulator {
 		compatible = "pwm-regulator";
-		pwms = <&pwm1 0 25000 1>;
+		pwms = <&pwm1 0 25000 PWM_POLARITY_INVERTED>;
 		pwm-supply = <&vcc_sys>;
 		regulator-name = "vdd_arm";
 		regulator-min-microvolt = <950000>;
@@ -103,7 +103,7 @@  vdd_arm: vdd-arm-regulator {
 
 	vdd_log: vdd-log-regulator {
 		compatible = "pwm-regulator";
-		pwms = <&pwm2 0 25000 1>;
+		pwms = <&pwm2 0 25000 PWM_POLARITY_INVERTED>;
 		pwm-supply = <&vcc_sys>;
 		regulator-name = "vdd_log";
 		regulator-min-microvolt = <1000000>;