1 #include "qcom-ipq8064-v1.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;
35 linux,stdout-path = "serial0:115200n8";
40 button_pins: button_pins {
42 pins = "gpio16", "gpio54", "gpio65";
49 i2c4_pins: i2c4_pinmux {
51 pins = "gpio12", "gpio13";
53 drive-strength = <12>;
60 pins = "gpio6", "gpio7", "gpio8", "gpio9", "gpio26", "gpio33",
70 pins = "gpio18", "gpio19", "gpio21";
76 pins = "gpio18", "gpio19";
77 drive-strength = <10>;
83 drive-strength = <10>;
89 drive-strength = <12>;
93 mdio0_pins: mdio0_pins {
95 pins = "gpio0", "gpio1";
102 rgmii2_pins: rgmii2_pins {
104 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
105 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
107 drive-strength = <8>;
112 usb0_pwr_en_pin: usb0_pwr_en_pin {
116 drive-strength = <10>;
122 usb1_pwr_en_pin: usb1_pwr_en_pin {
126 drive-strength = <10>;
134 qcom,mode = <GSBI_PROT_I2C_UART>;
140 * The i2c device on gsbi4 should not be enabled.
141 * On ipq806x designs gsbi4 i2c is meant for exclusive
142 * RPM usage. Turning this on in kernel manifests as
143 * i2c failure for the RPM.
147 gsbi5: gsbi@1a200000 {
148 qcom,mode = <GSBI_PROT_SPI>;
154 pinctrl-0 = <&spi_pins>;
155 pinctrl-names = "default";
157 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
160 compatible = "jedec,spi-nor";
161 #address-cells = <1>;
163 spi-max-frequency = <50000000>;
174 reg = <0x20000 0x20000>;
180 reg = <0x40000 0x20000>;
186 reg = <0x60000 0x30000>;
192 reg = <0x90000 0x10000>;
198 reg = <0xa0000 0x10000>;
204 reg = <0xb0000 0x30000>;
210 reg = <0xe0000 0x20000>;
216 reg = <0x100000 0x70000>;
222 reg = <0x170000 0x40000>;
228 reg = <0x1b0000 0x40000>;
234 reg = <0x1f0000 0x200000>;
239 reg = <0x3f0000 0x1b00000>;
242 defaultmac: default-mac@1ef0000 {
243 label = "default-mac";
244 reg = <0x1ef0000 0x00200>;
250 reg = <0x1ef0200 0x00200>;
254 product-info@1ef0400 {
255 label = "product-info";
256 reg = <0x1ef0400 0x0fc00>;
260 partition-table@1f00000 {
261 label = "partition-table";
262 reg = <0x1f00000 0x10000>;
266 soft-version@1f10000 {
267 label = "soft-version";
268 reg = <0x1f10000 0x10000>;
272 support-list@1f20000 {
273 label = "support-list";
274 reg = <0x1f20000 0x10000>;
280 reg = <0x1f30000 0x10000>;
284 default-config@1f40000 {
285 label = "default-config";
286 reg = <0x1f40000 0x10000>;
290 user-config@1f50000 {
291 label = "user-config";
292 reg = <0x1f50000 0x40000>;
298 reg = <0x1f90000 0x40000>;
303 label = "usb-config";
304 reg = <0x1fd0000 0x10000>;
310 reg = <0x1fe0000 0x20000>;
317 phy@100f8800 { /* USB3 port 1 HS phy */
321 phy@100f8830 { /* USB3 port 1 SS phy */
325 phy@110f8800 { /* USB3 port 0 HS phy */
329 phy@110f8830 { /* USB3 port 0 SS phy */
336 pinctrl-0 = <&usb0_pwr_en_pin>;
337 pinctrl-names = "default";
343 pinctrl-0 = <&usb1_pwr_en_pin>;
344 pinctrl-names = "default";
347 pcie0: pci@1b500000 {
351 pcie1: pci@1b700000 {
357 compatible = "virtual,mdio-gpio";
358 #address-cells = <1>;
360 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
361 pinctrl-0 = <&mdio0_pins>;
362 pinctrl-names = "default";
364 phy0: ethernet-phy@0 {
365 device_type = "ethernet-phy";
367 qca,ar8327-initvals = <
368 0x00004 0x7600000 /* PAD0_MODE */
369 0x00008 0x1000000 /* PAD5_MODE */
370 0x0000c 0x80 /* PAD6_MODE */
371 0x000e4 0x6a545 /* MAC_POWER_SEL */
372 0x000e0 0xc74164de /* SGMII_CTRL */
373 0x0007c 0x4e /* PORT0_STATUS */
374 0x00094 0x4e /* PORT6_STATUS */
378 phy4: ethernet-phy@4 {
379 device_type = "ethernet-phy";
384 gmac1: ethernet@37200000 {
389 pinctrl-0 = <&rgmii2_pins>;
390 pinctrl-names = "default";
392 mtd-mac-address = <&defaultmac 0x8>;
393 mtd-mac-address-increment = <1>;
401 gmac2: ethernet@37400000 {
406 mtd-mac-address = <&defaultmac 0x8>;
415 pinctrl-0 = <&i2c4_pins>;
416 pinctrl-names = "default";
421 compatible = "gpio-keys";
422 pinctrl-0 = <&button_pins>;
423 pinctrl-names = "default";
427 gpios = <&qcom_pinmux 49 GPIO_ACTIVE_LOW>;
428 linux,code = <KEY_RFKILL>;
433 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
434 linux,code = <KEY_RESTART>;
439 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
440 linux,code = <KEY_WPS_BUTTON>;
445 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_LOW>;
446 linux,code = <KEY_LIGHTS_TOGGLE>;
451 compatible = "gpio-leds";
452 pinctrl-0 = <&led_pins>;
453 pinctrl-names = "default";
456 label = "c2600:white:lan";
457 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_HIGH>;
461 label = "c2600:white:usb_4";
462 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
466 label = "c2600:white:usb_2";
467 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
471 label = "c2600:white:wps";
472 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
476 label = "c2600:amber:wan";
477 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
481 label = "c2600:white:wan";
482 gpios = <&qcom_pinmux 33 GPIO_ACTIVE_LOW>;
486 label = "c2600:white:power";
487 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
488 default-state = "keep";
492 label = "c2600:white:general";
493 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;