ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / kn_rc.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-status = &led_power;
14 };
15
16 gpio-leds {
17 compatible = "gpio-leds";
18
19 wan {
20 label = "kn_rc:green:wan";
21 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
22 };
23
24 usb {
25 label = "kn_rc:green:usb";
26 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
27 };
28
29 wifi {
30 label = "kn_rc:green:wifi";
31 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
32 };
33
34 led_power: power {
35 label = "kn_rc:green:power";
36 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
37 };
38 };
39
40 gpio-keys-polled {
41 compatible = "gpio-keys";
42 poll-interval = <20>;
43
44 reset {
45 label = "reset";
46 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
48 };
49
50 wps {
51 label = "wps";
52 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_WPS_BUTTON>;
54 };
55
56 fn {
57 label = "fn";
58 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
59 linux,code = <BTN_0>;
60 };
61 };
62
63 gpio_export {
64 compatible = "gpio-export";
65 #size-cells = <0>;
66
67 usb_power {
68 gpio-export,name = "usb";
69 gpio-export,output = <1>;
70 gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
71 };
72 };
73 };
74
75 &gpio1 {
76 status = "okay";
77 };
78
79 &gpio3 {
80 status = "okay";
81 };
82
83 &spi0 {
84 status = "okay";
85
86 m25p80@0 {
87 #address-cells = <1>;
88 #size-cells = <1>;
89 compatible = "jedec,spi-nor";
90 reg = <0>;
91 spi-max-frequency = <10000000>;
92
93 partition@0 {
94 label = "u-boot";
95 reg = <0x0 0x30000>;
96 read-only;
97 };
98
99 partition@30000 {
100 label = "u-boot-env";
101 reg = <0x30000 0x10000>;
102 read-only;
103 };
104
105 factory: partition@40000 {
106 label = "factory";
107 reg = <0x40000 0x10000>;
108 read-only;
109 };
110
111 partition@50000 {
112 label = "firmware";
113 reg = <0x50000 0x7b0000>;
114 };
115 };
116 };
117
118 &pinctrl {
119 state_default: pinctrl0 {
120 gpio {
121 ralink,group = "i2c", "wdt", "pa", "spi refclk", "wled";
122 ralink,function = "gpio";
123 };
124 };
125 };
126
127 &ethernet {
128 mtd-mac-address = <&factory 0x4>;
129 mediatek,portmap = "llllw";
130 };
131
132 &wmac {
133 ralink,mtd-eeprom = <&factory 0>;
134 };
135
136 &ehci {
137 status = "okay";
138 };
139
140 &ohci {
141 status = "okay";
142 };