2024-02-07 23:59:33 +01:00
|
|
|
#include <dt-bindings/leds/common.h>
|
|
|
|
|
2024-04-12 16:14:18 +02:00
|
|
|
#include "mt7620a_tplink_8m.dtsi"
|
2017-07-29 10:14:07 +08:00
|
|
|
|
2016-06-12 23:37:04 +02:00
|
|
|
/ {
|
2019-07-03 23:21:54 +02:00
|
|
|
compatible = "tplink,archer-c50-v1", "ralink,mt7620a-soc";
|
|
|
|
model = "TP-Link Archer C50 v1";
|
2016-06-12 23:37:04 +02:00
|
|
|
|
2018-07-16 16:27:22 +08:00
|
|
|
aliases {
|
2018-08-28 06:54:27 +02:00
|
|
|
led-boot = &led_power;
|
|
|
|
led-failsafe = &led_power;
|
|
|
|
led-running = &led_power;
|
|
|
|
led-upgrade = &led_power;
|
2018-07-16 16:27:22 +08:00
|
|
|
};
|
|
|
|
|
2018-12-30 12:42:53 +01:00
|
|
|
leds {
|
2016-06-12 23:37:04 +02:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
2024-04-29 19:10:59 +02:00
|
|
|
led-0 {
|
2024-02-07 14:48:43 +01:00
|
|
|
function = LED_FUNCTION_LAN;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
2016-10-13 21:00:06 +02:00
|
|
|
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
|
2016-06-12 23:37:04 +02:00
|
|
|
};
|
|
|
|
|
2024-04-29 19:10:59 +02:00
|
|
|
led_power: led-1 {
|
2024-02-07 14:48:43 +01:00
|
|
|
function = LED_FUNCTION_POWER;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
2017-07-28 23:26:40 +02:00
|
|
|
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
|
2017-07-29 11:32:44 +02:00
|
|
|
default-state = "on";
|
2016-06-12 23:37:04 +02:00
|
|
|
};
|
|
|
|
|
2024-04-29 19:10:59 +02:00
|
|
|
led-2 {
|
2024-02-07 14:48:43 +01:00
|
|
|
function = LED_FUNCTION_USB;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
2016-10-13 21:00:06 +02:00
|
|
|
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
|
2018-08-13 17:14:08 +02:00
|
|
|
trigger-sources = <&ohci_port1>, <&ehci_port1>;
|
|
|
|
linux,default-trigger = "usbport";
|
2016-10-13 21:00:06 +02:00
|
|
|
};
|
|
|
|
|
2024-04-29 19:10:59 +02:00
|
|
|
led-3 {
|
2024-02-07 14:48:43 +01:00
|
|
|
function = LED_FUNCTION_WAN;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
2017-07-28 23:26:40 +02:00
|
|
|
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
|
2016-10-13 21:00:06 +02:00
|
|
|
};
|
|
|
|
|
2024-04-29 19:10:59 +02:00
|
|
|
led-4 {
|
2024-02-07 14:48:43 +01:00
|
|
|
function = LED_FUNCTION_WAN;
|
|
|
|
color = <LED_COLOR_ID_ORANGE>;
|
2016-10-13 21:00:06 +02:00
|
|
|
gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
|
2016-06-12 23:37:04 +02:00
|
|
|
};
|
|
|
|
|
2024-04-29 19:10:59 +02:00
|
|
|
led-5 {
|
|
|
|
function = LED_FUNCTION_WLAN_5GHZ;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
2016-10-13 21:00:06 +02:00
|
|
|
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
|
2020-01-02 03:11:39 +01:00
|
|
|
linux,default-trigger = "phy0tpt";
|
2016-06-12 23:37:04 +02:00
|
|
|
};
|
|
|
|
|
2024-04-29 19:10:59 +02:00
|
|
|
led-6 {
|
|
|
|
function = LED_FUNCTION_WLAN_2GHZ;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
2016-10-13 21:00:06 +02:00
|
|
|
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
|
2020-01-02 03:11:39 +01:00
|
|
|
linux,default-trigger = "phy1tpt";
|
2016-10-13 21:00:06 +02:00
|
|
|
};
|
|
|
|
|
2024-04-29 19:10:59 +02:00
|
|
|
led-7 {
|
2024-02-07 14:48:43 +01:00
|
|
|
function = LED_FUNCTION_WPS;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
2016-10-13 21:00:06 +02:00
|
|
|
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
|
2016-06-12 23:37:04 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-12-22 21:26:01 +01:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
2020-04-12 20:58:29 +08:00
|
|
|
groups = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "ephy", "spi refclk", "mdio", "wdt", "nd_sd";
|
|
|
|
function = "gpio";
|
2016-06-12 23:37:04 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
2022-07-28 13:40:12 +02:00
|
|
|
pinctrl-names = "default", "pa_gpio";
|
2017-11-18 22:05:16 +01:00
|
|
|
pinctrl-0 = <&pa_pins>;
|
2022-07-28 13:40:12 +02:00
|
|
|
pinctrl-1 = <&pa_gpio_pins>;
|
2016-06-12 23:37:04 +02:00
|
|
|
|
2024-02-23 21:23:05 +01:00
|
|
|
nvmem-cells = <&eeprom_radio_0>, <&macaddr_rom_f100 (-2)>;
|
|
|
|
nvmem-cell-names = "eeprom", "mac-address";
|
2018-07-21 16:19:46 +02:00
|
|
|
};
|
2016-06-12 23:37:04 +02:00
|
|
|
|
2019-12-08 12:51:20 +01:00
|
|
|
&wifi {
|
2024-02-23 21:23:05 +01:00
|
|
|
nvmem-cells = <&eeprom_radio_8000>, <&macaddr_rom_f100 (-1)>;
|
|
|
|
nvmem-cell-names = "eeprom", "mac-address";
|
2016-06-12 23:37:04 +02:00
|
|
|
};
|