1 commit be3de98aef65403129a4b714ddce8ab71f563209
2 Author: Ash Benz <ash.benz@bk.ru>
3 Date: Fri May 27 22:26:45 2016 +0800
5 ipq806x/dts: Add Archer C2600 DTS
7 Signed-off-by: Ash Benz <ash.benz@bk.ru>
9 diff --git a/target/linux/ipq806x/image/Makefile b/target/linux/ipq806x/image/Makefile
10 index 52cc1fa..77391d0 100644
11 --- a/target/linux/ipq806x/image/Makefile
12 +++ b/target/linux/ipq806x/image/Makefile
13 @@ -36,11 +36,6 @@ define Build/append-dtb
14 cat $(DTS_DIR)/$(DEVICE_DTS).dtb >> $@
17 -define Build/append-new-dtb
18 - $(call Image/BuildDTB,../dts/$(DEVICE_DTS).dts,$@.dtb)
22 define Build/append-file
25 @@ -95,7 +90,7 @@ define Device/TpSafeImage
26 PROFILES += $$(DEVICE_NAME)
27 FILESYSTEMS := squashfs
28 KERNEL_SUFFIX := -uImage
29 - KERNEL = kernel-bin | append-new-dtb | uImage none
30 + KERNEL = kernel-bin | append-dtb | uImage none
33 IMAGES := factory.bin sysupgrade.bin
34 diff --git a/target/linux/ipq806x/patches-4.4/802-ARM-qcom-add-TPLink-C2600-device-tree.patch b/target/linux/ipq806x/patches-4.4/802-ARM-qcom-add-TPLink-C2600-device-tree.patch
36 index 0000000..8952f33
38 +++ b/target/linux/ipq806x/patches-4.4/802-ARM-qcom-add-TPLink-C2600-device-tree.patch
40 +--- a/arch/arm/boot/dts/Makefile
41 ++++ b/arch/arm/boot/dts/Makefile
43 + qcom-apq8084-ifc6540.dtb \
44 + qcom-apq8084-mtp.dtb \
45 + qcom-ipq8064-ap148.dtb \
46 ++ qcom-ipq8064-c2600.dtb \
47 + qcom-ipq8064-db149.dtb \
48 + qcom-ipq8064-r7500.dtb \
49 + qcom-ipq8064-d7800.dtb \
51 ++++ b/arch/arm/boot/dts/qcom-ipq8064-c2600.dts
53 ++#include "qcom-ipq8064-v1.0.dtsi"
54 ++#include <dt-bindings/input/input.h>
57 ++ model = "TP-Link Archer C2600";
58 ++ compatible = "tplink,c2600", "qcom,ipq8064";
61 ++ reg = <0x42000000 0x1e000000>;
62 ++ device_type = "memory";
66 ++ #address-cells = <1>;
70 ++ reg = <0x41200000 0x300000>;
77 ++ mdio-gpio0 = &mdio0;
81 ++ linux,stdout-path = "serial0:115200n8";
86 ++ i2c4_pins: i2c4_pinmux {
87 ++ pins = "gpio12", "gpio13";
88 ++ function = "gsbi4";
92 ++ spi_pins: spi_pins {
94 ++ pins = "gpio18", "gpio19", "gpio21";
95 ++ function = "gsbi5";
96 ++ drive-strength = <10>;
101 ++ nand_pins: nand_pins {
103 ++ pins = "gpio34", "gpio35", "gpio36",
104 ++ "gpio37", "gpio38", "gpio39",
105 ++ "gpio40", "gpio41", "gpio42",
106 ++ "gpio43", "gpio44", "gpio45",
107 ++ "gpio46", "gpio47";
108 ++ function = "nand";
109 ++ drive-strength = <10>;
119 ++ pins = "gpio40", "gpio41", "gpio42",
120 ++ "gpio43", "gpio44", "gpio45",
121 ++ "gpio46", "gpio47";
126 ++ mdio0_pins: mdio0_pins {
128 ++ pins = "gpio0", "gpio1";
129 ++ function = "gpio";
130 ++ drive-strength = <8>;
135 ++ rgmii2_pins: rgmii2_pins {
137 ++ pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
138 ++ "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
139 ++ function = "rgmii2";
140 ++ drive-strength = <8>;
147 ++ qcom,mode = <GSBI_PROT_I2C_UART>;
153 ++ * The i2c device on gsbi4 should not be enabled.
154 ++ * On ipq806x designs gsbi4 i2c is meant for exclusive
155 ++ * RPM usage. Turning this on in kernel manifests as
156 ++ * i2c failure for the RPM.
160 ++ gsbi5: gsbi@1a200000 {
161 ++ qcom,mode = <GSBI_PROT_SPI>;
164 ++ spi4: spi@1a280000 {
166 ++ spi-max-frequency = <50000000>;
168 ++ pinctrl-0 = <&spi_pins>;
169 ++ pinctrl-names = "default";
171 ++ cs-gpios = <&qcom_pinmux 20 0>;
174 ++ compatible = "s25fl256s1";
175 ++ #address-cells = <1>;
176 ++ #size-cells = <1>;
177 ++ spi-max-frequency = <50000000>;
182 ++ reg = <0x0 0x20000>;
187 ++ reg = <0x20000 0x20000>;
192 ++ reg = <0x40000 0x20000>;
197 ++ reg = <0x60000 0x30000>;
201 ++ label = "DDRCONFIG";
202 ++ reg = <0x90000 0x10000>;
207 ++ reg = <0xa0000 0x10000>;
212 ++ reg = <0xb0000 0x30000>;
217 ++ reg = <0xe0000 0x20000>;
221 ++ label = "fs-uboot";
222 ++ reg = <0x100000 0x70000>;
225 ++ uboot-env@170000 {
226 ++ label = "uboot-env";
227 ++ reg = <0x170000 0x40000>;
232 ++ reg = <0x1b0000 0x40000>;
236 ++ label = "os-image";
237 ++ reg = <0x1f0000 0x200000>;
241 ++ reg = <0x3f0000 0x1b00000>;
243 ++ defaultmac: default-mac@1ef0000 {
244 ++ label = "default-mac";
245 ++ reg = <0x1ef0000 0x00200>;
250 ++ reg = <0x1ef0200 0x00200>;
253 ++ product-info@1ef0400 {
254 ++ label = "product-info";
255 ++ reg = <0x1ef0400 0x0fc00>;
258 ++ partition-table@1f00000 {
259 ++ label = "partition-table";
260 ++ reg = <0x1f00000 0x10000>;
263 ++ soft-version@1f10000 {
264 ++ label = "soft-version";
265 ++ reg = <0x1f10000 0x10000>;
268 ++ support-list@1f20000 {
269 ++ label = "support-list";
270 ++ reg = <0x1f20000 0x10000>;
274 ++ label = "profile";
275 ++ reg = <0x1f30000 0x10000>;
278 ++ default-config@1f40000 {
279 ++ label = "default-config";
280 ++ reg = <0x1f40000 0x10000>;
283 ++ user-config@1f50000 {
284 ++ label = "user-config";
285 ++ reg = <0x1f50000 0x40000>;
290 ++ reg = <0x1f90000 0x40000>;
293 ++ usb-config@1fd0000 {
294 ++ label = "usb-config";
295 ++ reg = <0x1fd0000 0x10000>;
300 ++ reg = <0x1fe0000 0x20000>;
307 ++ phy@100f8800 { /* USB3 port 1 HS phy */
311 ++ phy@100f8830 { /* USB3 port 1 SS phy */
315 ++ phy@110f8800 { /* USB3 port 0 HS phy */
319 ++ phy@110f8830 { /* USB3 port 0 SS phy */
331 ++ pcie0: pci@1b500000 {
333 ++ phy-tx0-term-offset = <7>;
336 ++ pcie1: pci@1b700000 {
338 ++ phy-tx0-term-offset = <7>;
342 ++ compatible = "virtual,mdio-gpio";
343 ++ #address-cells = <1>;
344 ++ #size-cells = <0>;
345 ++ gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
346 ++ pinctrl-0 = <&mdio0_pins>;
347 ++ pinctrl-names = "default";
349 ++ phy0: ethernet-phy@0 {
350 ++ device_type = "ethernet-phy";
352 ++ qca,ar8327-initvals = <
353 ++ 0x00004 0x7600000 /* PAD0_MODE */
354 ++ 0x00008 0x1000000 /* PAD5_MODE */
355 ++ 0x0000c 0x80 /* PAD6_MODE */
356 ++ 0x000e4 0xaa545 /* MAC_POWER_SEL */
357 ++ 0x000e0 0xc74164de /* SGMII_CTRL */
358 ++ 0x0007c 0x4e /* PORT0_STATUS */
359 ++ 0x00094 0x4e /* PORT6_STATUS */
363 ++ phy4: ethernet-phy@4 {
364 ++ device_type = "ethernet-phy";
369 ++ gmac1: ethernet@37200000 {
371 ++ phy-mode = "rgmii";
374 ++ pinctrl-0 = <&rgmii2_pins>;
375 ++ pinctrl-names = "default";
377 ++ mtd-mac-address = <&defaultmac 0x8>;
378 ++ mtd-mac-address-increment = <1>;
386 ++ gmac2: ethernet@37400000 {
388 ++ phy-mode = "sgmii";
391 ++ mtd-mac-address = <&defaultmac 0x8>;
401 ++ compatible = "gpio-keys";
405 ++ gpios = <&qcom_pinmux 49 1>;
406 ++ linux,code = <KEY_WLAN>;
411 ++ gpios = <&qcom_pinmux 64 1>;
412 ++ linux,code = <KEY_RESTART>;
417 ++ gpios = <&qcom_pinmux 65 1>;
418 ++ linux,code = <KEY_WPS_BUTTON>;
421 ++ label = "ledgeneral";
422 ++ gpios = <&qcom_pinmux 16 1>;
423 ++ linux,code = <KEY_DOLLAR>;
428 ++ compatible = "gpio-leds";
431 ++ label = "lan:blue";
432 ++ gpios = <&qcom_pinmux 6 0>;
435 ++ label = "usb_4:blue";
436 ++ gpios = <&qcom_pinmux 7 0>;
439 ++ label = "usb_2:blue";
440 ++ gpios = <&qcom_pinmux 8 0>;
443 ++ label = "wps:blue";
444 ++ gpios = <&qcom_pinmux 9 0>;
447 ++ label = "wan:blue";
448 ++ gpios = <&qcom_pinmux 33 1>;
451 ++ label = "status:blue";
452 ++ gpios = <&qcom_pinmux 53 0>;
453 ++ default-state = "on";
456 ++ label = "ledgnr:blue";
457 ++ gpios = <&qcom_pinmux 66 0>;