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