1 #include "qcom-ipq8064-v1.0.dtsi"
2 #include <dt-bindings/input/input.h>
5 model = "TP-Link Archer C2600";
6 compatible = "tplink,c2600", "qcom,ipq8064";
9 reg = <0x42000000 0x1e000000>;
10 device_type = "memory";
18 reg = <0x41200000 0x300000>;
28 led-failsafe = &ledgnr;
30 led-upgrade = &ledgnr;
34 linux,stdout-path = "serial0:115200n8";
39 i2c4_pins: i2c4_pinmux {
40 pins = "gpio12", "gpio13";
47 pins = "gpio18", "gpio19", "gpio21";
53 pins = "gpio18", "gpio19";
54 drive-strength = <10>;
59 drive-strength = <10>;
65 drive-strength = <12>;
69 nand_pins: nand_pins {
71 pins = "gpio34", "gpio35", "gpio36",
72 "gpio37", "gpio38", "gpio39",
73 "gpio40", "gpio41", "gpio42",
74 "gpio43", "gpio44", "gpio45",
77 drive-strength = <10>;
87 pins = "gpio40", "gpio41", "gpio42",
88 "gpio43", "gpio44", "gpio45",
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>;
115 qcom,mode = <GSBI_PROT_I2C_UART>;
121 * The i2c device on gsbi4 should not be enabled.
122 * On ipq806x designs gsbi4 i2c is meant for exclusive
123 * RPM usage. Turning this on in kernel manifests as
124 * i2c failure for the RPM.
128 gsbi5: gsbi@1a200000 {
129 qcom,mode = <GSBI_PROT_SPI>;
134 spi-max-frequency = <50000000>;
136 pinctrl-0 = <&spi_pins>;
137 pinctrl-names = "default";
139 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
142 compatible = "jedec,spi-nor";
143 #address-cells = <1>;
145 spi-max-frequency = <50000000>;
156 reg = <0x20000 0x20000>;
162 reg = <0x40000 0x20000>;
168 reg = <0x60000 0x30000>;
174 reg = <0x90000 0x10000>;
180 reg = <0xa0000 0x10000>;
186 reg = <0xb0000 0x30000>;
192 reg = <0xe0000 0x20000>;
198 reg = <0x100000 0x70000>;
204 reg = <0x170000 0x40000>;
210 reg = <0x1b0000 0x40000>;
216 reg = <0x1f0000 0x200000>;
221 reg = <0x3f0000 0x1b00000>;
224 defaultmac: default-mac@1ef0000 {
225 label = "default-mac";
226 reg = <0x1ef0000 0x00200>;
232 reg = <0x1ef0200 0x00200>;
236 product-info@1ef0400 {
237 label = "product-info";
238 reg = <0x1ef0400 0x0fc00>;
242 partition-table@1f00000 {
243 label = "partition-table";
244 reg = <0x1f00000 0x10000>;
248 soft-version@1f10000 {
249 label = "soft-version";
250 reg = <0x1f10000 0x10000>;
254 support-list@1f20000 {
255 label = "support-list";
256 reg = <0x1f20000 0x10000>;
262 reg = <0x1f30000 0x10000>;
266 default-config@1f40000 {
267 label = "default-config";
268 reg = <0x1f40000 0x10000>;
272 user-config@1f50000 {
273 label = "user-config";
274 reg = <0x1f50000 0x40000>;
280 reg = <0x1f90000 0x40000>;
285 label = "usb-config";
286 reg = <0x1fd0000 0x10000>;
292 reg = <0x1fe0000 0x20000>;
299 phy@100f8800 { /* USB3 port 1 HS phy */
303 phy@100f8830 { /* USB3 port 1 SS phy */
307 phy@110f8800 { /* USB3 port 0 HS phy */
311 phy@110f8830 { /* USB3 port 0 SS phy */
323 pcie0: pci@1b500000 {
325 phy-tx0-term-offset = <7>;
328 pcie1: pci@1b700000 {
330 phy-tx0-term-offset = <7>;
334 compatible = "virtual,mdio-gpio";
335 #address-cells = <1>;
337 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
338 pinctrl-0 = <&mdio0_pins>;
339 pinctrl-names = "default";
341 phy0: ethernet-phy@0 {
342 device_type = "ethernet-phy";
344 qca,ar8327-initvals = <
345 0x00004 0x7600000 /* PAD0_MODE */
346 0x00008 0x1000000 /* PAD5_MODE */
347 0x0000c 0x80 /* PAD6_MODE */
348 0x000e4 0x6a545 /* MAC_POWER_SEL */
349 0x000e0 0xc74164de /* SGMII_CTRL */
350 0x0007c 0x4e /* PORT0_STATUS */
351 0x00094 0x4e /* PORT6_STATUS */
355 phy4: ethernet-phy@4 {
356 device_type = "ethernet-phy";
361 gmac1: ethernet@37200000 {
366 pinctrl-0 = <&rgmii2_pins>;
367 pinctrl-names = "default";
369 mtd-mac-address = <&defaultmac 0x8>;
370 mtd-mac-address-increment = <1>;
378 gmac2: ethernet@37400000 {
383 mtd-mac-address = <&defaultmac 0x8>;
393 compatible = "gpio-keys";
397 gpios = <&qcom_pinmux 49 GPIO_ACTIVE_LOW>;
398 linux,code = <KEY_RFKILL>;
403 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
404 linux,code = <KEY_RESTART>;
409 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
410 linux,code = <KEY_WPS_BUTTON>;
414 label = "ledgeneral";
415 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_LOW>;
416 linux,code = <KEY_DOLLAR>;
421 compatible = "gpio-leds";
424 label = "c2600:white:lan";
425 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_HIGH>;
429 label = "c2600:white:usb_4";
430 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
434 label = "c2600:white:usb_2";
435 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
439 label = "c2600:white:wps";
440 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
444 label = "c2600:red:wan";
445 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
449 label = "c2600:white:wan";
450 gpios = <&qcom_pinmux 33 GPIO_ACTIVE_LOW>;
454 label = "c2600:white:status";
455 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
459 label = "c2600:white:ledgnr";
460 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
465 compatible = "gpio-export";
469 gpio-export,name = "usb1_power";
470 gpio-export,output = <1>;
471 gpios = <&qcom_pinmux 25 GPIO_ACTIVE_HIGH>;
474 gpio-export,name = "usb2_power";
475 gpio-export,output = <1>;
476 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;