2024-04-12 11:57:26 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
2018-05-17 09:57:00 +00:00
|
|
|
|
2024-02-07 13:48:43 +00:00
|
|
|
#include <dt-bindings/leds/common.h>
|
2018-05-17 09:57:00 +00:00
|
|
|
|
2024-04-12 14:14:18 +00:00
|
|
|
#include "mt7620a_tplink_8m.dtsi"
|
2024-04-12 11:57:26 +00:00
|
|
|
|
2018-05-17 09:57:00 +00:00
|
|
|
/ {
|
2019-07-03 21:21:54 +00:00
|
|
|
compatible = "tplink,archer-c2-v1", "ralink,mt7620a-soc";
|
2018-05-17 09:57:00 +00:00
|
|
|
model = "TP-Link Archer C2 v1";
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
aliases {
|
2018-08-28 04:54:27 +00:00
|
|
|
led-boot = &led_wps;
|
|
|
|
led-failsafe = &led_wps;
|
|
|
|
led-running = &led_wps;
|
|
|
|
led-upgrade = &led_wps;
|
2018-07-16 08:27:22 +00:00
|
|
|
};
|
|
|
|
|
2018-05-17 09:57:00 +00:00
|
|
|
|
2018-12-30 11:42:53 +00:00
|
|
|
leds {
|
2018-05-17 09:57:00 +00:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
2024-04-29 17:10:59 +00:00
|
|
|
led-0 {
|
2024-02-07 13:48:43 +00:00
|
|
|
function = LED_FUNCTION_LAN;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
2018-05-17 09:57:00 +00:00
|
|
|
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2024-04-29 17:10:59 +00:00
|
|
|
led-1 {
|
2024-02-07 13:48:43 +00:00
|
|
|
function = LED_FUNCTION_USB;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
2018-05-17 09:57:00 +00:00
|
|
|
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
|
2018-08-13 15:14:08 +00:00
|
|
|
trigger-sources = <&ohci_port1>, <&ehci_port1>;
|
|
|
|
linux,default-trigger = "usbport";
|
2018-05-17 09:57:00 +00:00
|
|
|
};
|
|
|
|
|
2024-04-29 17:10:59 +00:00
|
|
|
led_wps: led-2 {
|
2024-02-07 13:48:43 +00:00
|
|
|
function = LED_FUNCTION_WPS;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
2018-05-17 09:57:00 +00:00
|
|
|
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2024-04-29 17:10:59 +00:00
|
|
|
led-3 {
|
2024-02-07 13:48:43 +00:00
|
|
|
function = LED_FUNCTION_WAN;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
2018-05-17 09:57:00 +00:00
|
|
|
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2024-04-29 17:10:59 +00:00
|
|
|
led-4 {
|
2024-02-07 13:48:43 +00:00
|
|
|
function = LED_FUNCTION_WLAN;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
2018-05-17 09:57:00 +00:00
|
|
|
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
|
2020-01-02 02:11:39 +00:00
|
|
|
linux,default-trigger = "phy1tpt";
|
2018-05-17 09:57:00 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
rtl8367rb {
|
2024-02-15 20:58:31 +00:00
|
|
|
compatible = "realtek,rtl8367b";
|
2018-05-17 09:57:00 +00:00
|
|
|
cpu_port = <6>;
|
|
|
|
realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
|
|
|
|
mii-bus = <&mdio0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-04-12 11:57:26 +00:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
|
|
|
groups = "i2c", "uartf", "wled", "ephy", "spi refclk";
|
|
|
|
function = "gpio";
|
2018-05-17 09:57:00 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
|
|
|
|
|
2023-11-25 21:35:04 +00:00
|
|
|
nvmem-cells = <&macaddr_rom_f100 0>;
|
2021-04-02 21:50:02 +00:00
|
|
|
nvmem-cell-names = "mac-address";
|
2020-05-14 13:41:31 +00:00
|
|
|
|
2018-05-17 09:57:00 +00:00
|
|
|
port@5 {
|
|
|
|
status = "okay";
|
|
|
|
mediatek,fixed-link = <1000 1 1 1>;
|
|
|
|
phy-mode = "rgmii";
|
|
|
|
};
|
|
|
|
|
|
|
|
mdio0: mdio-bus {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
|
2018-05-17 09:57:00 +00:00
|
|
|
&wmac {
|
2023-11-25 21:35:04 +00:00
|
|
|
nvmem-cells = <&eeprom_radio_0>, <&macaddr_rom_f100 0>;
|
2023-10-02 02:12:02 +00:00
|
|
|
nvmem-cell-names = "eeprom", "mac-address";
|
2018-05-17 09:57:00 +00:00
|
|
|
};
|
|
|
|
|
2024-04-12 11:57:26 +00:00
|
|
|
&wifi {
|
|
|
|
nvmem-cells = <&eeprom_radio_8000>, <&macaddr_rom_f100 (-1)>;
|
|
|
|
nvmem-cell-names = "eeprom", "mac-address";
|
2018-05-17 09:57:00 +00:00
|
|
|
};
|