ramips: fix WHR-600D eeprom dt property
[openwrt/openwrt.git] / target / linux / ramips / dts / ZBT-WE826.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "zbtlink,zbt-we826", "ralink,mt7620a-soc";
9 model = "ZBT-WE826";
10
11 chosen {
12 bootargs = "console=ttyS0,115200";
13 };
14
15 gpio-leds {
16 compatible = "gpio-leds";
17 power {
18 label = "zbt-we826:green:power";
19 gpios = <&gpio1 14 0>;
20 };
21 usb {
22 label = "zbt-we826:green:usb";
23 gpios = <&gpio1 15 0>;
24 };
25 air {
26 label = "zbt-we826:green:wifi";
27 gpios = <&gpio3 0 1>;
28 };
29 };
30
31 gpio-keys-polled {
32 compatible = "gpio-keys-polled";
33 #address-cells = <1>;
34 #size-cells = <0>;
35 poll-interval = <20>;
36 reset {
37 label = "reset";
38 gpios = <&gpio0 1 1>;
39 linux,code = <KEY_RESTART>;
40 };
41 };
42 };
43
44 &gpio0 {
45 status = "okay";
46 };
47
48 &gpio1 {
49 status = "okay";
50 };
51
52 &gpio3 {
53 status = "okay";
54 };
55
56 &spi0 {
57 status = "okay";
58
59 en25q128@0 {
60 #address-cells = <1>;
61 #size-cells = <1>;
62 compatible = "w25q128";
63 reg = <0>;
64 linux,modalias = "m25p80";
65 spi-max-frequency = <10000000>;
66
67 partition@0 {
68 label = "u-boot";
69 reg = <0x0 0x30000>;
70 read-only;
71 };
72
73 partition@30000 {
74 label = "u-boot-env";
75 reg = <0x30000 0x10000>;
76 read-only;
77 };
78
79 factory: partition@40000 {
80 label = "factory";
81 reg = <0x40000 0x10000>;
82 read-only;
83 };
84
85 partition@50000 {
86 label = "firmware";
87 reg = <0x50000 0xfb0000>;
88 };
89 };
90 };
91
92 &sdhci {
93 status = "okay";
94 };
95
96 &ehci {
97 status = "okay";
98 };
99
100 &ohci {
101 status = "okay";
102 };
103
104 &ethernet {
105 mtd-mac-address = <&factory 0x4>;
106 ralink,port-map = "wllll";
107 };
108
109 &wmac {
110 ralink,mtd-eeprom = <&factory 0>;
111 };
112
113 &pinctrl {
114 state_default: pinctrl0 {
115 default {
116 ralink,group = "i2c", "uartf", "wled", "spi refclk", "pa";
117 ralink,function = "gpio";
118 };
119 };
120 };
121
122 &pcie {
123 status = "okay";
124 };