xref: /linux/arch/arm64/boot/dts/qcom/pm6150l.dtsi (revision 1504b6f97bad166b484d6f27dc99746fdca5f467)
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@0 {
24				reg = <ADC5_REF_GND>;
25				qcom,pre-scaling = <1 1>;
26				label = "ref_gnd";
27			};
28
29			adc-chan@1 {
30				reg = <ADC5_1P25VREF>;
31				qcom,pre-scaling = <1 1>;
32				label = "vref_1p25";
33			};
34
35			adc-chan@6 {
36				reg = <ADC5_DIE_TEMP>;
37				qcom,pre-scaling = <1 1>;
38				label = "die_temp";
39			};
40
41			adc-chan@83 {
42				reg = <ADC5_VPH_PWR>;
43				qcom,pre-scaling = <1 3>;
44				label = "vph_pwr";
45			};
46		};
47
48		pm6150l_adc_tm: adc-tm@3500 {
49			compatible = "qcom,spmi-adc-tm5";
50			reg = <0x3500>;
51			interrupts = <0x4 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
52			#thermal-sensor-cells = <1>;
53			#address-cells = <1>;
54			#size-cells = <0>;
55			status = "disabled";
56		};
57
58		pm6150l_gpio: gpios@c000 {
59			compatible = "qcom,pm6150l-gpio", "qcom,spmi-gpio";
60			reg = <0xc000>;
61			gpio-controller;
62			gpio-ranges = <&pm6150l_gpio 0 0 12>;
63			#gpio-cells = <2>;
64			interrupt-controller;
65			#interrupt-cells = <2>;
66		};
67	};
68
69	pm6150l_lsid5: pmic@5 {
70		compatible = "qcom,pm6150l", "qcom,spmi-pmic";
71		reg = <0x5 SPMI_USID>;
72		#address-cells = <1>;
73		#size-cells = <0>;
74
75		pm6150l_wled: leds@d800 {
76			compatible = "qcom,pm6150l-wled";
77			reg = <0xd800>, <0xd900>;
78			interrupts = <0x5 0xd8 0x1 IRQ_TYPE_EDGE_RISING>;
79			interrupt-names = "ovp";
80			label = "backlight";
81
82			status = "disabled";
83		};
84	};
85};
86