ramips: fix EEPROM size for I-O DATA WN-DEAX1800GR
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3662_engenius_esr600h.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "rt3883.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "engenius,esr600h", "ralink,rt3662-soc", "ralink,rt3883-soc";
10 model = "EnGenius ESR600H";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 led_power: power {
23 label = "blue:power";
24 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
25 default-state = "on";
26 };
27
28 wps {
29 label = "blue:wps";
30 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
31 };
32 };
33
34 keys {
35 compatible = "gpio-keys-polled";
36 poll-interval = <100>;
37
38 reset-wps {
39 label = "reset-wps";
40 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_RESTART>;
42 };
43 };
44
45 gpio_export {
46 compatible = "gpio-export";
47 #size-cells = <0>;
48
49 usb {
50 gpio-export,name = "usb";
51 gpio-export,output = <1>;
52 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
53 };
54 };
55 };
56
57 &gpio1 {
58 status = "okay";
59 };
60
61 &spi0 {
62 status = "okay";
63
64 flash@0 {
65 compatible = "jedec,spi-nor";
66 reg = <0>;
67 spi-max-frequency = <20000000>;
68
69 partitions {
70 compatible = "fixed-partitions";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 partition@0 {
75 label = "u-boot";
76 reg = <0x0 0x30000>;
77 read-only;
78 };
79
80 partition@30000 {
81 label = "u-boot-env";
82 reg = <0x30000 0x1000>;
83 };
84
85 partition@32000 {
86 label = "config";
87 reg = <0x32000 0xe000>;
88 read-only;
89 };
90
91 factory: partition@40000 {
92 label = "factory";
93 reg = <0x40000 0x10000>;
94 read-only;
95 };
96
97 partition@50000 {
98 compatible = "denx,uimage";
99 label = "firmware";
100 reg = <0x50000 0x7b0000>;
101 };
102 };
103 };
104 };
105
106 &state_default {
107 gpio {
108 groups = "i2c", "jtag", "uartf";
109 function = "gpio";
110 };
111 };
112
113 &ethernet {
114 status = "okay";
115
116 port@0 {
117 phy-handle = <&phy0>;
118 phy-mode = "rgmii";
119 };
120
121 mdio-bus {
122 status = "okay";
123
124 phy0: ethernet-phy@0 {
125 reg = <0>;
126 phy-mode = "rgmii";
127
128 qca,ar8327-initvals = <
129 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
130 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
131 0x10 0x40000000 /* Power-on Strapping: 176-pin interface configuration */
132 0x50 0xc437c437 /* LED Control Register 0 */
133 0x54 0xc337c337 /* LED Control Register 1 */
134 0x58 0x00000000 /* LED Control Register 2 */
135 0x5c 0x03ffff00 /* LED Control Register 3 */
136 0x7c 0x0000007e /* PORT0_STATUS */
137 0x94 0x0000007e /* PORT6 STATUS */
138 >;
139 };
140 };
141 };
142
143 &pci {
144 status = "okay";
145 };
146
147 &pci1 {
148 status = "okay";
149
150 wifi@0,1,0 {
151 compatible = "pci1814,3091";
152 reg = <0x0 1 0 0 0>;
153 ralink,5ghz = <0>;
154 ralink,mtd-eeprom = <&factory 0x8000>;
155 };
156 };
157
158 &wmac {
159 status = "okay";
160
161 ralink,2ghz = <0>;
162 ralink,mtd-eeprom = <&factory 0x0>;
163 };
164
165 &ehci {
166 status = "okay";
167 };
168
169 &ohci {
170 status = "okay";
171 };