Commit 511d388a authored by Martin Blumenstingl's avatar Martin Blumenstingl Committed by Neil Armstrong
Browse files

arm64: dts: amlogic: gx: fix reference to unknown/untested PWM clock



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: a526eeef ("arm64: dts: amlogic: gx: switch to the new PWM controller binding")
Signed-off-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20250420164801.330505-4-martin.blumenstingl@googlemail.com


Signed-off-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
parent a994b58f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -741,7 +741,7 @@ mux {

&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>;
};
@@ -752,14 +752,14 @@ &pwm_AO_ab {

&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>;
};
+3 −3
Original line number Diff line number Diff line
@@ -811,7 +811,7 @@ internal_phy: ethernet-phy@8 {

&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>;
};
@@ -822,14 +822,14 @@ &pwm_AO_ab {

&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>;
};