]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: amlogic: meson8: switch to the new PWM controller binding
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Fri, 27 Dec 2024 21:25:10 +0000 (22:25 +0100)
committerNeil Armstrong <neil.armstrong@linaro.org>
Fri, 28 Feb 2025 08:16:23 +0000 (09:16 +0100)
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>
arch/arm/boot/dts/amlogic/meson8.dtsi

index 9ff142d9fe3f4576fdd3230a966c8a6250870de7..847f7b1f1e9617cb8b7d153a1ae62b0ff2112606 100644 (file)
        };
 
        pwm_ef: pwm@86c0 {
-               compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm";
+               compatible = "amlogic,meson8-pwm-v2";
+               clocks = <&xtal>,
+                        <>, /* unknown/untested, the datasheet calls it "Video PLL" */
+                        <&clkc CLKID_FCLK_DIV4>,
+                        <&clkc CLKID_FCLK_DIV3>;
                reg = <0x86c0 0x10>;
                #pwm-cells = <3>;
                status = "disabled";
 };
 
 &pwm_ab {
-       compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm";
+       compatible = "amlogic,meson8-pwm-v2";
+       clocks = <&xtal>,
+                <>, /* unknown/untested, the datasheet calls it "Video PLL" */
+                <&clkc CLKID_FCLK_DIV4>,
+                <&clkc CLKID_FCLK_DIV3>;
 };
 
 &pwm_cd {
-       compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm";
+       compatible = "amlogic,meson8-pwm-v2";
+       clocks = <&xtal>,
+                <>, /* unknown/untested, the datasheet calls it "Video PLL" */
+                <&clkc CLKID_FCLK_DIV4>,
+                <&clkc CLKID_FCLK_DIV3>;
 };
 
 &rtc {