ramips: fix ZyXEL Keenetic Omni/Omni II GPIOs
[openwrt/staging/florian.git] / target / linux / ramips / dts / WR6202.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "WR6202", "ralink,rt3052-soc";
9 model = "AWB WR6202";
10
11 chosen {
12 bootargs = "console=ttyS0,115200";
13 };
14
15 gpio-leds {
16 compatible = "gpio-leds";
17
18 wps {
19 label = "wr6202:blue:wps";
20 gpios = <&gpio0 14 1>;
21 };
22
23 3g {
24 label = "wr6202:blue:3g";
25 gpios = <&gpio0 13 1>;
26 };
27 };
28
29 gpio-keys-polled {
30 compatible = "gpio-keys-polled";
31 #address-cells = <1>;
32 #size-cells = <0>;
33 poll-interval = <20>;
34
35 reset {
36 label = "reset";
37 gpios = <&gpio0 10 1>;
38 linux,code = <KEY_RESTART>;
39 };
40
41 wps {
42 label = "wps";
43 gpios = <&gpio0 0 1>;
44 linux,code = <KEY_WPS_BUTTON>;
45 };
46 };
47
48 cfi@1f000000 {
49 compatible = "cfi-flash";
50 reg = <0x1f000000 0x800000>;
51 bank-width = <2>;
52 device-width = <2>;
53 #address-cells = <1>;
54 #size-cells = <1>;
55
56 partition@0 {
57 label = "u-boot";
58 reg = <0x0 0x30000>;
59 read-only;
60 };
61
62 partition@30000 {
63 label = "u-boot-env";
64 reg = <0x30000 0x10000>;
65 read-only;
66 };
67
68 factory: partition@40000 {
69 label = "factory";
70 reg = <0x40000 0x10000>;
71 read-only;
72 };
73
74 partition@50000 {
75 label = "firmware";
76 reg = <0x50000 0x7b0000>;
77 };
78 };
79
80 gpio_export {
81 compatible = "gpio-export";
82 #size-cells = <0>;
83
84 usb {
85 gpio-export,name = "usb";
86 gpio-export,output = <0>;
87 gpios = <&gpio0 11 0>;
88 };
89 };
90 };
91
92 &pinctrl {
93 state_default: pinctrl0 {
94 gpio {
95 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
96 ralink,function = "gpio";
97 };
98 };
99 };
100
101 &ethernet {
102 mtd-mac-address = <&factory 0x28>;
103 };
104
105 &esw {
106 mediatek,portmap = <0x3e>;
107 };
108
109 &wmac {
110 ralink,mtd-eeprom = <&factory 0>;
111 };
112
113 &otg {
114 status = "okay";
115 };