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