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>;
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>;
153 spi-max-frequency = <50000000>;
155 pinctrl-0 = <&spi_pins>;
156 pinctrl-names = "default";
158 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
161 compatible = "jedec,spi-nor";
162 #address-cells = <1>;
164 spi-max-frequency = <50000000>;
175 reg = <0x20000 0x20000>;
181 reg = <0x40000 0x20000>;
187 reg = <0x60000 0x30000>;
193 reg = <0x90000 0x10000>;
199 reg = <0xa0000 0x10000>;
205 reg = <0xb0000 0x30000>;
211 reg = <0xe0000 0x20000>;
217 reg = <0x100000 0x70000>;
223 reg = <0x170000 0x40000>;
229 reg = <0x1b0000 0x40000>;
235 reg = <0x1f0000 0x200000>;
240 reg = <0x3f0000 0x1b00000>;
243 defaultmac: default-mac@1ef0000 {
244 label = "default-mac";
245 reg = <0x1ef0000 0x00200>;
251 reg = <0x1ef0200 0x00200>;
255 product-info@1ef0400 {
256 label = "product-info";
257 reg = <0x1ef0400 0x0fc00>;
261 partition-table@1f00000 {
262 label = "partition-table";
263 reg = <0x1f00000 0x10000>;
267 soft-version@1f10000 {
268 label = "soft-version";
269 reg = <0x1f10000 0x10000>;
273 support-list@1f20000 {
274 label = "support-list";
275 reg = <0x1f20000 0x10000>;
281 reg = <0x1f30000 0x10000>;
285 default-config@1f40000 {
286 label = "default-config";
287 reg = <0x1f40000 0x10000>;
291 user-config@1f50000 {
292 label = "user-config";
293 reg = <0x1f50000 0x40000>;
299 reg = <0x1f90000 0x40000>;
304 label = "usb-config";
305 reg = <0x1fd0000 0x10000>;
311 reg = <0x1fe0000 0x20000>;
318 phy@100f8800 { /* USB3 port 1 HS phy */
322 phy@100f8830 { /* USB3 port 1 SS phy */
326 phy@110f8800 { /* USB3 port 0 HS phy */
330 phy@110f8830 { /* USB3 port 0 SS phy */
337 pinctrl-0 = <&usb0_pwr_en_pin>;
338 pinctrl-names = "default";
344 pinctrl-0 = <&usb1_pwr_en_pin>;
345 pinctrl-names = "default";
348 pcie0: pci@1b500000 {
350 phy-tx0-term-offset = <7>;
353 pcie1: pci@1b700000 {
355 phy-tx0-term-offset = <7>;
359 compatible = "virtual,mdio-gpio";
360 #address-cells = <1>;
362 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
363 pinctrl-0 = <&mdio0_pins>;
364 pinctrl-names = "default";
366 phy0: ethernet-phy@0 {
367 device_type = "ethernet-phy";
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 {
381 device_type = "ethernet-phy";
386 gmac1: ethernet@37200000 {
391 pinctrl-0 = <&rgmii2_pins>;
392 pinctrl-names = "default";
394 mtd-mac-address = <&defaultmac 0x8>;
395 mtd-mac-address-increment = <1>;
403 gmac2: ethernet@37400000 {
408 mtd-mac-address = <&defaultmac 0x8>;
417 pinctrl-0 = <&i2c4_pins>;
418 pinctrl-names = "default";
423 compatible = "gpio-keys";
424 pinctrl-0 = <&button_pins>;
425 pinctrl-names = "default";
429 gpios = <&qcom_pinmux 49 GPIO_ACTIVE_LOW>;
430 linux,code = <KEY_RFKILL>;
435 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
436 linux,code = <KEY_RESTART>;
441 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
442 linux,code = <KEY_WPS_BUTTON>;
447 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_LOW>;
448 linux,code = <KEY_LIGHTS_TOGGLE>;
453 compatible = "gpio-leds";
454 pinctrl-0 = <&led_pins>;
455 pinctrl-names = "default";
458 label = "c2600:white:lan";
459 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_HIGH>;
463 label = "c2600:white:usb_4";
464 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
468 label = "c2600:white:usb_2";
469 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
473 label = "c2600:white:wps";
474 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
478 label = "c2600:orange:wan";
479 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
483 label = "c2600:white:wan";
484 gpios = <&qcom_pinmux 33 GPIO_ACTIVE_LOW>;
488 label = "c2600:white:status";
489 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
490 default-state = "keep";
494 label = "c2600:white:general";
495 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;