xref: /openbmc/linux/arch/arm64/boot/dts/qcom/pmi8998.dtsi (revision f5c27da4)
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_gpio: gpios@c000 {
13			compatible = "qcom,pmi8998-gpio", "qcom,spmi-gpio";
14			reg = <0xc000>;
15			gpio-controller;
16			gpio-ranges = <&pmi8998_gpio 0 0 14>;
17			#gpio-cells = <2>;
18			interrupt-controller;
19			#interrupt-cells = <2>;
20		};
21	};
22
23	pmi8998_lsid1: pmic@3 {
24		compatible = "qcom,pmi8998", "qcom,spmi-pmic";
25		reg = <0x3 SPMI_USID>;
26		#address-cells = <1>;
27		#size-cells = <0>;
28
29		labibb {
30			compatible = "qcom,pmi8998-lab-ibb";
31
32			ibb: ibb {
33				interrupts = <0x3 0xdc 0x2 IRQ_TYPE_EDGE_RISING>,
34					     <0x3 0xdc 0x0 IRQ_TYPE_LEVEL_HIGH>;
35				interrupt-names = "sc-err", "ocp";
36			};
37
38			lab: lab {
39				interrupts = <0x3 0xde 0x1 IRQ_TYPE_EDGE_RISING>,
40					     <0x3 0xde 0x0 IRQ_TYPE_LEVEL_LOW>;
41				interrupt-names = "sc-err", "ocp";
42			};
43		};
44
45		pmi8998_lpg: pwm {
46			compatible = "qcom,pmi8998-lpg";
47
48			#address-cells = <1>;
49			#size-cells = <0>;
50			#pwm-cells = <2>;
51
52			status = "disabled";
53		};
54
55		pmi8998_wled: leds@d800 {
56			compatible = "qcom,pmi8998-wled";
57			reg = <0xd800>, <0xd900>;
58			interrupts = <0x3 0xd8 0x1 IRQ_TYPE_EDGE_RISING>,
59				     <0x3 0xd8 0x2 IRQ_TYPE_EDGE_RISING>;
60			interrupt-names = "ovp", "short";
61			label = "backlight";
62
63			status = "disabled";
64		};
65	};
66};
67