]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mips: dts: realtek: Replace uart clock property
authorSander Vanheule <sander@svanheule.net>
Sun, 19 Jan 2025 18:34:22 +0000 (19:34 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 21 Feb 2025 14:10:17 +0000 (15:10 +0100)
Add a fixed clock to define the clock frequency of the Lexra bus and use
this for the two uart nodes instead of a separate clock-frequency
property.

Signed-off-by: Sander Vanheule <sander@svanheule.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/boot/dts/realtek/rtl838x.dtsi

index e3183a71765e70d0bc860723f725dc7dc6834dd1..246f4f607128c4c87f38daee92511ce3b3c46735 100644 (file)
                interrupt-controller;
        };
 
+       lx_clk: clock-lexra {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-frequency = <200000000>;
+       };
+
        soc@18000000 {
                compatible = "simple-bus";
                #address-cells = <1>;
@@ -44,7 +50,7 @@
                        compatible = "ns16550a";
                        reg = <0x2000 0x100>;
 
-                       clock-frequency = <200000000>;
+                       clocks = <&lx_clk>;
 
                        interrupt-parent = <&intc>;
                        interrupts = <31>;
@@ -61,7 +67,7 @@
                        compatible = "ns16550a";
                        reg = <0x2100 0x100>;
 
-                       clock-frequency = <200000000>;
+                       clocks = <&lx_clk>;
 
                        interrupt-parent = <&intc>;
                        interrupts = <30>;