Skip to content

Commit fc77231

Browse files
Andre-ARMolofj
authored andcommitted
arm64: dts: lg: Fix SP805 clocks
The SP805 DT binding requires two clocks to be specified, but the two LG platform DTs currently only specify one clock. In practice, Linux would pick a clock named "apb_pclk" for the bus clock, and the Linux (and U-Boot) SP805 driver would use the first clock to derive the actual watchdog counter frequency. Since currently both are the very same clock, we can just double the clock reference, and add the correct clock-names, to match the binding. Link: https://lore.kernel.org/r/20200907121831.242281-6-andre.przywara@arm.com Signed-off-by: Andre Przywara <andre.przywara@arm.com> Acked-by: Chanho Min <chanho.min@lge.com> Signed-off-by: Olof Johansson <olof@lixom.net>
1 parent f6320e3 commit fc77231

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

arch/arm64/boot/dts/lg/lg1312.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@
141141
compatible = "arm,sp805", "arm,primecell";
142142
reg = <0x0 0xfd200000 0x1000>;
143143
interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
144-
clocks = <&clk_bus>;
145-
clock-names = "apb_pclk";
144+
clocks = <&clk_bus>, <&clk_bus>;
145+
clock-names = "wdog_clk", "apb_pclk";
146146
};
147147
uart0: serial@fe000000 {
148148
compatible = "arm,pl011", "arm,primecell";

arch/arm64/boot/dts/lg/lg1313.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@
141141
compatible = "arm,sp805", "arm,primecell";
142142
reg = <0x0 0xfd200000 0x1000>;
143143
interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
144-
clocks = <&clk_bus>;
145-
clock-names = "apb_pclk";
144+
clocks = <&clk_bus>, <&clk_bus>;
145+
clock-names = "wdog_clk", "apb_pclk";
146146
};
147147
uart0: serial@fe000000 {
148148
compatible = "arm,pl011", "arm,primecell";

0 commit comments

Comments
 (0)