blob: 94ccf9c9fd1980e81fa9271dee38b9d3489f39a4 [file] [log] [blame]
Jeevan Shriramac64e2e2017-10-09 12:24:49 -07001/* Copyright (c) 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/dts-v1/;
14
15
16#include "sdxpoorwills.dtsi"
17#include "sdxpoorwills-pinctrl.dtsi"
Karthikeyan Manib23feb02017-12-11 00:38:46 -080018#include "sdxpoorwills-cdp-audio-overlay.dtsi"
Jeevan Shriramac64e2e2017-10-09 12:24:49 -070019
20/ {
21 model = "Qualcomm Technologies, Inc. SDXPOORWILLS CDP";
22 compatible = "qcom,sdxpoorwills-cdp",
23 "qcom,sdxpoorwills", "qcom,cdp";
Jeevan Shriramcd9c9dd2017-12-07 16:38:31 -080024 qcom,board-id = <1 0x0>, <1 0x100>, <1 0x2>, <1 0x102>;
Jeevan Shriramac64e2e2017-10-09 12:24:49 -070025};
26
Jeevan Shrirama99fb5b2017-11-28 08:13:04 -080027&serial_uart {
Jeevan Shriramac64e2e2017-10-09 12:24:49 -070028 pinctrl-names = "default";
Jeevan Shrirama99fb5b2017-11-28 08:13:04 -080029 pinctrl-0 = <&uart3_console_active>;
Jeevan Shriramac64e2e2017-10-09 12:24:49 -070030 status = "ok";
31};
32
Sahitya Tummala61f1d322017-06-06 13:49:19 +053033&qnand_1 {
34 status = "ok";
35};
Siddartha Mohanadoss2be47fe2017-10-20 11:09:41 -070036
37&pmxpoorwills_vadc {
38 chan@83 {
39 label = "vph_pwr";
40 reg = <0x83>;
41 qcom,decimation = <2>;
42 qcom,pre-div-channel-scaling = <1>;
43 qcom,calibration-type = "absolute";
44 qcom,scale-function = <0>;
45 qcom,hw-settle-time = <0>;
46 qcom,fast-avg-setup = <0>;
47 };
48
49 chan@4c {
50 label = "xo_therm";
51 reg = <0x4c>;
52 qcom,decimation = <2>;
53 qcom,pre-div-channel-scaling = <0>;
54 qcom,calibration-type = "ratiometric";
55 qcom,scale-function = <4>;
56 qcom,hw-settle-time = <2>;
57 qcom,fast-avg-setup = <0>;
58 qcom,vadc-thermal-node;
59 };
60
61 chan@4d {
62 label = "pa_therm1";
63 reg = <0x4d>;
64 qcom,decimation = <2>;
65 qcom,pre-div-channel-scaling = <0>;
66 qcom,calibration-type = "ratiometric";
67 qcom,scale-function = <2>;
68 qcom,hw-settle-time = <2>;
69 qcom,fast-avg-setup = <0>;
70 qcom,vadc-thermal-node;
71 };
72
73 chan@4e {
74 label = "pa_therm2";
75 reg = <0x4e>;
76 qcom,decimation = <2>;
77 qcom,pre-div-channel-scaling = <0>;
78 qcom,calibration-type = "ratiometric";
79 qcom,scale-function = <2>;
80 qcom,hw-settle-time = <2>;
81 qcom,fast-avg-setup = <0>;
82 qcom,vadc-thermal-node;
83 };
84
85 chan@4f {
86 label = "mdm_case_therm";
87 reg = <0x4f>;
88 qcom,decimation = <2>;
89 qcom,pre-div-channel-scaling = <0>;
90 qcom,calibration-type = "ratiometric";
91 qcom,scale-function = <2>;
92 qcom,hw-settle-time = <2>;
93 qcom,fast-avg-setup = <0>;
94 qcom,vadc-thermal-node;
95 };
96
97 chan@52 {
98 label = "ambient_therm";
99 reg = <0x52>;
100 qcom,decimation = <2>;
101 qcom,pre-div-channel-scaling = <0>;
102 qcom,calibration-type = "ratiometric";
103 qcom,scale-function = <2>;
104 qcom,hw-settle-time = <2>;
105 qcom,fast-avg-setup = <0>;
106 qcom,vadc-thermal-node;
107 };
108};
Anirudh Ghayalbbe9ff72017-11-10 15:46:34 +0530109
110&i2c_3 {
111 status = "okay";
112 #include "smb138x.dtsi"
113};
114
115&smb138x {
116 pinctrl-names = "default";
117 pinctrl-0 = <&smb_int_default>;
118 interrupt-parent = <&tlmm>;
119 interrupts = <42 IRQ_TYPE_LEVEL_LOW>;
120
121 smb1381_charger: qcom,smb1381-charger@1000 {
122 compatible = "qcom,smb138x-charger";
123 qcom,use-extcon;
124 };
125};
126
127&smb138x_vbus {
128 status = "okay";
129};
Hemant Kumar42849cf2017-12-06 17:30:20 -0800130
131&usb {
132 status = "okay";
133 extcon = <&smb1381_charger>;
134};