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>;
127 i2c4_pins: i2c4_pinmux {
129 pins = "gpio12", "gpio13";
131 drive-strength = <12>;
138 pins = "gpio6", "gpio7", "gpio8", "gpio9", "gpio26", "gpio33",
141 drive-strength = <2>;
148 pins = "gpio18", "gpio19", "gpio21";
154 pins = "gpio18", "gpio19";
155 drive-strength = <10>;
161 drive-strength = <10>;
167 drive-strength = <12>;
171 mdio0_pins: mdio0_pins {
173 pins = "gpio0", "gpio1";
175 drive-strength = <8>;
180 rgmii2_pins: rgmii2_pins {
182 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
183 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
185 drive-strength = <8>;
190 usb0_pwr_en_pin: usb0_pwr_en_pin {
194 drive-strength = <10>;
200 usb1_pwr_en_pin: usb1_pwr_en_pin {
204 drive-strength = <10>;
212 qcom,mode = <GSBI_PROT_I2C_UART>;
218 * The i2c device on gsbi4 should not be enabled.
219 * On ipq806x designs gsbi4 i2c is meant for exclusive
220 * RPM usage. Turning this on in kernel manifests as
221 * i2c failure for the RPM.
226 qcom,mode = <GSBI_PROT_SPI>;
232 pinctrl-0 = <&spi_pins>;
233 pinctrl-names = "default";
235 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
238 compatible = "jedec,spi-nor";
239 #address-cells = <1>;
241 spi-max-frequency = <50000000>;
252 reg = <0x20000 0x20000>;
258 reg = <0x40000 0x20000>;
264 reg = <0x60000 0x30000>;
270 reg = <0x90000 0x10000>;
276 reg = <0xa0000 0x10000>;
282 reg = <0xb0000 0x30000>;
288 reg = <0xe0000 0x20000>;
294 reg = <0x100000 0x70000>;
300 reg = <0x170000 0x40000>;
306 reg = <0x1b0000 0x40000>;
312 reg = <0x1f0000 0x400000>;
317 reg = <0x5f0000 0x1900000>;
320 defaultmac: default-mac@1ef0000 {
321 label = "default-mac";
322 reg = <0x1ef0000 0x00200>;
328 reg = <0x1ef0200 0x00200>;
332 product-info@1ef0400 {
333 label = "product-info";
334 reg = <0x1ef0400 0x0fc00>;
338 partition-table@1f00000 {
339 label = "partition-table";
340 reg = <0x1f00000 0x10000>;
344 soft-version@1f10000 {
345 label = "soft-version";
346 reg = <0x1f10000 0x10000>;
350 support-list@1f20000 {
351 label = "support-list";
352 reg = <0x1f20000 0x10000>;
358 reg = <0x1f30000 0x10000>;
362 default-config@1f40000 {
363 label = "default-config";
364 reg = <0x1f40000 0x10000>;
368 user-config@1f50000 {
369 label = "user-config";
370 reg = <0x1f50000 0x40000>;
376 reg = <0x1f90000 0x40000>;
381 label = "usb-config";
382 reg = <0x1fd0000 0x10000>;
388 reg = <0x1fe0000 0x20000>;
398 pinctrl-0 = <&usb0_pwr_en_pin>;
399 pinctrl-names = "default";
405 pinctrl-0 = <&usb1_pwr_en_pin>;
406 pinctrl-names = "default";
421 pinctrl-0 = <&mdio0_pins>;
422 pinctrl-names = "default";
424 phy0: ethernet-phy@0 {
426 qca,ar8327-initvals = <
427 0x00004 0x7600000 /* PAD0_MODE */
428 0x00008 0x1000000 /* PAD5_MODE */
429 0x0000c 0x80 /* PAD6_MODE */
430 0x000e4 0x6a545 /* MAC_POWER_SEL */
431 0x000e0 0xc74164de /* SGMII_CTRL */
432 0x0007c 0x4e /* PORT0_STATUS */
433 0x00094 0x4e /* PORT6_STATUS */
437 phy4: ethernet-phy@4 {
447 pinctrl-0 = <&rgmii2_pins>;
448 pinctrl-names = "default";
450 mtd-mac-address = <&defaultmac 0x8>;
451 mtd-mac-address-increment = <1>;
464 mtd-mac-address = <&defaultmac 0x8>;