kernel: remove non-existant symbols
[oweals/openwrt.git] / target / linux / ramips / dts / mt7620n_zyxel_keenetic-omni.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 = "zyxel,keenetic-omni", "ralink,mt7620n-soc";
10         model = "ZyXEL Keenetic Omni";
11
12         aliases {
13                 led-boot = &led_power;
14                 led-failsafe = &led_power;
15                 led-running = &led_power;
16                 led-upgrade = &led_power;
17         };
18
19         leds {
20                 compatible = "gpio-leds";
21
22                 wan {
23                         label = "keenetic-omni:green:wan";
24                         gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
25                 };
26
27                 usb {
28                         label = "keenetic-omni:green:usb";
29                         gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
30                         trigger-sources = <&ohci_port1>, <&ehci_port1>;
31                         linux,default-trigger = "usbport";
32                 };
33
34                 wifi {
35                         label = "keenetic-omni:green:wifi";
36                         gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
37                 };
38
39                 led_power: power {
40                         label = "keenetic-omni:green:power";
41                         gpios = <&gpio0 20 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                 wps {
55                         label = "wps";
56                         gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
57                         linux,code = <KEY_WPS_BUTTON>;
58                 };
59
60                 fn {
61                         label = "fn";
62                         gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
63                         linux,code = <BTN_0>;
64                 };
65         };
66
67         gpio_export {
68                 compatible = "gpio-export";
69                 #size-cells = <0>;
70
71                 usb_power {
72                         gpio-export,name = "usb";
73                         gpio-export,output = <1>;
74                         gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
75                 };
76         };
77 };
78
79 &gpio1 {
80         status = "okay";
81 };
82
83 &gpio3 {
84         status = "okay";
85 };
86
87 &spi0 {
88         status = "okay";
89
90         m25p80@0 {
91                 compatible = "jedec,spi-nor";
92                 reg = <0>;
93                 spi-max-frequency = <10000000>;
94
95                 partitions {
96                         compatible = "fixed-partitions";
97                         #address-cells = <1>;
98                         #size-cells = <1>;
99
100                         partition@0 {
101                                 label = "u-boot";
102                                 reg = <0x0 0x30000>;
103                                 read-only;
104                         };
105
106                         partition@30000 {
107                                 label = "u-boot-env";
108                                 reg = <0x30000 0x10000>;
109                                 read-only;
110                         };
111
112                         factory: partition@40000 {
113                                 label = "factory";
114                                 reg = <0x40000 0x10000>;
115                                 read-only;
116                         };
117
118                         partition@50000 {
119                                 compatible = "denx,uimage";
120                                 label = "firmware";
121                                 reg = <0x50000 0x7b0000>;
122                         };
123                 };
124         };
125 };
126
127 &state_default {
128         gpio {
129                 groups = "i2c", "wdt", "pa", "spi refclk", "wled";
130                 function = "gpio";
131         };
132 };
133
134 &ethernet {
135         mtd-mac-address = <&factory 0x4>;
136         mediatek,portmap = "llllw";
137 };
138
139 &wmac {
140         ralink,mtd-eeprom = <&factory 0>;
141 };
142
143 &ehci {
144         status = "okay";
145 };
146
147 &ohci {
148         status = "okay";
149 };