aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/boot/dts/qcom-apq8064.dtsi63
1 files changed, 63 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi
index 3ca96e361878..5341a39c0392 100644
--- a/arch/arm/boot/dts/qcom-apq8064.dtsi
+++ b/arch/arm/boot/dts/qcom-apq8064.dtsi
@@ -316,6 +316,23 @@
316 }; 316 };
317 }; 317 };
318 318
319
320 /*
321 * These channels from the ADC are simply hardware monitors.
322 * That is why the ADC is referred to as "HKADC" - HouseKeeping
323 * ADC.
324 */
325 iio-hwmon {
326 compatible = "iio-hwmon";
327 io-channels = <&xoadc 0x00 0x01>, /* Battery */
328 <&xoadc 0x00 0x02>, /* DC in (charger) */
329 <&xoadc 0x00 0x04>, /* VPH the main system voltage */
330 <&xoadc 0x00 0x0b>, /* Die temperature */
331 <&xoadc 0x00 0x0c>, /* Reference voltage 1.25V */
332 <&xoadc 0x00 0x0d>, /* Reference voltage 0.625V */
333 <&xoadc 0x00 0x0e>; /* Charger temperature */
334 };
335
319 soc: soc { 336 soc: soc {
320 #address-cells = <1>; 337 #address-cells = <1>;
321 #size-cells = <1>; 338 #size-cells = <1>;
@@ -770,6 +787,52 @@
770 debounce = <15625>; 787 debounce = <15625>;
771 pull-up; 788 pull-up;
772 }; 789 };
790
791 xoadc: xoadc@197 {
792 compatible = "qcom,pm8921-adc";
793 reg = <197>;
794 interrupts-extended = <&pmicintc 78 IRQ_TYPE_EDGE_RISING>;
795 #address-cells = <2>;
796 #size-cells = <0>;
797 #io-channel-cells = <2>;
798
799 vcoin: adc-channel@00 {
800 reg = <0x00 0x00>;
801 };
802 vbat: adc-channel@01 {
803 reg = <0x00 0x01>;
804 };
805 dcin: adc-channel@02 {
806 reg = <0x00 0x02>;
807 };
808 vph_pwr: adc-channel@04 {
809 reg = <0x00 0x04>;
810 };
811 batt_therm: adc-channel@08 {
812 reg = <0x00 0x08>;
813 };
814 batt_id: adc-channel@09 {
815 reg = <0x00 0x09>;
816 };
817 usb_vbus: adc-channel@0a {
818 reg = <0x00 0x0a>;
819 };
820 die_temp: adc-channel@0b {
821 reg = <0x00 0x0b>;
822 };
823 ref_625mv: adc-channel@0c {
824 reg = <0x00 0x0c>;
825 };
826 ref_1250mv: adc-channel@0d {
827 reg = <0x00 0x0d>;
828 };
829 chg_temp: adc-channel@0e {
830 reg = <0x00 0x0e>;
831 };
832 ref_muxoff: adc-channel@0f {
833 reg = <0x00 0x0f>;
834 };
835 };
773 }; 836 };
774 }; 837 };
775 838