xref: /linux/arch/arm64/boot/dts/qcom/pm8998.dtsi (revision e9f0878c4b2004ac19581274c1ae4c61ae3ca70e)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/* Copyright 2018 Google LLC. */
3
4#include <dt-bindings/spmi/spmi.h>
5#include <dt-bindings/interrupt-controller/irq.h>
6
7&spmi_bus {
8	pm8998_lsid0: pmic@0 {
9		compatible = "qcom,pm8998", "qcom,spmi-pmic";
10		reg = <0x0 SPMI_USID>;
11		#address-cells = <1>;
12		#size-cells = <0>;
13
14		pm8998_gpio: gpios@c000 {
15			compatible = "qcom,pm8998-gpio", "qcom,spmi-gpio";
16			reg = <0xc000>;
17			gpio-controller;
18			#gpio-cells = <2>;
19			interrupts = <0 0xc0 0 IRQ_TYPE_NONE>,
20				     <0 0xc1 0 IRQ_TYPE_NONE>,
21				     <0 0xc2 0 IRQ_TYPE_NONE>,
22				     <0 0xc3 0 IRQ_TYPE_NONE>,
23				     <0 0xc4 0 IRQ_TYPE_NONE>,
24				     <0 0xc5 0 IRQ_TYPE_NONE>,
25				     <0 0xc6 0 IRQ_TYPE_NONE>,
26				     <0 0xc7 0 IRQ_TYPE_NONE>,
27				     <0 0xc8 0 IRQ_TYPE_NONE>,
28				     <0 0xc9 0 IRQ_TYPE_NONE>,
29				     <0 0xca 0 IRQ_TYPE_NONE>,
30				     <0 0xcb 0 IRQ_TYPE_NONE>,
31				     <0 0xcc 0 IRQ_TYPE_NONE>,
32				     <0 0xcd 0 IRQ_TYPE_NONE>,
33				     <0 0xce 0 IRQ_TYPE_NONE>,
34				     <0 0xcf 0 IRQ_TYPE_NONE>,
35				     <0 0xd0 0 IRQ_TYPE_NONE>,
36				     <0 0xd1 0 IRQ_TYPE_NONE>,
37				     <0 0xd2 0 IRQ_TYPE_NONE>,
38				     <0 0xd3 0 IRQ_TYPE_NONE>,
39				     <0 0xd4 0 IRQ_TYPE_NONE>,
40				     <0 0xd5 0 IRQ_TYPE_NONE>,
41				     <0 0xd6 0 IRQ_TYPE_NONE>,
42				     <0 0xd7 0 IRQ_TYPE_NONE>,
43				     <0 0xd8 0 IRQ_TYPE_NONE>,
44				     <0 0xd9 0 IRQ_TYPE_NONE>;
45		};
46
47	};
48
49	pm8998_lsid1: pmic@1 {
50		compatible = "qcom,pm8998", "qcom,spmi-pmic";
51		reg = <0x1 SPMI_USID>;
52		#address-cells = <1>;
53		#size-cells = <0>;
54	};
55};
56