xref: /openbmc/linux/arch/arm64/boot/dts/qcom/pm2250.dtsi (revision ffcdf473)
1// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2/*
3 * Copyright (c) 2023, Linaro Ltd
4 */
5
6#include <dt-bindings/iio/qcom,spmi-vadc.h>
7#include <dt-bindings/input/input.h>
8#include <dt-bindings/interrupt-controller/irq.h>
9#include <dt-bindings/spmi/spmi.h>
10
11&spmi_bus {
12	pmic@0 {
13		compatible = "qcom,pm2250", "qcom,spmi-pmic";
14		reg = <0x0 SPMI_USID>;
15		#address-cells = <1>;
16		#size-cells = <0>;
17
18		pon@800 {
19			compatible = "qcom,pm8916-pon";
20			reg = <0x800>;
21
22			pm2250_pwrkey: pwrkey {
23				compatible = "qcom,pm8941-pwrkey";
24				interrupts-extended = <&spmi_bus 0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
25				linux,code = <KEY_POWER>;
26				debounce = <15625>;
27				bias-pull-up;
28			};
29
30			pm2250_resin: resin {
31				compatible = "qcom,pm8941-resin";
32				interrupts-extended = <&spmi_bus 0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
33				debounce = <15625>;
34				bias-pull-up;
35				status = "disabled";
36			};
37		};
38
39		rtc@6000 {
40			compatible = "qcom,pm8941-rtc";
41			reg = <0x6000>, <0x6100>;
42			reg-names = "rtc", "alarm";
43			interrupts-extended = <&spmi_bus 0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
44		};
45
46		pm2250_gpios: gpio@c000 {
47			compatible = "qcom,pm2250-gpio", "qcom,spmi-gpio";
48			reg = <0xc000>;
49			gpio-controller;
50			gpio-ranges = <&pm2250_gpios 0 0 10>;
51			#gpio-cells = <2>;
52			interrupt-controller;
53			#interrupt-cells = <2>;
54		};
55	};
56
57	pmic@1 {
58		compatible = "qcom,pm2250", "qcom,spmi-pmic";
59		reg = <0x1 SPMI_USID>;
60		#address-cells = <1>;
61		#size-cells = <0>;
62	};
63};
64