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";
41 button_pins: button_pins {
43 pins = "gpio16", "gpio54", "gpio65";
50 i2c4_pins: i2c4_pinmux {
52 pins = "gpio12", "gpio13";
54 drive-strength = <12>;
61 pins = "gpio6", "gpio7", "gpio8", "gpio9", "gpio26", "gpio33",
71 pins = "gpio18", "gpio19", "gpio21";
77 pins = "gpio18", "gpio19";
78 drive-strength = <10>;
84 drive-strength = <10>;
90 drive-strength = <12>;
94 mdio0_pins: mdio0_pins {
96 pins = "gpio0", "gpio1";
103 rgmii2_pins: rgmii2_pins {
105 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
106 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
108 drive-strength = <8>;
113 usb0_pwr_en_pin: usb0_pwr_en_pin {
117 drive-strength = <10>;
123 usb1_pwr_en_pin: usb1_pwr_en_pin {
127 drive-strength = <10>;
135 qcom,mode = <GSBI_PROT_I2C_UART>;
141 * The i2c device on gsbi4 should not be enabled.
142 * On ipq806x designs gsbi4 i2c is meant for exclusive
143 * RPM usage. Turning this on in kernel manifests as
144 * i2c failure for the RPM.
148 gsbi5: gsbi@1a200000 {
149 qcom,mode = <GSBI_PROT_SPI>;
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 0x400000>;
240 reg = <0x5f0000 0x1900000>;
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 {
352 pcie1: pci@1b700000 {
358 compatible = "virtual,mdio-gpio";
359 #address-cells = <1>;
361 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
362 pinctrl-0 = <&mdio0_pins>;
363 pinctrl-names = "default";
365 phy0: ethernet-phy@0 {
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 {
383 gmac1: ethernet@37200000 {
388 pinctrl-0 = <&rgmii2_pins>;
389 pinctrl-names = "default";
391 mtd-mac-address = <&defaultmac 0x8>;
392 mtd-mac-address-increment = <1>;
400 gmac2: ethernet@37400000 {
405 mtd-mac-address = <&defaultmac 0x8>;
415 compatible = "gpio-keys";
416 pinctrl-0 = <&button_pins>;
417 pinctrl-names = "default";
421 gpios = <&qcom_pinmux 49 GPIO_ACTIVE_LOW>;
422 linux,code = <KEY_RFKILL>;
427 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
428 linux,code = <KEY_RESTART>;
433 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
434 linux,code = <KEY_WPS_BUTTON>;
439 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_LOW>;
440 linux,code = <KEY_LIGHTS_TOGGLE>;
445 compatible = "gpio-leds";
446 pinctrl-0 = <&led_pins>;
447 pinctrl-names = "default";
450 label = "c2600:white:lan";
451 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_HIGH>;
455 label = "c2600:white:usb_4";
456 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
460 label = "c2600:white:usb_2";
461 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
465 label = "c2600:white:wps";
466 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
470 label = "c2600:amber:wan";
471 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
475 label = "c2600:white:wan";
476 gpios = <&qcom_pinmux 33 GPIO_ACTIVE_LOW>;
480 label = "c2600:white:power";
481 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
482 default-state = "keep";
486 label = "c2600:white:general";
487 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;