]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: lg: Fix SP804 users
authorAndre Przywara <andre.przywara@arm.com>
Mon, 7 Sep 2020 12:18:28 +0000 (13:18 +0100)
committerOlof Johansson <olof@lixom.net>
Sat, 3 Oct 2020 19:56:46 +0000 (12:56 -0700)
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>
arch/arm64/boot/dts/lg/lg1312.dtsi
arch/arm64/boot/dts/lg/lg1313.dtsi

index 587103eb9536c52243b446a152e5d0047c5bd8bc..081fe7a9f6056d9f32d76b2d74e763a057a0654f 100644 (file)
                ranges;
 
                timers: timer@fd100000 {
-                       compatible = "arm,sp804";
+                       compatible = "arm,sp804", "arm,primecell";
                        reg = <0x0 0xfd100000 0x1000>;
                        interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
-                       clocks = <&clk_bus>;
-                       clock-names = "apb_pclk";
+                       clocks = <&clk_bus>, <&clk_bus>, <&clk_bus>;
+                       clock-names = "timer0clk", "timer1clk", "apb_pclk";
                };
                wdog: watchdog@fd200000 {
                        compatible = "arm,sp805", "arm,primecell";
index 2cea5b18aac7bfd87a0250712a22fea92702113a..604bb697533781f740659b9720ce14e572d24a2a 100644 (file)
                ranges;
 
                timers: timer@fd100000 {
-                       compatible = "arm,sp804";
+                       compatible = "arm,sp804", "arm,primecell";
                        reg = <0x0 0xfd100000 0x1000>;
                        interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
-                       clocks = <&clk_bus>;
-                       clock-names = "apb_pclk";
+                       clocks = <&clk_bus>, <&clk_bus>, <&clk_bus>;
+                       clock-names = "timer0clk", "timer1clk", "apb_pclk";
                };
                wdog: watchdog@fd200000 {
                        compatible = "arm,sp805", "arm,primecell";