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