Jeevan Shriram | ac64e2e | 2017-10-09 12:24:49 -0700 | [diff] [blame] | 1 | /* 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 Mani | b23feb0 | 2017-12-11 00:38:46 -0800 | [diff] [blame] | 18 | #include "sdxpoorwills-cdp-audio-overlay.dtsi" |
Jeevan Shriram | ac64e2e | 2017-10-09 12:24:49 -0700 | [diff] [blame] | 19 | |
| 20 | / { |
| 21 | model = "Qualcomm Technologies, Inc. SDXPOORWILLS CDP"; |
| 22 | compatible = "qcom,sdxpoorwills-cdp", |
| 23 | "qcom,sdxpoorwills", "qcom,cdp"; |
Jeevan Shriram | cd9c9dd | 2017-12-07 16:38:31 -0800 | [diff] [blame] | 24 | qcom,board-id = <1 0x0>, <1 0x100>, <1 0x2>, <1 0x102>; |
Jeevan Shriram | ac64e2e | 2017-10-09 12:24:49 -0700 | [diff] [blame] | 25 | }; |
| 26 | |
Jeevan Shriram | a99fb5b | 2017-11-28 08:13:04 -0800 | [diff] [blame] | 27 | &serial_uart { |
Jeevan Shriram | ac64e2e | 2017-10-09 12:24:49 -0700 | [diff] [blame] | 28 | pinctrl-names = "default"; |
Jeevan Shriram | a99fb5b | 2017-11-28 08:13:04 -0800 | [diff] [blame] | 29 | pinctrl-0 = <&uart3_console_active>; |
Jeevan Shriram | ac64e2e | 2017-10-09 12:24:49 -0700 | [diff] [blame] | 30 | status = "ok"; |
| 31 | }; |
| 32 | |
Sahitya Tummala | 61f1d32 | 2017-06-06 13:49:19 +0530 | [diff] [blame] | 33 | &qnand_1 { |
| 34 | status = "ok"; |
| 35 | }; |
Siddartha Mohanadoss | 2be47fe | 2017-10-20 11:09:41 -0700 | [diff] [blame] | 36 | |
| 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 Ghayal | bbe9ff7 | 2017-11-10 15:46:34 +0530 | [diff] [blame] | 109 | |
| 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 Kumar | 42849cf | 2017-12-06 17:30:20 -0800 | [diff] [blame] | 130 | |
| 131 | &usb { |
| 132 | status = "okay"; |
| 133 | extcon = <&smb1381_charger>; |
| 134 | }; |