2019-07-03 21:22:25 +00:00
|
|
|
#include "mt7620a_lenovo_newifi-y1.dtsi"
|
2014-08-03 11:13:52 +00:00
|
|
|
|
|
|
|
/ {
|
2017-12-19 20:55:42 +00:00
|
|
|
compatible = "lenovo,newifi-y1", "ralink,mt7620a-soc";
|
2014-08-03 11:13:52 +00:00
|
|
|
model = "Lenovo Y1";
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
aliases {
|
2018-08-28 04:54:27 +00:00
|
|
|
led-boot = &led_power;
|
|
|
|
led-failsafe = &led_power;
|
|
|
|
led-running = &led_power;
|
|
|
|
led-upgrade = &led_power;
|
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 {
|
2014-08-03 11:13:52 +00:00
|
|
|
compatible = "gpio-leds";
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
led_power: power {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "blue:power";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
|
2014-08-03 11:13:52 +00:00
|
|
|
};
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2014-08-03 11:13:52 +00:00
|
|
|
wlan1 {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "blue:wifi";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
|
2014-08-03 11:13:52 +00:00
|
|
|
};
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2014-08-03 11:13:52 +00:00
|
|
|
wlan2 {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "blue:wifi5g";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
|
2014-08-03 11:13:52 +00:00
|
|
|
};
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2014-08-03 11:13:52 +00:00
|
|
|
usb {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "blue:usb";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
|
2018-08-13 15:14:08 +00:00
|
|
|
trigger-sources = <&ohci_port1>, <&ehci_port1>;
|
|
|
|
linux,default-trigger = "usbport";
|
2014-08-03 11:13:52 +00:00
|
|
|
};
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2014-08-03 11:13:52 +00:00
|
|
|
lan {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "blue:lan";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
|
2014-08-03 11:13:52 +00:00
|
|
|
};
|
2015-08-17 05:57:18 +00:00
|
|
|
|
2014-08-03 11:13:52 +00:00
|
|
|
internet {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "blue:internet";
|
2017-07-29 02:14:07 +00:00
|
|
|
gpios = <&gpio2 11 GPIO_ACTIVE_LOW>;
|
2014-08-03 11:13:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2016-05-10 10:41:46 +00:00
|
|
|
|
|
|
|
ðernet {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&ephy_pins>;
|
2020-05-14 13:41:31 +00:00
|
|
|
|
2021-04-02 21:50:02 +00:00
|
|
|
nvmem-cells = <&macaddr_factory_28>;
|
|
|
|
nvmem-cell-names = "mac-address";
|
2020-05-14 13:41:31 +00:00
|
|
|
|
2016-05-10 10:41:46 +00:00
|
|
|
mediatek,portmap = "llllw";
|
|
|
|
};
|
2021-04-02 21:50:02 +00:00
|
|
|
|
|
|
|
&factory {
|
|
|
|
compatible = "nvmem-cells";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
macaddr_factory_28: macaddr@28 {
|
|
|
|
reg = <0x28 0x6>;
|
|
|
|
};
|
|
|
|
};
|