aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorShiji Yang <yangshiji66@qq.com>2022-12-12 11:18:41 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2022-12-17 21:08:14 +0100
commita7d8b54f86f572409b40c7ab4ad3982a1eabfdfe (patch)
treeddf07cca8965753f3c7dab4a768cc110939295a7 /target
parent53123b93b0a14deb43274c44ea473ea9b360acf3 (diff)
downloadupstream-a7d8b54f86f572409b40c7ab4ad3982a1eabfdfe.tar.gz
upstream-a7d8b54f86f572409b40c7ab4ad3982a1eabfdfe.tar.bz2
upstream-a7d8b54f86f572409b40c7ab4ad3982a1eabfdfe.zip
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@qq.com>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ramips/dts/mt7621_h3c_tx180x.dtsi8
1 files changed, 8 insertions, 0 deletions
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@1 {