How do I expose and control PM_GPIO2 to sysfs?
The generic GPIO could be controlled by exporting to sysfs with number + 902
PM_GPIO2 does not know the number.
To find the number in the dtsi file
pm-gpio-tset = <& pm8916_gpios 2 0>;
If added, the output will be “897”.
Export gpio 897 to sysfs.
But I can not control.
Please let us know how to expose and control PM_GPIO2 to sysfs.
pm8916_gpios looks like this:
&pm8916_gpios {
gpio@c100 { /* GPIO 2 /
qcom,mode = <1>; / Digital output /
qcom,pull = <4>; / Pull down /
qcom,vin-sel = <2>; / VIN 2*/
qcom,src-sel = <1>; /* GPIO /
qcom,master-en = <1>; / Enable GPIO */
status = “okay”;
};