blob: 6b7ebbd05da14f038aee2a15b27583d46d1cadf8 [file] [log] [blame]
Harry Yang801aa2e2017-04-10 17:59:05 -07001/* 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/interrupt-controller/irq.h>
14
15&qupv3_se10_i2c {
16 smb1355: qcom,smb1355@8 {
17 compatible = "qcom,i2c-pmic";
18 reg = <0x8>;
19 #address-cells = <1>;
Subbaraman Narayanamurthy740adfd2017-09-01 11:07:52 -070020 #size-cells = <0>;
Harry Yang801aa2e2017-04-10 17:59:05 -070021 interrupt-parent = <&spmi_bus>;
22 interrupts = <0x0 0xd1 0x0 IRQ_TYPE_LEVEL_LOW>;
23 interrupt_names = "smb1355";
24 interrupt-controller;
25 #interrupt-cells = <3>;
26 qcom,periph-map = <0x10 0x12 0x13 0x16>;
27
28 smb1355_revid: qcom,revid@100 {
29 compatible = "qcom,qpnp-revid";
30 reg = <0x100 0x100>;
31 };
32
33 smb1355_charger: qcom,smb1355-charger@1000 {
34 compatible = "qcom,smb1355";
35 qcom,pmic-revid = <&smb1355_revid>;
36 reg = <0x1000 0x700>;
37 #address-cells = <1>;
38 #size-cells = <1>;
39 interrupt-parent = <&smb1355>;
40 status = "disabled";
41
Harry Yang60c891a2017-06-21 16:35:04 -070042 io-channels = <&pmi8998_rradc 2>,
43 <&pmi8998_rradc 12>;
44 io-channel-names = "charger_temp",
45 "charger_temp_max";
46
Harry Yang801aa2e2017-04-10 17:59:05 -070047 qcom,chgr@1000 {
48 reg = <0x1000 0x100>;
49 interrupts = <0x10 0x1 IRQ_TYPE_EDGE_RISING>;
50 interrupt-names = "chg-state-change";
51 };
52
53 qcom,chgr-misc@1600 {
54 reg = <0x1600 0x100>;
55 interrupts = <0x16 0x1 IRQ_TYPE_EDGE_RISING>;
56 interrupt-names = "wdog-bark";
57 };
58 };
59 };
60};