ramips: fix pinctrl regression
[openwrt/openwrt.git] / target / linux / ramips / dts / TEW-691GR.dts
1 /dts-v1/;
2
3 #include "rt3883.dtsi"
4
5 / {
6 compatible = "TEW-691GR", "ralink,rt3883-soc";
7 model = "TRENDnet TEW-691GR";
8
9 nor-flash@1c000000 {
10 compatible = "cfi-flash";
11 reg = <0x1c000000 0x800000>;
12 bank-width = <2>;
13 #address-cells = <1>;
14 #size-cells = <1>;
15
16 partition@0 {
17 reg = <0x0 0x0030000>;
18 label = "u-boot";
19 read-only;
20 };
21
22 partition@30000 {
23 reg = <0x00030000 0x00010000>;
24 label = "u-boot-env";
25 read-only;
26 };
27
28 factory: partition@40000 {
29 reg = <0x00040000 0x00010000>;
30 label = "factory";
31 read-only;
32 };
33
34 partition@50000 {
35 reg = <0x00050000 0x007b0000>;
36 label = "firmware";
37 };
38 };
39
40 gpio-keys-polled {
41 compatible = "gpio-keys-polled";
42 #address-cells = <1>;
43 #size-cells = <0>;
44 poll-interval = <100>;
45
46 reset {
47 label = "reset";
48 gpios = <&gpio0 10 1>;
49 linux,code = <0x198>;
50 };
51
52 wps {
53 label = "wps";
54 gpios = <&gpio1 2 1>;
55 linux,code = <0x211>;
56 };
57
58 rfkill {
59 label = "rfkill";
60 gpios = <&gpio0 0 1>;
61 linux,code = <0xf7>;
62 };
63 };
64
65 gpio-leds {
66 compatible = "gpio-leds";
67
68 wps {
69 label = "tew-691gr:green:wps";
70 gpios = <&gpio0 9 1>;
71 };
72 };
73 };
74
75 &gpio1 {
76 status = "okay";
77 };
78
79 &pinctrl {
80 state_default: pinctrl0 {
81 gpio {
82 ralink,group = "spi", "i2c", "jtag", "uartf";
83 ralink,function = "gpio";
84 };
85 };
86 };
87
88 &ethernet {
89 mtd-mac-address = <&factory 0x28>;
90
91 port@0 {
92 phy-handle = <&phy0>;
93 phy-mode = "rgmii";
94 };
95
96 mdio-bus {
97 status = "okay";
98
99 phy0: ethernet-phy@0 {
100 reg = <0>;
101 };
102 };
103 };
104
105 &wmac {
106 ralink,5ghz = <0>;
107 };