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