lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20200405192246.3741784-6-oleksandr.suvorov@toradex.com>
Date:   Sun,  5 Apr 2020 22:22:45 +0300
From:   Oleksandr Suvorov <oleksandr.suvorov@...adex.com>
To:     devicetree@...r.kernel.org
Cc:     Paul Barker <pbarker@...sulko.com>,
        Marcel Ziswiler <marcel.ziswiler@...adex.com>,
        Igor Opaniuk <igor.opaniuk@...adex.com>,
        Philippe Schenker <philippe.schenker@...adex.com>,
        Uwe Kleine-König 
        <u.kleine-koenig@...gutronix.de>,
        Laurent Pinchart <laurent.pinchart@...asonboard.com>,
        Oleksandr Suvorov <oleksandr.suvorov@...adex.com>,
        Fabio Estevam <festevam@...il.com>,
        Heiko Stuebner <heiko@...ech.de>,
        NXP Linux Team <linux-imx@....com>,
        Pengutronix Kernel Team <kernel@...gutronix.de>,
        Rob Herring <robh+dt@...nel.org>,
        Sascha Hauer <s.hauer@...gutronix.de>,
        Shawn Guo <shawnguo@...nel.org>,
        linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
        linux-rockchip@...ts.infradead.org
Subject: [RFC PATCH v2 5/6] arm: dts: pwm: replace flag 1 with PWM_POLARITY_INVERTED

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@...adex.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ