GNU Linux-libre 6.1.90-gnu
[releases.git] / arch / arm64 / boot / dts / qcom / pmk8350.dtsi
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,pmk8350-pon";
20                         reg = <0x1300>, <0x800>;
21                         reg-names = "hlos", "pbs";
22
23                         pon_pwrkey: pwrkey {
24                                 compatible = "qcom,pmk8350-pwrkey";
25                                 interrupts = <0x0 0x13 0x7 IRQ_TYPE_EDGE_BOTH>;
26                                 linux,code = <KEY_POWER>;
27                                 status = "disabled";
28                         };
29
30                         pon_resin: resin {
31                                 compatible = "qcom,pmk8350-resin";
32                                 interrupts = <0x0 0x13 0x6 IRQ_TYPE_EDGE_BOTH>;
33                                 status = "disabled";
34                         };
35                 };
36
37                 pmk8350_vadc: adc@3100 {
38                         compatible = "qcom,spmi-adc7";
39                         reg = <0x3100>;
40                         #address-cells = <1>;
41                         #size-cells = <0>;
42                         interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
43                         #io-channel-cells = <1>;
44                 };
45
46                 pmk8350_adc_tm: adc-tm@3400 {
47                         compatible = "qcom,spmi-adc-tm5-gen2";
48                         reg = <0x3400>;
49                         interrupts = <0x0 0x34 0x0 IRQ_TYPE_EDGE_RISING>;
50                         #address-cells = <1>;
51                         #size-cells = <0>;
52                         #thermal-sensor-cells = <1>;
53                         status = "disabled";
54                 };
55
56                 pmk8350_rtc: rtc@6100 {
57                         compatible = "qcom,pmk8350-rtc";
58                         reg = <0x6100>, <0x6200>;
59                         reg-names = "rtc", "alarm";
60                         interrupts = <0x0 0x62 0x1 IRQ_TYPE_EDGE_RISING>;
61                         status = "disabled";
62                 };
63
64                 pmk8350_gpios: gpio@b000 {
65                         compatible = "qcom,pmk8350-gpio", "qcom,spmi-gpio";
66                         reg = <0xb000>;
67                         gpio-controller;
68                         gpio-ranges = <&pmk8350_gpios 0 0 4>;
69                         #gpio-cells = <2>;
70                         interrupt-controller;
71                         #interrupt-cells = <2>;
72                 };
73         };
74 };