xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/pm660.dtsi (revision dd41de95a84d979615a2ef11df6850622bf6184e)
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2020, Konrad Dybcio
4 */
5
6#include <dt-bindings/input/linux-event-codes.h>
7#include <dt-bindings/interrupt-controller/irq.h>
8#include <dt-bindings/spmi/spmi.h>
9
10&spmi_bus {
11
12	pmic@0 {
13		compatible = "qcom,pm660", "qcom,spmi-pmic";
14		reg = <0x0 SPMI_USID>;
15		#address-cells = <1>;
16		#size-cells = <0>;
17
18		rtc@6000 {
19			compatible = "qcom,pm8941-rtc";
20			reg = <0x6000>, <0x6100>;
21			reg-names = "rtc", "alarm";
22			interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
23		};
24
25		pon: pon@800 {
26			compatible = "qcom,pm8916-pon";
27
28			reg = <0x800>;
29
30			pwrkey {
31				compatible = "qcom,pm8941-pwrkey";
32				interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
33				debounce = <15625>;
34				bias-pull-up;
35				linux,code = <KEY_POWER>;
36			};
37
38		};
39
40		pm660_gpios: gpios@c000 {
41			compatible = "qcom,pm660-gpio";
42			reg = <0xc000>;
43			gpio-controller;
44			gpio-ranges = <&pm660_gpios 0 0 13>;
45			#gpio-cells = <2>;
46			interrupt-controller;
47			#interrupt-cells = <2>;
48		};
49	};
50};
51