mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
arm/dts: config GPIO6 of pm6375 to vbus ADC
use GPIO6 of pm6375 to read vbus voltage, so config gpio6 to 1:3 ADC Change-Id: I58c49d6aeb2a7a467fa8a8f40684e398094b789a Signed-off-by: mahj8 <mahj8@lenovo.com> Reviewed-on: https://gerrit.mot.com/2049596 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
b018c3ff8c
commit
d2789148c0
1 changed files with 26 additions and 0 deletions
|
|
@ -28,11 +28,37 @@
|
|||
};
|
||||
};
|
||||
|
||||
&pm6125_vadc {
|
||||
gpio6_div3{
|
||||
reg = <ADC5_GPIO3_DIV3>;
|
||||
label = "gpio3_div3";
|
||||
qcom,pre-scaling = <1 3>;
|
||||
};
|
||||
};
|
||||
|
||||
&pm6125_gpios {
|
||||
gpio6_adc{
|
||||
gpio6_adc_default:gpio6_adc_default{
|
||||
pins = "gpio6";
|
||||
function = "normal";
|
||||
bias-high-impedance;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&qupv3_se8_i2c {
|
||||
status = "okay";
|
||||
|
||||
sgm4154x: sgm4154x@3B {
|
||||
status = "okay";
|
||||
compatible = "sgm,sgm41542";
|
||||
reg = <0x3B>;
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&gpio6_adc_default>;
|
||||
io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>;
|
||||
io-channel-names = "gpio3_div3";
|
||||
|
||||
interrupt-parent = <&tlmm>;
|
||||
interrupts = <12 0>; //irq num base on hardware design
|
||||
sgm,irq-gpio = <&tlmm 12 0>; //irq num base on hardware design
|
||||
|
|
|
|||
Loading…
Reference in a new issue