ramips: mt7620: power up ephy port 4
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / TEW-692GR.dts
1 /dts-v1/;
2
3 #include "rt3883.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "trendnet,tew-692gr", "ralink,rt3883-soc";
10 model = "TRENDnet TEW-692GR";
11
12 nor-flash@1c000000 {
13 compatible = "cfi-flash";
14 reg = <0x1c000000 0x800000>;
15 bank-width = <2>;
16 #address-cells = <1>;
17 #size-cells = <1>;
18
19 partition@0 {
20 reg = <0x0 0x0030000>;
21 label = "u-boot";
22 read-only;
23 };
24
25 partition@30000 {
26 reg = <0x00030000 0x00010000>;
27 label = "u-boot-env";
28 read-only;
29 };
30
31 factory: partition@40000 {
32 reg = <0x00040000 0x00010000>;
33 label = "factory";
34 read-only;
35 };
36
37 partition@50000 {
38 reg = <0x00050000 0x007b0000>;
39 label = "firmware";
40 };
41 };
42
43 gpio-keys-polled {
44 compatible = "gpio-keys-polled";
45 #address-cells = <1>;
46 #size-cells = <0>;
47 poll-interval = <100>;
48
49 reset {
50 label = "reset";
51 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART>;
53 };
54
55 wps {
56 label = "wps";
57 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_WPS_BUTTON>;
59 };
60 };
61
62 gpio-leds {
63 compatible = "gpio-leds";
64
65 wps {
66 label = "tew-692gr:orange:wps";
67 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
68 };
69
70 wps2 {
71 label = "tew-692gr:green:wps";
72 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
73 };
74 };
75 };
76
77 &gpio1 {
78 status = "okay";
79 };
80
81 &pinctrl {
82 state_default: pinctrl0 {
83 gpio {
84 ralink,group = "spi", "i2c", "jtag", "uartf";
85 ralink,function = "gpio";
86 };
87 };
88 };
89
90 &ethernet {
91 status = "okay";
92 mtd-mac-address = <&factory 0x4>;
93
94 port@0 {
95 phy-handle = <&phy0>;
96 phy-mode = "rgmii";
97 };
98
99 mdio-bus {
100 status = "okay";
101
102 phy0: ethernet-phy@0 {
103 reg = <0>;
104 phy-mode = "rgmii";
105
106 qca,ar8327-initvals = <
107 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
108 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
109 0x10 0x40000000 /* Power-on Strapping: 176-pin interface configuration */
110 0x50 0xc437c437 /* LED Control Register 0 */
111 0x54 0xc337c337 /* LED Control Register 1 */
112 0x58 0x00000000 /* LED Control Register 2 */
113 0x5c 0x03ffff00 /* LED Control Register 3 */
114 0x7c 0x0000007e /* PORT0_STATUS */
115 0x94 0x0000007e /* PORT6 STATUS */
116 >;
117 };
118 };
119 };
120
121 &pci {
122 status = "okay";
123 pinctrl-names = "default";
124 pinctrl-0 = <&pci_pins>;
125
126 pci_pins: pci {
127 pci {
128 ralink,group = "pci";
129 ralink,function = "pci-fnc";
130 };
131 };
132
133 host-bridge {
134 pci-bridge@1 {
135 status = "okay";
136
137 wifi@0,0 {
138 compatible = "pci0,0";
139 reg = < 0x10000 0 0 0 0 >;
140 ralink,2ghz = <0>;
141 };
142 };
143 };
144 };
145
146 &wmac {
147 status = "okay";
148 ralink,mtd-eeprom = <&factory 0x0>;
149 ralink,5ghz = <0>;
150 mtd-mac-address = <&factory 0x4>;
151 mtd-mac-address-increment = <3>;
152 };