RV1106上电GPIO状态

  • 您好,修改默认状态要配置设备树,参考

    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>;
    		};
    	};
    };