Jingbiao Lu | dc9d878 | 2018-01-31 16:35:04 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 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 | |
Vijay kumar Tumati | 6dfea30 | 2018-03-23 16:17:51 +0530 | [diff] [blame] | 14 | #include "sdm439-camera-sensor-mtp.dtsi" |
| 15 | |
Jingbiao Lu | dc9d878 | 2018-01-31 16:35:04 +0800 | [diff] [blame] | 16 | &blsp1_uart2 { |
| 17 | status = "ok"; |
| 18 | }; |
Sayali Lokhande | a59d113 | 2018-03-06 08:24:01 +0530 | [diff] [blame] | 19 | |
c_pbembr | 8ea68ce | 2018-04-13 18:23:36 +0530 | [diff] [blame] | 20 | &pm8953_gpios { |
| 21 | nfc_clk { |
| 22 | nfc_clk_default: nfc_clk_default { |
| 23 | pins = "gpio2"; |
| 24 | function = "normal"; |
| 25 | input-enable; |
| 26 | power-source = <1>; |
| 27 | }; |
| 28 | }; |
| 29 | }; |
| 30 | |
| 31 | &i2c_5 { /* BLSP2 QUP1 (NFC) */ |
| 32 | status = "ok"; |
| 33 | nq@28 { |
| 34 | compatible = "qcom,nq-nci"; |
| 35 | reg = <0x28>; |
| 36 | qcom,nq-irq = <&tlmm 17 0x00>; |
| 37 | qcom,nq-ven = <&tlmm 16 0x00>; |
| 38 | qcom,nq-firm = <&tlmm 130 0x00>; |
| 39 | qcom,nq-clkreq = <&pm8953_gpios 2 0x00>; |
| 40 | qcom,nq-esepwr = <&tlmm 93 0x00>; |
| 41 | interrupt-parent = <&tlmm>; |
| 42 | qcom,clk-src = "BBCLK2"; |
| 43 | interrupts = <17 0>; |
| 44 | interrupt-names = "nfc_irq"; |
| 45 | pinctrl-names = "nfc_active", "nfc_suspend"; |
| 46 | pinctrl-0 = <&nfc_int_active &nfc_disable_active |
| 47 | &nfc_clk_default>; |
| 48 | pinctrl-1 = <&nfc_int_suspend &nfc_disable_suspend>; |
| 49 | clocks = <&clock_gcc clk_bb_clk2_pin>; |
| 50 | clock-names = "ref_clk"; |
| 51 | }; |
| 52 | }; |
| 53 | |
Sayali Lokhande | a59d113 | 2018-03-06 08:24:01 +0530 | [diff] [blame] | 54 | &sdhc_1 { |
| 55 | /* device core power supply */ |
| 56 | vdd-supply = <&pm8953_l8>; |
| 57 | qcom,vdd-voltage-level = <2900000 2900000>; |
| 58 | qcom,vdd-current-level = <200 570000>; |
| 59 | |
| 60 | /* device communication power supply */ |
| 61 | vdd-io-supply = <&pm8953_l5>; |
| 62 | qcom,vdd-io-always-on; |
| 63 | qcom,vdd-io-lpm-sup; |
| 64 | qcom,vdd-io-voltage-level = <1800000 1800000>; |
| 65 | qcom,vdd-io-current-level = <200 325000>; |
| 66 | |
| 67 | pinctrl-names = "active", "sleep"; |
| 68 | pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on &sdc1_rclk_on>; |
| 69 | pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off &sdc1_rclk_off>; |
| 70 | |
| 71 | qcom,clk-rates = <400000 20000000 25000000 50000000 100000000 192000000 |
| 72 | 384000000>; |
| 73 | qcom,nonremovable; |
| 74 | qcom,bus-speed-mode = "HS400_1p8v", "HS200_1p8v", "DDR_1p8v"; |
| 75 | |
| 76 | status = "ok"; |
| 77 | }; |
| 78 | |
| 79 | &sdhc_2 { |
| 80 | /* device core power supply */ |
| 81 | vdd-supply = <&pm8953_l11>; |
| 82 | qcom,vdd-voltage-level = <2950000 2950000>; |
| 83 | qcom,vdd-current-level = <15000 800000>; |
| 84 | |
| 85 | /* device communication power supply */ |
| 86 | vdd-io-supply = <&pm8953_l12>; |
| 87 | qcom,vdd-io-voltage-level = <1800000 2950000>; |
| 88 | qcom,vdd-io-current-level = <200 22000>; |
| 89 | |
| 90 | pinctrl-names = "active", "sleep"; |
| 91 | pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; |
| 92 | pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>; |
| 93 | |
| 94 | cd-gpios = <&tlmm 67 0x1>; |
| 95 | |
| 96 | qcom,clk-rates = <400000 20000000 25000000 50000000 100000000 |
| 97 | 200000000>; |
| 98 | qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50", "SDR104"; |
| 99 | |
| 100 | status = "ok"; |
| 101 | }; |
Vevek Venkatesan | 8610b3a | 2018-03-29 14:41:05 +0530 | [diff] [blame] | 102 | |
| 103 | &soc { |
| 104 | gpio_keys { |
| 105 | compatible = "gpio-keys"; |
| 106 | input-name = "gpio-keys"; |
| 107 | pinctrl-names = "default"; |
| 108 | pinctrl-0 = <&gpio_key_active>; |
| 109 | |
| 110 | camera_focus { |
| 111 | label = "camera_focus"; |
| 112 | gpios = <&tlmm 128 0x1>; |
| 113 | linux,input-type = <1>; |
| 114 | linux,code = <0x210>; |
| 115 | debounce-interval = <15>; |
| 116 | linux,can-disable; |
| 117 | gpio-key,wakeup; |
| 118 | }; |
| 119 | |
| 120 | camera_snapshot { |
| 121 | label = "camera_snapshot"; |
| 122 | gpios = <&tlmm 127 0x1>; |
| 123 | linux,input-type = <1>; |
| 124 | linux,code = <0x2fe>; |
| 125 | debounce-interval = <15>; |
| 126 | linux,can-disable; |
| 127 | gpio-key,wakeup; |
| 128 | }; |
| 129 | |
| 130 | vol_up { |
| 131 | label = "volume_up"; |
| 132 | gpios = <&tlmm 91 0x1>; |
| 133 | linux,input-type = <1>; |
| 134 | linux,code = <115>; |
| 135 | debounce-interval = <15>; |
| 136 | linux,can-disable; |
| 137 | gpio-key,wakeup; |
| 138 | }; |
| 139 | }; |
| 140 | }; |
Rashi Bindra | a5dc494 | 2018-03-08 18:59:36 +0530 | [diff] [blame] | 141 | |
| 142 | #include "msm8937-mdss-panels.dtsi" |
| 143 | |
| 144 | &pm8953_gpios { |
| 145 | bklt_en { |
| 146 | bklt_en_default: bklt_en_default { |
| 147 | pins = "gpio4"; |
| 148 | function = "normal"; |
| 149 | power-source = <0>; |
| 150 | output-high; |
| 151 | }; |
| 152 | }; |
| 153 | }; |
| 154 | |
| 155 | &pm8953_pwm { |
| 156 | status = "ok"; |
| 157 | }; |
| 158 | |
| 159 | &mdss_mdp { |
| 160 | qcom,mdss-pref-prim-intf = "dsi"; |
| 161 | }; |
| 162 | |
| 163 | &mdss_dsi { |
| 164 | hw-config = "single_dsi"; |
| 165 | }; |
| 166 | |
| 167 | &mdss_dsi0 { |
| 168 | qcom,dsi-pref-prim-pan = <&dsi_hx8399c_truly_vid>; |
| 169 | pinctrl-names = "mdss_default", "mdss_sleep"; |
| 170 | pinctrl-0 = <&mdss_dsi_active &mdss_te_active &bklt_en_default>; |
| 171 | pinctrl-1 = <&mdss_dsi_suspend &mdss_te_suspend>; |
| 172 | |
| 173 | qcom,platform-bklight-en-gpio = <&pm8953_gpios 4 0>; |
| 174 | qcom,platform-te-gpio = <&tlmm 24 0>; |
Rashi Bindra | 2a91a16 | 2018-04-09 17:37:02 +0530 | [diff] [blame] | 175 | qcom,platform-reset-gpio = <&tlmm 60 0>; |
Rashi Bindra | a5dc494 | 2018-03-08 18:59:36 +0530 | [diff] [blame] | 176 | lab-supply = <&lcdb_ldo_vreg>; |
| 177 | ibb-supply = <&lcdb_ncp_vreg>; |
Padmanabhan Komanduru | dfeb2d8 | 2018-04-24 10:39:16 +0530 | [diff] [blame] | 178 | }; |
Rashi Bindra | a5dc494 | 2018-03-08 18:59:36 +0530 | [diff] [blame] | 179 | |
Padmanabhan Komanduru | dfeb2d8 | 2018-04-24 10:39:16 +0530 | [diff] [blame] | 180 | &mdss_dsi1 { |
| 181 | status = "disabled"; |
Rashi Bindra | a5dc494 | 2018-03-08 18:59:36 +0530 | [diff] [blame] | 182 | }; |
| 183 | |
| 184 | &dsi_hx8399c_truly_vid { |
Padmanabhan Komanduru | 9bbf9cd | 2018-04-14 10:59:03 +0530 | [diff] [blame] | 185 | /delete-property/ qcom,mdss-dsi-panel-timings; |
| 186 | qcom,mdss-dsi-panel-timings-phy-12nm = [18 0a 10 06 03 08 06 0e]; |
Rashi Bindra | a5dc494 | 2018-03-08 18:59:36 +0530 | [diff] [blame] | 187 | qcom,mdss-dsi-t-clk-post = <0x02>; |
| 188 | qcom,mdss-dsi-t-clk-pre = <0x2d>; |
| 189 | qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_pwm"; |
| 190 | qcom,mdss-dsi-bl-pmic-pwm-frequency = <100>; |
| 191 | qcom,mdss-dsi-bl-pmic-bank-select = <0>; |
| 192 | qcom,mdss-dsi-pwm-gpio = <&pm8953_gpios 8 0>; |
| 193 | qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; |
Padmanabhan Komanduru | 399d3c3 | 2018-04-23 17:34:04 +0530 | [diff] [blame] | 194 | qcom,esd-check-enabled; |
| 195 | qcom,mdss-dsi-panel-status-check-mode = "reg_read"; |
| 196 | qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; |
| 197 | qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; |
| 198 | qcom,mdss-dsi-panel-status-value = <0x9d 0x9d 0x9d 0x9d>; |
| 199 | qcom,mdss-dsi-panel-on-check-value = <0x9d 0x9d 0x9d 0x9d>; |
| 200 | qcom,mdss-dsi-panel-status-read-length = <4>; |
| 201 | qcom,mdss-dsi-panel-max-error-count = <3>; |
| 202 | qcom,mdss-dsi-min-refresh-rate = <48>; |
| 203 | qcom,mdss-dsi-max-refresh-rate = <60>; |
| 204 | qcom,mdss-dsi-pan-enable-dynamic-fps; |
| 205 | qcom,mdss-dsi-pan-fps-update = |
| 206 | "dfps_immediate_porch_mode_vfp"; |
Rashi Bindra | a5dc494 | 2018-03-08 18:59:36 +0530 | [diff] [blame] | 207 | }; |
| 208 | |
| 209 | &dsi_hx8399c_hd_vid { |
Padmanabhan Komanduru | 9bbf9cd | 2018-04-14 10:59:03 +0530 | [diff] [blame] | 210 | /delete-property/ qcom,mdss-dsi-panel-timings; |
| 211 | qcom,mdss-dsi-panel-timings-phy-12nm = [08 06 0a 02 00 04 02 08]; |
Rashi Bindra | a5dc494 | 2018-03-08 18:59:36 +0530 | [diff] [blame] | 212 | qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; |
Rashi Bindra | a5dc494 | 2018-03-08 18:59:36 +0530 | [diff] [blame] | 213 | qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_pwm"; |
| 214 | qcom,mdss-dsi-bl-pmic-pwm-frequency = <100>; |
| 215 | qcom,mdss-dsi-bl-pmic-bank-select = <0>; |
| 216 | qcom,mdss-dsi-pwm-gpio = <&pm8953_gpios 8 0>; |
Padmanabhan Komanduru | 115ac15 | 2018-05-17 15:11:24 +0530 | [diff] [blame] | 217 | qcom,esd-check-enabled; |
| 218 | qcom,mdss-dsi-panel-status-check-mode = "reg_read"; |
| 219 | qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; |
| 220 | qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; |
| 221 | qcom,mdss-dsi-panel-status-value = <0x9d 0x9d 0x9d 0x9d>; |
| 222 | qcom,mdss-dsi-panel-on-check-value = <0x9d 0x9d 0x9d 0x9d>; |
| 223 | qcom,mdss-dsi-panel-status-read-length = <4>; |
| 224 | qcom,mdss-dsi-panel-max-error-count = <3>; |
| 225 | qcom,mdss-dsi-min-refresh-rate = <48>; |
| 226 | qcom,mdss-dsi-max-refresh-rate = <60>; |
| 227 | qcom,mdss-dsi-pan-enable-dynamic-fps; |
| 228 | qcom,mdss-dsi-pan-fps-update = |
| 229 | "dfps_immediate_porch_mode_vfp"; |
Rashi Bindra | a5dc494 | 2018-03-08 18:59:36 +0530 | [diff] [blame] | 230 | }; |
Ashay Jaiswal | cc0c423 | 2018-05-21 15:37:53 +0530 | [diff] [blame] | 231 | |
Padmanabhan Komanduru | 6c742c0 | 2018-06-04 18:05:52 +0530 | [diff] [blame] | 232 | &dsi_nt35695b_truly_fhd_cmd { |
| 233 | qcom,mdss-dsi-panel-width = <1080>; |
| 234 | qcom,mdss-dsi-panel-height = <1920>; |
| 235 | qcom,mdss-dsi-h-front-porch = <120>; |
| 236 | qcom,mdss-dsi-h-back-porch = <60>; |
| 237 | qcom,mdss-dsi-h-pulse-width = <12>; |
| 238 | qcom,mdss-dsi-h-sync-skew = <0>; |
| 239 | qcom,mdss-dsi-v-back-porch = <2>; |
| 240 | qcom,mdss-dsi-v-front-porch = <12>; |
| 241 | qcom,mdss-dsi-v-pulse-width = <2>; |
| 242 | qcom,mdss-dsi-h-sync-pulse = <0>; |
| 243 | qcom,mdss-dsi-h-left-border = <0>; |
| 244 | qcom,mdss-dsi-h-right-border = <0>; |
| 245 | qcom,mdss-dsi-v-top-border = <0>; |
| 246 | qcom,mdss-dsi-v-bottom-border = <0>; |
| 247 | qcom,mdss-dsi-panel-framerate = <60>; |
| 248 | qcom,mdss-dsi-on-command = |
| 249 | [15 01 00 00 10 00 02 ff 20 |
| 250 | 15 01 00 00 00 00 02 fb 01 |
| 251 | 15 01 00 00 00 00 02 00 01 |
| 252 | 15 01 00 00 00 00 02 01 55 |
| 253 | 15 01 00 00 00 00 02 02 45 |
| 254 | 15 01 00 00 00 00 02 03 55 |
| 255 | 15 01 00 00 00 00 02 05 50 |
| 256 | 15 01 00 00 00 00 02 06 a8 |
| 257 | 15 01 00 00 00 00 02 07 ad |
| 258 | 15 01 00 00 00 00 02 08 0c |
| 259 | 15 01 00 00 00 00 02 0b aa |
| 260 | 15 01 00 00 00 00 02 0c aa |
| 261 | 15 01 00 00 00 00 02 0e b0 |
| 262 | 15 01 00 00 00 00 02 0f b3 |
| 263 | 15 01 00 00 00 00 02 11 28 |
| 264 | 15 01 00 00 00 00 02 12 10 |
| 265 | 15 01 00 00 00 00 02 13 01 |
| 266 | 15 01 00 00 00 00 02 14 4a |
| 267 | 15 01 00 00 00 00 02 15 12 |
| 268 | 15 01 00 00 00 00 02 16 12 |
| 269 | 15 01 00 00 00 00 02 30 01 |
| 270 | 15 01 00 00 00 00 02 72 11 |
| 271 | 15 01 00 00 00 00 02 58 82 |
| 272 | 15 01 00 00 00 00 02 59 00 |
| 273 | 15 01 00 00 00 00 02 5a 02 |
| 274 | 15 01 00 00 00 00 02 5b 00 |
| 275 | 15 01 00 00 00 00 02 5c 82 |
| 276 | 15 01 00 00 00 00 02 5d 80 |
| 277 | 15 01 00 00 00 00 02 5e 02 |
| 278 | 15 01 00 00 00 00 02 5f 00 |
| 279 | 15 01 00 00 00 00 02 ff 24 |
| 280 | 15 01 00 00 00 00 02 fb 01 |
| 281 | 15 01 00 00 00 00 02 00 01 |
| 282 | 15 01 00 00 00 00 02 01 0b |
| 283 | 15 01 00 00 00 00 02 02 0c |
| 284 | 15 01 00 00 00 00 02 03 89 |
| 285 | 15 01 00 00 00 00 02 04 8a |
| 286 | 15 01 00 00 00 00 02 05 0f |
| 287 | 15 01 00 00 00 00 02 06 10 |
| 288 | 15 01 00 00 00 00 02 07 10 |
| 289 | 15 01 00 00 00 00 02 08 1c |
| 290 | 15 01 00 00 00 00 02 09 00 |
| 291 | 15 01 00 00 00 00 02 0a 00 |
| 292 | 15 01 00 00 00 00 02 0b 00 |
| 293 | 15 01 00 00 00 00 02 0c 00 |
| 294 | 15 01 00 00 00 00 02 0d 13 |
| 295 | 15 01 00 00 00 00 02 0e 15 |
| 296 | 15 01 00 00 00 00 02 0f 17 |
| 297 | 15 01 00 00 00 00 02 10 01 |
| 298 | 15 01 00 00 00 00 02 11 0b |
| 299 | 15 01 00 00 00 00 02 12 0c |
| 300 | 15 01 00 00 00 00 02 13 89 |
| 301 | 15 01 00 00 00 00 02 14 8a |
| 302 | 15 01 00 00 00 00 02 15 0f |
| 303 | 15 01 00 00 00 00 02 16 10 |
| 304 | 15 01 00 00 00 00 02 17 10 |
| 305 | 15 01 00 00 00 00 02 18 1c |
| 306 | 15 01 00 00 00 00 02 19 00 |
| 307 | 15 01 00 00 00 00 02 1a 00 |
| 308 | 15 01 00 00 00 00 02 1b 00 |
| 309 | 15 01 00 00 00 00 02 1c 00 |
| 310 | 15 01 00 00 00 00 02 1d 13 |
| 311 | 15 01 00 00 00 00 02 1e 15 |
| 312 | 15 01 00 00 00 00 02 1f 17 |
| 313 | 15 01 00 00 00 00 02 20 00 |
| 314 | 15 01 00 00 00 00 02 21 01 |
| 315 | 15 01 00 00 00 00 02 22 00 |
| 316 | 15 01 00 00 00 00 02 23 40 |
| 317 | 15 01 00 00 00 00 02 24 40 |
| 318 | 15 01 00 00 00 00 02 25 6d |
| 319 | 15 01 00 00 00 00 02 26 40 |
| 320 | 15 01 00 00 00 00 02 27 40 |
| 321 | 15 01 00 00 00 00 02 29 d8 |
| 322 | 15 01 00 00 00 00 02 2a 2a |
| 323 | 15 01 00 00 00 00 02 4b 03 |
| 324 | 15 01 00 00 00 00 02 4c 11 |
| 325 | 15 01 00 00 00 00 02 4d 10 |
| 326 | 15 01 00 00 00 00 02 4e 01 |
| 327 | 15 01 00 00 00 00 02 4f 01 |
| 328 | 15 01 00 00 00 00 02 50 10 |
| 329 | 15 01 00 00 00 00 02 51 00 |
| 330 | 15 01 00 00 00 00 02 52 80 |
| 331 | 15 01 00 00 00 00 02 53 00 |
| 332 | 15 01 00 00 00 00 02 54 07 |
| 333 | 15 01 00 00 00 00 02 55 25 |
| 334 | 15 01 00 00 00 00 02 56 00 |
| 335 | 15 01 00 00 00 00 02 58 07 |
| 336 | 15 01 00 00 00 00 02 5b 43 |
| 337 | 15 01 00 00 00 00 02 5c 00 |
| 338 | 15 01 00 00 00 00 02 5f 73 |
| 339 | 15 01 00 00 00 00 02 60 73 |
| 340 | 15 01 00 00 00 00 02 63 22 |
| 341 | 15 01 00 00 00 00 02 64 00 |
| 342 | 15 01 00 00 00 00 02 67 08 |
| 343 | 15 01 00 00 00 00 02 68 04 |
| 344 | 15 01 00 00 00 00 02 7a 80 |
| 345 | 15 01 00 00 00 00 02 7b 91 |
| 346 | 15 01 00 00 00 00 02 7c d8 |
| 347 | 15 01 00 00 00 00 02 7d 60 |
| 348 | 15 01 00 00 00 00 02 93 06 |
| 349 | 15 01 00 00 00 00 02 94 06 |
| 350 | 15 01 00 00 00 00 02 8a 00 |
| 351 | 15 01 00 00 00 00 02 9b 0f |
| 352 | 15 01 00 00 00 00 02 b3 c0 |
| 353 | 15 01 00 00 00 00 02 b4 00 |
| 354 | 15 01 00 00 00 00 02 b5 00 |
| 355 | 15 01 00 00 00 00 02 b6 21 |
| 356 | 15 01 00 00 00 00 02 b7 22 |
| 357 | 15 01 00 00 00 00 02 b8 07 |
| 358 | 15 01 00 00 00 00 02 b9 07 |
| 359 | 15 01 00 00 00 00 02 ba 22 |
| 360 | 15 01 00 00 00 00 02 bd 20 |
| 361 | 15 01 00 00 00 00 02 be 07 |
| 362 | 15 01 00 00 00 00 02 bf 07 |
| 363 | 15 01 00 00 00 00 02 c1 6d |
| 364 | 15 01 00 00 00 00 02 c4 24 |
| 365 | 15 01 00 00 00 00 02 e3 00 |
| 366 | 15 01 00 00 00 00 02 ec 00 |
| 367 | 15 01 00 00 00 00 02 ff 10 |
| 368 | 15 01 00 00 00 00 02 bb 10 |
| 369 | 15 01 00 00 00 00 02 35 00 |
| 370 | 05 01 00 00 78 00 02 11 00 |
| 371 | 05 01 00 00 78 00 02 29 00]; |
| 372 | qcom,mdss-dsi-off-command = [05 01 00 00 14 |
| 373 | 00 02 28 00 05 01 00 00 78 00 02 10 00]; |
| 374 | qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; |
| 375 | qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; |
| 376 | qcom,mdss-dsi-panel-timings-phy-12nm = [17 0a 0f 06 03 08 06 0e]; |
| 377 | qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; |
| 378 | qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_pwm"; |
| 379 | qcom,mdss-dsi-bl-pmic-pwm-frequency = <100>; |
| 380 | qcom,mdss-dsi-bl-pmic-bank-select = <0>; |
| 381 | qcom,mdss-dsi-pwm-gpio = <&pm8953_gpios 8 0>; |
| 382 | qcom,ulps-enabled; |
| 383 | qcom,esd-check-enabled; |
| 384 | qcom,mdss-dsi-panel-status-check-mode = "reg_read"; |
| 385 | qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; |
| 386 | qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; |
| 387 | qcom,mdss-dsi-panel-status-value = <0x9c>; |
| 388 | qcom,mdss-dsi-panel-on-check-value = <0x9c>; |
| 389 | qcom,mdss-dsi-panel-status-read-length = <1>; |
| 390 | qcom,mdss-dsi-panel-max-error-count = <3>; |
| 391 | /delete-node/ qcom,mdss-dsi-display-timings; |
| 392 | }; |
| 393 | |
| 394 | &dsi_nt35695b_truly_fhd_video { |
| 395 | qcom,mdss-dsi-panel-width = <1080>; |
| 396 | qcom,mdss-dsi-panel-height = <1920>; |
| 397 | qcom,mdss-dsi-h-front-porch = <120>; |
| 398 | qcom,mdss-dsi-h-back-porch = <60>; |
| 399 | qcom,mdss-dsi-h-pulse-width = <12>; |
| 400 | qcom,mdss-dsi-h-sync-skew = <0>; |
| 401 | qcom,mdss-dsi-h-sync-pulse = <0>; |
| 402 | qcom,mdss-dsi-v-back-porch = <2>; |
| 403 | qcom,mdss-dsi-v-front-porch = <12>; |
| 404 | qcom,mdss-dsi-v-pulse-width = <2>; |
| 405 | qcom,mdss-dsi-h-left-border = <0>; |
| 406 | qcom,mdss-dsi-h-right-border = <0>; |
| 407 | qcom,mdss-dsi-v-top-border = <0>; |
| 408 | qcom,mdss-dsi-v-bottom-border = <0>; |
| 409 | qcom,mdss-dsi-panel-framerate = <60>; |
| 410 | qcom,mdss-dsi-on-command = |
| 411 | [15 01 00 00 10 00 02 ff 20 |
| 412 | 15 01 00 00 00 00 02 fb 01 |
| 413 | 15 01 00 00 00 00 02 00 01 |
| 414 | 15 01 00 00 00 00 02 01 55 |
| 415 | 15 01 00 00 00 00 02 02 45 |
| 416 | 15 01 00 00 00 00 02 03 55 |
| 417 | 15 01 00 00 00 00 02 05 50 |
| 418 | 15 01 00 00 00 00 02 06 a8 |
| 419 | 15 01 00 00 00 00 02 07 ad |
| 420 | 15 01 00 00 00 00 02 08 0c |
| 421 | 15 01 00 00 00 00 02 0b aa |
| 422 | 15 01 00 00 00 00 02 0c aa |
| 423 | 15 01 00 00 00 00 02 0e b0 |
| 424 | 15 01 00 00 00 00 02 0f b3 |
| 425 | 15 01 00 00 00 00 02 11 28 |
| 426 | 15 01 00 00 00 00 02 12 10 |
| 427 | 15 01 00 00 00 00 02 13 01 |
| 428 | 15 01 00 00 00 00 02 14 4a |
| 429 | 15 01 00 00 00 00 02 15 12 |
| 430 | 15 01 00 00 00 00 02 16 12 |
| 431 | 15 01 00 00 00 00 02 30 01 |
| 432 | 15 01 00 00 00 00 02 72 11 |
| 433 | 15 01 00 00 00 00 02 58 82 |
| 434 | 15 01 00 00 00 00 02 59 00 |
| 435 | 15 01 00 00 00 00 02 5a 02 |
| 436 | 15 01 00 00 00 00 02 5b 00 |
| 437 | 15 01 00 00 00 00 02 5c 82 |
| 438 | 15 01 00 00 00 00 02 5d 80 |
| 439 | 15 01 00 00 00 00 02 5e 02 |
| 440 | 15 01 00 00 00 00 02 5f 00 |
| 441 | 15 01 00 00 00 00 02 ff 24 |
| 442 | 15 01 00 00 00 00 02 fb 01 |
| 443 | 15 01 00 00 00 00 02 00 01 |
| 444 | 15 01 00 00 00 00 02 01 0b |
| 445 | 15 01 00 00 00 00 02 02 0c |
| 446 | 15 01 00 00 00 00 02 03 89 |
| 447 | 15 01 00 00 00 00 02 04 8a |
| 448 | 15 01 00 00 00 00 02 05 0f |
| 449 | 15 01 00 00 00 00 02 06 10 |
| 450 | 15 01 00 00 00 00 02 07 10 |
| 451 | 15 01 00 00 00 00 02 08 1c |
| 452 | 15 01 00 00 00 00 02 09 00 |
| 453 | 15 01 00 00 00 00 02 0a 00 |
| 454 | 15 01 00 00 00 00 02 0b 00 |
| 455 | 15 01 00 00 00 00 02 0c 00 |
| 456 | 15 01 00 00 00 00 02 0d 13 |
| 457 | 15 01 00 00 00 00 02 0e 15 |
| 458 | 15 01 00 00 00 00 02 0f 17 |
| 459 | 15 01 00 00 00 00 02 10 01 |
| 460 | 15 01 00 00 00 00 02 11 0b |
| 461 | 15 01 00 00 00 00 02 12 0c |
| 462 | 15 01 00 00 00 00 02 13 89 |
| 463 | 15 01 00 00 00 00 02 14 8a |
| 464 | 15 01 00 00 00 00 02 15 0f |
| 465 | 15 01 00 00 00 00 02 16 10 |
| 466 | 15 01 00 00 00 00 02 17 10 |
| 467 | 15 01 00 00 00 00 02 18 1c |
| 468 | 15 01 00 00 00 00 02 19 00 |
| 469 | 15 01 00 00 00 00 02 1a 00 |
| 470 | 15 01 00 00 00 00 02 1b 00 |
| 471 | 15 01 00 00 00 00 02 1c 00 |
| 472 | 15 01 00 00 00 00 02 1d 13 |
| 473 | 15 01 00 00 00 00 02 1e 15 |
| 474 | 15 01 00 00 00 00 02 1f 17 |
| 475 | 15 01 00 00 00 00 02 20 00 |
| 476 | 15 01 00 00 00 00 02 21 01 |
| 477 | 15 01 00 00 00 00 02 22 00 |
| 478 | 15 01 00 00 00 00 02 23 40 |
| 479 | 15 01 00 00 00 00 02 24 40 |
| 480 | 15 01 00 00 00 00 02 25 6d |
| 481 | 15 01 00 00 00 00 02 26 40 |
| 482 | 15 01 00 00 00 00 02 27 40 |
| 483 | 15 01 00 00 00 00 02 29 d8 |
| 484 | 15 01 00 00 00 00 02 2a 2a |
| 485 | 15 01 00 00 00 00 02 4b 03 |
| 486 | 15 01 00 00 00 00 02 4c 11 |
| 487 | 15 01 00 00 00 00 02 4d 10 |
| 488 | 15 01 00 00 00 00 02 4e 01 |
| 489 | 15 01 00 00 00 00 02 4f 01 |
| 490 | 15 01 00 00 00 00 02 50 10 |
| 491 | 15 01 00 00 00 00 02 51 00 |
| 492 | 15 01 00 00 00 00 02 52 80 |
| 493 | 15 01 00 00 00 00 02 53 00 |
| 494 | 15 01 00 00 00 00 02 54 07 |
| 495 | 15 01 00 00 00 00 02 55 25 |
| 496 | 15 01 00 00 00 00 02 56 00 |
| 497 | 15 01 00 00 00 00 02 58 07 |
| 498 | 15 01 00 00 00 00 02 5b 43 |
| 499 | 15 01 00 00 00 00 02 5c 00 |
| 500 | 15 01 00 00 00 00 02 5f 73 |
| 501 | 15 01 00 00 00 00 02 60 73 |
| 502 | 15 01 00 00 00 00 02 63 22 |
| 503 | 15 01 00 00 00 00 02 64 00 |
| 504 | 15 01 00 00 00 00 02 67 08 |
| 505 | 15 01 00 00 00 00 02 68 04 |
| 506 | 15 01 00 00 00 00 02 7a 80 |
| 507 | 15 01 00 00 00 00 02 7b 91 |
| 508 | 15 01 00 00 00 00 02 7c d8 |
| 509 | 15 01 00 00 00 00 02 7d 60 |
| 510 | 15 01 00 00 00 00 02 93 06 |
| 511 | 15 01 00 00 00 00 02 94 06 |
| 512 | 15 01 00 00 00 00 02 8a 00 |
| 513 | 15 01 00 00 00 00 02 9b 0f |
| 514 | 15 01 00 00 00 00 02 b3 c0 |
| 515 | 15 01 00 00 00 00 02 b4 00 |
| 516 | 15 01 00 00 00 00 02 b5 00 |
| 517 | 15 01 00 00 00 00 02 b6 21 |
| 518 | 15 01 00 00 00 00 02 b7 22 |
| 519 | 15 01 00 00 00 00 02 b8 07 |
| 520 | 15 01 00 00 00 00 02 b9 07 |
| 521 | 15 01 00 00 00 00 02 ba 22 |
| 522 | 15 01 00 00 00 00 02 bd 20 |
| 523 | 15 01 00 00 00 00 02 be 07 |
| 524 | 15 01 00 00 00 00 02 bf 07 |
| 525 | 15 01 00 00 00 00 02 c1 6d |
| 526 | 15 01 00 00 00 00 02 c4 24 |
| 527 | 15 01 00 00 00 00 02 e3 00 |
| 528 | 15 01 00 00 00 00 02 ec 00 |
| 529 | 15 01 00 00 00 00 02 ff 10 |
| 530 | 15 01 00 00 00 00 02 bb 03 |
| 531 | 05 01 00 00 78 00 02 11 00 |
| 532 | 05 01 00 00 78 00 02 29 00]; |
| 533 | qcom,mdss-dsi-off-command = [05 01 00 00 |
| 534 | 14 00 02 28 00 05 01 00 00 78 00 |
| 535 | 02 10 00]; |
| 536 | qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; |
| 537 | qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; |
| 538 | qcom,mdss-dsi-panel-timings-phy-12nm = [17 0a 0f 06 03 08 06 0e]; |
| 539 | qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; |
| 540 | qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_pwm"; |
| 541 | qcom,mdss-dsi-bl-pmic-pwm-frequency = <100>; |
| 542 | qcom,mdss-dsi-bl-pmic-bank-select = <0>; |
| 543 | qcom,mdss-dsi-pwm-gpio = <&pm8953_gpios 8 0>; |
| 544 | /delete-node/ qcom,mdss-dsi-display-timings; |
| 545 | }; |
| 546 | |
Ashay Jaiswal | cc0c423 | 2018-05-21 15:37:53 +0530 | [diff] [blame] | 547 | &i2c_2 { |
| 548 | #include "smb1355.dtsi" |
| 549 | }; |
| 550 | |
| 551 | &pmi632_gpios { |
| 552 | smb_en { |
| 553 | smb_en_default: smb_en_default { |
| 554 | pins = "gpio2"; |
| 555 | function = "func1"; |
| 556 | output-enable; |
| 557 | }; |
| 558 | }; |
Anirudh Ghayal | ca13a0c | 2018-05-28 11:44:26 +0530 | [diff] [blame] | 559 | |
| 560 | pmi632_sense { |
| 561 | /* GPIO 7 and 8 are external-sense pins for PMI632 */ |
| 562 | pmi632_sense_default: pmi632_sense_default { |
| 563 | pins = "gpio7", "gpio8"; |
| 564 | bias-high-impedance; /* disable the GPIO */ |
| 565 | bias-disable; /* no-pull */ |
| 566 | }; |
| 567 | }; |
Ashay Jaiswal | cc0c423 | 2018-05-21 15:37:53 +0530 | [diff] [blame] | 568 | }; |
| 569 | |
| 570 | &tlmm { |
| 571 | smb_int_default: smb_int_default { |
| 572 | mux { |
| 573 | pins = "gpio59"; |
| 574 | function = "gpio"; |
| 575 | }; |
| 576 | config { |
| 577 | pins = "gpio59"; |
| 578 | drive-strength = <2>; |
| 579 | bias-pull-up; |
| 580 | input-enable; |
| 581 | }; |
| 582 | }; |
| 583 | }; |
| 584 | |
| 585 | &smb1355_0 { |
| 586 | pinctrl-names = "default"; |
| 587 | pinctrl-0 = <&smb_int_default |
Anirudh Ghayal | ca13a0c | 2018-05-28 11:44:26 +0530 | [diff] [blame] | 588 | &smb_en_default &pmi632_sense_default>; |
Ashay Jaiswal | cc0c423 | 2018-05-21 15:37:53 +0530 | [diff] [blame] | 589 | interrupt-parent = <&tlmm>; |
| 590 | interrupts = <59 IRQ_TYPE_LEVEL_LOW>; |
| 591 | smb1355_charger_0: qcom,smb1355-charger@1000 { |
| 592 | status ="ok"; |
| 593 | /delete-property/ io-channels; |
| 594 | /delete-property/ io-channels-names; |
| 595 | qcom,parallel-mode = <1>; |
| 596 | }; |
| 597 | }; |
| 598 | |
| 599 | &smb1355_1 { |
| 600 | pinctrl-names = "default"; |
| 601 | pinctrl-0 = <&smb_int_default |
Anirudh Ghayal | ca13a0c | 2018-05-28 11:44:26 +0530 | [diff] [blame] | 602 | &smb_en_default &pmi632_sense_default>; |
Ashay Jaiswal | cc0c423 | 2018-05-21 15:37:53 +0530 | [diff] [blame] | 603 | interrupt-parent = <&tlmm>; |
| 604 | interrupts = <59 IRQ_TYPE_LEVEL_LOW>; |
| 605 | smb1355_charger_1: qcom,smb1355-charger@1000 { |
| 606 | status ="ok"; |
| 607 | /delete-property/ io-channels; |
| 608 | /delete-property/ io-channels-names; |
| 609 | qcom,parallel-mode = <1>; |
| 610 | }; |
| 611 | }; |