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";
49 drive-strength = <10>;
54 nand_pins: nand_pins {
56 pins = "gpio34", "gpio35", "gpio36",
57 "gpio37", "gpio38", "gpio39",
58 "gpio40", "gpio41", "gpio42",
59 "gpio43", "gpio44", "gpio45",
62 drive-strength = <10>;
72 pins = "gpio40", "gpio41", "gpio42",
73 "gpio43", "gpio44", "gpio45",
79 mdio0_pins: mdio0_pins {
81 pins = "gpio0", "gpio1";
88 rgmii2_pins: rgmii2_pins {
90 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
91 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
100 qcom,mode = <GSBI_PROT_I2C_UART>;
106 * The i2c device on gsbi4 should not be enabled.
107 * On ipq806x designs gsbi4 i2c is meant for exclusive
108 * RPM usage. Turning this on in kernel manifests as
109 * i2c failure for the RPM.
113 gsbi5: gsbi@1a200000 {
114 qcom,mode = <GSBI_PROT_SPI>;
119 spi-max-frequency = <50000000>;
121 pinctrl-0 = <&spi_pins>;
122 pinctrl-names = "default";
124 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
127 compatible = "s25fl256s1";
128 #address-cells = <1>;
130 spi-max-frequency = <50000000>;
141 reg = <0x20000 0x20000>;
147 reg = <0x40000 0x20000>;
153 reg = <0x60000 0x30000>;
159 reg = <0x90000 0x10000>;
165 reg = <0xa0000 0x10000>;
171 reg = <0xb0000 0x30000>;
177 reg = <0xe0000 0x20000>;
183 reg = <0x100000 0x70000>;
189 reg = <0x170000 0x40000>;
195 reg = <0x1b0000 0x40000>;
201 reg = <0x1f0000 0x200000>;
206 reg = <0x3f0000 0x1b00000>;
209 defaultmac: default-mac@1ef0000 {
210 label = "default-mac";
211 reg = <0x1ef0000 0x00200>;
217 reg = <0x1ef0200 0x00200>;
221 product-info@1ef0400 {
222 label = "product-info";
223 reg = <0x1ef0400 0x0fc00>;
227 partition-table@1f00000 {
228 label = "partition-table";
229 reg = <0x1f00000 0x10000>;
233 soft-version@1f10000 {
234 label = "soft-version";
235 reg = <0x1f10000 0x10000>;
239 support-list@1f20000 {
240 label = "support-list";
241 reg = <0x1f20000 0x10000>;
247 reg = <0x1f30000 0x10000>;
251 default-config@1f40000 {
252 label = "default-config";
253 reg = <0x1f40000 0x10000>;
257 user-config@1f50000 {
258 label = "user-config";
259 reg = <0x1f50000 0x40000>;
265 reg = <0x1f90000 0x40000>;
270 label = "usb-config";
271 reg = <0x1fd0000 0x10000>;
277 reg = <0x1fe0000 0x20000>;
284 phy@100f8800 { /* USB3 port 1 HS phy */
288 phy@100f8830 { /* USB3 port 1 SS phy */
292 phy@110f8800 { /* USB3 port 0 HS phy */
296 phy@110f8830 { /* USB3 port 0 SS phy */
308 pcie0: pci@1b500000 {
310 phy-tx0-term-offset = <7>;
313 pcie1: pci@1b700000 {
315 phy-tx0-term-offset = <7>;
319 compatible = "virtual,mdio-gpio";
320 #address-cells = <1>;
322 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
323 pinctrl-0 = <&mdio0_pins>;
324 pinctrl-names = "default";
326 phy0: ethernet-phy@0 {
327 device_type = "ethernet-phy";
329 qca,ar8327-initvals = <
330 0x00004 0x7600000 /* PAD0_MODE */
331 0x00008 0x1000000 /* PAD5_MODE */
332 0x0000c 0x80 /* PAD6_MODE */
333 0x000e4 0x6a545 /* MAC_POWER_SEL */
334 0x000e0 0xc74164de /* SGMII_CTRL */
335 0x0007c 0x4e /* PORT0_STATUS */
336 0x00094 0x4e /* PORT6_STATUS */
340 phy4: ethernet-phy@4 {
341 device_type = "ethernet-phy";
346 gmac1: ethernet@37200000 {
351 pinctrl-0 = <&rgmii2_pins>;
352 pinctrl-names = "default";
354 mtd-mac-address = <&defaultmac 0x8>;
355 mtd-mac-address-increment = <1>;
363 gmac2: ethernet@37400000 {
368 mtd-mac-address = <&defaultmac 0x8>;
378 compatible = "gpio-keys";
382 gpios = <&qcom_pinmux 49 GPIO_ACTIVE_LOW>;
383 linux,code = <KEY_WLAN>;
388 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
389 linux,code = <KEY_RESTART>;
394 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
395 linux,code = <KEY_WPS_BUTTON>;
399 label = "ledgeneral";
400 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_LOW>;
401 linux,code = <KEY_DOLLAR>;
406 compatible = "gpio-leds";
409 label = "c2600:white:lan";
410 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_HIGH>;
414 label = "c2600:white:usb_4";
415 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
419 label = "c2600:white:usb_2";
420 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
424 label = "c2600:white:wps";
425 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
429 label = "c2600:white:wan";
430 gpios = <&qcom_pinmux 33 GPIO_ACTIVE_LOW>;
434 label = "c2600:white:status";
435 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
439 label = "c2600:white:ledgnr";
440 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;