ramips: improve support for H3C TX180x series devices
authorShiji Yang <yangshiji66@qq.com>
Mon, 12 Dec 2022 11:18:41 +0000 (11:18 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 17 Dec 2022 20:08:14 +0000 (21:08 +0100)
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>
target/linux/ramips/dts/mt7621_h3c_tx180x.dtsi

index 61f2f8cc98c01a34df4e4d95398df5497c4fe10d..54d7908e406a2ad58cc35a5851d6cb939a76c990 100644 (file)
@@ -16,6 +16,7 @@
 
        chosen {
                bootargs = "console=ttyS0,115200";
+               bootargs-override = "console=ttyS0,115200";
        };
 
        keys {
        status = "disabled";
 };
 
+&state_default {
+       gpio {
+               groups = "jtag";
+               function = "gpio";
+       };
+};
+
 &switch0 {
        ports {
                port@1 {