blob: 1f8d20e9dd578d02145accb25182cad5412d288b [file] [log] [blame]
David Collins7d82ceb2017-03-10 11:54:32 -08001/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#include <dt-bindings/spmi/spmi.h>
14#include <dt-bindings/interrupt-controller/irq.h>
15
16&spmi_bus {
17 qcom,pm8005@4 {
18 compatible = "qcom,spmi-pmic";
19 reg = <0x4 SPMI_USID>;
20 #address-cells = <2>;
21 #size-cells = <0>;
22
23 pm8005_revid: qcom,revid@100 {
24 compatible = "qcom,qpnp-revid";
25 reg = <0x100 0x100>;
26 };
27
28 qcom,temp-alarm@2400 {
29 compatible = "qcom,qpnp-temp-alarm";
30 reg = <0x2400 0x100>;
31 interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
32 label = "pm8005_tz";
33 };
34
Fenglin Wu5a50fc82017-03-22 12:27:31 +080035 pm8005_gpios: pinctrl@c000 {
36 compatible = "qcom,spmi-gpio";
37 reg = <0xc000 0x400>;
38 interrupts = <0x4 0xc0 0 IRQ_TYPE_NONE>,
39 <0x4 0xc1 0 IRQ_TYPE_NONE>;
40 interrupt-names = "pm8005_gpio1", "pm8005_gpio2";
David Collins7d82ceb2017-03-10 11:54:32 -080041 gpio-controller;
42 #gpio-cells = <2>;
Fenglin Wu5a50fc82017-03-22 12:27:31 +080043 qcom,gpios-disallowed = <3 4>;
David Collins7d82ceb2017-03-10 11:54:32 -080044 };
45 };
46
47 qcom,pm8005@5 {
48 compatible ="qcom,spmi-pmic";
49 reg = <0x5 SPMI_USID>;
50 #address-cells = <2>;
51 #size-cells = <0>;
52
53 regulator@1400 {
54 compatible = "qcom,qpnp-regulator";
55 reg = <0x1400 0x100>;
56 regulator-name = "pm8005_s1";
57 status = "disabled";
58 };
59
60 regulator@1700 {
61 compatible = "qcom,qpnp-regulator";
62 reg = <0x1700 0x100>;
63 regulator-name = "pm8005_s2";
64 status = "disabled";
65 };
66
67 regulator@1a00 {
68 compatible = "qcom,qpnp-regulator";
69 reg = <0x1a00 0x100>;
70 regulator-name = "pm8005_s3";
71 status = "disabled";
72 };
73
74 regulator@1d00 {
75 compatible = "qcom,qpnp-regulator";
76 reg = <0x1d00 0x100>;
77 regulator-name = "pm8005_s4";
78 status = "disabled";
79 };
80 };
81};