[openwrt/openwrt] realtek: rename hpe,1920-8g-poe to match hardware

LEDE Commits lede-commits at lists.infradead.org
Sat Oct 14 11:37:08 PDT 2023


svanheule pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/2ce5521bd20213a42bfa655a4ae178ee0a97baba

commit 2ce5521bd20213a42bfa655a4ae178ee0a97baba
Author: Kevin Jilissen <info at kevinjilissen.nl>
AuthorDate: Sun Oct 8 16:56:40 2023 +0200

    realtek: rename hpe,1920-8g-poe to match hardware
    
    There are two hardware models of the HPE 1920-8g-poe switch. The version
    currently in the repository is the model with a PoE budget of 180W. In
    preparation of the addition of the 65W model, the existing model is
    renamed to clarify the hardware version it targets.
    
    As suggested by Pawel, the 'SUPPORTED_DEVICES' includes the old target
    name to enable an upgrade path of builds with the old name.
    
    Suggested-by: Pawel Dembicki <paweldembicki at gmail.com>
    Signed-off-by: Kevin Jilissen <info at kevinjilissen.nl>
    (cherry picked from commit 987c96e88927094ff61e83870f872f0560d8e5c1)
---
 target/linux/realtek/base-files/etc/board.d/02_network             | 4 ++--
 target/linux/realtek/base-files/etc/board.d/03_gpio_switches       | 2 +-
 ...tl8380_hpe_1920-8g-poe.dts => rtl8380_hpe_1920-8g-poe-180w.dts} | 4 ++--
 target/linux/realtek/image/rtl838x.mk                              | 7 ++++---
 4 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/target/linux/realtek/base-files/etc/board.d/02_network b/target/linux/realtek/base-files/etc/board.d/02_network
index 90b45abf94..84d3e68e48 100644
--- a/target/linux/realtek/base-files/etc/board.d/02_network
+++ b/target/linux/realtek/base-files/etc/board.d/02_network
@@ -31,7 +31,7 @@ lan_mac_end=""
 label_mac=""
 case $board in
 hpe,1920-8g|\
-hpe,1920-8g-poe|\
+hpe,1920-8g-poe-180w|\
 hpe,1920-16g|\
 hpe,1920-24g)
 	label_mac=$(mtd_get_mac_binary factory 0x68)
@@ -67,7 +67,7 @@ done
 [ -n "$label_mac" ] && ucidef_set_label_macaddr $label_mac
 
 case $board in
-hpe,1920-8g-poe)
+hpe,1920-8g-poe-180w)
 	ucidef_set_poe 180 "$lan_list_rev" "lan9 lan10"
 	;;
 netgear,gs110tpp-v1)
diff --git a/target/linux/realtek/base-files/etc/board.d/03_gpio_switches b/target/linux/realtek/base-files/etc/board.d/03_gpio_switches
index abfcb8e592..1e49d89c64 100644
--- a/target/linux/realtek/base-files/etc/board.d/03_gpio_switches
+++ b/target/linux/realtek/base-files/etc/board.d/03_gpio_switches
@@ -6,7 +6,7 @@ board_config_update
 board=$(board_name)
 
 case "$board" in
-hpe,1920-8g-poe)
+hpe,1920-8g-poe-180w)
 	ucidef_add_gpio_switch "fan_ctrl" "Fan control" "456" "0"
 	;;
 esac
diff --git a/target/linux/realtek/dts-5.15/rtl8380_hpe_1920-8g-poe.dts b/target/linux/realtek/dts-5.15/rtl8380_hpe_1920-8g-poe-180w.dts
similarity index 55%
rename from target/linux/realtek/dts-5.15/rtl8380_hpe_1920-8g-poe.dts
rename to target/linux/realtek/dts-5.15/rtl8380_hpe_1920-8g-poe-180w.dts
index 3b00c31411..6398e6d034 100644
--- a/target/linux/realtek/dts-5.15/rtl8380_hpe_1920-8g-poe.dts
+++ b/target/linux/realtek/dts-5.15/rtl8380_hpe_1920-8g-poe-180w.dts
@@ -3,8 +3,8 @@
 #include "rtl8380_hpe_1920-8g.dtsi"
 
 / {
-	compatible = "hpe,1920-8g-poe", "realtek,rtl838x-soc";
-	model = "HPE 1920-8G-PoE+ (JG922A)";
+	compatible = "hpe,1920-8g-poe-180w", "realtek,rtl838x-soc";
+	model = "HPE 1920-8G-PoE+ 180W (JG922A)";
 };
 
 &uart1 {
diff --git a/target/linux/realtek/image/rtl838x.mk b/target/linux/realtek/image/rtl838x.mk
index 73930f4d6f..c0b9c70bb6 100644
--- a/target/linux/realtek/image/rtl838x.mk
+++ b/target/linux/realtek/image/rtl838x.mk
@@ -99,13 +99,14 @@ define Device/hpe_1920-8g
 endef
 TARGET_DEVICES += hpe_1920-8g
 
-define Device/hpe_1920-8g-poe
+define Device/hpe_1920-8g-poe-180w
   $(Device/hpe_1920)
   SOC := rtl8380
-  DEVICE_MODEL := 1920-8G-PoE+ (JG922A)
+  DEVICE_MODEL := 1920-8G-PoE+ 180W (JG922A)
   H3C_DEVICE_ID := 0x00010025
+  SUPPORTED_DEVICES += hpe_1920-8g-poe
 endef
-TARGET_DEVICES += hpe_1920-8g-poe
+TARGET_DEVICES += hpe_1920-8g-poe-180w
 
 define Device/hpe_1920-16g
   $(Device/hpe_1920)




More information about the lede-commits mailing list