[openwrt/openwrt] ramips: improve support for H3C TX180x series devices
LEDE Commits
lede-commits at lists.infradead.org
Sat Dec 17 12:09:00 PST 2022
hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/a7d8b54f86f572409b40c7ab4ad3982a1eabfdfe
commit a7d8b54f86f572409b40c7ab4ad3982a1eabfdfe
Author: Shiji Yang <yangshiji66 at qq.com>
AuthorDate: Mon Dec 12 11:18:41 2022 +0000
ramips: improve support for H3C TX180x series devices
1. Explicitly declare gpio pin groups to ensure that gpio works properly.
2. Override bootargs in device tree to avoid modifying u-boot envs during
initial installation.
Tested on H3C TX1801 Plus
Signed-off-by: Shiji Yang <yangshiji66 at qq.com>
---
target/linux/ramips/dts/mt7621_h3c_tx180x.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/target/linux/ramips/dts/mt7621_h3c_tx180x.dtsi b/target/linux/ramips/dts/mt7621_h3c_tx180x.dtsi
index 61f2f8cc98..54d7908e40 100644
--- a/target/linux/ramips/dts/mt7621_h3c_tx180x.dtsi
+++ b/target/linux/ramips/dts/mt7621_h3c_tx180x.dtsi
@@ -16,6 +16,7 @@
chosen {
bootargs = "console=ttyS0,115200";
+ bootargs-override = "console=ttyS0,115200";
};
keys {
@@ -141,6 +142,13 @@
status = "disabled";
};
+&state_default {
+ gpio {
+ groups = "jtag";
+ function = "gpio";
+ };
+};
+
&switch0 {
ports {
port at 1 {
More information about the lede-commits
mailing list