]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/arm64/qcom/pms405.dtsi
Update mandoc to 1.14.5
[FreeBSD/FreeBSD.git] / sys / gnu / dts / arm64 / qcom / pms405.dtsi
1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2018, Linaro Limited
3
4 #include <dt-bindings/spmi/spmi.h>
5 #include <dt-bindings/input/linux-event-codes.h>
6
7 &spmi_bus {
8         pms405_0: pms405@0 {
9                 compatible = "qcom,spmi-pmic";
10                 reg = <0x0 SPMI_USID>;
11                 #address-cells = <1>;
12                 #size-cells = <0>;
13
14                 pms405_gpios: gpio@c000 {
15                         compatible = "qcom,pms405-gpio";
16                         reg = <0xc000>;
17                         gpio-controller;
18                         #gpio-cells = <2>;
19                         interrupts = <0 0xc0 0 IRQ_TYPE_NONE>,
20                                 <0 0xc1 0 IRQ_TYPE_NONE>,
21                                 <0 0xc2 0 IRQ_TYPE_NONE>,
22                                 <0 0xc3 0 IRQ_TYPE_NONE>,
23                                 <0 0xc4 0 IRQ_TYPE_NONE>,
24                                 <0 0xc5 0 IRQ_TYPE_NONE>,
25                                 <0 0xc6 0 IRQ_TYPE_NONE>,
26                                 <0 0xc7 0 IRQ_TYPE_NONE>,
27                                 <0 0xc8 0 IRQ_TYPE_NONE>,
28                                 <0 0xc9 0 IRQ_TYPE_NONE>,
29                                 <0 0xca 0 IRQ_TYPE_NONE>,
30                                 <0 0xcb 0 IRQ_TYPE_NONE>;
31                 };
32
33                 pon@800 {
34                         compatible = "qcom,pms405-pon";
35                         reg = <0x0800>;
36                         mode-bootloader = <0x2>;
37                         mode-recovery = <0x1>;
38
39                         pwrkey {
40                                 compatible = "qcom,pm8941-pwrkey";
41                                 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
42                                 debounce = <15625>;
43                                 bias-pull-up;
44                                 linux,code = <KEY_POWER>;
45                         };
46                 };
47
48                 rtc@6000 {
49                         compatible = "qcom,pm8941-rtc";
50                         reg = <0x6000>;
51                         reg-names = "rtc", "alarm";
52                         interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
53                 };
54         };
55 };