ramips: rename Digineo AC1200 Pro to ZBT-WG3526 32MB
[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 = "jedec,spi-nor";
63 reg = <0>;
64 spi-max-frequency = <10000000>;
65
66 partition@0 {
67 label = "u-boot";
68 reg = <0x0 0x30000>;
69 read-only;
70 };
71
72 partition@30000 {
73 label = "u-boot-env";
74 reg = <0x30000 0x10000>;
75 read-only;
76 };
77
78 factory: partition@40000 {
79 label = "factory";
80 reg = <0x40000 0x10000>;
81 read-only;
82 };
83
84 partition@50000 {
85 label = "firmware";
86 reg = <0x50000 0xfb0000>;
87 };
88 };
89 };
90
91 &sdhci {
92 status = "okay";
93 };
94
95 &ehci {
96 status = "okay";
97 };
98
99 &ohci {
100 status = "okay";
101 };
102
103 &ethernet {
104 mtd-mac-address = <&factory 0x4>;
105 mediatek,portmap = "wllll";
106 };
107
108 &wmac {
109 ralink,mtd-eeprom = <&factory 0>;
110 };
111
112 &pinctrl {
113 state_default: pinctrl0 {
114 default {
115 ralink,group = "i2c", "uartf", "wled", "spi refclk", "pa";
116 ralink,function = "gpio";
117 };
118 };
119 };
120
121 &pcie {
122 status = "okay";
123 };