1 --- a/arch/arm/boot/dts/Makefile
2 +++ b/arch/arm/boot/dts/Makefile
4 qcom-apq8084-ifc6540.dtb \
6 qcom-ipq8064-ap148.dtb \
7 + qcom-ipq8064-c2600.dtb \
8 qcom-ipq8064-db149.dtb \
9 qcom-ipq8064-r7500.dtb \
10 qcom-ipq8064-d7800.dtb \
12 +++ b/arch/arm/boot/dts/qcom-ipq8064-c2600.dts
14 +#include "qcom-ipq8064-v1.0.dtsi"
15 +#include <dt-bindings/input/input.h>
18 + model = "TP-Link Archer C2600";
19 + compatible = "tplink,c2600", "qcom,ipq8064";
22 + reg = <0x42000000 0x1e000000>;
23 + device_type = "memory";
27 + #address-cells = <1>;
31 + reg = <0x41200000 0x300000>;
38 + mdio-gpio0 = &mdio0;
42 + linux,stdout-path = "serial0:115200n8";
47 + i2c4_pins: i2c4_pinmux {
48 + pins = "gpio12", "gpio13";
53 + spi_pins: spi_pins {
55 + pins = "gpio18", "gpio19", "gpio21";
57 + drive-strength = <10>;
62 + nand_pins: nand_pins {
64 + pins = "gpio34", "gpio35", "gpio36",
65 + "gpio37", "gpio38", "gpio39",
66 + "gpio40", "gpio41", "gpio42",
67 + "gpio43", "gpio44", "gpio45",
70 + drive-strength = <10>;
80 + pins = "gpio40", "gpio41", "gpio42",
81 + "gpio43", "gpio44", "gpio45",
87 + mdio0_pins: mdio0_pins {
89 + pins = "gpio0", "gpio1";
91 + drive-strength = <8>;
96 + rgmii2_pins: rgmii2_pins {
98 + pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
99 + "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
100 + function = "rgmii2";
101 + drive-strength = <8>;
108 + qcom,mode = <GSBI_PROT_I2C_UART>;
114 + * The i2c device on gsbi4 should not be enabled.
115 + * On ipq806x designs gsbi4 i2c is meant for exclusive
116 + * RPM usage. Turning this on in kernel manifests as
117 + * i2c failure for the RPM.
121 + gsbi5: gsbi@1a200000 {
122 + qcom,mode = <GSBI_PROT_SPI>;
125 + spi4: spi@1a280000 {
127 + spi-max-frequency = <50000000>;
129 + pinctrl-0 = <&spi_pins>;
130 + pinctrl-names = "default";
132 + cs-gpios = <&qcom_pinmux 20 0>;
135 + compatible = "s25fl256s1";
136 + #address-cells = <1>;
138 + spi-max-frequency = <50000000>;
143 + reg = <0x0 0x20000>;
148 + reg = <0x20000 0x20000>;
153 + reg = <0x40000 0x20000>;
158 + reg = <0x60000 0x30000>;
162 + label = "DDRCONFIG";
163 + reg = <0x90000 0x10000>;
168 + reg = <0xa0000 0x10000>;
173 + reg = <0xb0000 0x30000>;
178 + reg = <0xe0000 0x20000>;
182 + label = "fs-uboot";
183 + reg = <0x100000 0x70000>;
187 + label = "uboot-env";
188 + reg = <0x170000 0x40000>;
193 + reg = <0x1b0000 0x40000>;
197 + label = "os-image";
198 + reg = <0x1f0000 0x200000>;
202 + reg = <0x3f0000 0x1b00000>;
204 + defaultmac: default-mac@1ef0000 {
205 + label = "default-mac";
206 + reg = <0x1ef0000 0x00200>;
211 + reg = <0x1ef0200 0x00200>;
214 + product-info@1ef0400 {
215 + label = "product-info";
216 + reg = <0x1ef0400 0x0fc00>;
219 + partition-table@1f00000 {
220 + label = "partition-table";
221 + reg = <0x1f00000 0x10000>;
224 + soft-version@1f10000 {
225 + label = "soft-version";
226 + reg = <0x1f10000 0x10000>;
229 + support-list@1f20000 {
230 + label = "support-list";
231 + reg = <0x1f20000 0x10000>;
236 + reg = <0x1f30000 0x10000>;
239 + default-config@1f40000 {
240 + label = "default-config";
241 + reg = <0x1f40000 0x10000>;
244 + user-config@1f50000 {
245 + label = "user-config";
246 + reg = <0x1f50000 0x40000>;
251 + reg = <0x1f90000 0x40000>;
254 + usb-config@1fd0000 {
255 + label = "usb-config";
256 + reg = <0x1fd0000 0x10000>;
261 + reg = <0x1fe0000 0x20000>;
268 + phy@100f8800 { /* USB3 port 1 HS phy */
272 + phy@100f8830 { /* USB3 port 1 SS phy */
276 + phy@110f8800 { /* USB3 port 0 HS phy */
280 + phy@110f8830 { /* USB3 port 0 SS phy */
292 + pcie0: pci@1b500000 {
294 + phy-tx0-term-offset = <7>;
297 + pcie1: pci@1b700000 {
299 + phy-tx0-term-offset = <7>;
303 + compatible = "virtual,mdio-gpio";
304 + #address-cells = <1>;
306 + gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
307 + pinctrl-0 = <&mdio0_pins>;
308 + pinctrl-names = "default";
310 + phy0: ethernet-phy@0 {
311 + device_type = "ethernet-phy";
313 + qca,ar8327-initvals = <
314 + 0x00004 0x7600000 /* PAD0_MODE */
315 + 0x00008 0x1000000 /* PAD5_MODE */
316 + 0x0000c 0x80 /* PAD6_MODE */
317 + 0x000e4 0xaa545 /* MAC_POWER_SEL */
318 + 0x000e0 0xc74164de /* SGMII_CTRL */
319 + 0x0007c 0x4e /* PORT0_STATUS */
320 + 0x00094 0x4e /* PORT6_STATUS */
324 + phy4: ethernet-phy@4 {
325 + device_type = "ethernet-phy";
330 + gmac1: ethernet@37200000 {
332 + phy-mode = "rgmii";
335 + pinctrl-0 = <&rgmii2_pins>;
336 + pinctrl-names = "default";
338 + mtd-mac-address = <&defaultmac 0x8>;
339 + mtd-mac-address-increment = <1>;
347 + gmac2: ethernet@37400000 {
349 + phy-mode = "sgmii";
352 + mtd-mac-address = <&defaultmac 0x8>;
362 + compatible = "gpio-keys";
366 + gpios = <&qcom_pinmux 49 1>;
367 + linux,code = <KEY_WLAN>;
372 + gpios = <&qcom_pinmux 64 1>;
373 + linux,code = <KEY_RESTART>;
378 + gpios = <&qcom_pinmux 65 1>;
379 + linux,code = <KEY_WPS_BUTTON>;
382 + label = "ledgeneral";
383 + gpios = <&qcom_pinmux 16 1>;
384 + linux,code = <KEY_DOLLAR>;
389 + compatible = "gpio-leds";
392 + label = "lan:blue";
393 + gpios = <&qcom_pinmux 6 0>;
396 + label = "usb_4:blue";
397 + gpios = <&qcom_pinmux 7 0>;
400 + label = "usb_2:blue";
401 + gpios = <&qcom_pinmux 8 0>;
404 + label = "wps:blue";
405 + gpios = <&qcom_pinmux 9 0>;
408 + label = "wan:blue";
409 + gpios = <&qcom_pinmux 33 1>;
412 + label = "status:blue";
413 + gpios = <&qcom_pinmux 53 0>;
414 + default-state = "on";
417 + label = "ledgnr:blue";
418 + gpios = <&qcom_pinmux 66 0>;