2013-08-14 18:15:35 +00:00
|
|
|
/dts-v1/;
|
|
|
|
|
2020-05-26 21:44:54 +02:00
|
|
|
#include "mt7620a_cameo_810.dtsi"
|
2016-11-11 22:43:08 +01:00
|
|
|
|
2013-08-14 18:15:35 +00:00
|
|
|
/ {
|
|
|
|
compatible = "dlink,dir-810l", "ralink,mt7620a-soc";
|
|
|
|
model = "D-Link DIR-810L";
|
|
|
|
|
2018-07-16 16:27:22 +08:00
|
|
|
aliases {
|
2018-08-28 06:54:27 +02: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 17:57:15 +02:00
|
|
|
label-mac-device = ðernet;
|
2018-07-16 16:27:22 +08:00
|
|
|
};
|
|
|
|
|
2018-12-30 12:42:53 +01:00
|
|
|
leds {
|
2013-08-14 18:15:35 +00:00
|
|
|
compatible = "gpio-leds";
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2020-02-27 14:46:25 +01:00
|
|
|
led_power_green: power_green {
|
2015-08-17 06:24:34 +00:00
|
|
|
label = "dir-810l:green:power";
|
2017-07-29 10:14:07 +08:00
|
|
|
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
|
2013-08-14 18:15:35 +00:00
|
|
|
};
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2020-06-09 11:52:26 +02:00
|
|
|
wan_orange {
|
2015-08-17 06:24:34 +00:00
|
|
|
label = "dir-810l:orange:wan";
|
2017-07-29 10:14:07 +08:00
|
|
|
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
|
2013-08-14 18:15:35 +00:00
|
|
|
};
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2020-06-09 11:52:26 +02:00
|
|
|
wan_green {
|
|
|
|
label = "dir-810l:green:wan";
|
|
|
|
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2020-02-27 14:46:25 +01:00
|
|
|
power_orange {
|
2015-08-17 06:24:34 +00:00
|
|
|
label = "dir-810l:orange:power";
|
2017-07-29 10:14:07 +08:00
|
|
|
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
|
2013-08-14 18:15:35 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2016-05-10 13:41:46 +03:00
|
|
|
|
2019-12-22 21:26:01 +01:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
2020-06-09 11:52:26 +02:00
|
|
|
groups = "i2c", "uartf", "ephy";
|
2020-04-12 20:58:29 +08:00
|
|
|
function = "gpio";
|
2016-05-10 13:41:46 +03:00
|
|
|
};
|
|
|
|
};
|