xref: /openbmc/linux/arch/arm64/boot/dts/qcom/pm8994.dtsi (revision ccb01374)
1// SPDX-License-Identifier: GPL-2.0
2#include <dt-bindings/interrupt-controller/irq.h>
3#include <dt-bindings/spmi/spmi.h>
4#include <dt-bindings/input/linux-event-codes.h>
5
6&spmi_bus {
7
8	pmic@0 {
9		compatible = "qcom,pm8994", "qcom,spmi-pmic";
10		reg = <0x0 SPMI_USID>;
11		#address-cells = <1>;
12		#size-cells = <0>;
13
14		rtc@6000 {
15			compatible = "qcom,pm8941-rtc";
16			reg = <0x6000>, <0x6100>;
17			reg-names = "rtc", "alarm";
18			interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
19		};
20
21		pon@800 {
22			compatible = "qcom,pm8916-pon";
23
24			reg = <0x800>;
25			mode-bootloader = <0x2>;
26			mode-recovery = <0x1>;
27
28			pwrkey {
29				compatible = "qcom,pm8941-pwrkey";
30				interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
31				debounce = <15625>;
32				bias-pull-up;
33				linux,code = <KEY_POWER>;
34			};
35
36		};
37
38		pm8994_gpios: gpios@c000 {
39			compatible = "qcom,pm8994-gpio";
40			reg = <0xc000>;
41			gpio-controller;
42			#gpio-cells = <2>;
43			interrupts = <0 0xc0 0 IRQ_TYPE_NONE>,
44				     <0 0xc1 0 IRQ_TYPE_NONE>,
45				     <0 0xc2 0 IRQ_TYPE_NONE>,
46				     <0 0xc3 0 IRQ_TYPE_NONE>,
47				     <0 0xc4 0 IRQ_TYPE_NONE>,
48				     <0 0xc5 0 IRQ_TYPE_NONE>,
49				     <0 0xc6 0 IRQ_TYPE_NONE>,
50				     <0 0xc7 0 IRQ_TYPE_NONE>,
51				     <0 0xc8 0 IRQ_TYPE_NONE>,
52				     <0 0xc9 0 IRQ_TYPE_NONE>,
53				     <0 0xca 0 IRQ_TYPE_NONE>,
54				     <0 0xcb 0 IRQ_TYPE_NONE>,
55				     <0 0xcc 0 IRQ_TYPE_NONE>,
56				     <0 0xcd 0 IRQ_TYPE_NONE>,
57				     <0 0xce 0 IRQ_TYPE_NONE>,
58				     <0 0xcf 0 IRQ_TYPE_NONE>,
59				     <0 0xd0 0 IRQ_TYPE_NONE>,
60				     <0 0xd1 0 IRQ_TYPE_NONE>,
61				     <0 0xd2 0 IRQ_TYPE_NONE>,
62				     <0 0xd3 0 IRQ_TYPE_NONE>,
63				     <0 0xd4 0 IRQ_TYPE_NONE>,
64				     <0 0xd5 0 IRQ_TYPE_NONE>;
65		};
66
67		pm8994_mpps: mpps@a000 {
68			compatible = "qcom,pm8994-mpp";
69			reg = <0xa000>;
70			gpio-controller;
71			#gpio-cells = <2>;
72			interrupts = <0 0xa0 0 IRQ_TYPE_NONE>,
73				     <0 0xa1 0 IRQ_TYPE_NONE>,
74				     <0 0xa2 0 IRQ_TYPE_NONE>,
75				     <0 0xa3 0 IRQ_TYPE_NONE>,
76				     <0 0xa4 0 IRQ_TYPE_NONE>,
77				     <0 0xa5 0 IRQ_TYPE_NONE>,
78				     <0 0xa6 0 IRQ_TYPE_NONE>,
79				     <0 0xa7 0 IRQ_TYPE_NONE>;
80		};
81	};
82
83	pmic@1 {
84		compatible = "qcom,pm8994", "qcom,spmi-pmic";
85		reg = <0x1 SPMI_USID>;
86		#address-cells = <1>;
87		#size-cells = <0>;
88	};
89};
90