ramips: add support for Zbtlink WA05 router
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / ZBT-WA05.dts
1 /dts-v1/;
2
3 /include/ "mt7620n.dtsi"
4
5 / {
6 compatible = "zbtlink,zbt-wa05", "ralink,mt7620n-soc";
7 model = "Zbtlink ZBT-WA05";
8
9 chosen {
10 bootargs = "console=ttyS0,115200";
11 };
12
13 palmbus@10000000 {
14 gpio1: gpio@638 {
15 status = "okay";
16 };
17
18 gpio2: gpio@660 {
19 status = "okay";
20 };
21
22 gpio3: gpio@688 {
23 status = "okay";
24 };
25
26 spi@b00 {
27 status = "okay";
28
29 en25q64@0 {
30 #address-cells = <1>;
31 #size-cells = <1>;
32 compatible = "w25q64";
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 0x760000>;
58 };
59 };
60 };
61 };
62
63 ehci@101c0000 {
64 status = "okay";
65 };
66
67 ohci@101c1000 {
68 status = "okay";
69 };
70
71 ethernet@10100000 {
72 mtd-mac-address = <&factory 0x4>;
73 ralink,port-map = "llllw";
74 };
75
76 pinctrl {
77 state_default: pinctrl0 {
78 default {
79 ralink,group = "i2c", "spi refclk", "wled";
80 ralink,function = "gpio";
81 };
82 };
83 };
84
85 gpio-leds {
86 compatible = "gpio-leds";
87 power {
88 label = "zbtlink:blue:power";
89 gpios = <&gpio1 14 1>;
90 };
91 usb {
92 label = "zbtlink:blue:usb";
93 gpios = <&gpio1 15 0>;
94 };
95 air {
96 label = "zbtlink:blue:air";
97 gpios = <&gpio3 0 1>;
98 };
99 };
100
101 gpio-keys-polled {
102 compatible = "gpio-keys-polled";
103 #address-cells = <1>;
104 #size-cells = <0>;
105 poll-interval = <20>;
106 reset {
107 label = "reset";
108 gpios = <&gpio0 1 1>;
109 linux,code = <0x198>;
110 };
111 };
112 };