1// SPDX-License-Identifier: BSD-3-Clause 2// Copyright (c) 2019, The Linux Foundation. All rights reserved. 3 4#include <dt-bindings/interrupt-controller/irq.h> 5#include <dt-bindings/spmi/spmi.h> 6 7&spmi_bus { 8 pm6150l_lsid4: pmic@4 { 9 compatible = "qcom,pm6150l", "qcom,spmi-pmic"; 10 reg = <0x4 SPMI_USID>; 11 #address-cells = <1>; 12 #size-cells = <0>; 13 14 pm6150l_adc: adc@3100 { 15 compatible = "qcom,spmi-adc5"; 16 reg = <0x3100>; 17 interrupts = <0x4 0x31 0x0 IRQ_TYPE_EDGE_RISING>; 18 #address-cells = <1>; 19 #size-cells = <0>; 20 #io-channel-cells = <1>; 21 22 adc-chan@6 { 23 reg = <ADC5_DIE_TEMP>; 24 label = "die_temp"; 25 }; 26 }; 27 28 pm6150l_adc_tm: adc-tm@3500 { 29 compatible = "qcom,spmi-adc-tm5"; 30 reg = <0x3500>; 31 interrupts = <0x4 0x35 0x0 IRQ_TYPE_EDGE_RISING>; 32 #thermal-sensor-cells = <1>; 33 #address-cells = <1>; 34 #size-cells = <0>; 35 status = "disabled"; 36 }; 37 38 pm6150l_gpio: gpios@c000 { 39 compatible = "qcom,pm6150l-gpio", "qcom,spmi-gpio"; 40 reg = <0xc000>; 41 gpio-controller; 42 gpio-ranges = <&pm6150l_gpio 0 0 12>; 43 #gpio-cells = <2>; 44 interrupt-controller; 45 #interrupt-cells = <2>; 46 }; 47 }; 48 49 pm6150l_lsid5: pmic@5 { 50 compatible = "qcom,pm6150l", "qcom,spmi-pmic"; 51 reg = <0x5 SPMI_USID>; 52 #address-cells = <1>; 53 #size-cells = <0>; 54 }; 55}; 56