xref: /linux/arch/arm64/boot/dts/qcom/sa8540p-pmics.dtsi (revision 8a922b7728a93d837954315c98b84f6b78de0c4f)
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2021, The Linux Foundation. All rights reserved.
4 * Copyright (c) 2022, Linaro Limited
5 */
6
7#include <dt-bindings/interrupt-controller/irq.h>
8#include <dt-bindings/spmi/spmi.h>
9
10&spmi_bus {
11	pmm8540a: pmic@0 {
12		compatible = "qcom,pm8150", "qcom,spmi-pmic";
13		reg = <0x0 SPMI_USID>;
14		#address-cells = <1>;
15		#size-cells = <0>;
16
17		rtc@6000 {
18			compatible = "qcom,pm8941-rtc";
19			reg = <0x6000>, <0x6100>;
20			reg-names = "rtc", "alarm";
21			interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
22			wakeup-source;
23		};
24
25		pmm8540a_gpios: gpio@c000 {
26			compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio";
27			reg = <0xc000>;
28			gpio-controller;
29			gpio-ranges = <&pmm8540a_gpios 0 0 10>;
30			#gpio-cells = <2>;
31			interrupt-controller;
32			#interrupt-cells = <2>;
33		};
34	};
35
36	pmm8540c: pmic@4 {
37		compatible = "qcom,pm8150", "qcom,spmi-pmic";
38		reg = <0x4 SPMI_USID>;
39		#address-cells = <1>;
40		#size-cells = <0>;
41
42		pmm8540c_gpios: gpio@c000 {
43			compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio";
44			reg = <0xc000>;
45			gpio-controller;
46			gpio-ranges = <&pmm8540c_gpios 0 0 10>;
47			#gpio-cells = <2>;
48			interrupt-controller;
49			#interrupt-cells = <2>;
50		};
51	};
52
53	pmm8540e: pmic@8 {
54		compatible = "qcom,pm8150", "qcom,spmi-pmic";
55		reg = <0x8 SPMI_USID>;
56		#address-cells = <1>;
57		#size-cells = <0>;
58
59		pmm8540e_gpios: gpio@c000 {
60			compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio";
61			reg = <0xc000>;
62			gpio-controller;
63			gpio-ranges = <&pmm8540e_gpios 0 0 10>;
64			#gpio-cells = <2>;
65			interrupt-controller;
66			#interrupt-cells = <2>;
67		};
68	};
69
70	pmm8540g: pmic@c {
71		compatible = "qcom,pm8150", "qcom,spmi-pmic";
72		reg = <0xc SPMI_USID>;
73		#address-cells = <1>;
74		#size-cells = <0>;
75
76		pmm8540g_gpios: gpio@c000 {
77			compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio";
78			reg = <0xc000>;
79			gpio-controller;
80			gpio-ranges = <&pmm8540g_gpios 0 0 10>;
81			#gpio-cells = <2>;
82			interrupt-controller;
83			#interrupt-cells = <2>;
84		};
85	};
86};
87