Raja Mallik | aac1e599 | 2018-02-16 14:54:12 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 and |
| 6 | * only version 2 as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
| 14 | /dts-v1/; |
| 15 | |
| 16 | #include "msm8909-mtp.dtsi" |
Satish Kumar Kurada | bbc2f00 | 2018-03-20 11:18:01 +0530 | [diff] [blame] | 17 | #include "msm8909w-gpu.dtsi" |
Raja Mallik | aac1e599 | 2018-02-16 14:54:12 +0530 | [diff] [blame] | 18 | #include "msm8909w.dtsi" |
| 19 | #include "msm8909w-bg-memory.dtsi" |
| 20 | #include "8909w-pm660.dtsi" |
| 21 | #include "msm8909-audio-bg_codec.dtsi" |
Raja Mallik | aac1e599 | 2018-02-16 14:54:12 +0530 | [diff] [blame] | 22 | |
| 23 | / { |
Ramesh Yadav Javadi | 67b9efb | 2018-08-01 15:00:52 +0530 | [diff] [blame] | 24 | model = "Qualcomm Technologies, Inc. MSM8909W-PM660 BG WTP SDW3100"; |
Raja Mallik | aac1e599 | 2018-02-16 14:54:12 +0530 | [diff] [blame] | 25 | compatible = "qcom,msm8909-mtp", "qcom,msm8909", "qcom,mtp"; |
| 26 | qcom,msm-id = <245 0>, |
| 27 | <258 0>, |
| 28 | <275 0>, |
| 29 | <300 0>; |
| 30 | qcom,board-id = <8 0x10f>; |
| 31 | qcom,pmic-id = <0x0001001b 0x0 0x0 0x0>, |
| 32 | <0x0001011b 0x0 0x0 0x0>; |
| 33 | }; |
| 34 | |
| 35 | &soc { |
| 36 | i2c@78b9000 { /* BLSP1 QUP5 */ |
| 37 | synaptics@20 { |
| 38 | compatible = "synaptics,dsx-i2c"; |
| 39 | reg = <0x20>; |
| 40 | interrupt-parent = <&msm_gpio>; |
| 41 | interrupts = <98 0x2008>; |
| 42 | vdd_ana-supply = <&pm660_l18>; |
| 43 | vcc_i2c-supply = <&pm660_l13>; |
| 44 | synaptics,pwr-reg-name = "vdd_ana"; |
| 45 | synaptics,bus-reg-name = "vcc_i2c"; |
| 46 | pinctrl-names = "pmx_ts_active", "pmx_ts_suspend", |
| 47 | "pmx_ts_release"; |
| 48 | pinctrl-0 = <&ts_int_active &ts_reset_active>; |
| 49 | pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; |
| 50 | pinctrl-2 = <&ts_release>; |
| 51 | synaptics,irq-gpio = <&msm_gpio 98 0x2008>; |
| 52 | synaptics,irq-on-state = <0>; |
| 53 | synaptics,irq-flags = <0x2008>; |
| 54 | synaptics,power-delay-ms = <200>; |
| 55 | synaptics,reset-delay-ms = <200>; |
| 56 | synaptics,max-y-for-2d = <389>; |
Venkata Prahlad Valluru | 20ca013 | 2018-05-25 11:34:27 +0530 | [diff] [blame] | 57 | synaptics,bus-lpm-cur-uA = <450>; |
| 58 | synaptics,do-not-disable-regulators; |
Raja Mallik | aac1e599 | 2018-02-16 14:54:12 +0530 | [diff] [blame] | 59 | synaptics,wakeup-gestures-en; |
| 60 | synaptics,resume-in-workqueue; |
Shantanu Jain | a48ab61 | 2018-08-28 16:59:02 +0530 | [diff] [blame^] | 61 | synaptics,fw-name = "PR1814809-s1222_30303032.img"; |
Raja Mallik | aac1e599 | 2018-02-16 14:54:12 +0530 | [diff] [blame] | 62 | /delete-property/ synaptics,reset-gpio; |
| 63 | /delete-property/ synaptics,display-coords; |
| 64 | /delete-property/ synaptics,panel-coords; |
| 65 | /delete-property/ synaptics,power-down; |
| 66 | /delete-property/ synaptics,disable-gpios; |
| 67 | /delete-property/ synaptics,is_wake; |
| 68 | }; |
| 69 | |
| 70 | /delete-node/ it7260@46; |
| 71 | }; |
| 72 | |
Ramesh Yadav Javadi | 92bb99a | 2018-03-31 13:19:54 +0530 | [diff] [blame] | 73 | qcom,blackghost { |
| 74 | compatible = "qcom,pil-blackghost"; |
Ramesh Yadav Javadi | b600644 | 2018-05-25 13:37:07 +0530 | [diff] [blame] | 75 | qcom,pil-force-shutdown; |
Ramesh Yadav Javadi | 92bb99a | 2018-03-31 13:19:54 +0530 | [diff] [blame] | 76 | qcom,firmware-name = "bg-wear"; |
| 77 | /* GPIO inputs from blackghost */ |
| 78 | qcom,bg2ap-status-gpio = <&msm_gpio 97 0>; |
| 79 | qcom,bg2ap-errfatal-gpio = <&msm_gpio 95 0>; |
| 80 | /* GPIO output to blackghost */ |
| 81 | qcom,ap2bg-status-gpio = <&msm_gpio 17 0>; |
| 82 | qcom,ap2bg-errfatal-gpio = <&msm_gpio 23 0>; |
| 83 | }; |
| 84 | |
Raja Mallik | aac1e599 | 2018-02-16 14:54:12 +0530 | [diff] [blame] | 85 | qcom,msm-ssc-sensors { |
| 86 | compatible = "qcom,msm-ssc-sensors"; |
| 87 | }; |
| 88 | |
| 89 | qcom,glink-bgcom-xprt-bg { |
| 90 | compatible = "qcom,glink-bgcom-xprt"; |
| 91 | label = "bg"; |
| 92 | qcom,qos-config = <&glink_qos_bg>; |
| 93 | qcom,ramp-time = <0x10>, |
| 94 | <0x20>, |
| 95 | <0x30>, |
| 96 | <0x40>; |
| 97 | }; |
| 98 | |
| 99 | glink_qos_bg: qcom,glink-qos-config-bg { |
| 100 | compatible = "qcom,glink-qos-config"; |
| 101 | qcom,flow-info = <0x80 0x0>, |
| 102 | <0x70 0x1>, |
| 103 | <0x60 0x2>, |
| 104 | <0x50 0x3>; |
| 105 | qcom,mtu-size = <0x800>; |
| 106 | qcom,tput-stats-cycle = <0xa>; |
| 107 | }; |
| 108 | |
| 109 | qcom,glink_pkt { |
| 110 | compatible = "qcom,glinkpkt"; |
| 111 | |
| 112 | qcom,glinkpkt-bg-daemon { |
| 113 | qcom,glinkpkt-transport = "bgcom"; |
| 114 | qcom,glinkpkt-edge = "bg"; |
| 115 | qcom,glinkpkt-ch-name = "bg-daemon"; |
| 116 | qcom,glinkpkt-dev-name = "glink_pkt_bg_daemon"; |
| 117 | }; |
| 118 | |
| 119 | qcom,glinkpkt-bg-display-ctrl { |
| 120 | qcom,glinkpkt-transport = "bgcom"; |
| 121 | qcom,glinkpkt-edge = "bg"; |
| 122 | qcom,glinkpkt-ch-name = "display-ctrl"; |
| 123 | qcom,glinkpkt-dev-name = "glink_pkt_bg_display_ctrl"; |
| 124 | }; |
| 125 | |
| 126 | qcom,glinkpkt-bg-display-data { |
| 127 | qcom,glinkpkt-transport = "bgcom"; |
| 128 | qcom,glinkpkt-edge = "bg"; |
| 129 | qcom,glinkpkt-ch-name = "display-data"; |
| 130 | qcom,glinkpkt-dev-name = "glink_pkt_bg_display_data"; |
| 131 | }; |
| 132 | |
| 133 | qcom,glinkpkt-bg-rsb-ctrl { |
| 134 | qcom,glinkpkt-transport = "bgcom"; |
| 135 | qcom,glinkpkt-edge = "bg"; |
| 136 | qcom,glinkpkt-ch-name = "RSB_CTRL"; |
| 137 | qcom,glinkpkt-dev-name = "glink_pkt_bg_rsb_ctrl"; |
| 138 | }; |
| 139 | }; |
| 140 | |
| 141 | spi@78B8000 { /* BLSP1 QUP4 */ |
| 142 | status = "ok"; |
| 143 | qcom,bg-spi { |
| 144 | compatible = "qcom,bg-spi"; |
| 145 | reg = <0>; |
| 146 | spi-max-frequency = <16000000>; |
| 147 | interrupt-parent = <&msm_gpio>; |
| 148 | qcom,irq-gpio = <&msm_gpio 110 1>; |
| 149 | }; |
| 150 | }; |
| 151 | |
| 152 | qcom,msm-thermal { |
| 153 | vdd-dig-supply = <&pm660_s2_floor_corner>; |
| 154 | |
| 155 | msm_thermal_freq: qcom,vdd-apps-rstr { |
| 156 | qcom,vdd-rstr-reg = "vdd-apps"; |
| 157 | qcom,levels = <1094400>; |
| 158 | qcom,freq-req; |
| 159 | }; |
| 160 | }; |
| 161 | |
| 162 | qcom,bg-rsb { |
| 163 | compatible = "qcom,bg-rsb"; |
| 164 | vdd-ldo1-supply = <&pm660_l11>; |
| 165 | vdd-ldo2-supply = <&pm660_l15>; |
| 166 | }; |
| 167 | |
| 168 | qcom,bg-daemon { |
| 169 | compatible = "qcom,bg-daemon"; |
| 170 | qcom,bg-reset-gpio = <&pm660_gpios 5 0>; |
Ramesh Yadav Javadi | 92bb99a | 2018-03-31 13:19:54 +0530 | [diff] [blame] | 171 | ssr-reg1-supply = <&pm660_l3>; |
| 172 | ssr-reg2-supply = <&pm660_l9>; |
Raja Mallik | aac1e599 | 2018-02-16 14:54:12 +0530 | [diff] [blame] | 173 | }; |
| 174 | |
| 175 | qcom,bcl { |
| 176 | compatible = "qcom,bcl"; |
| 177 | qcom,bcl-enable; |
| 178 | qcom,bcl-framework-interface; |
| 179 | qcom,bcl-freq-control-list = <&CPU0 &CPU1 &CPU2 &CPU3>; |
| 180 | qcom,bcl-hotplug-list = <&CPU2 &CPU3>; |
| 181 | qcom,bcl-soc-hotplug-list = <&CPU2 &CPU3>; |
| 182 | qcom,ibat-monitor { |
| 183 | qcom,low-threshold-uamp = <1000000>; |
| 184 | qcom,high-threshold-uamp = <2000000>; |
| 185 | qcom,mitigation-freq-khz = <1094400>; |
| 186 | qcom,vph-high-threshold-uv = <3500000>; |
| 187 | qcom,vph-low-threshold-uv = <3200000>; |
| 188 | qcom,soc-low-threshold = <10>; |
| 189 | qcom,thermal-handle = <&msm_thermal_freq>; |
| 190 | }; |
| 191 | }; |
| 192 | }; |
| 193 | |
| 194 | &audio_codec_mtp { |
| 195 | status = "disabled"; |
| 196 | }; |
| 197 | |
| 198 | &audio_codec_bg { |
| 199 | status = "ok"; |
| 200 | }; |
| 201 | |
| 202 | &bg_cdc { |
| 203 | status = "ok"; |
| 204 | vdd-spkr-supply = <&pm660_l11>; |
| 205 | }; |
| 206 | |
| 207 | &i2c_1 { |
| 208 | status = "okay"; |
| 209 | nq@28 { |
| 210 | compatible = "qcom,nq-nci"; |
| 211 | reg = <0x28>; |
| 212 | qcom,nq-irq = <&msm_gpio 50 0x00>; |
| 213 | qcom,nq-ven = <&msm_gpio 36 0x00>; |
| 214 | qcom,nq-firm = <&msm_gpio 38 0x00>; |
| 215 | qcom,nq-esepwr = <&msm_gpio 49 0x00>; |
| 216 | qcom,nq-clkreq = <&pm660_gpios 4 0x00>; |
| 217 | qcom,clk-src = "BBCLK3"; |
| 218 | interrupt-parent = <&msm_gpio>; |
| 219 | interrupts = <50 0>; |
| 220 | interrupt-names = "nfc_irq"; |
| 221 | pinctrl-names = "nfc_active","nfc_suspend"; |
| 222 | pinctrl-0 = <&nfcw_int_active |
| 223 | &nfcw_disable_active |
| 224 | &nfc_clk_default>; |
| 225 | pinctrl-1 = <&nfcw_int_suspend &nfcw_disable_suspend>; |
Arun kumar | 342c69e | 2018-05-29 13:09:05 +0530 | [diff] [blame] | 226 | clocks = <&clock_rpm clk_bb_clk3_pin>; |
Raja Mallik | aac1e599 | 2018-02-16 14:54:12 +0530 | [diff] [blame] | 227 | clock-names = "ref_clk"; |
| 228 | }; |
| 229 | }; |
| 230 | |
| 231 | &spi_0 { |
| 232 | status = "disabled"; |
| 233 | }; |
| 234 | |
| 235 | &i2c_3 { |
| 236 | status = "disabled"; |
| 237 | }; |
| 238 | |
| 239 | &i2c_4 { |
| 240 | status = "disabled"; |
| 241 | }; |
| 242 | |
| 243 | &i2c_2 { |
| 244 | status = "disabled"; |
| 245 | }; |
| 246 | |
Veerabhadrarao Badiganti | 6d5f0ae | 2018-05-29 20:46:30 +0530 | [diff] [blame] | 247 | &sdc1_clk_off { |
| 248 | config { |
| 249 | pins = "sdc1_clk"; |
| 250 | bias-disable; /* NO pull */ |
| 251 | drive-strength = <2>; /* 2 MA */ |
| 252 | output-low; |
| 253 | }; |
| 254 | }; |
| 255 | |
| 256 | &sdc1_cmd_off { |
| 257 | config { |
| 258 | pins = "sdc1_cmd"; |
| 259 | bias-disable; /* NO pull */ |
| 260 | drive-strength = <2>; /* 2 MA */ |
| 261 | output-low; |
| 262 | }; |
| 263 | }; |
| 264 | |
| 265 | &sdc1_data_off { |
| 266 | config { |
| 267 | pins = "sdc1_data"; |
| 268 | bias-disable; /* NO pull */ |
| 269 | drive-strength = <2>; /* 2 MA */ |
| 270 | output-low; |
| 271 | }; |
| 272 | }; |
| 273 | |
Raja Mallik | aac1e599 | 2018-02-16 14:54:12 +0530 | [diff] [blame] | 274 | &sdhc_2 { |
| 275 | status = "disabled"; |
| 276 | }; |
| 277 | |
| 278 | &blsp1_uart1 { |
| 279 | status = "ok"; |
| 280 | pinctrl-names = "default"; |
| 281 | pinctrl-0 = <&uart_console_sleep>; |
| 282 | }; |
| 283 | |
| 284 | /* Pinctrl dt nodes for interrupt & reset gpio for Synaptics touch controller */ |
| 285 | &ts_int_active { |
| 286 | mux { |
| 287 | pins = "gpio98"; |
| 288 | }; |
| 289 | |
| 290 | config { |
| 291 | pins = "gpio98"; |
| 292 | }; |
| 293 | }; |
| 294 | |
| 295 | &ts_int_suspend { |
| 296 | mux { |
| 297 | pins = "gpio98"; |
| 298 | }; |
| 299 | |
| 300 | config { |
| 301 | pins = "gpio98"; |
| 302 | /delete-property/ bias-pull-down; |
| 303 | bias-disable; /* No PULL */ |
| 304 | }; |
| 305 | }; |
| 306 | |
| 307 | &ts_reset_active { |
| 308 | mux { |
| 309 | pins = "gpio16"; |
| 310 | }; |
| 311 | |
| 312 | config { |
| 313 | pins = "gpio16"; |
| 314 | }; |
| 315 | }; |
| 316 | |
| 317 | &ts_reset_suspend { |
| 318 | mux { |
| 319 | pins = "gpio16"; |
| 320 | }; |
| 321 | |
| 322 | config { |
| 323 | pins = "gpio16"; |
| 324 | }; |
| 325 | }; |
| 326 | |
| 327 | &ts_release { |
| 328 | mux { |
| 329 | pins = "gpio98", "gpio16"; |
| 330 | }; |
| 331 | |
| 332 | config { |
| 333 | pins = "gpio98", "gpio16"; |
| 334 | }; |
| 335 | }; |
| 336 | |
| 337 | &spi4_cs0_active { |
| 338 | mux { |
| 339 | pins = "gpio14"; |
| 340 | function = "blsp_spi4"; |
| 341 | }; |
| 342 | config { |
| 343 | pins = "gpio14"; |
| 344 | drive-strength = <2>; |
| 345 | bias-disable; /* No PULL */ |
| 346 | output-high; |
| 347 | }; |
| 348 | }; |
Arun kumar | 8e24ce1 | 2018-03-21 22:16:36 +0530 | [diff] [blame] | 349 | |
| 350 | &mdss_dsi0 { |
| 351 | qcom,dsi-pref-prim-pan = <&dsi_auo_390p_cmd>; |
| 352 | qcom,platform-bklight-en-gpio = <&msm_gpio 52 0>; |
Arun kumar | a60e56f | 2018-05-09 21:09:38 +0530 | [diff] [blame] | 353 | qcom,platform-enable-gpio = <&msm_gpio 59 0>; |
Arun kumar | 8e24ce1 | 2018-03-21 22:16:36 +0530 | [diff] [blame] | 354 | }; |