projects
/
openwrt
/
staging
/
hauke.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ath79: qca: remove mac-address-increment
[openwrt/staging/hauke.git]
/
target
/
linux
/
ath79
/
dts
/
qca9531_tplink_tl-wr902ac-v1.dts
diff --git
a/target/linux/ath79/dts/qca9531_tplink_tl-wr902ac-v1.dts
b/target/linux/ath79/dts/qca9531_tplink_tl-wr902ac-v1.dts
index 6d9cdf8b3fd68bb94b5039635f0f4e0646f0dd1a..048099e2604d63dbae1faa61c0895e3063dbb19f 100644
(file)
--- a/
target/linux/ath79/dts/qca9531_tplink_tl-wr902ac-v1.dts
+++ b/
target/linux/ath79/dts/qca9531_tplink_tl-wr902ac-v1.dts
@@
-1,11
+1,10
@@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
+
+#include "qca953x.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
-#include "qca953x.dtsi"
-
/ {
compatible = "tplink,tl-wr902ac-v1", "qca,qca9531";
model = "TP-Link TL-WR902AC v1";
/ {
compatible = "tplink,tl-wr902ac-v1", "qca,qca9531";
model = "TP-Link TL-WR902AC v1";
@@
-22,36
+21,36
@@
compatible = "gpio-leds";
led_power: power {
compatible = "gpio-leds";
led_power: power {
- label = "
tp-link:
green:power";
+ label = "green:power";
gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
internet {
gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
internet {
- label = "
tp-link:
green:internet";
+ label = "green:internet";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
wlan2g {
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
wlan2g {
- label = "
tp-link:
green:wlan2g";
+ label = "green:wlan2g";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
usb {
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
usb {
- label = "
tp-link:
green:usb";
+ label = "green:usb";
gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
trigger-sources = <&hub_port0>;
linux,default-trigger = "usbport";
};
wps {
gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
trigger-sources = <&hub_port0>;
linux,default-trigger = "usbport";
};
wps {
- label = "
tp-link:
green:wps";
+ label = "green:wps";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
lan {
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
lan {
- label = "
tp-link:
green:lan";
+ label = "green:lan";
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
};
};
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
};
};
@@
-97,10
+96,6
@@
};
};
};
};
-&uart {
- status = "okay";
-};
-
&spi {
status = "okay";
&spi {
status = "okay";
@@
-130,6
+125,18
@@
label = "info";
reg = <0x750000 0x010000>;
read-only;
label = "info";
reg = <0x750000 0x010000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_info_8: macaddr@8 {
+ compatible = "mac-base";
+ reg = <0x8 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
+ };
};
partition@760000 {
};
partition@760000 {
@@
-152,8
+159,8
@@
phy-handle = <&swphy4>;
phy-handle = <&swphy4>;
-
mtd-mac-address = <&info 0x8
>;
-
mtd-mac-address-increment = <1>
;
+
nvmem-cells = <&macaddr_info_8 1
>;
+
nvmem-cell-names = "mac-address"
;
};
ð1 {
};
ð1 {
@@
-164,7
+171,8
@@
status = "okay";
mtd-cal-data = <&art 0x1000>;
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8 0>;
+ nvmem-cell-names = "mac-address";
};
&pcie0 {
};
&pcie0 {
@@
-181,12
+189,5
@@
};
&usb0 {
};
&usb0 {
- #address-cells = <1>;
- #size-cells = <0>;
status = "okay";
status = "okay";
-
- hub_port0: port@1 {
- reg = <1>;
- #trigger-source-cells = <0>;
- };
};
};