]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/arm64/qcom/pm8150b.dtsi
Import DTS files for arm, arm64, riscv from Linux 5.8
[FreeBSD/FreeBSD.git] / sys / gnu / dts / arm64 / qcom / pm8150b.dtsi
1 // SPDX-License-Identifier: BSD-3-Clause
2 /*
3  * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
4  * Copyright (c) 2019, Linaro Limited
5  */
6
7 #include <dt-bindings/iio/qcom,spmi-vadc.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/spmi/spmi.h>
10
11 &spmi_bus {
12         pmic@2 {
13                 compatible = "qcom,pm8150b", "qcom,spmi-pmic";
14                 reg = <0x2 SPMI_USID>;
15                 #address-cells = <1>;
16                 #size-cells = <0>;
17
18                 power-on@800 {
19                         compatible = "qcom,pm8916-pon";
20                         reg = <0x0800>;
21
22                         status = "disabled";
23                 };
24
25                 adc@3100 {
26                         compatible = "qcom,spmi-adc5";
27                         reg = <0x3100>;
28                         #address-cells = <1>;
29                         #size-cells = <0>;
30                         #io-channel-cells = <1>;
31                         interrupts = <0x2 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
32
33                         status = "disabled";
34
35                         ref-gnd@0 {
36                                 reg = <ADC5_REF_GND>;
37                                 qcom,pre-scaling = <1 1>;
38                                 label = "ref_gnd";
39                         };
40
41                         vref-1p25@1 {
42                                 reg = <ADC5_1P25VREF>;
43                                 qcom,pre-scaling = <1 1>;
44                                 label = "vref_1p25";
45                         };
46
47                         die-temp@6 {
48                                 reg = <ADC5_DIE_TEMP>;
49                                 qcom,pre-scaling = <1 1>;
50                                 label = "die_temp";
51                         };
52
53                         chg-temp@9 {
54                                 reg = <ADC5_CHG_TEMP>;
55                                 qcom,pre-scaling = <1 1>;
56                                 label = "chg_temp";
57                         };
58                 };
59
60                 pm8150b_gpios: gpio@c000 {
61                         compatible = "qcom,pm8150b-gpio";
62                         reg = <0xc000>;
63                         gpio-controller;
64                         #gpio-cells = <2>;
65                         interrupt-controller;
66                         #interrupt-cells = <2>;
67                 };
68         };
69
70         pmic@3 {
71                 compatible = "qcom,pm8150b", "qcom,spmi-pmic";
72                 reg = <0x3 SPMI_USID>;
73                 #address-cells = <1>;
74                 #size-cells = <0>;
75         };
76 };