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