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