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>;
29 linux,stdout-path = "serial0:115200n8";
34 i2c4_pins: i2c4_pinmux {
35 pins = "gpio12", "gpio13";
42 pins = "gpio18", "gpio19", "gpio21";
44 drive-strength = <10>;
49 nand_pins: nand_pins {
51 pins = "gpio34", "gpio35", "gpio36",
52 "gpio37", "gpio38", "gpio39",
53 "gpio40", "gpio41", "gpio42",
54 "gpio43", "gpio44", "gpio45",
57 drive-strength = <10>;
67 pins = "gpio40", "gpio41", "gpio42",
68 "gpio43", "gpio44", "gpio45",
74 mdio0_pins: mdio0_pins {
76 pins = "gpio0", "gpio1";
83 rgmii2_pins: rgmii2_pins {
85 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
86 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
95 qcom,mode = <GSBI_PROT_I2C_UART>;
101 * The i2c device on gsbi4 should not be enabled.
102 * On ipq806x designs gsbi4 i2c is meant for exclusive
103 * RPM usage. Turning this on in kernel manifests as
104 * i2c failure for the RPM.
108 gsbi5: gsbi@1a200000 {
109 qcom,mode = <GSBI_PROT_SPI>;
114 spi-max-frequency = <50000000>;
116 pinctrl-0 = <&spi_pins>;
117 pinctrl-names = "default";
119 cs-gpios = <&qcom_pinmux 20 0>;
122 compatible = "s25fl256s1";
123 #address-cells = <1>;
125 spi-max-frequency = <50000000>;
135 reg = <0x20000 0x20000>;
140 reg = <0x40000 0x20000>;
145 reg = <0x60000 0x30000>;
150 reg = <0x90000 0x10000>;
155 reg = <0xa0000 0x10000>;
160 reg = <0xb0000 0x30000>;
165 reg = <0xe0000 0x20000>;
170 reg = <0x100000 0x70000>;
175 reg = <0x170000 0x40000>;
180 reg = <0x1b0000 0x40000>;
185 reg = <0x1f0000 0x200000>;
189 reg = <0x3f0000 0x1b00000>;
191 defaultmac: default-mac@1ef0000 {
192 label = "default-mac";
193 reg = <0x1ef0000 0x00200>;
198 reg = <0x1ef0200 0x00200>;
201 product-info@1ef0400 {
202 label = "product-info";
203 reg = <0x1ef0400 0x0fc00>;
206 partition-table@1f00000 {
207 label = "partition-table";
208 reg = <0x1f00000 0x10000>;
211 soft-version@1f10000 {
212 label = "soft-version";
213 reg = <0x1f10000 0x10000>;
216 support-list@1f20000 {
217 label = "support-list";
218 reg = <0x1f20000 0x10000>;
223 reg = <0x1f30000 0x10000>;
226 default-config@1f40000 {
227 label = "default-config";
228 reg = <0x1f40000 0x10000>;
231 user-config@1f50000 {
232 label = "user-config";
233 reg = <0x1f50000 0x40000>;
238 reg = <0x1f90000 0x40000>;
242 label = "usb-config";
243 reg = <0x1fd0000 0x10000>;
248 reg = <0x1fe0000 0x20000>;
255 phy@100f8800 { /* USB3 port 1 HS phy */
259 phy@100f8830 { /* USB3 port 1 SS phy */
263 phy@110f8800 { /* USB3 port 0 HS phy */
267 phy@110f8830 { /* USB3 port 0 SS phy */
279 pcie0: pci@1b500000 {
281 phy-tx0-term-offset = <7>;
284 pcie1: pci@1b700000 {
286 phy-tx0-term-offset = <7>;
290 compatible = "virtual,mdio-gpio";
291 #address-cells = <1>;
293 gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
294 pinctrl-0 = <&mdio0_pins>;
295 pinctrl-names = "default";
297 phy0: ethernet-phy@0 {
298 device_type = "ethernet-phy";
300 qca,ar8327-initvals = <
301 0x00004 0x7600000 /* PAD0_MODE */
302 0x00008 0x1000000 /* PAD5_MODE */
303 0x0000c 0x80 /* PAD6_MODE */
304 0x000e4 0xaa545 /* MAC_POWER_SEL */
305 0x000e0 0xc74164de /* SGMII_CTRL */
306 0x0007c 0x4e /* PORT0_STATUS */
307 0x00094 0x4e /* PORT6_STATUS */
311 phy4: ethernet-phy@4 {
312 device_type = "ethernet-phy";
317 gmac1: ethernet@37200000 {
322 pinctrl-0 = <&rgmii2_pins>;
323 pinctrl-names = "default";
325 mtd-mac-address = <&defaultmac 0x8>;
326 mtd-mac-address-increment = <1>;
334 gmac2: ethernet@37400000 {
339 mtd-mac-address = <&defaultmac 0x8>;
349 compatible = "gpio-keys";
353 gpios = <&qcom_pinmux 49 1>;
354 linux,code = <KEY_WLAN>;
359 gpios = <&qcom_pinmux 64 1>;
360 linux,code = <KEY_RESTART>;
365 gpios = <&qcom_pinmux 65 1>;
366 linux,code = <KEY_WPS_BUTTON>;
369 label = "ledgeneral";
370 gpios = <&qcom_pinmux 16 1>;
371 linux,code = <KEY_DOLLAR>;
376 compatible = "gpio-leds";
380 gpios = <&qcom_pinmux 6 0>;
383 label = "usb_4:blue";
384 gpios = <&qcom_pinmux 7 0>;
387 label = "usb_2:blue";
388 gpios = <&qcom_pinmux 8 0>;
392 gpios = <&qcom_pinmux 9 0>;
396 gpios = <&qcom_pinmux 33 1>;
399 label = "status:blue";
400 gpios = <&qcom_pinmux 53 0>;
401 default-state = "on";
404 label = "ledgnr:blue";
405 gpios = <&qcom_pinmux 66 0>;