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";
19 reg = <0x41200000 0x300000>;
25 serial0 = &gsbi4_serial;
29 led-failsafe = &general;
31 led-upgrade = &general;
32 label-mac-device = &gmac2;
36 stdout-path = "serial0:115200n8";
40 compatible = "gpio-keys";
41 pinctrl-0 = <&button_pins>;
42 pinctrl-names = "default";
46 gpios = <&qcom_pinmux 49 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RFKILL>;
52 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RESTART>;
58 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_WPS_BUTTON>;
64 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_LOW>;
65 linux,code = <KEY_LIGHTS_TOGGLE>;
70 compatible = "gpio-leds";
71 pinctrl-0 = <&led_pins>;
72 pinctrl-names = "default";
75 label = "c2600:white:lan";
76 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_HIGH>;
80 label = "c2600:white:usb_4";
81 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
85 label = "c2600:white:usb_2";
86 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
90 label = "c2600:white:wps";
91 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
95 label = "c2600:amber:wan";
96 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
100 label = "c2600:white:wan";
101 gpios = <&qcom_pinmux 33 GPIO_ACTIVE_LOW>;
105 label = "c2600:white:power";
106 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
107 default-state = "keep";
111 label = "c2600:white:general";
112 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
118 button_pins: button_pins {
120 pins = "gpio16", "gpio54", "gpio65";
122 drive-strength = <2>;
129 pins = "gpio6", "gpio7", "gpio8", "gpio9", "gpio26", "gpio33",
132 drive-strength = <2>;
139 pins = "gpio18", "gpio19", "gpio21";
145 pins = "gpio18", "gpio19";
146 drive-strength = <10>;
152 drive-strength = <10>;
158 drive-strength = <12>;
162 usb0_pwr_en_pin: usb0_pwr_en_pin {
166 drive-strength = <10>;
172 usb1_pwr_en_pin: usb1_pwr_en_pin {
176 drive-strength = <10>;
184 qcom,mode = <GSBI_PROT_I2C_UART>;
190 * The i2c device on gsbi4 should not be enabled.
191 * On ipq806x designs gsbi4 i2c is meant for exclusive
192 * RPM usage. Turning this on in kernel manifests as
193 * i2c failure for the RPM.
198 qcom,mode = <GSBI_PROT_SPI>;
204 pinctrl-0 = <&spi_pins>;
205 pinctrl-names = "default";
207 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
210 compatible = "jedec,spi-nor";
211 #address-cells = <1>;
213 spi-max-frequency = <50000000>;
224 reg = <0x20000 0x20000>;
230 reg = <0x40000 0x20000>;
236 reg = <0x60000 0x30000>;
242 reg = <0x90000 0x10000>;
248 reg = <0xa0000 0x10000>;
254 reg = <0xb0000 0x30000>;
260 reg = <0xe0000 0x20000>;
266 reg = <0x100000 0x70000>;
272 reg = <0x170000 0x40000>;
278 reg = <0x1b0000 0x40000>;
284 reg = <0x1f0000 0x400000>;
289 reg = <0x5f0000 0x1900000>;
292 defaultmac: default-mac@1ef0000 {
293 label = "default-mac";
294 reg = <0x1ef0000 0x00200>;
300 reg = <0x1ef0200 0x00200>;
304 product-info@1ef0400 {
305 label = "product-info";
306 reg = <0x1ef0400 0x0fc00>;
310 partition-table@1f00000 {
311 label = "partition-table";
312 reg = <0x1f00000 0x10000>;
316 soft-version@1f10000 {
317 label = "soft-version";
318 reg = <0x1f10000 0x10000>;
322 support-list@1f20000 {
323 label = "support-list";
324 reg = <0x1f20000 0x10000>;
330 reg = <0x1f30000 0x10000>;
334 default-config@1f40000 {
335 label = "default-config";
336 reg = <0x1f40000 0x10000>;
340 user-config@1f50000 {
341 label = "user-config";
342 reg = <0x1f50000 0x40000>;
348 reg = <0x1f90000 0x40000>;
353 label = "usb-config";
354 reg = <0x1fd0000 0x10000>;
360 reg = <0x1fe0000 0x20000>;
370 pinctrl-0 = <&usb0_pwr_en_pin>;
371 pinctrl-names = "default";
377 pinctrl-0 = <&usb1_pwr_en_pin>;
378 pinctrl-names = "default";
393 pinctrl-0 = <&mdio0_pins>;
394 pinctrl-names = "default";
396 phy0: ethernet-phy@0 {
398 qca,ar8327-initvals = <
399 0x00004 0x7600000 /* PAD0_MODE */
400 0x00008 0x1000000 /* PAD5_MODE */
401 0x0000c 0x80 /* PAD6_MODE */
402 0x000e4 0x6a545 /* MAC_POWER_SEL */
403 0x000e0 0xc74164de /* SGMII_CTRL */
404 0x0007c 0x4e /* PORT0_STATUS */
405 0x00094 0x4e /* PORT6_STATUS */
409 phy4: ethernet-phy@4 {
419 pinctrl-0 = <&rgmii2_pins>;
420 pinctrl-names = "default";
422 mtd-mac-address = <&defaultmac 0x8>;
423 mtd-mac-address-increment = <1>;
436 mtd-mac-address = <&defaultmac 0x8>;