projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: use fixed layout cell "mac-base" for Netgear R6220
[openwrt/openwrt.git]
/
target
/
linux
/
ramips
/
dts
/
mt7620a_edimax_br-6478ac-v2.dts
diff --git
a/target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts
b/target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts
index a90760eb6dd3bf3ca86227e6de58cbb9d49c75cf..cc902888baec5a1b8deee1e291a080c56496f94f 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts
+++ b/
target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts
@@
-1,20
+1,15
@@
+// SPDX-License-Identifier: GPL-2.0-only
/*
/*
- * Device Tree file for the Edimax BR-6478AC V2
- * based on Linksys E1700
- *
* Copyright (C) 2016 Rohan Murch <rohan.murch@gmail.com>
* Copyright (C) 2016 Hans Ulli Kroll <ulli.kroll@googlemail.com>
* Copyright (C) 2017 James McKenzie <openwrt@madingley.org>
* Copyright (C) 2016 Rohan Murch <rohan.murch@gmail.com>
* Copyright (C) 2016 Hans Ulli Kroll <ulli.kroll@googlemail.com>
* Copyright (C) 2017 James McKenzie <openwrt@madingley.org>
- *
- * This file is licensed under the terms of the GNU General Public
- * License version 2. This program is licensed "as is" without any
- * warranty of any kind, whether express or implied.
*/
#include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
*/
#include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/mtd/partitions/uimage.h>
/ {
compatible = "edimax,br-6478ac-v2", "ralink,mt7620a-soc";
/ {
compatible = "edimax,br-6478ac-v2", "ralink,mt7620a-soc";
@@
-41,22
+36,22
@@
compatible = "gpio-leds";
led_power: power {
compatible = "gpio-leds";
led_power: power {
- label = "
br-6478ac-v2:
white:power";
+ label = "white:power";
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
internet {
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
internet {
- label = "b
r-6478ac-v2:b
lue:internet";
+ label = "blue:internet";
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
};
wlan {
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
};
wlan {
- label = "b
r-6478ac-v2:b
lue:wlan";
+ label = "blue:wlan";
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
};
usb {
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
};
usb {
- label = "b
r-6478ac-v2:b
lue:usb";
+ label = "blue:usb";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
trigger-sources = <&ohci_port1>, <&ehci_port1>;
linux,default-trigger = "usbport";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
trigger-sources = <&ohci_port1>, <&ehci_port1>;
linux,default-trigger = "usbport";
@@
-116,7
+111,9
@@
};
partition@70000 {
};
partition@70000 {
- compatible = "edimax,uimage";
+ compatible = "openwrt,uimage", "denx,uimage";
+ openwrt,offset = <FW_EDIMAX_OFFSET>;
+ openwrt,partition-magic = <FW_MAGIC_EDIMAX>;
label = "firmware";
reg = <0x00070000 0x00790000>;
};
label = "firmware";
reg = <0x00070000 0x00790000>;
};
@@
-135,7
+132,8
@@
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll";
mediatek,portmap = "wllll";
@@
-181,7
+179,7
@@
};
&gsw {
};
&gsw {
- mediatek,
port4 = "gmac"
;
+ mediatek,
ephy-base = /bits/ 8 <12>
;
};
&wmac {
};
&wmac {
@@
-207,3
+205,13
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};