armsr: armv8: enable serial console for Renesas platforms
[openwrt/staging/stintel.git] / target / linux / ramips / dts / mt7621_zbtlink_zbt-we3526.dts
1 #include "mt7621.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "zbtlink,zbt-we3526", "mediatek,mt7621-soc";
8 model = "Zbtlink ZBT-WE3526";
9
10 chosen {
11 bootargs = "console=ttyS0,115200";
12 };
13
14 keys {
15 compatible = "gpio-keys";
16
17 reset {
18 label = "reset";
19 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
20 linux,code = <KEY_RESTART>;
21 };
22 };
23 };
24
25 &i2c {
26 status = "okay";
27 };
28
29 &sdhci {
30 status = "okay";
31 };
32
33 &spi0 {
34 status = "okay";
35
36 flash@0 {
37 compatible = "jedec,spi-nor";
38 reg = <0>;
39 spi-max-frequency = <10000000>;
40
41 partitions {
42 compatible = "fixed-partitions";
43 #address-cells = <1>;
44 #size-cells = <1>;
45
46 partition@0 {
47 label = "u-boot";
48 reg = <0x0 0x30000>;
49 read-only;
50 };
51
52 partition@30000 {
53 label = "u-boot-env";
54 reg = <0x30000 0x10000>;
55 read-only;
56 };
57
58 partition@40000 {
59 label = "factory";
60 reg = <0x40000 0x10000>;
61 read-only;
62
63 nvmem-layout {
64 compatible = "fixed-layout";
65 #address-cells = <1>;
66 #size-cells = <1>;
67
68 eeprom_factory_0: eeprom@0 {
69 reg = <0x0 0x400>;
70 };
71
72 eeprom_factory_8000: eeprom@8000 {
73 reg = <0x8000 0x200>;
74 };
75
76 macaddr_factory_e000: macaddr@e000 {
77 reg = <0xe000 0x6>;
78 };
79
80 macaddr_factory_e006: macaddr@e006 {
81 reg = <0xe006 0x6>;
82 };
83 };
84 };
85
86 partition@50000 {
87 compatible = "denx,uimage";
88 label = "firmware";
89 reg = <0x50000 0xfb0000>;
90 };
91 };
92 };
93 };
94
95 &pcie {
96 status = "okay";
97 };
98
99 &pcie0 {
100 wifi@0,0 {
101 compatible = "pci14c3,7662";
102 reg = <0x0000 0 0 0 0>;
103 nvmem-cells = <&eeprom_factory_8000>;
104 nvmem-cell-names = "eeprom";
105 ieee80211-freq-limit = <5000000 6000000>;
106
107 led {
108 led-sources = <2>;
109 };
110 };
111 };
112
113 &pcie1 {
114 wifi@0,0 {
115 compatible = "pci14c3,7603";
116 reg = <0x0000 0 0 0 0>;
117 nvmem-cells = <&eeprom_factory_0>;
118 nvmem-cell-names = "eeprom";
119 };
120 };
121
122 &gmac0 {
123 nvmem-cells = <&macaddr_factory_e000>;
124 nvmem-cell-names = "mac-address";
125 };
126
127 &gmac1 {
128 status = "okay";
129 label = "wan";
130 phy-handle = <&ethphy4>;
131
132 nvmem-cells = <&macaddr_factory_e006>;
133 nvmem-cell-names = "mac-address";
134 };
135
136 &ethphy4 {
137 /delete-property/ interrupts;
138 };
139
140 &switch0 {
141 ports {
142 port@0 {
143 status = "okay";
144 label = "lan1";
145 };
146
147 port@1 {
148 status = "okay";
149 label = "lan2";
150 };
151
152 port@2 {
153 status = "okay";
154 label = "lan3";
155 };
156
157 port@3 {
158 status = "okay";
159 label = "lan4";
160 };
161 };
162 };
163
164 &state_default {
165 gpio {
166 groups = "wdt";
167 function = "gpio";
168 };
169 };