Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: at91: kizbox: switch to new pwm-atmel-tcb binding

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

+30 -15
+30 -15
arch/arm/boot/dts/at91-kizbox.dts
··· 53 53 54 54 led-1 { 55 55 label = "pwm:green:network"; 56 - pwms = <&tcb_pwm 2 10000000 PWM_POLARITY_INVERTED>; 56 + pwms = <&tcb1_pwm1 0 10000000 PWM_POLARITY_INVERTED>; 57 57 max-brightness = <255>; 58 58 linux,default-trigger = "default-on"; 59 59 }; 60 60 61 61 led-2 { 62 62 label = "pwm:red:network"; 63 - pwms = <&tcb_pwm 4 10000000 PWM_POLARITY_INVERTED>; 63 + pwms = <&tcb1_pwm2 0 10000000 PWM_POLARITY_INVERTED>; 64 64 max-brightness = <255>; 65 65 linux,default-trigger = "default-on"; 66 66 }; 67 67 68 68 led-3 { 69 69 label = "pwm:green:user"; 70 - pwms = <&tcb_pwm 0 10000000 PWM_POLARITY_INVERTED>; 70 + pwms = <&tcb1_pwm0 0 10000000 PWM_POLARITY_INVERTED>; 71 71 max-brightness = <255>; 72 72 linux,default-trigger = "default-on"; 73 73 }; 74 74 75 75 led-4 { 76 76 label = "pwm:red:user"; 77 - pwms = <&tcb_pwm 1 10000000 PWM_POLARITY_INVERTED>; 77 + pwms = <&tcb1_pwm0 1 10000000 PWM_POLARITY_INVERTED>; 78 78 max-brightness = <255>; 79 79 linux,default-trigger = "default-on"; 80 80 }; 81 - }; 82 - 83 - tcb_pwm: pwm { 84 - compatible = "atmel,tcb-pwm"; 85 - #pwm-cells = <3>; 86 - tc-block = <1>; 87 - pinctrl-names = "default"; 88 - pinctrl-0 = <&pinctrl_tcb1_tioa0 89 - &pinctrl_tcb1_tioa1 90 - &pinctrl_tcb1_tioa2 91 - &pinctrl_tcb1_tiob0>; 92 81 }; 93 82 }; 94 83 ··· 90 101 timer@2 { 91 102 compatible = "atmel,tcb-timer"; 92 103 reg = <2>; 104 + }; 105 + }; 106 + 107 + &tcb1 { 108 + tcb1_pwm0: pwm@0 { 109 + compatible = "atmel,tcb-pwm"; 110 + reg = <0>; 111 + #pwm-cells = <3>; 112 + pinctrl-names = "default"; 113 + pinctrl-0 = <&pinctrl_tcb1_tioa0 &pinctrl_tcb1_tiob0>; 114 + }; 115 + 116 + tcb1_pwm1: pwm@1 { 117 + compatible = "atmel,tcb-pwm"; 118 + reg = <1>; 119 + #pwm-cells = <3>; 120 + pinctrl-names = "default"; 121 + pinctrl-0 = <&pinctrl_tcb1_tioa1>; 122 + }; 123 + 124 + tcb1_pwm2: pwm@2 { 125 + compatible = "atmel,tcb-pwm"; 126 + reg = <2>; 127 + #pwm-cells = <3>; 128 + pinctrl-names = "default"; 129 + pinctrl-0 = <&pinctrl_tcb1_tioa2>; 93 130 }; 94 131 }; 95 132