projects
/
openwrt
/
staging
/
jow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: clean up useless dts partition labels
[openwrt/staging/jow.git]
/
target
/
linux
/
ramips
/
dts
/
mt7628an_tplink_tl-mr3020-v3.dts
diff --git
a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts
b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts
index f586b07d277a81ceae594ea0c7514c767a5e3774..ce434e601164bce624e6b78aeeb95463792c2443 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts
+++ b/
target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts
@@
-2,6
+2,7
@@
#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 <dt-bindings/leds/common.h>
/ {
compatible = "tplink,tl-mr3020-v3", "mediatek,mt7628an-soc";
/ {
compatible = "tplink,tl-mr3020-v3", "mediatek,mt7628an-soc";
@@
-12,6
+13,7
@@
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
+ label-mac-device = ðernet;
};
chosen {
};
chosen {
@@
-46,7
+48,8
@@
compatible = "gpio-leds";
led_power: power {
compatible = "gpio-leds";
led_power: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
default-state = "on";
};
gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
default-state = "on";
};
@@
-59,21
+62,35
@@
};
wlan {
};
wlan {
- label = "green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wps {
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wps {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
lan {
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
lan {
- label = "green:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
};
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
};
+
+ gpio_export {
+ compatible = "gpio-export";
+ #size-cells = <0>;
+
+ usbpower {
+ gpio-export,name = "usbpower";
+ gpio-export,output = <1>;
+ gpios = <&gpio 39 GPIO_ACTIVE_HIGH>;
+ };
+ };
};
&spi0 {
};
&spi0 {
@@
-82,7
+99,8
@@
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <10000000>;
+ spi-max-frequency = <50000000>;
+ m25p,fast-read;
partitions {
compatible = "fixed-partitions";
partitions {
compatible = "fixed-partitions";
@@
-107,10
+125,24
@@
read-only;
};
read-only;
};
-
factory:
partition@7d0000 {
+ partition@7d0000 {
label = "factory";
reg = <0x7d0000 0x30000>;
read-only;
label = "factory";
reg = <0x7d0000 0x30000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_20000: eeprom@20000 {
+ reg = <0x20000 0x400>;
+ };
+
+ macaddr_factory_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
+ };
};
};
};
};
};
};
@@
-118,7
+150,7
@@
&state_default {
gpio {
&state_default {
gpio {
- groups = "i2s", "refclk", "wdt", "p2led_an", "p1led_an", "p0led_an", "wled_an";
+ groups = "i2s", "refclk", "wdt", "p
4led_an", "p
2led_an", "p1led_an", "p0led_an", "wled_an";
function = "gpio";
};
};
function = "gpio";
};
};
@@
-126,23
+158,11
@@
&wmac {
status = "okay";
&wmac {
status = "okay";
- mediatek,mtd-eeprom = <&factory 0x20000>;
-
- nvmem-cells = <&macaddr_factory_f100>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&eeprom_factory_20000>, <&macaddr_factory_f100>;
+ nvmem-cell-names = "eeprom", "mac-address";
};
ðernet {
nvmem-cells = <&macaddr_factory_f100>;
nvmem-cell-names = "mac-address";
};
};
ðernet {
nvmem-cells = <&macaddr_factory_f100>;
nvmem-cell-names = "mac-address";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_f100: macaddr@f100 {
- reg = <0xf100 0x6>;
- };
-};