1 From 64b2d6ffff862c0e7278198b4229e42e1abb3bb1 Mon Sep 17 00:00:00 2001
2 From: Sergio Paracuellos <sergio.paracuellos@gmail.com>
3 Date: Mon, 10 Jan 2022 12:49:30 +0100
4 Subject: [PATCH 2/2] staging: mt7621-dts: align resets with binding documentation
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 Binding documentation for compatible 'mediatek,mt7621-sysc' has been updated
10 to be used as a reset provider. Align reset related bits and system controller
11 node with binding documentation along the dtsi file.
13 Tested-by: Arınç ÜNAL <arinc.unal@arinc9.com>
14 Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
15 Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
16 Link: https://lore.kernel.org/r/20220110114930.1406665-5-sergio.paracuellos@gmail.com
17 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19 drivers/staging/mt7621-dts/mt7621.dtsi | 21 +++++++++------------
20 1 file changed, 9 insertions(+), 12 deletions(-)
22 --- a/drivers/staging/mt7621-dts/mt7621.dtsi
23 +++ b/drivers/staging/mt7621-dts/mt7621.dtsi
25 #include <dt-bindings/interrupt-controller/mips-gic.h>
26 #include <dt-bindings/gpio/gpio.h>
27 #include <dt-bindings/clock/mt7621-clk.h>
28 +#include <dt-bindings/reset/mt7621-reset.h>
33 compatible = "mediatek,mt7621-sysc", "syscon";
37 ralink,memctl = <&memc>;
38 clock-output-names = "xtal", "cpu", "bus",
39 "50m", "125m", "150m",
42 clocks = <&sysc MT7621_CLK_I2C>;
44 - resets = <&rstctrl 16>;
45 + resets = <&sysc MT7621_RST_I2C>;
50 clocks = <&sysc MT7621_CLK_SPI>;
53 - resets = <&rstctrl 18>;
54 + resets = <&sysc MT7621_RST_SPI>;
63 - compatible = "ralink,rt2880-reset";
67 sdhci: sdhci@1e130000 {
74 - resets = <&rstctrl 6 &rstctrl 23>;
75 + resets = <&sysc MT7621_RST_FE &sysc MT7621_RST_ETH>;
76 reset-names = "fe", "eth";
78 interrupt-parent = <&gic>;
83 - resets = <&rstctrl 2>;
84 + resets = <&sysc MT7621_RST_MCM>;
87 #interrupt-cells = <1>;
89 #interrupt-cells = <1>;
90 interrupt-map-mask = <0 0 0 0>;
91 interrupt-map = <0 0 0 0 &gic GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH>;
92 - resets = <&rstctrl 24>;
93 + resets = <&sysc MT7621_RST_PCIE0>;
94 clocks = <&sysc MT7621_CLK_PCIE0>;
95 phys = <&pcie0_phy 1>;
96 phy-names = "pcie-phy0";
98 #interrupt-cells = <1>;
99 interrupt-map-mask = <0 0 0 0>;
100 interrupt-map = <0 0 0 0 &gic GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH>;
101 - resets = <&rstctrl 25>;
102 + resets = <&sysc MT7621_RST_PCIE1>;
103 clocks = <&sysc MT7621_CLK_PCIE1>;
104 phys = <&pcie0_phy 1>;
105 phy-names = "pcie-phy1";
107 #interrupt-cells = <1>;
108 interrupt-map-mask = <0 0 0 0>;
109 interrupt-map = <0 0 0 0 &gic GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>;
110 - resets = <&rstctrl 26>;
111 + resets = <&sysc MT7621_RST_PCIE2>;
112 clocks = <&sysc MT7621_CLK_PCIE2>;
113 phys = <&pcie2_phy 0>;
114 phy-names = "pcie-phy2";