b74dd57854ef4250609d21532562b4f7bcbe3cd5
[openwrt/staging/dedeckeh.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 #address-cells = <1>;
42 #size-cells = <0>;
43 poll-interval = <20>;
44
45 reset {
46 label = "reset";
47 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_RESTART>;
49 };
50 };
51 };
52
53 &gpio1 {
54 status = "okay";
55 };
56
57 &gpio2 {
58 status = "okay";
59 };
60
61 &gpio3 {
62 status = "okay";
63 };
64
65 &spi0 {
66 status = "okay";
67
68 en25q64@0 {
69 #address-cells = <1>;
70 #size-cells = <1>;
71 compatible = "jedec,spi-nor";
72 reg = <0>;
73 spi-max-frequency = <10000000>;
74
75 partition@0 {
76 label = "u-boot";
77 reg = <0x0 0x30000>;
78 read-only;
79 };
80
81 partition@30000 {
82 label = "u-boot-env";
83 reg = <0x30000 0x10000>;
84 read-only;
85 };
86
87 factory: partition@40000 {
88 label = "factory";
89 reg = <0x40000 0x10000>;
90 read-only;
91 };
92
93 partition@50000 {
94 label = "firmware";
95 reg = <0x50000 0x760000>;
96 };
97 };
98 };
99
100 &ehci {
101 status = "okay";
102 };
103
104 &ohci {
105 status = "okay";
106 };
107
108 &ethernet {
109 mtd-mac-address = <&factory 0x4>;
110 mediatek,portmap = "wllll";
111 };
112
113 &wmac {
114 ralink,mtd-eeprom = <&factory 0>;
115 };
116
117 &pinctrl {
118 state_default: pinctrl0 {
119 default {
120 ralink,group = "i2c", "spi refclk", "wled";
121 ralink,function = "gpio";
122 };
123 };
124 };