xref: /openbmc/linux/arch/arm64/boot/dts/qcom/pmk8350.dtsi (revision 83946783)
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2021, 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	pmk8350: pmic@0 {
13		compatible = "qcom,pmk8350", "qcom,spmi-pmic";
14		reg = <0x0 SPMI_USID>;
15		#address-cells = <1>;
16		#size-cells = <0>;
17
18		pmk8350_pon: pon@1300 {
19			compatible = "qcom,pm8998-pon";
20			reg = <0x1300>;
21
22			pwrkey {
23				compatible = "qcom,pmk8350-pwrkey";
24				interrupts = <0x0 0x13 0x7 IRQ_TYPE_EDGE_BOTH>;
25				linux,code = <KEY_POWER>;
26			};
27
28			resin {
29				compatible = "qcom,pmk8350-resin";
30				interrupts = <0x0 0x13 0x6 IRQ_TYPE_EDGE_BOTH>;
31				linux,code = <KEY_VOLUMEDOWN>;
32			};
33		};
34
35		pmk8350_vadc: adc@3100 {
36			compatible = "qcom,spmi-adc7";
37			reg = <0x3100>;
38			#address-cells = <1>;
39			#size-cells = <0>;
40			interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
41			interrupt-names = "eoc-int-en-set";
42			#io-channel-cells = <1>;
43			io-channel-ranges;
44		};
45
46		pmk8350_adc_tm: adc-tm@3400 {
47			compatible = "qcom,adc-tm7";
48			reg = <0x3400>;
49			interrupts = <0x0 0x34 0x0 IRQ_TYPE_EDGE_RISING>;
50			interrupt-names = "threshold";
51			#address-cells = <1>;
52			#size-cells = <0>;
53			#thermal-sensor-cells = <1>;
54			status = "disabled";
55		};
56
57		pmk8350_rtc: rtc@6100 {
58			compatible = "qcom,pmk8350-rtc";
59			reg = <0x6100>, <0x6200>;
60			reg-names = "rtc", "alarm";
61			interrupts = <0x0 0x62 0x1 IRQ_TYPE_EDGE_RISING>;
62			status = "disabled";
63		};
64
65		pmk8350_gpios: gpio@b000 {
66			compatible = "qcom,pmk8350-gpio", "qcom,spmi-gpio";
67			reg = <0xb000>;
68			gpio-controller;
69			gpio-ranges = <&pmk8350_gpios 0 0 4>;
70			#gpio-cells = <2>;
71			interrupt-controller;
72			#interrupt-cells = <2>;
73		};
74	};
75};
76