1 #include "qcom-ipq8064-v2.0.dtsi"
3 #include <dt-bindings/input/input.h>
6 model = "TP-Link Archer C2600";
7 compatible = "tplink,c2600", "qcom,ipq8064";
10 reg = <0x42000000 0x1e000000>;
11 device_type = "memory";
18 led-failsafe = &general;
20 led-upgrade = &general;
21 label-mac-device = &gmac2;
25 compatible = "gpio-keys";
26 pinctrl-0 = <&button_pins>;
27 pinctrl-names = "default";
31 gpios = <&qcom_pinmux 49 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RFKILL>;
37 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_RESTART>;
43 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_WPS_BUTTON>;
49 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_LIGHTS_TOGGLE>;
55 compatible = "gpio-leds";
56 pinctrl-0 = <&led_pins>;
57 pinctrl-names = "default";
60 label = "c2600:white:lan";
61 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_HIGH>;
65 label = "c2600:white:usb_4";
66 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
70 label = "c2600:white:usb_2";
71 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
75 label = "c2600:white:wps";
76 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
80 label = "c2600:amber:wan";
81 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
85 label = "c2600:white:wan";
86 gpios = <&qcom_pinmux 33 GPIO_ACTIVE_LOW>;
90 label = "c2600:white:power";
91 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
92 default-state = "keep";
96 label = "c2600:white:general";
97 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
103 button_pins: button_pins {
105 pins = "gpio16", "gpio54", "gpio65";
107 drive-strength = <2>;
114 pins = "gpio6", "gpio7", "gpio8", "gpio9", "gpio26", "gpio33",
117 drive-strength = <2>;
124 pins = "gpio18", "gpio19", "gpio21";
130 pins = "gpio18", "gpio19";
131 drive-strength = <10>;
137 drive-strength = <10>;
143 drive-strength = <12>;
147 usb0_pwr_en_pin: usb0_pwr_en_pin {
151 drive-strength = <10>;
157 usb1_pwr_en_pin: usb1_pwr_en_pin {
161 drive-strength = <10>;
169 qcom,mode = <GSBI_PROT_SPI>;
175 pinctrl-0 = <&spi_pins>;
176 pinctrl-names = "default";
178 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
181 compatible = "jedec,spi-nor";
182 #address-cells = <1>;
184 spi-max-frequency = <50000000>;
195 reg = <0x20000 0x20000>;
201 reg = <0x40000 0x20000>;
207 reg = <0x60000 0x30000>;
213 reg = <0x90000 0x10000>;
219 reg = <0xa0000 0x10000>;
225 reg = <0xb0000 0x30000>;
231 reg = <0xe0000 0x20000>;
237 reg = <0x100000 0x70000>;
243 reg = <0x170000 0x40000>;
249 reg = <0x1b0000 0x40000>;
255 reg = <0x1f0000 0x400000>;
260 reg = <0x5f0000 0x1900000>;
263 defaultmac: default-mac@1ef0000 {
264 label = "default-mac";
265 reg = <0x1ef0000 0x00200>;
271 reg = <0x1ef0200 0x00200>;
275 product-info@1ef0400 {
276 label = "product-info";
277 reg = <0x1ef0400 0x0fc00>;
281 partition-table@1f00000 {
282 label = "partition-table";
283 reg = <0x1f00000 0x10000>;
287 soft-version@1f10000 {
288 label = "soft-version";
289 reg = <0x1f10000 0x10000>;
293 support-list@1f20000 {
294 label = "support-list";
295 reg = <0x1f20000 0x10000>;
301 reg = <0x1f30000 0x10000>;
305 default-config@1f40000 {
306 label = "default-config";
307 reg = <0x1f40000 0x10000>;
311 user-config@1f50000 {
312 label = "user-config";
313 reg = <0x1f50000 0x40000>;
319 reg = <0x1f90000 0x40000>;
324 label = "usb-config";
325 reg = <0x1fd0000 0x10000>;
331 reg = <0x1fe0000 0x20000>;
341 pinctrl-0 = <&usb0_pwr_en_pin>;
342 pinctrl-names = "default";
348 pinctrl-0 = <&usb1_pwr_en_pin>;
349 pinctrl-names = "default";
364 pinctrl-0 = <&mdio0_pins>;
365 pinctrl-names = "default";
367 phy0: ethernet-phy@0 {
369 qca,ar8327-initvals = <
370 0x00004 0x7600000 /* PAD0_MODE */
371 0x00008 0x1000000 /* PAD5_MODE */
372 0x0000c 0x80 /* PAD6_MODE */
373 0x000e4 0x6a545 /* MAC_POWER_SEL */
374 0x000e0 0xc74164de /* SGMII_CTRL */
375 0x0007c 0x4e /* PORT0_STATUS */
376 0x00094 0x4e /* PORT6_STATUS */
380 phy4: ethernet-phy@4 {
390 pinctrl-0 = <&rgmii2_pins>;
391 pinctrl-names = "default";
393 mtd-mac-address = <&defaultmac 0x8>;
394 mtd-mac-address-increment = <1>;
407 mtd-mac-address = <&defaultmac 0x8>;