ramips: remove useless resets properties from SoC dtsi
authorShiji Yang <yangshiji66@qq.com>
Fri, 15 Dec 2023 12:36:00 +0000 (12:36 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 25 Dec 2023 17:57:19 +0000 (18:57 +0100)
These drivers don't request reset control. And most reset properties
even have incorrect reset source definitions.

1. interrupt controller, ref: arch/mips/ralink/irq.c
2. memory controller, ref: arch/mips/ralink/of.c
3. gpio controller, ref: drivers/gpio/gpio-ralink.c (local patch)
4. systic, ref: arch/mips/ralink/cevt-rt3352.c
5. pwm, ref: drivers/pwm/pwm-mediatek-ramips.c (local patch)

Tested on MT7620 && MT7628.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
target/linux/ramips/dts/mt7620a.dtsi
target/linux/ramips/dts/mt7620n.dtsi
target/linux/ramips/dts/mt7621.dtsi
target/linux/ramips/dts/mt7628an.dtsi
target/linux/ramips/dts/rt3050.dtsi
target/linux/ramips/dts/rt3352.dtsi
target/linux/ramips/dts/rt3883.dtsi
target/linux/ramips/dts/rt5350.dtsi

index 87cd119792ba2ff8c9e10d81bc8e581bc5fe3719..a1dfa8c73008988923773b1b67fe2d08d8a6dae2 100644 (file)
@@ -74,9 +74,6 @@
                        compatible = "ralink,mt7620a-intc", "ralink,rt2880-intc";
                        reg = <0x200 0x100>;
 
-                       resets = <&sysc 19>;
-                       reset-names = "intc";
-
                        interrupt-controller;
                        #interrupt-cells = <1>;
 
@@ -88,9 +85,6 @@
                        compatible = "ralink,mt7620a-memc", "ralink,rt3050-memc";
                        reg = <0x300 0x100>;
 
-                       resets = <&sysc 20>;
-                       reset-names = "mc";
-
                        interrupt-parent = <&intc>;
                        interrupts = <3>;
                };
                        compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio";
                        reg = <0x600 0x34>;
 
-                       resets = <&sysc 13>;
-                       reset-names = "pio";
-
                        interrupt-parent = <&intc>;
                        interrupts = <6>;
 
                        compatible = "ralink,mt7620a-systick", "ralink,cevt-systick";
                        reg = <0xd00 0x10>;
 
-                       resets = <&sysc 28>;
-                       reset-names = "intc";
-
                        interrupt-parent = <&cpuintc>;
                        interrupts = <7>;
                };
index 3299dea0f0defdf70ca7d253205aeaf21686e8b1..f4a5165704959c80f91956e3c8f37e5b843230f2 100644 (file)
@@ -74,9 +74,6 @@
                        compatible = "ralink,mt7620a-intc", "ralink,rt2880-intc";
                        reg = <0x200 0x100>;
 
-                       resets = <&sysc 19>;
-                       reset-names = "intc";
-
                        interrupt-controller;
                        #interrupt-cells = <1>;
 
@@ -88,9 +85,6 @@
                        compatible = "ralink,mt7620a-memc", "ralink,rt3050-memc";
                        reg = <0x300 0x100>;
 
-                       resets = <&sysc 20>;
-                       reset-names = "mc";
-
                        interrupt-parent = <&intc>;
                        interrupts = <3>;
                };
@@ -99,9 +93,6 @@
                        compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio";
                        reg = <0x600 0x34>;
 
-                       resets = <&sysc 13>;
-                       reset-names = "pio";
-
                        interrupt-parent = <&intc>;
                        interrupts = <6>;
 
                        compatible = "ralink,mt7620a-systick", "ralink,cevt-systick";
                        reg = <0xd00 0x10>;
 
-                       resets = <&sysc 28>;
-                       reset-names = "intc";
-
                        interrupt-parent = <&cpuintc>;
                        interrupts = <7>;
                };
index 4d82aa327b5f8abc5b57fff16453eeb4773bbce9..888c14cec0d1b938fa90ca100c74bdbce37affea 100644 (file)
                        compatible = "ralink,mt7621-systick", "ralink,cevt-systick";
                        reg = <0x500 0x10>;
 
-                       resets = <&sysc MT7621_RST_AUX_STCK>;
-                       reset-names = "intc";
-
                        interrupt-parent = <&gic>;
                        interrupts = <GIC_SHARED 5 IRQ_TYPE_LEVEL_HIGH>;
                };
index d6c3a47b0b400253a4f525df20fd5d78bf73c057..ddc3011aab1ecb94ab783d793cb527df20547bcf 100644 (file)
@@ -55,9 +55,6 @@
                        compatible = "ralink,mt7628an-intc", "ralink,rt2880-intc";
                        reg = <0x200 0x100>;
 
-                       resets = <&sysc 9>;
-                       reset-names = "intc";
-
                        interrupt-controller;
                        #interrupt-cells = <1>;
 
@@ -73,9 +70,6 @@
                        compatible = "ralink,mt7620a-memc", "ralink,rt3050-memc";
                        reg = <0x300 0x100>;
 
-                       resets = <&sysc 10>;
-                       reset-names = "mc";
-
                        interrupt-parent = <&intc>;
                        interrupts = <3>;
                };
                        reg = <0x5000 0x1000>;
                        #pwm-cells = <2>;
 
-                       resets = <&sysc 31>;
-                       reset-names = "pwm";
-
                        pinctrl-names = "default";
                        pinctrl-0 = <&pwm0_pins>, <&pwm1_pins>;
 
index eb508ed9d347dab0b4bacf7e182f910d84d8d22c..4d70773ed1cbfa587719e7fded922ce699aa610d 100644 (file)
@@ -73,9 +73,6 @@
                        compatible = "ralink,rt3050-intc", "ralink,rt2880-intc";
                        reg = <0x200 0x100>;
 
-                       resets = <&sysc 19>;
-                       reset-names = "intc";
-
                        interrupt-controller;
                        #interrupt-cells = <1>;
 
@@ -87,9 +84,6 @@
                        compatible = "ralink,rt3050-memc";
                        reg = <0x300 0x100>;
 
-                       resets = <&sysc 20>;
-                       reset-names = "mc";
-
                        interrupt-parent = <&intc>;
                        interrupts = <3>;
                };
                                                20 24 28 2c
                                                30 34 ];
 
-                       resets = <&sysc 13>;
-                       reset-names = "pio";
-
                        interrupt-parent = <&intc>;
                        interrupts = <6>;
                };
index df077767237307902a115082659525368e6ab306..0ac3227ce0b1ca5cda43729b86daad5c6c5fcce2 100644 (file)
@@ -85,9 +85,6 @@
                        compatible = "ralink,rt3352-memc", "ralink,rt3050-memc";
                        reg = <0x300 0x100>;
 
-                       resets = <&sysc 20>;
-                       reset-names = "mc";
-
                        interrupt-parent = <&intc>;
                        interrupts = <3>;
                };
                        ralink,register-map = [ 00 04 08 0c
                                                20 24 28 2c
                                                30 34 ];
-                       resets = <&sysc 13>;
-                       reset-names = "pio";
 
                        interrupt-parent = <&intc>;
                        interrupts = <6>;
index d490d700d601b2620d112e14ba150b99f69b895f..148922e8b9b3b68ba38f60c6153a751b87e081a7 100644 (file)
@@ -74,9 +74,6 @@
                        compatible = "ralink,rt3883-intc", "ralink,rt2880-intc";
                        reg = <0x200 0x100>;
 
-                       resets = <&sysc 19>;
-                       reset-names = "intc";
-
                        interrupt-controller;
                        #interrupt-cells = <1>;
 
@@ -88,9 +85,6 @@
                        compatible = "ralink,rt3883-memc", "ralink,rt3050-memc";
                        reg = <0x300 0x100>;
 
-                       resets = <&sysc 20>;
-                       reset-names = "mc";
-
                        interrupt-parent = <&intc>;
                        interrupts = <3>;
                };
                        compatible = "ralink,rt3883-gpio", "ralink,rt2880-gpio";
                        reg = <0x600 0x34>;
 
-                       resets = <&sysc 13>;
-                       reset-names = "pio";
-
                        interrupt-parent = <&intc>;
                        interrupts = <6>;
 
index 1286dec9d885c5157eefc110fee9fec956f668e4..9bbbc611edddaaf21aa660fef951847ec7a6a7f3 100644 (file)
@@ -74,9 +74,6 @@
                        compatible = "ralink,rt5350-intc", "ralink,rt2880-intc";
                        reg = <0x200 0x100>;
 
-                       resets = <&sysc 19>;
-                       reset-names = "intc";
-
                        interrupt-controller;
                        #interrupt-cells = <1>;
 
@@ -88,9 +85,6 @@
                        compatible = "ralink,rt5350-memc", "ralink,rt3050-memc";
                        reg = <0x300 0x100>;
 
-                       resets = <&sysc 20>;
-                       reset-names = "mc";
-
                        interrupt-parent = <&intc>;
                        interrupts = <3>;
                };
                        compatible = "ralink,rt5350-gpio", "ralink,rt2880-gpio";
                        reg = <0x600 0x34>;
 
-                       resets = <&sysc 13>;
-                       reset-names = "pio";
-
                        interrupt-parent = <&intc>;
                        interrupts = <6>;