1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2022, Linaro Limited
4 */
5
6#include <dt-bindings/input/input.h>
7#include <dt-bindings/input/linux-event-codes.h>
8#include <dt-bindings/interrupt-controller/irq.h>
9#include <dt-bindings/spmi/spmi.h>
10
11&spmi_bus {
12	pmk8550: pmic@0 {
13		compatible = "qcom,pm8550", "qcom,spmi-pmic";
14		reg = <0x0 SPMI_USID>;
15		#address-cells = <1>;
16		#size-cells = <0>;
17
18		pmk8550_pon: pon@1300 {
19			compatible = "qcom,pmk8350-pon";
20			reg = <0x1300>, <0x800>;
21			reg-names = "hlos", "pbs";
22
23			pon_pwrkey: pwrkey {
24				compatible = "qcom,pmk8350-pwrkey";
25				interrupts = <0x0 0x13 0x7 IRQ_TYPE_EDGE_BOTH>;
26				linux,code = <KEY_POWER>;
27				status = "disabled";
28			};
29
30			pon_resin: resin {
31				compatible = "qcom,pmk8350-resin";
32				interrupts = <0x0 0x13 0x6 IRQ_TYPE_EDGE_BOTH>;
33				status = "disabled";
34			};
35		};
36
37		pmk8550_rtc: rtc@6100 {
38			compatible = "qcom,pmk8350-rtc";
39			reg = <0x6100>, <0x6200>;
40			reg-names = "rtc", "alarm";
41			interrupts = <0x0 0x62 0x1 IRQ_TYPE_EDGE_RISING>;
42			status = "disabled";
43		};
44
45		pmk8550_gpios: gpio@8800 {
46			compatible = "qcom,pmk8550-gpio", "qcom,spmi-gpio";
47			reg = <0xb800>;
48			gpio-controller;
49			gpio-ranges = <&pmk8550_gpios 0 0 6>;
50			#gpio-cells = <2>;
51			interrupt-controller;
52			#interrupt-cells = <2>;
53		};
54	};
55};
56