cd9342f3f13bd890086c75f1af891dea655ec1e9
[openwrt/openwrt.git] / target / linux / realtek / dts / rtl8380_netgear_gs110tpp-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "rtl838x.dtsi"
4
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/gpio/gpio.h>
7
8 / {
9 compatible = "netgear,gs110tpp-v1", "realtek,rtl838x-soc";
10 model = "Netgear GS110TPP";
11
12 chosen {
13 bootargs = "console=ttyS0,115200";
14 };
15
16 memory@0 {
17 device_type = "memory";
18 reg = <0x0 0x8000000>;
19 };
20
21 keys {
22 compatible = "gpio-keys-polled";
23 poll-interval = <20>;
24
25 mode {
26 label = "reset";
27 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RESTART>;
29 };
30 };
31 };
32
33 &gpio0 {
34 indirect-access-bus-id = <0>;
35 };
36
37 &spi0 {
38 status = "okay";
39 flash@0 {
40 compatible = "jedec,spi-nor";
41 reg = <0>;
42 spi-max-frequency = <10000000>;
43
44 partitions {
45 compatible = "fixed-partitions";
46 #address-cells = <1>;
47 #size-cells = <1>;
48 partition@0 {
49 label = "u-boot";
50 reg = <0x0000000 0x0e0000>;
51 read-only;
52 };
53 partition@e0000 {
54 label = "u-boot-env";
55 reg = <0x00e0000 0x010000>;
56 };
57 partition@f0000 {
58 label = "sysinfo";
59 reg = <0x00f0000 0x010000>;
60 read-only;
61 };
62 partition@100000{
63 label = "jffs2_cfg";
64 reg = <0x0100000 0x100000>;
65 read-only;
66 };
67 partition@200000{
68 label = "jffs2_log";
69 reg = <0x0200000 0x100000>;
70 };
71 partition@300000{
72 label = "firmware";
73 compatible = "openwrt,uimage", "denx,uimage";
74 openwrt,ih-magic = <0x4e474520>;
75 reg = <0x0300000 0x1d00000>;
76 };
77 };
78 };
79 };
80
81 &ethernet0 {
82 mdio: mdio-bus {
83 compatible = "realtek,rtl838x-mdio";
84 regmap = <&ethernet0>;
85 #address-cells = <1>;
86 #size-cells = <0>;
87
88 /* Internal phy */
89 phy8: ethernet-phy@8 {
90 compatible = "ethernet-phy-ieee802.3-c22";
91 reg = <8>;
92 };
93 phy9: ethernet-phy@9 {
94 compatible = "ethernet-phy-ieee802.3-c22";
95 reg = <9>;
96 };
97 phy10: ethernet-phy@10 {
98 compatible = "ethernet-phy-ieee802.3-c22";
99 reg = <10>;
100 };
101 phy11: ethernet-phy@11 {
102 compatible = "ethernet-phy-ieee802.3-c22";
103 reg = <11>;
104 };
105 phy12: ethernet-phy@12 {
106 compatible = "ethernet-phy-ieee802.3-c22";
107 reg = <12>;
108 };
109 phy13: ethernet-phy@13 {
110 compatible = "ethernet-phy-ieee802.3-c22";
111 reg = <13>;
112 };
113 phy14: ethernet-phy@14 {
114 compatible = "ethernet-phy-ieee802.3-c22";
115 reg = <14>;
116 };
117 phy15: ethernet-phy@15 {
118 compatible = "ethernet-phy-ieee802.3-c22";
119 reg = <15>;
120 };
121 /* phy10: ethernet-phy@10 {
122 compatible = "ethernet-phy-ieee802.3-c22";
123 phy-is-integrated;
124 reg = <10>;
125 };
126 phy11: ethernet-phy@11 {
127 compatible = "ethernet-phy-ieee802.3-c22";
128 phy-is-integrated;
129 reg = <11>;
130 };
131 phy12: ethernet-phy@12 {
132 compatible = "ethernet-phy-ieee802.3-c22";
133 phy-is-integrated;
134 reg = <12>;
135 };
136 phy13: ethernet-phy@13 {
137 compatible = "ethernet-phy-ieee802.3-c22";
138 phy-is-integrated;
139 reg = <13>;
140 };*/
141 };
142 };
143
144 &switch0 {
145 ports {
146 #address-cells = <1>;
147 #size-cells = <0>;
148
149 port@8 {
150 reg = <8>;
151 label = "lan1";
152 phy-handle = <&phy8>;
153 phy-mode = "internal";
154 };
155 port@9 {
156 reg = <9>;
157 label = "lan2";
158 phy-handle = <&phy9>;
159 phy-mode = "internal";
160 };
161 port@10 {
162 reg = <10>;
163 label = "lan3";
164 phy-handle = <&phy10>;
165 phy-mode = "internal";
166 };
167 port@11 {
168 reg = <11>;
169 label = "lan4";
170 phy-handle = <&phy11>;
171 phy-mode = "internal";
172 };
173 port@12 {
174 reg = <12>;
175 label = "lan5";
176 phy-handle = <&phy12>;
177 phy-mode = "internal";
178 };
179 port@13 {
180 reg = <13>;
181 label = "lan6";
182 phy-handle = <&phy13>;
183 phy-mode = "internal";
184 };
185 port@14 {
186 reg = <14>;
187 label = "lan7";
188 phy-handle = <&phy14>;
189 phy-mode = "internal";
190 };
191 port@15 {
192 reg = <15>;
193 label = "lan8";
194 phy-handle = <&phy15>;
195 phy-mode = "internal";
196 };
197 /* port@10 {
198 reg = <10>;
199 label = "lan9";
200 phy-mode = "internal";
201 phy-handle = <&phy10>;
202 };
203 port@11 {
204 reg = <11>;
205 label = "lan10";
206 phy-mode = "internal";
207 phy-handle = <&phy11>;
208 };
209 port@12 {
210 reg = <12>;
211 label = "lan11";
212 phy-mode = "internal";
213 phy-handle = <&phy12>;
214 };
215 port@13 {
216 reg = <13>;
217 label = "lan12";
218 phy-mode = "internal";
219 phy-handle = <&phy13>;
220 };*/
221 port@28 {
222 ethernet = <&ethernet0>;
223 reg = <28>;
224 phy-mode = "internal";
225 fixed-link {
226 speed = <1000>;
227 full-duplex;
228 };
229 };
230 };
231 };