ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7620n_zbtlink_zbt-wa05.dts
1 #include "mt7620n.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
6
7 / {
8 compatible = "zbtlink,zbt-wa05", "ralink,mt7620n-soc";
9 model = "Zbtlink ZBT-WA05";
10
11 aliases {
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
16 };
17
18 chosen {
19 bootargs = "console=ttyS0,115200";
20 };
21
22 leds {
23 compatible = "gpio-leds";
24
25 led_power: power {
26 function = LED_FUNCTION_POWER;
27 color = <LED_COLOR_ID_BLUE>;
28 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
29 };
30
31 usb {
32 function = LED_FUNCTION_USB;
33 color = <LED_COLOR_ID_BLUE>;
34 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
35 trigger-sources = <&ohci_port1>, <&ehci_port1>;
36 linux,default-trigger = "usbport";
37 };
38
39 air {
40 label = "blue:air";
41 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
42 };
43 };
44
45 keys {
46 compatible = "gpio-keys";
47
48 reset {
49 label = "reset";
50 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_RESTART>;
52 };
53 };
54 };
55
56 &gpio1 {
57 status = "okay";
58 };
59
60 &gpio3 {
61 status = "okay";
62 };
63
64 &spi0 {
65 status = "okay";
66
67 flash@0 {
68 compatible = "jedec,spi-nor";
69 reg = <0>;
70 spi-max-frequency = <10000000>;
71
72 partitions {
73 compatible = "fixed-partitions";
74 #address-cells = <1>;
75 #size-cells = <1>;
76
77 partition@0 {
78 label = "u-boot";
79 reg = <0x0 0x30000>;
80 read-only;
81 };
82
83 partition@30000 {
84 label = "u-boot-env";
85 reg = <0x30000 0x10000>;
86 read-only;
87 };
88
89 factory: partition@40000 {
90 label = "factory";
91 reg = <0x40000 0x10000>;
92 read-only;
93
94 nvmem-layout {
95 compatible = "fixed-layout";
96 #address-cells = <1>;
97 #size-cells = <1>;
98
99 eeprom_factory_0: eeprom@0 {
100 reg = <0x0 0x200>;
101 };
102
103 macaddr_factory_4: macaddr@4 {
104 reg = <0x4 0x6>;
105 };
106 };
107 };
108
109 partition@50000 {
110 compatible = "denx,uimage";
111 label = "firmware";
112 reg = <0x50000 0x760000>;
113 };
114 };
115 };
116 };
117
118 &ehci {
119 status = "okay";
120 };
121
122 &ohci {
123 status = "okay";
124 };
125
126 &ethernet {
127 nvmem-cells = <&macaddr_factory_4>;
128 nvmem-cell-names = "mac-address";
129
130 mediatek,portmap = "wllll";
131 };
132
133 &wmac {
134 nvmem-cells = <&eeprom_factory_0>;
135 nvmem-cell-names = "eeprom";
136 };
137
138 &state_default {
139 default {
140 groups = "i2c", "spi refclk", "wled";
141 function = "gpio";
142 };
143 };