RV1106上电GPIO状态
-
我在使用RV1106时,将GPIO3_C4引脚复用为普通IO,但是在上电后他的状态是高电平,我想修改成低电平怎么修改
您好,修改默认状态要配置设备树,参考
Code: Select all
/ {
//这段添加在根路径下
gpio3pc4: gpio3pc4 {
compatible = "regulator-fixed";
pinctrl-names = "default";
pinctrl-0 = <&gpio3_pc4>;
regulator-name = "gpio3_pc4";
regulator-always-on;
};
};
&pinctrl{
gpio {
gpio3_pc4: gpio3-pc4 {
rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
};

