]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mips: dts: ralink: rt2880: update system controller node and its consumers
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Mon, 20 Jan 2025 09:21:42 +0000 (10:21 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 21 Feb 2025 17:03:59 +0000 (18:03 +0100)
Current RT2880 device tree file system controller node is wrong since it is
not matching bindings. Hence, update it to match current bindings updating
it also to use new introduced clock constants.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/boot/dts/ralink/rt2880.dtsi
arch/mips/boot/dts/ralink/rt2880_eval.dts

index 8fc1987d9063cf4b57061e1dd94718848a9d8d4f..1f2ea34343246943ccfc67a9363b469178f7c1ee 100644 (file)
@@ -1,4 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
+#include <dt-bindings/clock/mediatek,mtmips-sysc.h>
+
 / {
        #address-cells = <1>;
        #size-cells = <1>;
                #address-cells = <1>;
                #size-cells = <1>;
 
-               sysc@0 {
-                       compatible = "ralink,rt2880-sysc";
+               sysc: syscon@0 {
+                       compatible = "ralink,rt2880-sysc", "syscon";
                        reg = <0x0 0x100>;
+                       #clock-cells = <1>;
+                       #reset-cells = <1>;
                };
 
                intc: intc@200 {
@@ -50,6 +54,8 @@
                        compatible = "ralink,rt2880-uart", "ns16550a";
                        reg = <0xc00 0x100>;
 
+                       clocks = <&sysc RT2880_CLK_UARTLITE>;
+
                        interrupt-parent = <&intc>;
                        interrupts = <8>;
 
index 759bc1dd5b83e8a3db0cc44473a0198b30bd6982..9854a4b120e9f1910a54e6f385b8139d13b43e30 100644 (file)
@@ -1,7 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 /dts-v1/;
 
-/include/ "rt2880.dtsi"
+#include "rt2880.dtsi"
 
 / {
        compatible = "ralink,rt2880-eval-board", "ralink,rt2880-soc";