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
7	pmic@2 {
8		compatible = "qcom,pmi8994", "qcom,spmi-pmic";
9		reg = <0x2 SPMI_USID>;
10		#address-cells = <1>;
11		#size-cells = <0>;
12
13		pmi8994_gpios: gpios@c000 {
14			compatible = "qcom,pmi8994-gpio", "qcom,spmi-gpio";
15			reg = <0xc000>;
16			gpio-controller;
17			gpio-ranges = <&pmi8994_gpios 0 0 10>;
18			#gpio-cells = <2>;
19			interrupt-controller;
20			#interrupt-cells = <2>;
21		};
22	};
23
24	pmic@3 {
25		compatible = "qcom,pmi8994", "qcom,spmi-pmic";
26		reg = <0x3 SPMI_USID>;
27		#address-cells = <1>;
28		#size-cells = <0>;
29
30		pmi8994_spmi_regulators: regulators {
31			compatible = "qcom,pmi8994-regulators";
32			#address-cells = <1>;
33			#size-cells = <1>;
34		};
35
36		pmi8994_wled: wled@d800 {
37			compatible = "qcom,pmi8994-wled";
38			reg = <0xd800 0xd900>;
39			interrupts = <3 0xd8 0x02 IRQ_TYPE_EDGE_RISING>;
40			interrupt-names = "short";
41			qcom,cabc;
42			qcom,external-pfet;
43			status = "disabled";
44		};
45	};
46};
47