1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "ar9344_tplink_tl-wdrxxxx.dtsi"
7 label-mac-device = &ath9k;
11 compatible = "gpio-export";
14 gpio-export,name = "tp-link:power:usb1";
15 gpio-export,output = <1>;
16 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
20 gpio-export,name = "tp-link:power:usb2";
21 gpio-export,output = <1>;
22 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
26 gpio-export,name = "tp-link:ext:lna0";
27 gpio-export,output = <1>;
28 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
32 gpio-export,name = "tp-link:ext:lna1";
33 gpio-export,output = <1>;
34 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
42 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
43 trigger-sources = <&hub_port1>;
44 linux,default-trigger = "usbport";
49 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
50 trigger-sources = <&hub_port2>;
51 linux,default-trigger = "usbport";
65 #trigger-source-cells = <0>;
70 #trigger-source-cells = <0>;
79 nvmem-cells = <&macaddr_uboot_1fc00>;
80 nvmem-cell-names = "mac-address";
84 nvmem-cells = <&macaddr_uboot_1fc00>;
85 nvmem-cell-names = "mac-address";
86 mac-address-increment = <(-1)>;
92 phy0: ethernet-phy@0 {
96 qca,ar8327-initvals = <
97 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
98 0x10 0x80000080 /* POWER_ON_STRAP */
99 0x50 0xc737c737 /* LED_CTRL0 */
100 0x54 0x00000000 /* LED_CTRL1 */
101 0x58 0x00000000 /* LED_CTRL2 */
102 0x5c 0x0030c300 /* LED_CTRL3 */
103 0x7c 0x0000007e /* PORT0_STATUS */
111 /* default for ar934x, except for 1000M */
112 pll-data = <0x06000000 0x00000101 0x00001616>;
114 nvmem-cells = <&macaddr_uboot_1fc00>;
115 nvmem-cell-names = "mac-address";
118 phy-handle = <&phy0>;
122 compatible = "nvmem-cells";
123 #address-cells = <1>;
126 macaddr_uboot_1fc00: macaddr@1fc00 {