mediatek: correct address of MT753x switch IC
[openwrt/staging/pepe2k.git] / target / linux / mediatek / dts / mt7622-buffalo-wsr-3200ax4s.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "mt7622-buffalo-wsr.dtsi"
5
6 / {
7 model = "Buffalo WSR-3200AX4S";
8 compatible = "buffalo,wsr-3200ax4s", "mediatek,mt7622";
9
10 memory {
11 reg = <0 0x40000000 0 0x1f000000>;
12 };
13 };
14
15 &pio {
16 /* Serial NAND is shared pin with SPI-NOR */
17 serial_nand_pins: serial-nand-pins {
18 mux {
19 function = "flash";
20 groups = "snfi";
21 };
22
23 conf-cmd-dat {
24 pins = "SPI_WP", "SPI_HOLD", "SPI_MOSI",
25 "SPI_MISO", "SPI_CS";
26 input-enable;
27 drive-strength = <16>;
28 bias-pull-up;
29 };
30
31 conf-clk {
32 pins = "SPI_CLK";
33 drive-strength = <16>;
34 bias-pull-down;
35 };
36 };
37 };
38
39 &mdio {
40 switch@1f {
41 compatible = "mediatek,mt7531";
42 reg = <31>;
43 reset-gpios = <&pio 54 GPIO_ACTIVE_HIGH>;
44
45 ports {
46 #address-cells = <1>;
47 #size-cells = <0>;
48
49 port@0 {
50 reg = <0>;
51 label = "lan4";
52 };
53
54 port@1 {
55 reg = <1>;
56 label = "lan3";
57 };
58
59 port@2 {
60 reg = <2>;
61 label = "lan2";
62 };
63
64 port@3 {
65 reg = <3>;
66 label = "lan1";
67 };
68
69 port@4 {
70 reg = <4>;
71 label = "wan";
72 };
73
74 port@6 {
75 reg = <6>;
76 label = "cpu";
77 ethernet = <&gmac0>;
78 phy-connection-type = "2500base-x";
79
80 fixed-link {
81 speed = <2500>;
82 full-duplex;
83 pause;
84 };
85 };
86 };
87 };
88 };
89
90 &snfi {
91 pinctrl-names = "default";
92 pinctrl-0 = <&serial_nand_pins>;
93 status = "okay";
94
95 flash@0 {
96 compatible = "spi-nand";
97 reg = <0>;
98 spi-max-frequency = <104000000>;
99 nand-ecc-engine = <&snfi>;
100 mediatek,bmt-v2;
101 mediatek,bmt-table-size = <0x1000>;
102 /*
103 * - Preloader - (kernel (6MiB, in firmware))
104 * - Kernel2 - WTB
105 */
106 mediatek,bmt-remap-range = <0x0 0x8c0000>,
107 <0x1ac0000 0x5200000>;
108
109 partitions {
110 compatible = "fixed-partitions";
111 #address-cells = <1>;
112 #size-cells = <1>;
113
114 partition@0 {
115 label = "Preloader";
116 reg = <0x0 0x80000>;
117 read-only;
118 };
119
120 partition@80000 {
121 label = "ATF";
122 reg = <0x80000 0x40000>;
123 read-only;
124 };
125
126 partition@c0000 {
127 label = "u-boot";
128 reg = <0xc0000 0x80000>;
129 read-only;
130 };
131
132 partition@140000 {
133 label = "u-boot-env";
134 reg = <0x140000 0x80000>;
135 read-only;
136 };
137
138 factory: partition@1c0000 {
139 label = "factory";
140 reg = <0x1c0000 0x100000>;
141 read-only;
142 };
143
144 partition@2c0000 {
145 compatible = "brcm,trx";
146 brcm,trx-magic = <0x33504844>;
147 label = "firmware";
148 reg = <0x2c0000 0x1800000>;
149 };
150
151 partition@1ac0000 {
152 label = "Kernel2";
153 reg = <0x1ac0000 0x1800000>;
154 };
155
156 partition@32c0000 {
157 label = "glbcfg";
158 reg = <0x32c0000 0x200000>;
159 read-only;
160 };
161
162 partition@34c0000 {
163 label = "board_data";
164 reg = <0x34c0000 0x200000>;
165 read-only;
166 };
167
168 partition@36c0000 {
169 label = "WTB";
170 reg = <0x36c0000 0x3600000>;
171 read-only;
172 };
173 };
174 };
175 };