blob: 92ac1034a2fe97d8c45236c1173004213c480cbf [file] [log] [blame]
Umang Agrawal03190ca2018-04-27 12:46:17 +05301/* Copyright (c) 2018, 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/interrupt-controller/irq.h>
14
15smb1390: qcom,smb1390@10 {
16 compatible = "qcom,i2c-pmic";
17 reg = <0x10>;
18 #address-cells = <1>;
19 #size-cells = <0>;
20 interrupt-parent = <&spmi_bus>;
21 interrupts = <0x0 0xd1 0x0 IRQ_TYPE_LEVEL_LOW>;
22 interrupt-names = "smb1390";
23 interrupt-controller;
24 #interrupt-cells = <3>;
25 qcom,periph-map = <0x10>;
26
27 smb1390_revid: qcom,revid {
28 compatible = "qcom,qpnp-revid";
29 reg = <0x100>;
30 };
31
32 smb1390_charger: qcom,charge_pump {
33 compatible = "qcom,smb1390-charger";
34 qcom,pmic-revid = <&smb1390_revid>;
35 interrupt-parent = <&smb1390>;
36 pinctrl-names = "default";
37 pinctrl-0 = <&smb1390_die_temp_default>;
38 qcom,smb-vadc = <&pm8998_vadc>;
39 qcom,channel-num = <0x14>;
40 status = "disabled";
41
42 qcom,core {
43 interrupts = <0x10 0x0 IRQ_TYPE_EDGE_RISING>,
44 <0x10 0x1 IRQ_TYPE_EDGE_RISING>,
45 <0x10 0x2 IRQ_TYPE_EDGE_RISING>,
46 <0x10 0x3 IRQ_TYPE_EDGE_RISING>,
47 <0x10 0x4 IRQ_TYPE_EDGE_RISING>,
48 <0x10 0x5 IRQ_TYPE_EDGE_RISING>,
49 <0x10 0x6 IRQ_TYPE_EDGE_RISING>,
50 <0x10 0x7 IRQ_TYPE_EDGE_RISING>;
51 interrupt-names = "switcher-off-window",
52 "switcher-off-fault",
53 "tsd-fault",
54 "irev-fault",
55 "vph-ov-hard",
56 "vph-ov-soft",
57 "ilim",
58 "temp-alarm";
59 };
60 };
61};