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