1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
7 #include "qca9557.dtsi"
10 model = "TP-Link RE350K v1";
11 compatible = "tplink,re350k-v1", "qca,qca9558";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
22 bootargs = "console=ttyS0,115200n8";
26 compatible = "gpio-keys";
31 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
32 debounce-interval = <60>;
38 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
39 debounce-interval = <60>;
44 linux,code = <KEY_RESTART>;
45 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
46 debounce-interval = <60>;
51 compatible = "gpio-leds";
54 label = "tp-link:green:power";
55 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
60 label = "tp-link:green:wlan2g";
61 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
62 linux,default-trigger = "phy1tpt";
66 label = "tp-link:red:wlan2g";
67 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
71 label = "tp-link:green:wlan5g";
72 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
73 linux,default-trigger = "phy0tpt";
77 label = "tp-link:red:wlan5g";
78 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
83 compatible = "virtual,mdio-gpio";
88 gpios = <&gpio 23 GPIO_ACTIVE_HIGH>,
89 <&gpio 18 GPIO_ACTIVE_HIGH>;
91 phy0: ethernet-phy@4 {
94 phy-mode = "rgmii-rxid";
104 mtd-mac-address = <&config 0x10008>;
105 pll-data = <0x9e000000 0x80000101 0x80001313>;
106 phy-handle = <&phy0>;
129 compatible = "jedec,spi-nor";
131 spi-max-frequency = <25000000>;
134 compatible = "fixed-partitions";
135 #address-cells = <1>;
140 reg = <0x000000 0x020000>;
145 compatible = "tplink,firmware";
147 reg = <0x020000 0xd70000>;
150 config: partition@d90000 {
152 reg = <0xd90000 0x260000>;
156 art: partition@ff0000 {
158 reg = <0xff0000 0x010000>;
172 mtd-cal-data = <&art 0x1000>;
173 mtd-mac-address = <&config 0x10008>;