Skip to content

Commit 802cff4

Browse files
xdarklightsuperna9999
authored andcommitted
ARM: dts: amlogic: meson8: 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-2-martin.blumenstingl@googlemail.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
1 parent 2014c95 commit 802cff4

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

arch/arm/boot/dts/amlogic/meson8.dtsi

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,11 @@
449449
};
450450

451451
pwm_ef: pwm@86c0 {
452-
compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm";
452+
compatible = "amlogic,meson8-pwm-v2";
453+
clocks = <&xtal>,
454+
<>, /* unknown/untested, the datasheet calls it "Video PLL" */
455+
<&clkc CLKID_FCLK_DIV4>,
456+
<&clkc CLKID_FCLK_DIV3>;
453457
reg = <0x86c0 0x10>;
454458
#pwm-cells = <3>;
455459
status = "disabled";
@@ -699,11 +703,19 @@
699703
};
700704

701705
&pwm_ab {
702-
compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm";
706+
compatible = "amlogic,meson8-pwm-v2";
707+
clocks = <&xtal>,
708+
<>, /* unknown/untested, the datasheet calls it "Video PLL" */
709+
<&clkc CLKID_FCLK_DIV4>,
710+
<&clkc CLKID_FCLK_DIV3>;
703711
};
704712

705713
&pwm_cd {
706-
compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm";
714+
compatible = "amlogic,meson8-pwm-v2";
715+
clocks = <&xtal>,
716+
<>, /* unknown/untested, the datasheet calls it "Video PLL" */
717+
<&clkc CLKID_FCLK_DIV4>,
718+
<&clkc CLKID_FCLK_DIV3>;
707719
};
708720

709721
&rtc {

0 commit comments

Comments
 (0)