1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2021, Linaro Limited
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>
13 compatible = "qcom,pmk8350", "qcom,spmi-pmic";
14 reg = <0x0 SPMI_USID>;
18 pmk8350_pon: pon@1300 {
19 compatible = "qcom,pm8998-pon";
23 compatible = "qcom,pmk8350-pwrkey";
24 interrupts = <0x0 0x13 0x7 IRQ_TYPE_EDGE_BOTH>;
25 linux,code = <KEY_POWER>;
29 compatible = "qcom,pmk8350-resin";
30 interrupts = <0x0 0x13 0x6 IRQ_TYPE_EDGE_BOTH>;
31 linux,code = <KEY_VOLUMEDOWN>;
35 pmk8350_vadc: adc@3100 {
36 compatible = "qcom,spmi-adc7";
40 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
41 interrupt-names = "eoc-int-en-set";
42 #io-channel-cells = <1>;
46 pmk8350_adc_tm: adc-tm@3400 {
47 compatible = "qcom,adc-tm7";
49 interrupts = <0x0 0x34 0x0 IRQ_TYPE_EDGE_RISING>;
50 interrupt-names = "threshold";
53 #thermal-sensor-cells = <1>;
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>;
64 pmk8350_gpios: gpio@b000 {
65 compatible = "qcom,pmk8350-gpio", "qcom,spmi-gpio";
68 gpio-ranges = <&pmk8350_gpios 0 0 4>;
71 #interrupt-cells = <2>;