2013-08-14 18:15:35 +00:00
|
|
|
/dts-v1/;
|
|
|
|
|
2020-05-26 19:44:54 +00:00
|
|
|
#include "mt7620a_cameo_810.dtsi"
|
2016-11-11 21:43:08 +00:00
|
|
|
|
2013-08-14 18:15:35 +00:00
|
|
|
/ {
|
|
|
|
compatible = "dlink,dir-810l", "ralink,mt7620a-soc";
|
|
|
|
model = "D-Link DIR-810L";
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
aliases {
|
2018-08-28 04:54:27 +00:00
|
|
|
led-boot = &led_power_green;
|
|
|
|
led-failsafe = &led_power_green;
|
|
|
|
led-running = &led_power_green;
|
|
|
|
led-upgrade = &led_power_green;
|
ramips: provide label MAC address
This patch adds the label MAC address for several devices in
ramips.
Some devices require setting the MAC address in 02_network:
For the following devices, the netif device can be linked in
device tree, but the MAC address cannot be read:
- cudy,wr1000
- dlink,dir-615-d
- dlink,dir-615-h1
- dlink,dir-860l-b1
- glinet,gl-mt300a
- glinet,gl-mt300n
- glinet,gl-mt750
- vocore,vocore2
- vocore,vocore2-lite
- zbtlink,zbt-we1326
- zbtlink,zbt-wg3526
For the following devices, label MAC address is tied to lan or
wan, so no node to link to exists in device tree:
- dlink,dir-510l
- dlink,dwr-116-a1
- dlink,dwr-118-a1
- dlink,dwr-118-a2
- dlink,dwr-921-c1
- dlink,dwr-922-e2
- all hiwifi devices
- lava,lr-25g001
- xiaomi,mir3p
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2019-06-24 15:57:15 +00:00
|
|
|
label-mac-device = ðernet;
|
2018-07-16 08:27:22 +00:00
|
|
|
};
|
|
|
|
|
2018-12-30 11:42:53 +00:00
|
|
|
leds {
|
2013-08-14 18:15:35 +00:00
|
|
|
compatible = "gpio-leds";
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2020-02-27 13:46:25 +00:00
|
|
|
led_power_green: power_green {
|
2015-08-17 06:24:34 +00:00
|
|
|
label = "dir-810l:green:power";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
|
2013-08-14 18:15:35 +00:00
|
|
|
};
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2014-10-06 04:52:36 +00:00
|
|
|
wan {
|
2015-08-17 06:24:34 +00:00
|
|
|
label = "dir-810l:orange:wan";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
|
2013-08-14 18:15:35 +00:00
|
|
|
};
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2020-02-27 13:46:25 +00:00
|
|
|
power_orange {
|
2015-08-17 06:24:34 +00:00
|
|
|
label = "dir-810l:orange:power";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
|
2013-08-14 18:15:35 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2016-05-10 10:41:46 +00:00
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
2020-04-12 12:58:29 +00:00
|
|
|
groups = "i2c", "uartf";
|
|
|
|
function = "gpio";
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&gsw {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&ephy_pins>;
|
2020-02-27 13:46:25 +00:00
|
|
|
|
|
|
|
mediatek,port4 = "ephy";
|
2016-05-10 10:41:46 +00:00
|
|
|
};
|