@@ -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 = <®_3v3>;
- pwms = <&pwm4 0 5000000 1>;
+ pwms = <&pwm4 0 5000000 PWM_POLARITY_INVERTED>;
status = "okay";
};
@@ -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>;
@@ -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>;
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(-)