Chetan C R | 820790f | 2020-01-29 16:53:58 +0530 | [diff] [blame] | 1 | /* Copyright (c) 2017-2018, 2020, 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 "msm8909-qrd.dtsi" |
| 14 | #include "msm8905.dtsi" |
| 15 | #include "msm8905-camera-sensor-skub.dtsi" |
| 16 | |
| 17 | &soc { |
| 18 | matrix_keypad: matrix_keypad@0 { |
| 19 | compatible = "gpio-matrix-keypad"; |
| 20 | input-name = "matrix_keypad"; |
| 21 | debounce-delay-ms = <5>; |
| 22 | col-scan-delay-us = <2>; |
| 23 | pinctrl-names = "tlmm_gpio_key_active","tlmm_gpio_key_suspend"; |
| 24 | pinctrl-0 = <&gpio_key_active>; |
| 25 | pinctrl-1 = <&gpio_key_suspend>; |
| 26 | |
| 27 | row-gpios = <&msm_gpio 97 0 |
| 28 | &msm_gpio 96 0 |
| 29 | &msm_gpio 95 0 |
| 30 | &msm_gpio 94 0>; |
| 31 | |
| 32 | col-gpios = <&msm_gpio 52 0 |
| 33 | &msm_gpio 56 0 |
| 34 | &msm_gpio 7 0 |
| 35 | &msm_gpio 99 0 |
| 36 | &msm_gpio 6 0>; |
| 37 | linux,keymap = <0x000000e7 /* (0,0) KEY_DIAL */ |
| 38 | 0x00010004 /* (1,0) KEY_3 */ |
| 39 | 0x00020007 /* (2,0) KEY_6 */ |
| 40 | 0x0003000A /* (3,0) KEY_9 */ |
| 41 | 0x0004020b /* (4,0) KEY_NUMERIC_POUND */ |
| 42 | |
| 43 | 0x01000069 /* (0,1) KEY_LEFT */ |
| 44 | 0x01010003 /* (1,1) KEY_2 */ |
| 45 | 0x01020006 /* (2,1) KEY_5 */ |
| 46 | 0x01030009 /* (3,1) KEY_8 */ |
| 47 | 0x0104000b /* (4,1) KEY_0 */ |
| 48 | |
| 49 | 0x0200008b /* (0,2) KEY_MENU */ |
| 50 | 0x02010002 /* (1,2) KEY_1 */ |
| 51 | 0x02020005 /* (2,2) KEY_4 */ |
| 52 | 0x02030008 /* (3,2) KEY_7 */ |
| 53 | 0x0204020a /* (4,2) KEY_NUMERIC_STAR */ |
| 54 | |
| 55 | 0x03000160 /* (0,3) KEY_OK */ |
| 56 | 0x0301006A /* (1,3) KEY_RIGHT */ |
| 57 | 0x0302009e>; /* (3,3) KEY_BACK */ |
| 58 | |
| 59 | }; |
| 60 | |
| 61 | gpio_keys { |
| 62 | compatible = "gpio-keys"; |
| 63 | input-name = "gpio-keys"; |
| 64 | pinctrl-names = |
| 65 | "tlmm_gpio_key_active","tlmm_gpio_key_suspend"; |
| 66 | pinctrl-0 = <&gpio_key_active>; |
| 67 | pinctrl-1 = <&gpio_key_suspend>; |
| 68 | |
| 69 | vol_up { |
| 70 | label = "volume_up"; |
| 71 | gpios = <&msm_gpio 90 0x1>; |
| 72 | linux,input-type = <1>; |
| 73 | linux,code = <103>; |
| 74 | gpio-key,wakeup; |
| 75 | debounce-interval = <15>; |
| 76 | }; |
| 77 | }; |
| 78 | }; |
| 79 | |
Manjunatha Madana | f6d25d5 | 2020-02-20 11:49:30 +0530 | [diff] [blame] | 80 | &pm8909_chg { |
| 81 | status = "ok"; |
| 82 | }; |
| 83 | |
| 84 | &usb_otg { |
| 85 | extcon = <&pm8909_chg>; |
| 86 | }; |
Chetan C R | 820790f | 2020-01-29 16:53:58 +0530 | [diff] [blame] | 87 | &msm_gpio { |
| 88 | tlmm_gpio_key { |
| 89 | qcom,pin-func = <0>; |
| 90 | qcom,num-grp-pins = <5>; |
| 91 | label = "tlmm_gpio_key"; |
| 92 | gpio_key_active: gpio_key_active { |
| 93 | mux { |
| 94 | pins = "gpio52", "gpio56", "gpio7", |
| 95 | "gpio99", "gpio6"; |
| 96 | drive-strength = <2>; |
| 97 | bias-pull-up; |
| 98 | }; |
| 99 | }; |
| 100 | gpio_key_suspend: gpio_key_suspend { |
| 101 | mux { |
| 102 | pins = "gpio52", "gpio56", "gpio7", |
| 103 | "gpio99", "gpio6"; |
| 104 | drive-strength = <2>; |
| 105 | bias-pull-up; |
| 106 | }; |
| 107 | }; |
| 108 | }; |
| 109 | }; |
| 110 | |
| 111 | &spmi_bus { |
| 112 | qcom,pm8909@0 { |
| 113 | pm8909_pon: qcom,power-on@800 { |
| 114 | compatible = "qcom,qpnp-power-on"; |
| 115 | reg = <0x800 0x100>; |
Manjunatha Madana | f6d25d5 | 2020-02-20 11:49:30 +0530 | [diff] [blame] | 116 | interrupts = <0x0 0x8 0x0 0x0>, |
| 117 | <0x0 0x8 0x1 0x0>; |
Chetan C R | 820790f | 2020-01-29 16:53:58 +0530 | [diff] [blame] | 118 | interrupt-names = "kpdpwr", "resin"; |
| 119 | qcom,pon-dbc-delay = <15625>; |
| 120 | qcom,system-reset; |
| 121 | qcom,clear-warm-reset; |
| 122 | |
Manjunatha Madana | f6d25d5 | 2020-02-20 11:49:30 +0530 | [diff] [blame] | 123 | qcom,pon_1 { |
| 124 | qcom,pon-type = <0>; |
| 125 | qcom,pull-up = <1>; |
| 126 | linux,code = <116>; |
| 127 | }; |
| 128 | qcom,pon_2 { |
| 129 | qcom,pon-type = <1>; |
| 130 | qcom,pull-up = <1>; |
| 131 | linux,code = <108>; |
| 132 | }; |
Chetan C R | 820790f | 2020-01-29 16:53:58 +0530 | [diff] [blame] | 133 | }; |
| 134 | }; |
| 135 | }; |
| 136 | &pm8909_vadc { |
| 137 | chan@30 { |
| 138 | qcom,scale-function = <6>; |
| 139 | }; |
| 140 | }; |
| 141 | |
| 142 | &spmi_bus { |
| 143 | qcom,pm8909@0 { |
| 144 | qcom,leds@c000 { |
| 145 | compatible = "qcom,leds-qpnp"; |
| 146 | reg = <0xc000 0x100>; |
| 147 | status = "okay"; |
| 148 | qcom,led_gpio_1 { |
| 149 | label = "gpio"; |
| 150 | linux,name = "button-backlight"; |
| 151 | qcom,max-current = <40>; |
| 152 | qcom,id = <8>; |
| 153 | linux,default-trigger = "none"; |
| 154 | qcom,default-state = "on"; |
| 155 | qcom,turn-off-delay-ms = <1000>; |
| 156 | qcom,source-sel = <1>; |
| 157 | qcom,mode-ctrl = <0x10>; |
| 158 | qcom,vin-ctrl = <0x02>; |
| 159 | }; |
| 160 | }; |
| 161 | }; |
| 162 | }; |
| 163 | |
| 164 | &pm8909_chg { |
| 165 | qcom,cool-bat-mv = <4000>; |
| 166 | qcom,warm-bat-mv = <4000>; |
| 167 | qcom,ibatmax-warm-ma = <500>; |
| 168 | qcom,ibatmax-cool-ma = <500>; |
| 169 | qcom,batt-hot-percentage = <35>; |
| 170 | qcom,batt-cold-percentage = <70>; |
| 171 | qcom,chgr-led-support; |
| 172 | status = "okay"; |
| 173 | }; |
| 174 | |
| 175 | / { |
| 176 | qrd_batterydata: qcom,battery-data { |
| 177 | qcom,rpull-up-kohm = <0>; |
| 178 | qcom,vref-batt-therm = <1800000>; |
| 179 | |
| 180 | #include "batterydata-qrd-skub-4v2-2000mah.dtsi" |
| 181 | }; |
| 182 | }; |
| 183 | |
| 184 | &pm8909_bms { |
| 185 | status = "okay"; |
| 186 | qcom,resume-soc = <95>; |
| 187 | qcom,use-reported-soc; |
| 188 | qcom,force-bms-active-on-charger; |
| 189 | qcom,battery-data = <&qrd_batterydata>; |
| 190 | }; |
| 191 | |
| 192 | &sdhc_2 { |
| 193 | qcom,nonremovable; |
| 194 | interrupts = <0 1>; |
| 195 | interrupt-map = <0 &intc 0 125 0 |
| 196 | 1 &intc 0 221 0>; |
| 197 | interrupt-names = "hc_irq", "pwr_irq"; |
| 198 | /delete-property/ cd-gpios; |
| 199 | pinctrl-names = "active", "sleep"; |
| 200 | pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on>; |
| 201 | pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>; |
| 202 | }; |
| 203 | |
| 204 | &pm8909_mpps { |
| 205 | mpp@a300 { /* MPP 4 */ |
| 206 | /* CASE_THERM config */ |
| 207 | qcom,mode = <4>; /* AIN input */ |
| 208 | qcom,invert = <1>; /* Enable MPP */ |
| 209 | qcom,ain-route = <3>; /* AMUX 8 */ |
| 210 | qcom,master-en = <1>; |
| 211 | qcom,src-sel = <0>; /* Function constant */ |
| 212 | }; |
| 213 | }; |
| 214 | |
| 215 | &pm8909_vadc { |
| 216 | chan@30 { |
| 217 | qcom,scale-function = <12>; |
| 218 | }; |
| 219 | |
| 220 | chan@13 { |
| 221 | label = "case_therm"; |
| 222 | reg = <0x13>; |
| 223 | qcom,decimation = <0>; |
| 224 | qcom,pre-div-channel-scaling = <0>; |
| 225 | qcom,calibration-type = "ratiometric"; |
| 226 | qcom,scale-function = <2>; |
| 227 | qcom,hw-settle-time = <2>; |
| 228 | qcom,fast-avg-setup = <0>; |
Manjunatha Madana | f6d25d5 | 2020-02-20 11:49:30 +0530 | [diff] [blame] | 229 | /*qcom,vadc-thermal-node;*/ |
Chetan C R | 820790f | 2020-01-29 16:53:58 +0530 | [diff] [blame] | 230 | }; |
| 231 | }; |
| 232 | |
| 233 | &soc { |
Manjunatha Madana | eb3e89d | 2020-02-19 18:12:38 +0530 | [diff] [blame] | 234 | qcom,msm-audio-apr { |
| 235 | compatible = "qcom,msm-audio-apr"; |
| 236 | msm_audio_apr_dummy { |
| 237 | compatible = "qcom,msm-audio-apr-dummy"; |
| 238 | }; |
| 239 | }; |
| 240 | |
| 241 | qcom,avtimer@c0a300c { |
| 242 | compatible = "qcom,avtimer"; |
| 243 | reg = <0x0c0a300c 0x4>, |
| 244 | <0x0c0a3010 0x4>; |
| 245 | reg-names = "avtimer_lsb_addr", "avtimer_msb_addr"; |
| 246 | qcom,clk-div = <27>; |
| 247 | }; |
| 248 | |
Chetan C R | 820790f | 2020-01-29 16:53:58 +0530 | [diff] [blame] | 249 | sound { |
Manjunatha Madana | eb3e89d | 2020-02-19 18:12:38 +0530 | [diff] [blame] | 250 | compatible = "qcom,msm8952-audio-codec"; |
Chetan C R | 820790f | 2020-01-29 16:53:58 +0530 | [diff] [blame] | 251 | qcom,model = "msm8909-skub-snd-card"; |
Manjunatha Madana | eb3e89d | 2020-02-19 18:12:38 +0530 | [diff] [blame] | 252 | reg = <0x7702000 0x4>, |
| 253 | <0x7702004 0x4>, |
| 254 | <0x7702008 0x4>; |
| 255 | reg-names = "csr_gp_io_mux_mic_ctl", |
| 256 | "csr_gp_io_mux_spkr_ctl", |
| 257 | "csr_gp_io_lpaif_pri_pcm_pri_mode_muxsel"; |
Chetan C R | 820790f | 2020-01-29 16:53:58 +0530 | [diff] [blame] | 258 | qcom,msm-snd-card-id = <0>; |
| 259 | qcom,msm-codec-type = "internal"; |
| 260 | qcom,msm-ext-pa = "primary"; |
| 261 | qcom,msm-mclk-freq = <9600000>; |
| 262 | qcom,msm-mbhc-hphl-swh = <1>; |
| 263 | qcom,msm-mbhc-gnd-swh = <0>; |
| 264 | qcom,msm-hs-micbias-type = "internal"; |
| 265 | qcom,msm-micbias1-ext-cap; |
| 266 | qcom,msm-micbias2-ext-cap; |
| 267 | qcom,audio-routing = |
| 268 | "RX_BIAS", "MCLK", |
| 269 | "SPK_RX_BIAS", "MCLK", |
| 270 | "INT_LDO_H", "MCLK", |
| 271 | "MIC BIAS Internal1", "Handset Mic", |
| 272 | "MIC BIAS Internal2", "Headset Mic", |
| 273 | "AMIC1", "MIC BIAS Internal1", |
| 274 | "AMIC2", "MIC BIAS Internal2"; |
Manjunatha Madana | eb3e89d | 2020-02-19 18:12:38 +0530 | [diff] [blame] | 275 | |
| 276 | qcom,pri-mi2s-gpios = <&cdc_pri_mi2s_gpios>; |
| 277 | |
| 278 | asoc-platform = <&pcm0>, <&pcm1>, <&pcm2>, |
| 279 | <&voip>, <&voice>, |
Chetan C R | 820790f | 2020-01-29 16:53:58 +0530 | [diff] [blame] | 280 | <&loopback>, <&compress>, <&hostless>, |
Manjunatha Madana | eb3e89d | 2020-02-19 18:12:38 +0530 | [diff] [blame] | 281 | <&afe>, <&lsm>, <&routing>, <&pcm_noirq>; |
Chetan C R | 820790f | 2020-01-29 16:53:58 +0530 | [diff] [blame] | 282 | asoc-platform-names = "msm-pcm-dsp.0", "msm-pcm-dsp.1", |
Manjunatha Madana | eb3e89d | 2020-02-19 18:12:38 +0530 | [diff] [blame] | 283 | "msm-pcm-dsp.2", |
Chetan C R | 820790f | 2020-01-29 16:53:58 +0530 | [diff] [blame] | 284 | "msm-voip-dsp", "msm-pcm-voice", |
| 285 | "msm-pcm-loopback", "msm-compress-dsp", |
| 286 | "msm-pcm-hostless", "msm-pcm-afe", |
| 287 | "msm-lsm-client", "msm-pcm-routing", |
Manjunatha Madana | eb3e89d | 2020-02-19 18:12:38 +0530 | [diff] [blame] | 288 | "msm-pcm-dsp-noirq"; |
Chetan C R | 820790f | 2020-01-29 16:53:58 +0530 | [diff] [blame] | 289 | asoc-cpu = <&dai_pri_auxpcm>, <&dai_hdmi>, |
| 290 | <&dai_mi2s0>, <&dai_mi2s1>, |
| 291 | <&dai_mi2s2>, <&dai_mi2s3>, |
Manjunatha Madana | eb3e89d | 2020-02-19 18:12:38 +0530 | [diff] [blame] | 292 | <&dai_mi2s4>, <&dai_mi2s5>, |
Chetan C R | 820790f | 2020-01-29 16:53:58 +0530 | [diff] [blame] | 293 | <&sb_0_rx>, <&sb_0_tx>, |
| 294 | <&sb_1_rx>, <&sb_1_tx>, |
| 295 | <&sb_3_rx>, <&sb_3_tx>, |
| 296 | <&sb_4_rx>, <&sb_4_tx>, |
| 297 | <&bt_sco_rx>, <&bt_sco_tx>, |
| 298 | <&bt_a2dp_rx>, <&int_fm_rx>, <&int_fm_tx>, |
| 299 | <&afe_pcm_rx>, <&afe_pcm_tx>, |
| 300 | <&afe_proxy_rx>, <&afe_proxy_tx>, |
| 301 | <&incall_record_rx>, <&incall_record_tx>, |
| 302 | <&incall_music_rx>, <&incall_music_2_rx>; |
| 303 | asoc-cpu-names = "msm-dai-q6-auxpcm.1", "msm-dai-q6-hdmi.8", |
| 304 | "msm-dai-q6-mi2s.0", "msm-dai-q6-mi2s.1", |
| 305 | "msm-dai-q6-mi2s.2", "msm-dai-q6-mi2s.3", |
Manjunatha Madana | eb3e89d | 2020-02-19 18:12:38 +0530 | [diff] [blame] | 306 | "msm-dai-q6-mi2s.4", "msm-dai-q6-mi2s.6", |
Chetan C R | 820790f | 2020-01-29 16:53:58 +0530 | [diff] [blame] | 307 | "msm-dai-q6-dev.16384", "msm-dai-q6-dev.16385", |
| 308 | "msm-dai-q6-dev.16386", "msm-dai-q6-dev.16387", |
| 309 | "msm-dai-q6-dev.16390", "msm-dai-q6-dev.16391", |
| 310 | "msm-dai-q6-dev.16392", "msm-dai-q6-dev.16393", |
| 311 | "msm-dai-q6-dev.12288", "msm-dai-q6-dev.12289", |
| 312 | "msm-dai-q6-dev.12290", |
| 313 | "msm-dai-q6-dev.12292", "msm-dai-q6-dev.12293", |
| 314 | "msm-dai-q6-dev.224", "msm-dai-q6-dev.225", |
| 315 | "msm-dai-q6-dev.241", "msm-dai-q6-dev.240", |
| 316 | "msm-dai-q6-dev.32771", "msm-dai-q6-dev.32772", |
| 317 | "msm-dai-q6-dev.32773", "msm-dai-q6-dev.32770"; |
Manjunatha Madana | eb3e89d | 2020-02-19 18:12:38 +0530 | [diff] [blame] | 318 | asoc-codec = <&stub_codec>, <&msm_digital_codec>, |
| 319 | <&pmic_analog_codec>; |
| 320 | asoc-codec-names = "msm-stub-codec.1", "msm-dig-codec", |
| 321 | "analog-codec"; |
| 322 | }; |
| 323 | |
| 324 | cdc_pri_mi2s_gpios: msm_cdc_pinctrl_pri { |
| 325 | compatible = "qcom,msm-cdc-pinctrl"; |
| 326 | pinctrl-names = "aud_active", "aud_sleep"; |
| 327 | pinctrl-0 = <&cdc_pdm_lines_act>; |
| 328 | pinctrl-1 = <&cdc_pdm_lines_sus>; |
Chetan C R | 820790f | 2020-01-29 16:53:58 +0530 | [diff] [blame] | 329 | }; |
| 330 | |
| 331 | spi@78b9000 { /* BLSP1 QUP5 */ |
| 332 | status = "okay"; |
| 333 | qcom,shared; |
| 334 | mdss_spi_client { |
| 335 | reg = <0>; |
| 336 | compatible = "qcom,mdss-spi-client"; |
| 337 | label = "MDSS SPI QUP5 CLIENT"; |
| 338 | spi-max-frequency = <50000000>; |
| 339 | }; |
| 340 | }; |
| 341 | i2c@78b9000 {/* BLSP1 QUP5 */ |
| 342 | status = "disabled"; |
| 343 | }; |
| 344 | |
| 345 | mdss_spi: qcom,mdss_spi { |
| 346 | compatible = "qcom,mdss-spi-display"; |
| 347 | label = "mdss spi panel"; |
| 348 | |
| 349 | qcom,mdss-fb-map = <&mdss_fb0>; |
| 350 | qcom,mdss-mdp = <&mdss_mdp>; |
| 351 | vdd-supply = <&pm8909_l17>; |
| 352 | vddio-supply = <&pm8909_l6>; |
| 353 | |
| 354 | qcom,panel-supply-entries { |
| 355 | #address-cells = <1>; |
| 356 | #size-cells = <0>; |
| 357 | |
| 358 | qcom,panel-supply-entry@0 { |
| 359 | reg = <0>; |
| 360 | qcom,supply-name = "vdd"; |
| 361 | qcom,supply-min-voltage = <2850000>; |
| 362 | qcom,supply-max-voltage = <2850000>; |
| 363 | qcom,supply-enable-load = <100000>; |
| 364 | qcom,supply-disable-load = <100>; |
| 365 | }; |
| 366 | |
| 367 | qcom,panel-supply-entry@1 { |
| 368 | reg = <1>; |
| 369 | qcom,supply-name = "vddio"; |
| 370 | qcom,supply-min-voltage = <1800000>; |
| 371 | qcom,supply-max-voltage = <1800000>; |
| 372 | qcom,supply-enable-load = <100000>; |
| 373 | qcom,supply-disable-load = <100>; |
| 374 | }; |
| 375 | }; |
| 376 | }; |
| 377 | }; |
| 378 | |
Manjunatha Madana | eb3e89d | 2020-02-19 18:12:38 +0530 | [diff] [blame] | 379 | &pm8909_1 { |
| 380 | pmic_analog_codec: analog-codec@f100 { |
| 381 | status = "okay"; |
| 382 | compatible = "qcom,pmic-analog-codec"; |
| 383 | reg = <0xf000 0x200>; |
| 384 | #address-cells = <2>; |
| 385 | #size-cells = <0>; |
| 386 | interrupt-parent = <&spmi_bus>; |
| 387 | interrupts = |
| 388 | <0x1 0xf0 0x0 IRQ_TYPE_NONE>, |
| 389 | <0x1 0xf0 0x1 IRQ_TYPE_NONE>, |
| 390 | <0x1 0xf0 0x2 IRQ_TYPE_NONE>, |
| 391 | <0x1 0xf0 0x3 IRQ_TYPE_NONE>, |
| 392 | <0x1 0xf0 0x4 IRQ_TYPE_NONE>, |
| 393 | <0x1 0xf0 0x5 IRQ_TYPE_NONE>, |
| 394 | <0x1 0xf0 0x6 IRQ_TYPE_NONE>, |
| 395 | <0x1 0xf0 0x7 IRQ_TYPE_NONE>, |
| 396 | <0x1 0xf1 0x0 IRQ_TYPE_NONE>, |
| 397 | <0x1 0xf1 0x1 IRQ_TYPE_NONE>, |
| 398 | <0x1 0xf1 0x2 IRQ_TYPE_NONE>, |
| 399 | <0x1 0xf1 0x3 IRQ_TYPE_NONE>, |
| 400 | <0x1 0xf1 0x4 IRQ_TYPE_NONE>, |
| 401 | <0x1 0xf1 0x5 IRQ_TYPE_NONE>; |
| 402 | interrupt-names = |
| 403 | "spk_cnp_int", |
| 404 | "spk_clip_int", |
| 405 | "spk_ocp_int", |
| 406 | "ins_rem_det1", |
| 407 | "but_rel_det", |
| 408 | "but_press_det", |
| 409 | "ins_rem_det", |
| 410 | "mbhc_int", |
| 411 | "ear_ocp_int", |
| 412 | "hphr_ocp_int", |
| 413 | "hphl_ocp_det", |
| 414 | "ear_cnp_int", |
| 415 | "hphr_cnp_int", |
| 416 | "hphl_cnp_int"; |
| 417 | |
| 418 | cdc-vdda-cp-supply = <&pm8909_s2>; |
| 419 | qcom,cdc-vdda-cp-voltage = <1800000 2200000>; |
| 420 | qcom,cdc-vdda-cp-current = <500000>; |
| 421 | |
| 422 | cdc-vdda-h-supply = <&pm8909_l5>; |
| 423 | qcom,cdc-vdda-h-voltage = <1800000 1800000>; |
| 424 | qcom,cdc-vdda-h-current = <5000>; |
| 425 | |
| 426 | cdc-vdd-px-supply = <&pm8909_l5>; |
| 427 | qcom,cdc-vdd-px-voltage = <1800000 1800000>; |
| 428 | qcom,cdc-vdd-px-current = <5000>; |
| 429 | |
| 430 | cdc-vdd-pa-supply = <&pm8909_s2>; |
| 431 | qcom,cdc-vdd-pa-voltage = <1800000 2200000>; |
| 432 | qcom,cdc-vdd-pa-current = <260000>; |
| 433 | |
| 434 | cdc-vdd-mic-bias-supply = <&pm8909_l13>; |
| 435 | qcom,cdc-vdd-mic-bias-voltage = <3075000 3075000>; |
| 436 | qcom,cdc-vdd-mic-bias-current = <5000>; |
| 437 | |
| 438 | qcom,cdc-mclk-clk-rate = <9600000>; |
| 439 | |
| 440 | qcom,cdc-static-supplies = |
| 441 | "cdc-vdda-h", |
| 442 | "cdc-vdd-px", |
| 443 | "cdc-vdd-pa", |
| 444 | "cdc-vdda-cp"; |
| 445 | |
| 446 | qcom,cdc-on-demand-supplies = "cdc-vdd-mic-bias"; |
| 447 | |
| 448 | msm_digital_codec: msm-dig-codec@f000 { |
| 449 | compatible = "qcom,msm-digital-codec"; |
| 450 | reg = <0x771c000 0x100>; |
| 451 | }; |
| 452 | }; |
| 453 | }; |
| 454 | |
Chetan C R | 820790f | 2020-01-29 16:53:58 +0530 | [diff] [blame] | 455 | &pm8909_mpps { |
| 456 | mpp@a100 { /* MPP 2 */ |
| 457 | /* Backlight PWM */ |
| 458 | qcom,mode = <1>; /* Digital output */ |
| 459 | qcom,invert = <0>; /* Disable invert */ |
| 460 | qcom,src-sel = <4>; /* DTEST1 */ |
| 461 | qcom,vin-sel = <0>; /* VPH_PWR */ |
| 462 | qcom,master-en = <1>; /* Enable MPP */ |
| 463 | }; |
| 464 | }; |
| 465 | |
| 466 | #include "spi-panel-gc9305-qvga-cmd.dtsi" |
| 467 | |
| 468 | &mdss_mdp { |
| 469 | qcom,mdss-pref-prim-intf = "spi"; |
| 470 | }; |
| 471 | |
| 472 | &spi_gc9305_qvga_cmd { |
| 473 | qcom,mdss-spi-bl-pmic-control-type = "bl_ctrl_pwm"; |
| 474 | qcom,mdss-spi-bl-pmic-pwm-frequency = <100>; |
| 475 | qcom,mdss-spi-bl-pmic-bank-select = <0>; |
| 476 | qcom,mdss-spi-pwm-gpio = <&pm8909_mpps 2 0>; |
| 477 | qcom,cont-splash-enabled; |
| 478 | }; |
| 479 | |
| 480 | &msm_gpio { |
| 481 | pmx_mdss_te { |
| 482 | mdss_te_active: mdss_te_active { |
| 483 | mux { |
| 484 | pins = "gpio24"; |
| 485 | }; |
| 486 | config { |
| 487 | pins = "gpio24"; |
| 488 | }; |
| 489 | }; |
| 490 | mdss_te_suspend: mdss_te_suspend { |
| 491 | mux { |
| 492 | pins = "gpio24"; |
| 493 | }; |
| 494 | config { |
| 495 | pins = "gpio24"; |
| 496 | }; |
| 497 | }; |
| 498 | }; |
| 499 | }; |
| 500 | |
| 501 | &mdss_spi { |
| 502 | qcom,spi-pref-prim-pan = <&spi_gc9305_qvga_cmd>; |
| 503 | pinctrl-names = "mdss_default", "mdss_sleep"; |
| 504 | pinctrl-0 = <&mdss_te_active>; |
| 505 | pinctrl-1 = <&mdss_te_suspend>; |
| 506 | |
| 507 | qcom,platform-te-gpio = <&msm_gpio 24 0>; |
| 508 | qcom,platform-reset-gpio = <&msm_gpio 25 0>; |
| 509 | qcom,platform-spi-dc-gpio = <&msm_gpio 110 0>; |
Manjunatha Madana | f6d25d5 | 2020-02-20 11:49:30 +0530 | [diff] [blame] | 510 | |
| 511 | vdd-supply = <&pm8909_l17>; |
| 512 | vddio-supply = <&pm8909_l6>; |
Chetan C R | 820790f | 2020-01-29 16:53:58 +0530 | [diff] [blame] | 513 | }; |
| 514 | |
| 515 | &pm8909_gpios { |
| 516 | /* GPIO 2 (NFC_CLK_REQ) */ |
Asha Magadi Venkateshamurthy | 7320918 | 2020-04-01 12:09:36 +0530 | [diff] [blame] | 517 | nfc-clk { |
| 518 | nfc_clk_default: nfc_clk_default { |
| 519 | pins = "gpio2"; |
| 520 | function = "normal"; |
| 521 | input-enable; |
| 522 | power-source = <1>; |
| 523 | }; |
Chetan C R | 820790f | 2020-01-29 16:53:58 +0530 | [diff] [blame] | 524 | }; |
Shilpa Suresh | a482fcf | 2020-04-07 10:39:00 +0530 | [diff] [blame] | 525 | |
| 526 | /* GPIO 4 (FLASH ENABLE GPIO CONFIG) */ |
| 527 | flash_en { |
| 528 | flash_en_default: flash_en_default{ |
| 529 | pins = "gpio4"; |
| 530 | function = "normal"; |
| 531 | input-disable; |
| 532 | output-enable; |
| 533 | status = "okay"; |
| 534 | }; |
| 535 | }; |
Chetan C R | 820790f | 2020-01-29 16:53:58 +0530 | [diff] [blame] | 536 | }; |
| 537 | |
| 538 | &i2c_2 { |
| 539 | status = "okay"; |
| 540 | nq@28 { |
| 541 | compatible = "qcom,nq-nci"; |
| 542 | reg = <0x28>; |
| 543 | qcom,nq-irq = <&msm_gpio 21 0x00>; |
| 544 | qcom,nq-ven = <&msm_gpio 20 0x00>; |
| 545 | qcom,nq-firm = <&msm_gpio 23 0x00>; |
| 546 | qcom,nq-clkreq = <&pm8909_gpios 2 0x00>; |
| 547 | qcom,nq-esepwr = <&msm_gpio 31 0x00>; |
| 548 | interrupt-parent = <&msm_gpio>; |
| 549 | qcom,clk-src = "BBCLK2"; |
| 550 | interrupts = <21 0>; |
| 551 | interrupt-names = "nfc_irq"; |
| 552 | pinctrl-names = "nfc_active", "nfc_suspend"; |
Asha Magadi Venkateshamurthy | 7320918 | 2020-04-01 12:09:36 +0530 | [diff] [blame] | 553 | pinctrl-0 = <&nfc_int_active &nfc_disable_active |
| 554 | &nfc_clk_default>; |
Chetan C R | 820790f | 2020-01-29 16:53:58 +0530 | [diff] [blame] | 555 | pinctrl-1 = <&nfc_int_suspend &nfc_disable_suspend>; |
| 556 | clocks = <&clock_rpm clk_bb_clk2_pin>; |
| 557 | clock-names = "ref_clk"; |
| 558 | }; |
| 559 | }; |
Manjunatha Madana | f6d25d5 | 2020-02-20 11:49:30 +0530 | [diff] [blame] | 560 | |
| 561 | &vendor_fstab { |
| 562 | status = "disabled"; |
| 563 | }; |
| 564 | |
| 565 | &system_fstab { |
| 566 | status = "disabled"; |
| 567 | }; |
| 568 | |
| 569 | &blsp1_uart1 { |
| 570 | status = "ok"; |
| 571 | }; |
| 572 | |
| 573 | &blsp1_uart2 { |
| 574 | status = "ok"; |
| 575 | }; |
| 576 | |
| 577 | &actuator0 { |
| 578 | status = "disabled"; |
| 579 | }; |
Manjunatha Madana | eb3e89d | 2020-02-19 18:12:38 +0530 | [diff] [blame] | 580 | |
| 581 | &pm8909_conga_dig { |
| 582 | status = "disabled"; |
| 583 | }; |
| 584 | |
| 585 | &pm8909_conga_analog { |
| 586 | status = "disabled"; |
| 587 | }; |
Manjunatha Madana | 907298d | 2020-04-22 18:44:33 +0530 | [diff] [blame] | 588 | |
| 589 | &mdss_dsi { |
| 590 | vdda-supply = <&pm8909_l2>; |
| 591 | vddio-supply = <&pm8909_l6>; |
| 592 | qcom,mdss_dsi_ctrl0@1ac8000 { |
| 593 | vdd-supply = <&pm8909_l17>; |
| 594 | vddio-supply = <&pm8909_l6>; |
| 595 | }; |
| 596 | }; |