ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7620n_zyxel_keenetic-omni.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 = "zyxel,keenetic-omni", "ralink,mt7620n-soc";
9 model = "ZyXEL Keenetic Omni";
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 leds {
19 compatible = "gpio-leds";
20
21 wan {
22 function = LED_FUNCTION_WAN;
23 color = <LED_COLOR_ID_GREEN>;
24 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
25 };
26
27 usb {
28 function = LED_FUNCTION_USB;
29 color = <LED_COLOR_ID_GREEN>;
30 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
31 trigger-sources = <&ohci_port1>, <&ehci_port1>;
32 linux,default-trigger = "usbport";
33 };
34
35 wifi {
36 label = "green:wifi";
37 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
38 };
39
40 led_power: power {
41 function = LED_FUNCTION_POWER;
42 color = <LED_COLOR_ID_GREEN>;
43 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
44 };
45 };
46
47 keys {
48 compatible = "gpio-keys";
49
50 reset {
51 label = "reset";
52 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RESTART>;
54 };
55
56 wps {
57 label = "wps";
58 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_WPS_BUTTON>;
60 };
61
62 fn {
63 label = "fn";
64 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
65 linux,code = <BTN_0>;
66 };
67 };
68
69 gpio_export {
70 compatible = "gpio-export";
71 #size-cells = <0>;
72
73 usb_power {
74 gpio-export,name = "usb";
75 gpio-export,output = <1>;
76 gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
77 };
78 };
79 };
80
81 &gpio1 {
82 status = "okay";
83 };
84
85 &gpio3 {
86 status = "okay";
87 };
88
89 &spi0 {
90 status = "okay";
91
92 flash@0 {
93 compatible = "jedec,spi-nor";
94 reg = <0>;
95 spi-max-frequency = <10000000>;
96
97 partitions {
98 compatible = "fixed-partitions";
99 #address-cells = <1>;
100 #size-cells = <1>;
101
102 partition@0 {
103 label = "u-boot";
104 reg = <0x0 0x30000>;
105 read-only;
106 };
107
108 partition@30000 {
109 label = "u-boot-env";
110 reg = <0x30000 0x10000>;
111 read-only;
112 };
113
114 factory: partition@40000 {
115 label = "factory";
116 reg = <0x40000 0x10000>;
117 read-only;
118
119 nvmem-layout {
120 compatible = "fixed-layout";
121 #address-cells = <1>;
122 #size-cells = <1>;
123
124 eeprom_factory_0: eeprom@0 {
125 reg = <0x0 0x200>;
126 };
127
128 macaddr_factory_4: macaddr@4 {
129 reg = <0x4 0x6>;
130 };
131 };
132 };
133
134 partition@50000 {
135 compatible = "denx,uimage";
136 label = "firmware";
137 reg = <0x50000 0x7b0000>;
138 };
139 };
140 };
141 };
142
143 &state_default {
144 gpio {
145 groups = "i2c", "wdt", "pa", "spi refclk", "wled";
146 function = "gpio";
147 };
148 };
149
150 &ethernet {
151 nvmem-cells = <&macaddr_factory_4>;
152 nvmem-cell-names = "mac-address";
153
154 mediatek,portmap = "llllw";
155 };
156
157 &wmac {
158 nvmem-cells = <&eeprom_factory_0>;
159 nvmem-cell-names = "eeprom";
160 };
161
162 &ehci {
163 status = "okay";
164 };
165
166 &ohci {
167 status = "okay";
168 };