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