xref: /linux/arch/arm64/boot/dts/qcom/pmk8550-eliza.dtsi (revision cbe8aadf1551f3f4a853f24b3b96d9f0eea49c53)
1*7f98ca4bSAbel Vesa// SPDX-License-Identifier: BSD-3-Clause
2*7f98ca4bSAbel Vesa/*
3*7f98ca4bSAbel Vesa * Copyright (c) 2026 Qualcomm Innovation Center, Inc. All rights reserved.
4*7f98ca4bSAbel Vesa */
5*7f98ca4bSAbel Vesa
6*7f98ca4bSAbel Vesa#include <dt-bindings/input/input.h>
7*7f98ca4bSAbel Vesa#include <dt-bindings/input/linux-event-codes.h>
8*7f98ca4bSAbel Vesa#include <dt-bindings/interrupt-controller/irq.h>
9*7f98ca4bSAbel Vesa#include <dt-bindings/spmi/spmi.h>
10*7f98ca4bSAbel Vesa
11*7f98ca4bSAbel Vesa/ {
12*7f98ca4bSAbel Vesa	reboot-mode {
13*7f98ca4bSAbel Vesa		compatible = "nvmem-reboot-mode";
14*7f98ca4bSAbel Vesa		nvmem-cells = <&reboot_reason>;
15*7f98ca4bSAbel Vesa		nvmem-cell-names = "reboot-mode";
16*7f98ca4bSAbel Vesa		mode-recovery = <0x01>;
17*7f98ca4bSAbel Vesa		mode-bootloader = <0x02>;
18*7f98ca4bSAbel Vesa	};
19*7f98ca4bSAbel Vesa};
20*7f98ca4bSAbel Vesa
21*7f98ca4bSAbel Vesa&spmi_bus0 {
22*7f98ca4bSAbel Vesa	pmk8550: pmic@0 {
23*7f98ca4bSAbel Vesa		compatible = "qcom,pm8550", "qcom,spmi-pmic";
24*7f98ca4bSAbel Vesa		reg = <0x0 SPMI_USID>;
25*7f98ca4bSAbel Vesa		#address-cells = <1>;
26*7f98ca4bSAbel Vesa		#size-cells = <0>;
27*7f98ca4bSAbel Vesa
28*7f98ca4bSAbel Vesa		pmk8550_pon: pon@1300 {
29*7f98ca4bSAbel Vesa			compatible = "qcom,pmk8350-pon";
30*7f98ca4bSAbel Vesa			reg = <0x1300>, <0x800>;
31*7f98ca4bSAbel Vesa			reg-names = "hlos", "pbs";
32*7f98ca4bSAbel Vesa
33*7f98ca4bSAbel Vesa			pon_pwrkey: pwrkey {
34*7f98ca4bSAbel Vesa				compatible = "qcom,pmk8350-pwrkey";
35*7f98ca4bSAbel Vesa				interrupts = <0x0 0x13 0x7 IRQ_TYPE_EDGE_BOTH>;
36*7f98ca4bSAbel Vesa				linux,code = <KEY_POWER>;
37*7f98ca4bSAbel Vesa				status = "disabled";
38*7f98ca4bSAbel Vesa			};
39*7f98ca4bSAbel Vesa
40*7f98ca4bSAbel Vesa			pon_resin: resin {
41*7f98ca4bSAbel Vesa				compatible = "qcom,pmk8350-resin";
42*7f98ca4bSAbel Vesa				interrupts = <0x0 0x13 0x6 IRQ_TYPE_EDGE_BOTH>;
43*7f98ca4bSAbel Vesa				status = "disabled";
44*7f98ca4bSAbel Vesa			};
45*7f98ca4bSAbel Vesa		};
46*7f98ca4bSAbel Vesa
47*7f98ca4bSAbel Vesa		pmk8550_rtc: rtc@6100 {
48*7f98ca4bSAbel Vesa			compatible = "qcom,pmk8350-rtc";
49*7f98ca4bSAbel Vesa			reg = <0x6100>, <0x6200>;
50*7f98ca4bSAbel Vesa			reg-names = "rtc", "alarm";
51*7f98ca4bSAbel Vesa			interrupts = <0x0 0x62 0x1 IRQ_TYPE_EDGE_RISING>;
52*7f98ca4bSAbel Vesa		};
53*7f98ca4bSAbel Vesa
54*7f98ca4bSAbel Vesa		pmk8550_sdam_2: nvram@7100 {
55*7f98ca4bSAbel Vesa			compatible = "qcom,spmi-sdam";
56*7f98ca4bSAbel Vesa			reg = <0x7100>;
57*7f98ca4bSAbel Vesa			#address-cells = <1>;
58*7f98ca4bSAbel Vesa			#size-cells = <1>;
59*7f98ca4bSAbel Vesa			ranges = <0 0x7100 0x100>;
60*7f98ca4bSAbel Vesa
61*7f98ca4bSAbel Vesa			reboot_reason: reboot-reason@48 {
62*7f98ca4bSAbel Vesa				reg = <0x48 0x1>;
63*7f98ca4bSAbel Vesa				bits = <1 7>;
64*7f98ca4bSAbel Vesa			};
65*7f98ca4bSAbel Vesa		};
66*7f98ca4bSAbel Vesa
67*7f98ca4bSAbel Vesa		pmk8550_gpios: gpio@b800 {
68*7f98ca4bSAbel Vesa			compatible = "qcom,pmk8550-gpio", "qcom,spmi-gpio";
69*7f98ca4bSAbel Vesa			reg = <0xb800>;
70*7f98ca4bSAbel Vesa			gpio-controller;
71*7f98ca4bSAbel Vesa			gpio-ranges = <&pmk8550_gpios 0 0 6>;
72*7f98ca4bSAbel Vesa			#gpio-cells = <2>;
73*7f98ca4bSAbel Vesa			interrupt-controller;
74*7f98ca4bSAbel Vesa			#interrupt-cells = <2>;
75*7f98ca4bSAbel Vesa		};
76*7f98ca4bSAbel Vesa
77*7f98ca4bSAbel Vesa		pmk8550_pwm: pwm {
78*7f98ca4bSAbel Vesa			compatible = "qcom,pmk8550-pwm";
79*7f98ca4bSAbel Vesa
80*7f98ca4bSAbel Vesa			#address-cells = <1>;
81*7f98ca4bSAbel Vesa			#size-cells = <0>;
82*7f98ca4bSAbel Vesa			#pwm-cells = <2>;
83*7f98ca4bSAbel Vesa
84*7f98ca4bSAbel Vesa			status = "disabled";
85*7f98ca4bSAbel Vesa		};
86*7f98ca4bSAbel Vesa	};
87*7f98ca4bSAbel Vesa};
88