xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/monaco-pmics.dtsi (revision 96fb1ebd28756790597f73ad25306f58f558be97)
1*96fb1ebdSEmmanuel Vadot// SPDX-License-Identifier: BSD-3-Clause
2*96fb1ebdSEmmanuel Vadot/*
3*96fb1ebdSEmmanuel Vadot * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
4*96fb1ebdSEmmanuel Vadot */
5*96fb1ebdSEmmanuel Vadot
6*96fb1ebdSEmmanuel Vadot#include <dt-bindings/input/input.h>
7*96fb1ebdSEmmanuel Vadot#include <dt-bindings/spmi/spmi.h>
8*96fb1ebdSEmmanuel Vadot
9*96fb1ebdSEmmanuel Vadot&spmi_bus {
10*96fb1ebdSEmmanuel Vadot	pmm8620au_0: pmic@0 {
11*96fb1ebdSEmmanuel Vadot		compatible = "qcom,pmm8654au", "qcom,spmi-pmic";
12*96fb1ebdSEmmanuel Vadot		reg = <0x0 SPMI_USID>;
13*96fb1ebdSEmmanuel Vadot		#address-cells = <1>;
14*96fb1ebdSEmmanuel Vadot		#size-cells = <0>;
15*96fb1ebdSEmmanuel Vadot
16*96fb1ebdSEmmanuel Vadot		pmm8620au_0_rtc: rtc@6100 {
17*96fb1ebdSEmmanuel Vadot			compatible = "qcom,pmk8350-rtc";
18*96fb1ebdSEmmanuel Vadot			reg = <0x6100>, <0x6200>;
19*96fb1ebdSEmmanuel Vadot			reg-names = "rtc", "alarm";
20*96fb1ebdSEmmanuel Vadot			interrupts = <0x0 0x62 0x1 IRQ_TYPE_EDGE_RISING>;
21*96fb1ebdSEmmanuel Vadot		};
22*96fb1ebdSEmmanuel Vadot
23*96fb1ebdSEmmanuel Vadot		pmm8620au_0_gpios: gpio@8800 {
24*96fb1ebdSEmmanuel Vadot			compatible = "qcom,pmm8654au-gpio", "qcom,spmi-gpio";
25*96fb1ebdSEmmanuel Vadot			reg = <0x8800>;
26*96fb1ebdSEmmanuel Vadot			gpio-controller;
27*96fb1ebdSEmmanuel Vadot			gpio-ranges = <&pmm8620au_0_gpios 0 0 12>;
28*96fb1ebdSEmmanuel Vadot			#gpio-cells = <2>;
29*96fb1ebdSEmmanuel Vadot			interrupt-controller;
30*96fb1ebdSEmmanuel Vadot			#interrupt-cells = <2>;
31*96fb1ebdSEmmanuel Vadot		};
32*96fb1ebdSEmmanuel Vadot	};
33*96fb1ebdSEmmanuel Vadot
34*96fb1ebdSEmmanuel Vadot	pmm8650au_1: pmic@2 {
35*96fb1ebdSEmmanuel Vadot		compatible = "qcom,pmm8654au", "qcom,spmi-pmic";
36*96fb1ebdSEmmanuel Vadot		reg = <0x2 SPMI_USID>;
37*96fb1ebdSEmmanuel Vadot		#address-cells = <1>;
38*96fb1ebdSEmmanuel Vadot		#size-cells = <0>;
39*96fb1ebdSEmmanuel Vadot
40*96fb1ebdSEmmanuel Vadot		pmm8650au_1_gpios: gpio@8800 {
41*96fb1ebdSEmmanuel Vadot			compatible = "qcom,pmm8654au-gpio", "qcom,spmi-gpio";
42*96fb1ebdSEmmanuel Vadot			reg = <0x8800>;
43*96fb1ebdSEmmanuel Vadot			gpio-controller;
44*96fb1ebdSEmmanuel Vadot			gpio-ranges = <&pmm8650au_1_gpios 0 0 12>;
45*96fb1ebdSEmmanuel Vadot			#gpio-cells = <2>;
46*96fb1ebdSEmmanuel Vadot			interrupt-controller;
47*96fb1ebdSEmmanuel Vadot			#interrupt-cells = <2>;
48*96fb1ebdSEmmanuel Vadot		};
49*96fb1ebdSEmmanuel Vadot	};
50*96fb1ebdSEmmanuel Vadot};
51