xref: /openbmc/linux/arch/arm64/boot/dts/qcom/pmi8998.dtsi (revision 47ebd031)
1// SPDX-License-Identifier: GPL-2.0
2#include <dt-bindings/interrupt-controller/irq.h>
3#include <dt-bindings/spmi/spmi.h>
4
5&spmi_bus {
6	pmi8998_lsid0: pmic@2 {
7		compatible = "qcom,pmi8998", "qcom,spmi-pmic";
8		reg = <0x2 SPMI_USID>;
9		#address-cells = <1>;
10		#size-cells = <0>;
11
12		pmi8998_gpios: gpio@c000 {
13			compatible = "qcom,pmi8998-gpio", "qcom,spmi-gpio";
14			reg = <0xc000>;
15			gpio-controller;
16			gpio-ranges = <&pmi8998_gpios 0 0 14>;
17			#gpio-cells = <2>;
18			interrupt-controller;
19			#interrupt-cells = <2>;
20		};
21
22		pmi8998_rradc: adc@4500 {
23			compatible = "qcom,pmi8998-rradc";
24			reg = <0x4500>;
25			#io-channel-cells = <1>;
26
27			status = "disabled";
28		};
29	};
30
31	pmi8998_lsid1: pmic@3 {
32		compatible = "qcom,pmi8998", "qcom,spmi-pmic";
33		reg = <0x3 SPMI_USID>;
34		#address-cells = <1>;
35		#size-cells = <0>;
36
37		labibb {
38			compatible = "qcom,pmi8998-lab-ibb";
39
40			ibb: ibb {
41				interrupts = <0x3 0xdc 0x2 IRQ_TYPE_EDGE_RISING>,
42					     <0x3 0xdc 0x0 IRQ_TYPE_LEVEL_HIGH>;
43				interrupt-names = "sc-err", "ocp";
44			};
45
46			lab: lab {
47				interrupts = <0x3 0xde 0x1 IRQ_TYPE_EDGE_RISING>,
48					     <0x3 0xde 0x0 IRQ_TYPE_LEVEL_LOW>;
49				interrupt-names = "sc-err", "ocp";
50			};
51		};
52
53		pmi8998_lpg: pwm {
54			compatible = "qcom,pmi8998-lpg";
55
56			#address-cells = <1>;
57			#size-cells = <0>;
58			#pwm-cells = <2>;
59
60			status = "disabled";
61		};
62
63		pmi8998_wled: leds@d800 {
64			compatible = "qcom,pmi8998-wled";
65			reg = <0xd800>, <0xd900>;
66			interrupts = <0x3 0xd8 0x1 IRQ_TYPE_EDGE_RISING>,
67				     <0x3 0xd8 0x2 IRQ_TYPE_EDGE_RISING>;
68			interrupt-names = "ovp", "short";
69			label = "backlight";
70
71			status = "disabled";
72		};
73	};
74};
75