Jeevan Shriram | 5da3f92 | 2018-02-05 11:49:05 -0800 | [diff] [blame] | 1 | /* 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 "sdxpoorwills.dtsi" |
| 14 | #include "sdxpoorwills-pinctrl.dtsi" |
| 15 | #include "sdxpoorwills-mtp-audio-overlay.dtsi" |
| 16 | |
| 17 | &serial_uart { |
| 18 | pinctrl-names = "default"; |
| 19 | pinctrl-0 = <&uart3_console_active>; |
| 20 | status = "ok"; |
| 21 | }; |
| 22 | |
| 23 | &qnand_1 { |
| 24 | status = "ok"; |
| 25 | }; |
| 26 | |
| 27 | &sdhc_1 { |
| 28 | vdd-supply = <&vreg_sd_mmc>; |
| 29 | |
| 30 | vdd-io-supply = <&pmxpoorwills_l7>; |
| 31 | qcom,vdd-io-voltage-level = <1800000 2950000>; |
| 32 | qcom,vdd-io-current-level = <200 10000>; |
| 33 | |
| 34 | pinctrl-names = "active", "sleep"; |
| 35 | pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on &sdc1_cd_on>; |
| 36 | pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off &sdc1_cd_off>; |
| 37 | |
| 38 | qcom,clk-rates = <400000 20000000 25000000 50000000 100000000 |
| 39 | 200000000>; |
| 40 | qcom,devfreq,freq-table = <50000000 200000000>; |
| 41 | |
| 42 | cd-gpios = <&tlmm 93 0x1>; |
| 43 | |
| 44 | status = "ok"; |
| 45 | }; |
| 46 | |
| 47 | &pmxpoorwills_vadc { |
| 48 | chan@83 { |
| 49 | label = "vph_pwr"; |
| 50 | reg = <0x83>; |
| 51 | qcom,decimation = <2>; |
| 52 | qcom,pre-div-channel-scaling = <1>; |
| 53 | qcom,calibration-type = "absolute"; |
| 54 | qcom,scale-function = <0>; |
| 55 | qcom,hw-settle-time = <0>; |
| 56 | qcom,fast-avg-setup = <0>; |
| 57 | }; |
| 58 | |
| 59 | chan@4c { |
| 60 | label = "xo_therm"; |
| 61 | reg = <0x4c>; |
| 62 | qcom,decimation = <2>; |
| 63 | qcom,pre-div-channel-scaling = <0>; |
| 64 | qcom,calibration-type = "ratiometric"; |
| 65 | qcom,scale-function = <4>; |
| 66 | qcom,hw-settle-time = <2>; |
| 67 | qcom,fast-avg-setup = <0>; |
| 68 | qcom,vadc-thermal-node; |
| 69 | }; |
| 70 | |
| 71 | chan@4d { |
| 72 | label = "pa_therm1"; |
| 73 | reg = <0x4d>; |
| 74 | qcom,decimation = <2>; |
| 75 | qcom,pre-div-channel-scaling = <0>; |
| 76 | qcom,calibration-type = "ratiometric"; |
| 77 | qcom,scale-function = <2>; |
| 78 | qcom,hw-settle-time = <2>; |
| 79 | qcom,fast-avg-setup = <0>; |
| 80 | qcom,vadc-thermal-node; |
| 81 | }; |
| 82 | |
| 83 | chan@4e { |
| 84 | label = "pa_therm2"; |
| 85 | reg = <0x4e>; |
| 86 | qcom,decimation = <2>; |
| 87 | qcom,pre-div-channel-scaling = <0>; |
| 88 | qcom,calibration-type = "ratiometric"; |
| 89 | qcom,scale-function = <2>; |
| 90 | qcom,hw-settle-time = <2>; |
| 91 | qcom,fast-avg-setup = <0>; |
| 92 | qcom,vadc-thermal-node; |
| 93 | }; |
| 94 | |
| 95 | chan@4f { |
| 96 | label = "mdm_case_therm"; |
| 97 | reg = <0x4f>; |
| 98 | qcom,decimation = <2>; |
| 99 | qcom,pre-div-channel-scaling = <0>; |
| 100 | qcom,calibration-type = "ratiometric"; |
| 101 | qcom,scale-function = <2>; |
| 102 | qcom,hw-settle-time = <2>; |
| 103 | qcom,fast-avg-setup = <0>; |
| 104 | qcom,vadc-thermal-node; |
| 105 | }; |
| 106 | |
| 107 | chan@52 { |
| 108 | label = "ambient_therm"; |
| 109 | reg = <0x52>; |
| 110 | qcom,decimation = <2>; |
| 111 | qcom,pre-div-channel-scaling = <0>; |
| 112 | qcom,calibration-type = "ratiometric"; |
| 113 | qcom,scale-function = <2>; |
| 114 | qcom,hw-settle-time = <2>; |
| 115 | qcom,fast-avg-setup = <0>; |
| 116 | qcom,vadc-thermal-node; |
| 117 | }; |
| 118 | }; |
| 119 | |
| 120 | &i2c_3 { |
| 121 | status = "okay"; |
| 122 | #include "smb138x.dtsi" |
| 123 | }; |
| 124 | |
| 125 | &smb138x { |
| 126 | pinctrl-names = "default"; |
| 127 | pinctrl-0 = <&smb_int_default>; |
| 128 | interrupt-parent = <&tlmm>; |
| 129 | interrupts = <42 IRQ_TYPE_LEVEL_LOW>; |
| 130 | |
| 131 | smb1381_charger: qcom,smb1381-charger@1000 { |
| 132 | compatible = "qcom,smb138x-charger"; |
| 133 | qcom,use-extcon; |
| 134 | }; |
| 135 | }; |
| 136 | |
| 137 | &smb138x_vbus { |
| 138 | status = "okay"; |
| 139 | }; |
| 140 | |
| 141 | &usb { |
| 142 | status = "okay"; |
| 143 | extcon = <&smb1381_charger>; |
| 144 | }; |