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>
chosen {
bootargs = "console=ttyS0,115200";
chosen {
bootargs = "console=ttyS0,115200";
+ bootargs-override = "console=ttyS0,115200";
+&state_default {
+ gpio {
+ groups = "jtag";
+ function = "gpio";
+ };
+};
+
&switch0 {
ports {
port@1 {
&switch0 {
ports {
port@1 {