dts: bindings: pwm: imx: change PWM flag cell

Modifying .yaml file to permit polarity options for mimxrt10xx boards.

Signed-off-by: Cristiana Preda <predacristianamaria@gmail.com>
This commit is contained in:
Cristiana Preda 2023-01-18 08:50:23 +01:00 committed by Carles Cufí
parent 0b004c0418
commit 4b9015d774
8 changed files with 49 additions and 48 deletions

View file

@ -54,7 +54,7 @@
compatible = "pwm-leds";
green_pwm_led: green_pwm_led {
pwms = <&flexpwm2_pwm3 0 PWM_MSEC(20)>;
pwms = <&flexpwm2_pwm3 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
};
};

View file

@ -35,7 +35,7 @@
compatible = "pwm-leds";
green_pwm_led: green_pwm_led {
pwms = <&flexpwm1_pwm2 0 PWM_MSEC(20)>;
pwms = <&flexpwm1_pwm2 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
};
};
};

View file

@ -41,7 +41,7 @@
compatible = "pwm-leds";
green_pwm_led: green_pwm_led {
pwms = <&flexpwm1_pwm2 0 PWM_MSEC(20)>;
pwms = <&flexpwm1_pwm2 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
};
};
};

View file

@ -264,7 +264,7 @@
index = <0>;
interrupt-names = "COMPARE-SUB0", "RELOAD-SUB0";
interrupts = <83 0>, <84 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&syscon MCUX_BUS_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -276,7 +276,7 @@
index = <1>;
interrupt-names = "COMPARE-SUB1", "RELOAD-SUB1";
interrupts = <85 0>, <86 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&syscon MCUX_BUS_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -288,7 +288,7 @@
index = <2>;
interrupt-names = "COMPARE-SUB2", "RELOAD-SUB2";
interrupts = <87 0>, <88 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&syscon MCUX_BUS_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -300,7 +300,7 @@
index = <3>;
interrupt-names = "COMPARE-SUB3", "RELOAD-SUB3";
interrupts = <89 0>, <90 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&syscon MCUX_BUS_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -319,7 +319,7 @@
index = <0>;
interrupt-names = "COMPARE-SUB0", "RELOAD-SUB0";
interrupts = <94 0>, <95 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&syscon MCUX_BUS_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -331,7 +331,7 @@
index = <1>;
interrupt-names = "COMPARE-SUB1", "RELOAD-SUB1";
interrupts = <96 0>, <97 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&syscon MCUX_BUS_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -343,7 +343,7 @@
index = <2>;
interrupt-names = "COMPARE-SUB2", "RELOAD-SUB2";
interrupts = <98 0>, <99 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&syscon MCUX_BUS_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -355,7 +355,7 @@
index = <3>;
interrupt-names = "COMPARE-SUB3", "RELOAD-SUB3";
interrupts = <100 0>, <101 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&syscon MCUX_BUS_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";

View file

@ -187,7 +187,7 @@
compatible = "nxp,imx-pwm";
index = <0>;
interrupts = <34 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -197,7 +197,7 @@
compatible = "nxp,imx-pwm";
index = <1>;
interrupts = <35 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -207,7 +207,7 @@
compatible = "nxp,imx-pwm";
index = <2>;
interrupts = <36 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -217,7 +217,7 @@
compatible = "nxp,imx-pwm";
index = <3>;
interrupts = <37 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";

View file

@ -567,7 +567,7 @@
compatible = "nxp,imx-pwm";
index = <0>;
interrupts = <102 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -577,7 +577,7 @@
compatible = "nxp,imx-pwm";
index = <1>;
interrupts = <103 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -587,7 +587,7 @@
compatible = "nxp,imx-pwm";
index = <2>;
interrupts = <104 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -597,7 +597,7 @@
compatible = "nxp,imx-pwm";
index = <3>;
interrupts = <105 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -613,7 +613,7 @@
compatible = "nxp,imx-pwm";
index = <0>;
interrupts = <137 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -623,7 +623,7 @@
compatible = "nxp,imx-pwm";
index = <1>;
interrupts = <138 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -633,7 +633,7 @@
compatible = "nxp,imx-pwm";
index = <2>;
interrupts = <139 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -643,7 +643,7 @@
compatible = "nxp,imx-pwm";
index = <3>;
interrupts = <140 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -659,7 +659,7 @@
compatible = "nxp,imx-pwm";
index = <0>;
interrupts = <142 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -669,7 +669,7 @@
compatible = "nxp,imx-pwm";
index = <1>;
interrupts = <143 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -679,7 +679,7 @@
compatible = "nxp,imx-pwm";
index = <2>;
interrupts = <144 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -689,7 +689,7 @@
compatible = "nxp,imx-pwm";
index = <3>;
interrupts = <145 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -705,7 +705,7 @@
compatible = "nxp,imx-pwm";
index = <0>;
interrupts = <147 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -715,7 +715,7 @@
compatible = "nxp,imx-pwm";
index = <1>;
interrupts = <148 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -725,7 +725,7 @@
compatible = "nxp,imx-pwm";
index = <2>;
interrupts = <149 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -735,7 +735,7 @@
compatible = "nxp,imx-pwm";
index = <3>;
interrupts = <150 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";

View file

@ -529,7 +529,7 @@
compatible = "nxp,imx-pwm";
index = <0>;
interrupts = <125 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -539,7 +539,7 @@
compatible = "nxp,imx-pwm";
index = <1>;
interrupts = <126 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -549,7 +549,7 @@
compatible = "nxp,imx-pwm";
index = <2>;
interrupts = <127 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -559,7 +559,7 @@
compatible = "nxp,imx-pwm";
index = <3>;
interrupts = <128 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -575,7 +575,7 @@
compatible = "nxp,imx-pwm";
index = <0>;
interrupts = <177 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -585,7 +585,7 @@
compatible = "nxp,imx-pwm";
index = <1>;
interrupts = <178 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -595,7 +595,7 @@
compatible = "nxp,imx-pwm";
index = <2>;
interrupts = <179 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -605,7 +605,7 @@
compatible = "nxp,imx-pwm";
index = <3>;
interrupts = <180 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -621,7 +621,7 @@
compatible = "nxp,imx-pwm";
index = <0>;
interrupts = <182 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -631,7 +631,7 @@
compatible = "nxp,imx-pwm";
index = <1>;
interrupts = <183 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -641,7 +641,7 @@
compatible = "nxp,imx-pwm";
index = <2>;
interrupts = <184 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -651,7 +651,7 @@
compatible = "nxp,imx-pwm";
index = <3>;
interrupts = <185 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -667,7 +667,7 @@
compatible = "nxp,imx-pwm";
index = <0>;
interrupts = <187 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -677,7 +677,7 @@
compatible = "nxp,imx-pwm";
index = <1>;
interrupts = <188 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -687,7 +687,7 @@
compatible = "nxp,imx-pwm";
index = <2>;
interrupts = <189 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";
@ -697,7 +697,7 @@
compatible = "nxp,imx-pwm";
index = <3>;
interrupts = <190 0>;
#pwm-cells = <2>;
#pwm-cells = <3>;
clocks = <&ccm IMX_CCM_PWM_CLK 0 0>;
nxp,prescaler = <128>;
status = "disabled";

View file

@ -48,8 +48,9 @@ properties:
"half-and-full-cycle" - registers loaded on a PWM half & full cycle.
"#pwm-cells":
const: 2
const: 3
pwm-cells:
- channel
- period
- flags