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 0>;
127 compatible = "s25fl256s1";
128 #address-cells = <1>;
130 spi-max-frequency = <50000000>;
140 reg = <0x20000 0x20000>;
145 reg = <0x40000 0x20000>;
150 reg = <0x60000 0x30000>;
155 reg = <0x90000 0x10000>;
160 reg = <0xa0000 0x10000>;
165 reg = <0xb0000 0x30000>;
170 reg = <0xe0000 0x20000>;
175 reg = <0x100000 0x70000>;
180 reg = <0x170000 0x40000>;
185 reg = <0x1b0000 0x40000>;
190 reg = <0x1f0000 0x200000>;
194 reg = <0x3f0000 0x1b00000>;
196 defaultmac: default-mac@1ef0000 {
197 label = "default-mac";
198 reg = <0x1ef0000 0x00200>;
203 reg = <0x1ef0200 0x00200>;
206 product-info@1ef0400 {
207 label = "product-info";
208 reg = <0x1ef0400 0x0fc00>;
211 partition-table@1f00000 {
212 label = "partition-table";
213 reg = <0x1f00000 0x10000>;
216 soft-version@1f10000 {
217 label = "soft-version";
218 reg = <0x1f10000 0x10000>;
221 support-list@1f20000 {
222 label = "support-list";
223 reg = <0x1f20000 0x10000>;
228 reg = <0x1f30000 0x10000>;
231 default-config@1f40000 {
232 label = "default-config";
233 reg = <0x1f40000 0x10000>;
236 user-config@1f50000 {
237 label = "user-config";
238 reg = <0x1f50000 0x40000>;
243 reg = <0x1f90000 0x40000>;
247 label = "usb-config";
248 reg = <0x1fd0000 0x10000>;
253 reg = <0x1fe0000 0x20000>;
260 phy@100f8800 { /* USB3 port 1 HS phy */
264 phy@100f8830 { /* USB3 port 1 SS phy */
268 phy@110f8800 { /* USB3 port 0 HS phy */
272 phy@110f8830 { /* USB3 port 0 SS phy */
284 pcie0: pci@1b500000 {
286 phy-tx0-term-offset = <7>;
289 pcie1: pci@1b700000 {
291 phy-tx0-term-offset = <7>;
295 compatible = "virtual,mdio-gpio";
296 #address-cells = <1>;
298 gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
299 pinctrl-0 = <&mdio0_pins>;
300 pinctrl-names = "default";
302 phy0: ethernet-phy@0 {
303 device_type = "ethernet-phy";
305 qca,ar8327-initvals = <
306 0x00004 0x7600000 /* PAD0_MODE */
307 0x00008 0x1000000 /* PAD5_MODE */
308 0x0000c 0x80 /* PAD6_MODE */
309 0x000e4 0x6a545 /* MAC_POWER_SEL */
310 0x000e0 0xc74164de /* SGMII_CTRL */
311 0x0007c 0x4e /* PORT0_STATUS */
312 0x00094 0x4e /* PORT6_STATUS */
316 phy4: ethernet-phy@4 {
317 device_type = "ethernet-phy";
322 gmac1: ethernet@37200000 {
327 pinctrl-0 = <&rgmii2_pins>;
328 pinctrl-names = "default";
330 mtd-mac-address = <&defaultmac 0x8>;
331 mtd-mac-address-increment = <1>;
339 gmac2: ethernet@37400000 {
344 mtd-mac-address = <&defaultmac 0x8>;
354 compatible = "gpio-keys";
358 gpios = <&qcom_pinmux 49 1>;
359 linux,code = <KEY_WLAN>;
364 gpios = <&qcom_pinmux 64 1>;
365 linux,code = <KEY_RESTART>;
370 gpios = <&qcom_pinmux 65 1>;
371 linux,code = <KEY_WPS_BUTTON>;
374 label = "ledgeneral";
375 gpios = <&qcom_pinmux 16 1>;
376 linux,code = <KEY_DOLLAR>;
381 compatible = "gpio-leds";
384 label = "c2600:white:lan";
385 gpios = <&qcom_pinmux 6 0>;
388 label = "c2600:white:usb_4";
389 gpios = <&qcom_pinmux 7 0>;
392 label = "c2600:white:usb_2";
393 gpios = <&qcom_pinmux 8 0>;
396 label = "c2600:white:wps";
397 gpios = <&qcom_pinmux 9 0>;
400 label = "c2600:white:wan";
401 gpios = <&qcom_pinmux 33 1>;
404 label = "c2600:white:status";
405 gpios = <&qcom_pinmux 53 0>;
408 label = "c2600:white:ledgnr";
409 gpios = <&qcom_pinmux 66 0>;