]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ARM: dts: at91: kizbox: switch to new pwm-atmel-tcb binding
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 30 Oct 2020 18:36:58 +0000 (19:36 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 1 Dec 2020 20:07:38 +0000 (21:07 +0100)
Switch to the new pwm-atmel-tcb binding that avoid wasting TCB channels.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Antoine Aubert <a.aubert@overkiz.com>
Link: https://lore.kernel.org/r/20201030183658.1007395-5-alexandre.belloni@bootlin.com
arch/arm/boot/dts/at91-kizbox.dts

index 8b33fe5564fe79f28f97443e094d8e14dc90565a..3b8812fcd8540f6a8efee1685f0b2e6ebdb6b921 100644 (file)
 
                led-1 {
                        label = "pwm:green:network";
-                       pwms = <&tcb_pwm 2 10000000 PWM_POLARITY_INVERTED>;
+                       pwms = <&tcb1_pwm1 0 10000000 PWM_POLARITY_INVERTED>;
                        max-brightness = <255>;
                        linux,default-trigger = "default-on";
                };
 
                led-2 {
                        label = "pwm:red:network";
-                       pwms = <&tcb_pwm 4 10000000 PWM_POLARITY_INVERTED>;
+                       pwms = <&tcb1_pwm2 0 10000000 PWM_POLARITY_INVERTED>;
                        max-brightness = <255>;
                        linux,default-trigger = "default-on";
                };
 
                led-3 {
                        label = "pwm:green:user";
-                       pwms = <&tcb_pwm 0 10000000 PWM_POLARITY_INVERTED>;
+                       pwms = <&tcb1_pwm0 0 10000000 PWM_POLARITY_INVERTED>;
                        max-brightness = <255>;
                        linux,default-trigger = "default-on";
                };
 
                led-4 {
                        label = "pwm:red:user";
-                       pwms = <&tcb_pwm 1 10000000 PWM_POLARITY_INVERTED>;
+                       pwms = <&tcb1_pwm0 1 10000000 PWM_POLARITY_INVERTED>;
                        max-brightness = <255>;
                        linux,default-trigger = "default-on";
                };
        };
-
-       tcb_pwm: pwm {
-               compatible = "atmel,tcb-pwm";
-               #pwm-cells = <3>;
-               tc-block = <1>;
-               pinctrl-names = "default";
-               pinctrl-0 = <&pinctrl_tcb1_tioa0
-                            &pinctrl_tcb1_tioa1
-                            &pinctrl_tcb1_tioa2
-                            &pinctrl_tcb1_tiob0>;
-       };
 };
 
 &tcb0 {
        };
 };
 
+&tcb1 {
+       tcb1_pwm0: pwm@0 {
+               compatible = "atmel,tcb-pwm";
+               reg = <0>;
+               #pwm-cells = <3>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_tcb1_tioa0 &pinctrl_tcb1_tiob0>;
+       };
+
+       tcb1_pwm1: pwm@1 {
+               compatible = "atmel,tcb-pwm";
+               reg = <1>;
+               #pwm-cells = <3>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_tcb1_tioa1>;
+       };
+
+       tcb1_pwm2: pwm@2 {
+               compatible = "atmel,tcb-pwm";
+               reg = <2>;
+               #pwm-cells = <3>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_tcb1_tioa2>;
+       };
+};
+
 &ebi {
        status = "okay";
 };