[openwrt/openwrt] ramips: use proper name for RAVPower RP-WD03
LEDE Commits
lede-commits at lists.infradead.org
Fri Sep 11 19:25:25 EDT 2020
adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/a4e5b8897a922802acf3587d401627fd6f2c0c27
commit a4e5b8897a922802acf3587d401627fd6f2c0c27
Author: Adrian Schmutzler <freifunk at adrianschmutzler.de>
AuthorDate: Fri Sep 11 17:09:44 2020 +0200
ramips: use proper name for RAVPower RP-WD03
The proper model name is RP-WD03 (i.e. with the RP- prefix).
Adjust all names to that.
Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
.../{mt7620n_ravpower_wd03.dts => mt7620n_ravpower_rp-wd03.dts} | 8 ++++----
target/linux/ramips/image/mt7620.mk | 9 +++++----
target/linux/ramips/mt7620/base-files/etc/board.d/02_network | 2 +-
.../ramips/mt7620/base-files/etc/uci-defaults/04_led_migration | 3 +++
4 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/target/linux/ramips/dts/mt7620n_ravpower_wd03.dts b/target/linux/ramips/dts/mt7620n_ravpower_rp-wd03.dts
similarity index 90%
rename from target/linux/ramips/dts/mt7620n_ravpower_wd03.dts
rename to target/linux/ramips/dts/mt7620n_ravpower_rp-wd03.dts
index f67f186be1..31ecd4dd85 100644
--- a/target/linux/ramips/dts/mt7620n_ravpower_wd03.dts
+++ b/target/linux/ramips/dts/mt7620n_ravpower_rp-wd03.dts
@@ -6,8 +6,8 @@
#include <dt-bindings/input/input.h>
/ {
- compatible = "ravpower,wd03", "ralink,mt7620n-soc";
- model = "Ravpower WD03";
+ compatible = "ravpower,rp-wd03", "ralink,mt7620n-soc";
+ model = "RAVPower RP-WD03";
chosen {
bootargs = "console=ttyS0,115200";
@@ -17,12 +17,12 @@
compatible = "gpio-leds";
green-wifi {
- label = "wd03:green:wifi";
+ label = "rp-wd03:green:wifi";
gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>;
};
blue-wifi {
- label = "wd03:blue:wifi";
+ label = "rp-wd03:blue:wifi";
gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>;
};
};
diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk
index 5b9dd16bce..a3a468324b 100644
--- a/target/linux/ramips/image/mt7620.mk
+++ b/target/linux/ramips/image/mt7620.mk
@@ -924,15 +924,16 @@ define Device/ralink_mt7620a-v22sg-evb
endef
TARGET_DEVICES += ralink_mt7620a-v22sg-evb
-define Device/ravpower_wd03
+define Device/ravpower_rp-wd03
SOC := mt7620n
IMAGE_SIZE := 7872k
- DEVICE_VENDOR := Ravpower
- DEVICE_MODEL := WD03
+ DEVICE_VENDOR := RAVPower
+ DEVICE_MODEL := RP-WD03
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
+ SUPPORTED_DEVICES += ravpower,wd03
DEFAULT := n
endef
-TARGET_DEVICES += ravpower_wd03
+TARGET_DEVICES += ravpower_rp-wd03
define Device/sanlinking_d240
SOC := mt7620a
diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
index 3c77e6ad30..3fdd42bbff 100755
--- a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
@@ -60,7 +60,7 @@ ramips_setup_interfaces()
planex,cs-qr10|\
planex,mzk-ex300np|\
planex,mzk-ex750np|\
- ravpower,wd03|\
+ ravpower,rp-wd03|\
sercomm,na930|\
tplink,re200-v1|\
tplink,re210-v1|\
diff --git a/target/linux/ramips/mt7620/base-files/etc/uci-defaults/04_led_migration b/target/linux/ramips/mt7620/base-files/etc/uci-defaults/04_led_migration
index 16ccd5cfef..0f2e08cf7f 100644
--- a/target/linux/ramips/mt7620/base-files/etc/uci-defaults/04_led_migration
+++ b/target/linux/ramips/mt7620/base-files/etc/uci-defaults/04_led_migration
@@ -13,6 +13,9 @@ lenovo,newifi-y1s)
netgear,wn3000rp-v3)
migrate_leds "^wn3000rpv3:=wn3000rp-v3:"
;;
+ravpower,rp-wd03)
+ migrate_leds "^wd03:=rp-wd03:"
+ ;;
tplink,archer-c2-v1)
migrate_leds "^c2-v1:=archer-c2-v1:"
;;
More information about the lede-commits
mailing list