找某个设备的设备树电源管理节点

2019-07-13 22:51发布

以tp为例
1.找到tp的设备节点,同时找到其中的vdd_ana-supply和vcc_i2c-supply: goodix_ts@40 { ... vdd_ana-supply = <&pm8916_l17>; vcc_i2c-supply = <&pm8916_l6>; ... }; 2.打开电源管理设备树,搜索pm8916_l17和pm8916_l6,可以添加regulator-always-on来让这设备常开
msm8916-regulator.dtsi
中找到了 rpm-regulator-ldoa6 { status = "okay"; pm8916_l6: regulator-l6 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; qcom,init-voltage = <1800000>; status = "okay"; regulator-always-on; }; }; rpm-regulator-ldoa17 { status = "okay"; pm8916_l17: regulator-l17 { regulator-min-microvolt = <2850000>; regulator-max-microvolt = <2850000>; qcom,init-voltage = <2850000>; status = "okay"; regulator-always-on; }; };