1*9d004cdaSDmitry Baryshkov// SPDX-License-Identifier: BSD-3-Clause 2*9d004cdaSDmitry Baryshkov 3*9d004cdaSDmitry Baryshkov/* 4*9d004cdaSDmitry Baryshkov * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved. 5*9d004cdaSDmitry Baryshkov * Copyright (c) 2020, Linaro Limited 6*9d004cdaSDmitry Baryshkov */ 7*9d004cdaSDmitry Baryshkov 8*9d004cdaSDmitry Baryshkov#include <dt-bindings/iio/qcom,spmi-vadc.h> 9*9d004cdaSDmitry Baryshkov#include <dt-bindings/interrupt-controller/irq.h> 10*9d004cdaSDmitry Baryshkov#include <dt-bindings/spmi/spmi.h> 11*9d004cdaSDmitry Baryshkov 12*9d004cdaSDmitry Baryshkov&spmi_bus { 13*9d004cdaSDmitry Baryshkov pmic@8 { 14*9d004cdaSDmitry Baryshkov compatible = "qcom,pmx55", "qcom,spmi-pmic"; 15*9d004cdaSDmitry Baryshkov reg = <0x8 SPMI_USID>; 16*9d004cdaSDmitry Baryshkov #address-cells = <1>; 17*9d004cdaSDmitry Baryshkov #size-cells = <0>; 18*9d004cdaSDmitry Baryshkov 19*9d004cdaSDmitry Baryshkov pon@800 { 20*9d004cdaSDmitry Baryshkov compatible = "qcom,pm8916-pon"; 21*9d004cdaSDmitry Baryshkov reg = <0x0800>; 22*9d004cdaSDmitry Baryshkov 23*9d004cdaSDmitry Baryshkov status = "disabled"; 24*9d004cdaSDmitry Baryshkov }; 25*9d004cdaSDmitry Baryshkov 26*9d004cdaSDmitry Baryshkov pmx55_temp: temp-alarm@2400 { 27*9d004cdaSDmitry Baryshkov compatible = "qcom,spmi-temp-alarm"; 28*9d004cdaSDmitry Baryshkov reg = <0x2400>; 29*9d004cdaSDmitry Baryshkov interrupts = <0x8 0x24 0x0 IRQ_TYPE_EDGE_BOTH>; 30*9d004cdaSDmitry Baryshkov io-channels = <&pmx55_adc ADC5_DIE_TEMP>; 31*9d004cdaSDmitry Baryshkov io-channel-names = "thermal"; 32*9d004cdaSDmitry Baryshkov #thermal-sensor-cells = <0>; 33*9d004cdaSDmitry Baryshkov }; 34*9d004cdaSDmitry Baryshkov 35*9d004cdaSDmitry Baryshkov pmx55_adc: adc@3100 { 36*9d004cdaSDmitry Baryshkov compatible = "qcom,spmi-adc5"; 37*9d004cdaSDmitry Baryshkov reg = <0x3100>; 38*9d004cdaSDmitry Baryshkov #address-cells = <1>; 39*9d004cdaSDmitry Baryshkov #size-cells = <0>; 40*9d004cdaSDmitry Baryshkov #io-channel-cells = <1>; 41*9d004cdaSDmitry Baryshkov interrupts = <0x8 0x31 0x0 IRQ_TYPE_EDGE_RISING>; 42*9d004cdaSDmitry Baryshkov 43*9d004cdaSDmitry Baryshkov channel@0 { 44*9d004cdaSDmitry Baryshkov reg = <ADC5_REF_GND>; 45*9d004cdaSDmitry Baryshkov qcom,pre-scaling = <1 1>; 46*9d004cdaSDmitry Baryshkov label = "ref_gnd"; 47*9d004cdaSDmitry Baryshkov }; 48*9d004cdaSDmitry Baryshkov 49*9d004cdaSDmitry Baryshkov channel@1 { 50*9d004cdaSDmitry Baryshkov reg = <ADC5_1P25VREF>; 51*9d004cdaSDmitry Baryshkov qcom,pre-scaling = <1 1>; 52*9d004cdaSDmitry Baryshkov label = "vref_1p25"; 53*9d004cdaSDmitry Baryshkov }; 54*9d004cdaSDmitry Baryshkov 55*9d004cdaSDmitry Baryshkov channel@6 { 56*9d004cdaSDmitry Baryshkov reg = <ADC5_DIE_TEMP>; 57*9d004cdaSDmitry Baryshkov qcom,pre-scaling = <1 1>; 58*9d004cdaSDmitry Baryshkov label = "die_temp"; 59*9d004cdaSDmitry Baryshkov }; 60*9d004cdaSDmitry Baryshkov 61*9d004cdaSDmitry Baryshkov channel@9 { 62*9d004cdaSDmitry Baryshkov reg = <ADC5_CHG_TEMP>; 63*9d004cdaSDmitry Baryshkov qcom,pre-scaling = <1 1>; 64*9d004cdaSDmitry Baryshkov label = "chg_temp"; 65*9d004cdaSDmitry Baryshkov }; 66*9d004cdaSDmitry Baryshkov }; 67*9d004cdaSDmitry Baryshkov 68*9d004cdaSDmitry Baryshkov pmx55_gpios: gpio@c000 { 69*9d004cdaSDmitry Baryshkov compatible = "qcom,pmx55-gpio", "qcom,spmi-gpio"; 70*9d004cdaSDmitry Baryshkov reg = <0xc000>; 71*9d004cdaSDmitry Baryshkov gpio-controller; 72*9d004cdaSDmitry Baryshkov gpio-ranges = <&pmx55_gpios 0 0 11>; 73*9d004cdaSDmitry Baryshkov #gpio-cells = <2>; 74*9d004cdaSDmitry Baryshkov interrupt-controller; 75*9d004cdaSDmitry Baryshkov #interrupt-cells = <2>; 76*9d004cdaSDmitry Baryshkov }; 77*9d004cdaSDmitry Baryshkov }; 78*9d004cdaSDmitry Baryshkov 79*9d004cdaSDmitry Baryshkov pmic@9 { 80*9d004cdaSDmitry Baryshkov compatible = "qcom,pmx55", "qcom,spmi-pmic"; 81*9d004cdaSDmitry Baryshkov reg = <0x9 SPMI_USID>; 82*9d004cdaSDmitry Baryshkov #address-cells = <1>; 83*9d004cdaSDmitry Baryshkov #size-cells = <0>; 84*9d004cdaSDmitry Baryshkov }; 85*9d004cdaSDmitry Baryshkov}; 86