功能:GPIO口控制需要在比较前面的时候可以在dts里面进行设置。
arch/arm64/boot/dts/rockchip/rk3399-tve1030g.dtsi
&cpu_l0 {
cpu-supply = <&vdd_cpu_l>;
phy-supply = <&vcc3v3_ssd>;
};
&cpu_l1 {
cpu-supply = <&vdd_cpu_l>;
};
&cpu_l2 {
cpu-supply = <&vdd_cpu_l>;
};
&cpu_l3 {
cpu-supply = <&vdd_cpu_l>;
};
vcc3v3_ssd: vcc3v3-3g-regulator {
compatible = "regulator-fixed";
enable-active-high;
regulator-always-on;
regulator-boot-on;
gpio = <&gpio4 RK_PC5 GPIO_ACTIVE_HIGH>;//gpio
pinctrl-names = "default";
pinctrl-0 = <&pcie_ssd_drv>;
regulator-name = "vcc3v3_ssd";
regulator-state-mem {
regulator-off-in-suspend;
};
};