arm64: dts: amlogic: gx: fix reference to unknown/untested PWM clock
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sun, 20 Apr 2025 16:48:00 +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: a526eeef9a81 ("arm64: dts: amlogic: gx: 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-4-martin.blumenstingl@googlemail.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi
arch/arm64/boot/dts/amlogic/meson-gxl.dtsi

index 8ebce7114a60b73593abc0a0f5b8ac302106541e..6c134592c7bb81a1c0eb9ff0f80e58028cd4ce5f 100644 (file)
 
 &pwm_ab {
        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_cd {
        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_ef {
        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>;
 };
index 2dc2fdaecf9ff5e9c1798f23ad33bc3eef24b6a0..19b8a39de6a03312405aea3c0b4aa4c86afd84de 100644 (file)
 
 &pwm_ab {
        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_cd {
        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_ef {
        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>;
 };