lkml.org 
[lkml]   [2020]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC PATCH v2 5/6] arm: dts: pwm: replace flag 1 with PWM_POLARITY_INVERTED
Date
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(-)

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>;
--
2.24.1
\
 
 \ /
  Last update: 2020-04-05 21:24    [W:0.031 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site