Skip to content

Commit a526eee

Browse files
xdarklightsuperna9999
authored andcommitted
arm64: dts: amlogic: gx: switch to the new PWM controller binding
Use the new PWM controller binding which now relies on passing all clock inputs available on the SoC (instead of passing the "wanted" clock input for a given board). Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://lore.kernel.org/r/20241227212514.1376682-4-martin.blumenstingl@googlemail.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
1 parent 2014c95 commit a526eee

18 files changed

Lines changed: 54 additions & 40 deletions

arch/arm64/boot/dts/amlogic/meson-gx-libretech-pc.dtsi

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -345,24 +345,18 @@
345345
&pwm_AO_ab {
346346
pinctrl-0 = <&pwm_ao_a_3_pins>;
347347
pinctrl-names = "default";
348-
clocks = <&clkc CLKID_FCLK_DIV4>;
349-
clock-names = "clkin0";
350348
status = "okay";
351349
};
352350

353351
&pwm_ab {
354352
pinctrl-0 = <&pwm_b_pins>;
355353
pinctrl-names = "default";
356-
clocks = <&clkc CLKID_FCLK_DIV4>;
357-
clock-names = "clkin0";
358354
status = "okay";
359355
};
360356

361357
&pwm_ef {
362358
pinctrl-0 = <&pwm_e_pins>, <&pwm_f_clk_pins>;
363359
pinctrl-names = "default";
364-
clocks = <&clkc CLKID_FCLK_DIV4>;
365-
clock-names = "clkin0";
366360
status = "okay";
367361
};
368362

arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,6 @@
240240
status = "okay";
241241
pinctrl-0 = <&pwm_e_pins>;
242242
pinctrl-names = "default";
243-
clocks = <&clkc CLKID_FCLK_DIV4>;
244-
clock-names = "clkin0";
245243
};
246244

247245
&saradc {

arch/arm64/boot/dts/amlogic/meson-gx.dtsi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,14 +329,14 @@
329329
};
330330

331331
pwm_ab: pwm@8550 {
332-
compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
332+
compatible = "amlogic,meson-gxbb-pwm-v2", "amlogic,meson8-pwm-v2";
333333
reg = <0x0 0x08550 0x0 0x10>;
334334
#pwm-cells = <3>;
335335
status = "disabled";
336336
};
337337

338338
pwm_cd: pwm@8650 {
339-
compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
339+
compatible = "amlogic,meson-gxbb-pwm-v2", "amlogic,meson8-pwm-v2";
340340
reg = <0x0 0x08650 0x0 0x10>;
341341
#pwm-cells = <3>;
342342
status = "disabled";
@@ -351,7 +351,7 @@
351351
};
352352

353353
pwm_ef: pwm@86c0 {
354-
compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
354+
compatible = "amlogic,meson-gxbb-pwm-v2", "amlogic,meson8-pwm-v2";
355355
reg = <0x0 0x086c0 0x0 0x10>;
356356
#pwm-cells = <3>;
357357
status = "disabled";
@@ -498,7 +498,7 @@
498498
};
499499

500500
pwm_AO_ab: pwm@550 {
501-
compatible = "amlogic,meson-gx-ao-pwm", "amlogic,meson-gxbb-ao-pwm";
501+
compatible = "amlogic,meson-gxbb-pwm-v2", "amlogic,meson8-pwm-v2";
502502
reg = <0x0 0x00550 0x0 0x10>;
503503
#pwm-cells = <3>;
504504
status = "disabled";

arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,6 @@
298298
status = "okay";
299299
pinctrl-0 = <&pwm_e_pins>;
300300
pinctrl-names = "default";
301-
clocks = <&clkc CLKID_FCLK_DIV4>;
302-
clock-names = "clkin0";
303301
};
304302

305303
&saradc {

arch/arm64/boot/dts/amlogic/meson-gxbb-nexbox-a95x.dts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,6 @@
241241
status = "okay";
242242
pinctrl-0 = <&pwm_e_pins>;
243243
pinctrl-names = "default";
244-
clocks = <&clkc CLKID_FCLK_DIV4>;
245-
clock-names = "clkin0";
246244
};
247245

248246
/* Wireless SDIO Module */

arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,6 @@
150150
status = "okay";
151151
pinctrl-0 = <&pwm_e_pins>;
152152
pinctrl-names = "default";
153-
clocks = <&clkc CLKID_FCLK_DIV4>;
154-
clock-names = "clkin0";
155153
};
156154

157155
/* Wireless SDIO Module */

arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,6 @@
222222
status = "okay";
223223
pinctrl-0 = <&pwm_e_pins>;
224224
pinctrl-names = "default";
225-
clocks = <&clkc CLKID_FCLK_DIV4>;
226-
clock-names = "clkin0";
227225
};
228226

229227
&saradc {

arch/arm64/boot/dts/amlogic/meson-gxbb-wetek.dtsi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,6 @@
185185
status = "okay";
186186
pinctrl-0 = <&pwm_e_pins>;
187187
pinctrl-names = "default";
188-
clocks = <&clkc CLKID_FCLK_DIV4>;
189-
clock-names = "clkin0";
190188
};
191189

192190
&saradc {

arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,31 @@
739739
};
740740
};
741741

742+
&pwm_ab {
743+
clocks = <&xtal>,
744+
<>, /* unknown/untested, the datasheet calls it "vid_pll" */
745+
<&clkc CLKID_FCLK_DIV4>,
746+
<&clkc CLKID_FCLK_DIV3>;
747+
};
748+
749+
&pwm_AO_ab {
750+
clocks = <&xtal>, <&clkc CLKID_CLK81>;
751+
};
752+
753+
&pwm_cd {
754+
clocks = <&xtal>,
755+
<>, /* unknown/untested, the datasheet calls it "vid_pll" */
756+
<&clkc CLKID_FCLK_DIV4>,
757+
<&clkc CLKID_FCLK_DIV3>;
758+
};
759+
760+
&pwm_ef {
761+
clocks = <&xtal>,
762+
<>, /* unknown/untested, the datasheet calls it "vid_pll" */
763+
<&clkc CLKID_FCLK_DIV4>,
764+
<&clkc CLKID_FCLK_DIV3>;
765+
};
766+
742767
&pwrc {
743768
resets = <&reset RESET_VIU>,
744769
<&reset RESET_VENC>,

arch/arm64/boot/dts/amlogic/meson-gxl-s805x-p241.dts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,6 @@
280280
status = "okay";
281281
pinctrl-0 = <&pwm_e_pins>;
282282
pinctrl-names = "default";
283-
clocks = <&clkc CLKID_FCLK_DIV4>;
284-
clock-names = "clkin0";
285283
};
286284

287285
/* This is connected to the Bluetooth module: */

0 commit comments

Comments
 (0)