From: Shiji Yang Date: Fri, 15 Dec 2023 12:36:00 +0000 (+0000) Subject: ramips: remove useless resets properties from SoC dtsi X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0e4f49a90d09c13e60d23ef34e230403708dfdaf;p=openwrt%2Fstaging%2Fblocktrron.git ramips: remove useless resets properties from SoC dtsi 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 --- diff --git a/target/linux/ramips/dts/mt7620a.dtsi b/target/linux/ramips/dts/mt7620a.dtsi index 87cd119792..a1dfa8c730 100644 --- a/target/linux/ramips/dts/mt7620a.dtsi +++ b/target/linux/ramips/dts/mt7620a.dtsi @@ -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>; }; @@ -115,9 +109,6 @@ compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio"; reg = <0x600 0x34>; - resets = <&sysc 13>; - reset-names = "pio"; - interrupt-parent = <&intc>; interrupts = <6>; @@ -285,9 +276,6 @@ compatible = "ralink,mt7620a-systick", "ralink,cevt-systick"; reg = <0xd00 0x10>; - resets = <&sysc 28>; - reset-names = "intc"; - interrupt-parent = <&cpuintc>; interrupts = <7>; }; diff --git a/target/linux/ramips/dts/mt7620n.dtsi b/target/linux/ramips/dts/mt7620n.dtsi index 3299dea0f0..f4a5165704 100644 --- a/target/linux/ramips/dts/mt7620n.dtsi +++ b/target/linux/ramips/dts/mt7620n.dtsi @@ -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>; @@ -247,9 +238,6 @@ compatible = "ralink,mt7620a-systick", "ralink,cevt-systick"; reg = <0xd00 0x10>; - resets = <&sysc 28>; - reset-names = "intc"; - interrupt-parent = <&cpuintc>; interrupts = <7>; }; diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi index 4d82aa327b..888c14cec0 100644 --- a/target/linux/ramips/dts/mt7621.dtsi +++ b/target/linux/ramips/dts/mt7621.dtsi @@ -124,9 +124,6 @@ compatible = "ralink,mt7621-systick", "ralink,cevt-systick"; reg = <0x500 0x10>; - resets = <&sysc MT7621_RST_AUX_STCK>; - reset-names = "intc"; - interrupt-parent = <&gic>; interrupts = ; }; diff --git a/target/linux/ramips/dts/mt7628an.dtsi b/target/linux/ramips/dts/mt7628an.dtsi index d6c3a47b0b..ddc3011aab 100644 --- a/target/linux/ramips/dts/mt7628an.dtsi +++ b/target/linux/ramips/dts/mt7628an.dtsi @@ -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>; }; @@ -220,9 +214,6 @@ reg = <0x5000 0x1000>; #pwm-cells = <2>; - resets = <&sysc 31>; - reset-names = "pwm"; - pinctrl-names = "default"; pinctrl-0 = <&pwm0_pins>, <&pwm1_pins>; diff --git a/target/linux/ramips/dts/rt3050.dtsi b/target/linux/ramips/dts/rt3050.dtsi index eb508ed9d3..4d70773ed1 100644 --- a/target/linux/ramips/dts/rt3050.dtsi +++ b/target/linux/ramips/dts/rt3050.dtsi @@ -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>; }; @@ -123,9 +117,6 @@ 20 24 28 2c 30 34 ]; - resets = <&sysc 13>; - reset-names = "pio"; - interrupt-parent = <&intc>; interrupts = <6>; }; diff --git a/target/linux/ramips/dts/rt3352.dtsi b/target/linux/ramips/dts/rt3352.dtsi index df07776723..0ac3227ce0 100644 --- a/target/linux/ramips/dts/rt3352.dtsi +++ b/target/linux/ramips/dts/rt3352.dtsi @@ -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>; }; @@ -120,8 +117,6 @@ ralink,register-map = [ 00 04 08 0c 20 24 28 2c 30 34 ]; - resets = <&sysc 13>; - reset-names = "pio"; interrupt-parent = <&intc>; interrupts = <6>; diff --git a/target/linux/ramips/dts/rt3883.dtsi b/target/linux/ramips/dts/rt3883.dtsi index d490d700d6..148922e8b9 100644 --- a/target/linux/ramips/dts/rt3883.dtsi +++ b/target/linux/ramips/dts/rt3883.dtsi @@ -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>; }; @@ -115,9 +109,6 @@ compatible = "ralink,rt3883-gpio", "ralink,rt2880-gpio"; reg = <0x600 0x34>; - resets = <&sysc 13>; - reset-names = "pio"; - interrupt-parent = <&intc>; interrupts = <6>; diff --git a/target/linux/ramips/dts/rt5350.dtsi b/target/linux/ramips/dts/rt5350.dtsi index 1286dec9d8..9bbbc611ed 100644 --- a/target/linux/ramips/dts/rt5350.dtsi +++ b/target/linux/ramips/dts/rt5350.dtsi @@ -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>; }; @@ -115,9 +109,6 @@ compatible = "ralink,rt5350-gpio", "ralink,rt2880-gpio"; reg = <0x600 0x34>; - resets = <&sysc 13>; - reset-names = "pio"; - interrupt-parent = <&intc>; interrupts = <6>;