]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: amlogic: g12: fix reference to unknown/untested PWM clock
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sun, 20 Apr 2025 16:48:01 +0000 (18:48 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Tue, 22 Apr 2025 07:00:20 +0000 (09:00 +0200)
Device-tree expects absent clocks to be specified as <0> (instead of
using <>). This fixes using the FCLK4/FCLK3 clocks as they are now
seen at their correct index (while before they were recognized, but at
the correct index - resulting in the hardware using a different clock
than what the kernel sees).

Fixes: e6884f2e4129 ("arm64: dts: amlogic: g12: switch to the new PWM controller binding")
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20250420164801.330505-5-martin.blumenstingl@googlemail.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi

index ab2b3f15ef19463b0baa17fdee0c0952beca2ca4..69834b49673d40ca1388f3679675854a6eb7ccb0 100644 (file)
                                             "amlogic,meson8-pwm-v2";
                                reg = <0x0 0x19000 0x0 0x20>;
                                clocks = <&xtal>,
-                                        <>, /* unknown/untested, the datasheet calls it "vid_pll" */
+                                        <0>, /* unknown/untested, the datasheet calls it "vid_pll" */
                                         <&clkc CLKID_FCLK_DIV4>,
                                         <&clkc CLKID_FCLK_DIV3>;
                                #pwm-cells = <3>;
                                             "amlogic,meson8-pwm-v2";
                                reg = <0x0 0x1a000 0x0 0x20>;
                                clocks = <&xtal>,
-                                        <>, /* unknown/untested, the datasheet calls it "vid_pll" */
+                                        <0>, /* unknown/untested, the datasheet calls it "vid_pll" */
                                         <&clkc CLKID_FCLK_DIV4>,
                                         <&clkc CLKID_FCLK_DIV3>;
                                #pwm-cells = <3>;
                                             "amlogic,meson8-pwm-v2";
                                reg = <0x0 0x1b000 0x0 0x20>;
                                clocks = <&xtal>,
-                                        <>, /* unknown/untested, the datasheet calls it "vid_pll" */
+                                        <0>, /* unknown/untested, the datasheet calls it "vid_pll" */
                                         <&clkc CLKID_FCLK_DIV4>,
                                         <&clkc CLKID_FCLK_DIV3>;
                                #pwm-cells = <3>;