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