mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
ARM: dts: msm: add ADC device instance for PMR735A on holi-pm6125
Add a SW-calibrated ADC instance for PMR735A on holi-pm6125 which can be used if there is a requirement to read any ADC channels on PMR735A. Change-Id: I8bff473ca2605a3601283865138dabf0589b903e
This commit is contained in:
parent
f21c29f371
commit
85fa372bd3
1 changed files with 46 additions and 0 deletions
|
|
@ -20,6 +20,52 @@
|
|||
};
|
||||
};
|
||||
|
||||
&spmi_bus {
|
||||
qcom,pmr735a@4 {
|
||||
/* Example configuration to enable PMR735A VADC in standalone mode */
|
||||
pmr735a_vadc: vadc@3600 {
|
||||
compatible = "qcom,spmi-adc7-sw-calib";
|
||||
reg = <0x3600>, <0x3900>;
|
||||
reg-names = "adc5-sw-calib-pbs-base", "adc5-sw-calib-cmn-base";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
interrupts = <0x4 0x36 0x0 IRQ_TYPE_EDGE_RISING>;
|
||||
interrupt-names = "eoc";
|
||||
#io-channel-cells = <1>;
|
||||
io-channel-ranges;
|
||||
status = "disabled";
|
||||
|
||||
/* PMR735a Channel nodes */
|
||||
pmr735a_ref_gnd {
|
||||
reg = <ADC7_REF_GND>;
|
||||
label = "pmr735a_ref_gnd";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
qcom,no-cal;
|
||||
};
|
||||
|
||||
pmr735a_vref_1p25 {
|
||||
reg = <ADC7_1P25VREF>;
|
||||
label = "pmr735a_vref_1p25";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
qcom,no-cal;
|
||||
};
|
||||
|
||||
pmr735a_vref_vdd {
|
||||
reg = <ADC7_VREF_VADC>;
|
||||
label = "pmr735a_vref_vdd";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
qcom,no-cal;
|
||||
};
|
||||
|
||||
pmr735a_die_temp {
|
||||
reg = <ADC7_DIE_TEMP>;
|
||||
label = "pmr735a_die_temp";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pm6125_vadc {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <
|
||||
|
|
|
|||
Loading…
Reference in a new issue