]> git.ipfire.org Git - people/ms/linux.git/commitdiff
arm64: dt: imx8mp: support pwm polarity inversion
authorMarkus Niebel <Markus.Niebel@ew.tq-group.com>
Mon, 2 May 2022 09:49:01 +0000 (11:49 +0200)
committerShawn Guo <shawnguo@kernel.org>
Thu, 5 May 2022 07:46:31 +0000 (15:46 +0800)
The i.MX8M Plus has the same PWM IP as i.MX6 / i.MX7. This IP
and the driver supporting pwm polarity inversion. Switch CPU
device tree fragment to use 3 pwm-cells.

Tested on MBa8MPxL mainboard.

Signed-off-by: Markus Niebel <Markus.Niebel@ew.tq-group.com>
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mp.dtsi

index ed75bd30d9afb8e4642935c1cc4b9a7b9f58654b..d9542dfff83fba7888c8477d270114b8542df639 100644 (file)
                                clocks = <&clk IMX8MP_CLK_PWM1_ROOT>,
                                         <&clk IMX8MP_CLK_PWM1_ROOT>;
                                clock-names = "ipg", "per";
-                               #pwm-cells = <2>;
+                               #pwm-cells = <3>;
                                status = "disabled";
                        };
 
                                clocks = <&clk IMX8MP_CLK_PWM2_ROOT>,
                                         <&clk IMX8MP_CLK_PWM2_ROOT>;
                                clock-names = "ipg", "per";
-                               #pwm-cells = <2>;
+                               #pwm-cells = <3>;
                                status = "disabled";
                        };
 
                                clocks = <&clk IMX8MP_CLK_PWM3_ROOT>,
                                         <&clk IMX8MP_CLK_PWM3_ROOT>;
                                clock-names = "ipg", "per";
-                               #pwm-cells = <2>;
+                               #pwm-cells = <3>;
                                status = "disabled";
                        };
 
                                clocks = <&clk IMX8MP_CLK_PWM4_ROOT>,
                                         <&clk IMX8MP_CLK_PWM4_ROOT>;
                                clock-names = "ipg", "per";
-                               #pwm-cells = <2>;
+                               #pwm-cells = <3>;
                                status = "disabled";
                        };