Skip to content

Commit c979486

Browse files
Andre-ARMolofj
authored andcommitted
arm64: dts: lg: Fix SP804 users
Even though the SP804 binding allows to specify only one clock, the primecell driver requires a named clock to activate the bus clock. Specify the one clock three times and provide some clock-names, to make the DT match the SP804 and primecell binding. Also add the missing arm,primecell compatible string. Link: https://lore.kernel.org/r/20200907121831.242281-4-andre.przywara@arm.com Signed-off-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Olof Johansson <olof@lixom.net>
1 parent fc77231 commit c979486

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@
131131
ranges;
132132

133133
timers: timer@fd100000 {
134-
compatible = "arm,sp804";
134+
compatible = "arm,sp804", "arm,primecell";
135135
reg = <0x0 0xfd100000 0x1000>;
136136
interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
137-
clocks = <&clk_bus>;
138-
clock-names = "apb_pclk";
137+
clocks = <&clk_bus>, <&clk_bus>, <&clk_bus>;
138+
clock-names = "timer0clk", "timer1clk", "apb_pclk";
139139
};
140140
wdog: watchdog@fd200000 {
141141
compatible = "arm,sp805", "arm,primecell";

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@
131131
ranges;
132132

133133
timers: timer@fd100000 {
134-
compatible = "arm,sp804";
134+
compatible = "arm,sp804", "arm,primecell";
135135
reg = <0x0 0xfd100000 0x1000>;
136136
interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
137-
clocks = <&clk_bus>;
138-
clock-names = "apb_pclk";
137+
clocks = <&clk_bus>, <&clk_bus>, <&clk_bus>;
138+
clock-names = "timer0clk", "timer1clk", "apb_pclk";
139139
};
140140
wdog: watchdog@fd200000 {
141141
compatible = "arm,sp805", "arm,primecell";

0 commit comments

Comments
 (0)