Maria Yu | 598eb70 | 2017-12-28 21:09:38 +0800 | [diff] [blame] | 1 | /* |
Tengfei Fan | f08a94f | 2019-04-12 15:59:52 +0800 | [diff] [blame] | 2 | * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. |
Maria Yu | 598eb70 | 2017-12-28 21:09:38 +0800 | [diff] [blame] | 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 | #include "msm8953-mtp.dtsi" |
| 15 | |
Vijay kumar Tumati | 408b096 | 2018-03-16 17:28:31 +0530 | [diff] [blame] | 16 | &eeprom0 { |
| 17 | cam_vdig-supply = <&pm8953_l23>; |
| 18 | }; |
| 19 | |
| 20 | &camera0 { |
| 21 | cam_vdig-supply = <&pm8953_l23>; |
| 22 | }; |
| 23 | |
Vishnuvardhan Prodduturi | 886d44e | 2018-01-25 18:29:43 +0530 | [diff] [blame] | 24 | &mdss_dsi0 { |
| 25 | qcom,dsi-pref-prim-pan = <&dsi_hx8399c_truly_vid>; |
| 26 | pinctrl-names = "mdss_default", "mdss_sleep"; |
jialongjhan | 7dfbf87 | 2020-04-21 20:24:23 +0800 | [diff] [blame^] | 27 | //pinctrl-0 = <&mdss_dsi_active &mdss_te_active &bklt_en_default>; |
| 28 | //pinctrl-1 = <&mdss_dsi_suspend &mdss_te_suspend>; |
Vishnuvardhan Prodduturi | 886d44e | 2018-01-25 18:29:43 +0530 | [diff] [blame] | 29 | |
jialongjhan | 7dfbf87 | 2020-04-21 20:24:23 +0800 | [diff] [blame^] | 30 | //qcom,platform-bklight-en-gpio = <&pm8953_gpios 4 0>; |
Vishnuvardhan Prodduturi | 886d44e | 2018-01-25 18:29:43 +0530 | [diff] [blame] | 31 | lab-supply = <&lcdb_ldo_vreg>; |
| 32 | ibb-supply = <&lcdb_ncp_vreg>; |
| 33 | |
| 34 | }; |
| 35 | |
| 36 | &dsi_truly_1080_vid { |
| 37 | qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_pwm"; |
| 38 | qcom,mdss-dsi-bl-pmic-pwm-frequency = <100>; |
| 39 | qcom,mdss-dsi-bl-pmic-bank-select = <0>; |
| 40 | qcom,mdss-dsi-pwm-gpio = <&pm8953_gpios 8 0>; |
| 41 | }; |
| 42 | |
| 43 | &dsi_hx8399c_truly_vid { |
| 44 | qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_pwm"; |
| 45 | qcom,mdss-dsi-bl-pmic-pwm-frequency = <100>; |
| 46 | qcom,mdss-dsi-bl-pmic-bank-select = <0>; |
| 47 | qcom,mdss-dsi-pwm-gpio = <&pm8953_gpios 8 0>; |
| 48 | }; |
Ashay Jaiswal | cc0c423 | 2018-05-21 15:37:53 +0530 | [diff] [blame] | 49 | |
| 50 | &i2c_2 { |
Tengfei Fan | f08a94f | 2019-04-12 15:59:52 +0800 | [diff] [blame] | 51 | #address-cells = <1>; |
| 52 | #size-cells = <0>; |
| 53 | |
Ashay Jaiswal | cc0c423 | 2018-05-21 15:37:53 +0530 | [diff] [blame] | 54 | #include "smb1355.dtsi" |
| 55 | }; |
| 56 | |
| 57 | &pmi632_gpios { |
| 58 | smb_en { |
| 59 | smb_en_default: smb_en_default { |
| 60 | pins = "gpio2"; |
| 61 | function = "func1"; |
| 62 | output-enable; |
| 63 | }; |
| 64 | }; |
Anirudh Ghayal | ca13a0c | 2018-05-28 11:44:26 +0530 | [diff] [blame] | 65 | |
| 66 | pmi632_sense { |
| 67 | /* GPIO 7 and 8 are external-sense pins for PMI632 */ |
| 68 | pmi632_sense_default: pmi632_sense_default { |
| 69 | pins = "gpio7", "gpio8"; |
| 70 | bias-high-impedance; /* disable the GPIO */ |
| 71 | bias-disable; /* no-pull */ |
| 72 | }; |
| 73 | }; |
Ashay Jaiswal | 15d3c8f | 2018-06-14 21:27:45 +0530 | [diff] [blame] | 74 | |
| 75 | pmi632_ctm { |
| 76 | /* Disable GPIO1 for h/w base mitigation */ |
| 77 | pmi632_ctm_default: pmi632_ctm_default { |
| 78 | pins = "gpio1"; |
| 79 | bias-high-impedance; /* disable the GPIO */ |
| 80 | bias-disable; /* no-pull */ |
| 81 | }; |
| 82 | }; |
Ashay Jaiswal | cc0c423 | 2018-05-21 15:37:53 +0530 | [diff] [blame] | 83 | }; |
| 84 | |
| 85 | &tlmm { |
| 86 | smb_int_default: smb_int_default { |
| 87 | mux { |
| 88 | pins = "gpio59"; |
| 89 | function = "gpio"; |
| 90 | }; |
| 91 | config { |
| 92 | pins = "gpio59"; |
| 93 | drive-strength = <2>; |
| 94 | bias-pull-up; |
| 95 | input-enable; |
| 96 | }; |
| 97 | }; |
| 98 | }; |
| 99 | |
| 100 | &smb1355_0 { |
| 101 | pinctrl-names = "default"; |
| 102 | pinctrl-0 = <&smb_int_default |
Ashay Jaiswal | 15d3c8f | 2018-06-14 21:27:45 +0530 | [diff] [blame] | 103 | &smb_en_default &pmi632_sense_default &pmi632_ctm_default>; |
Ashay Jaiswal | cc0c423 | 2018-05-21 15:37:53 +0530 | [diff] [blame] | 104 | interrupt-parent = <&tlmm>; |
| 105 | interrupts = <59 IRQ_TYPE_LEVEL_LOW>; |
| 106 | smb1355_charger_0: qcom,smb1355-charger@1000 { |
| 107 | status ="ok"; |
| 108 | /delete-property/ io-channels; |
| 109 | /delete-property/ io-channels-names; |
| 110 | qcom,parallel-mode = <1>; |
Ashay Jaiswal | 15d3c8f | 2018-06-14 21:27:45 +0530 | [diff] [blame] | 111 | qcom,disable-ctm; |
| 112 | qcom,hw-die-temp-mitigation; |
Ashay Jaiswal | cc0c423 | 2018-05-21 15:37:53 +0530 | [diff] [blame] | 113 | }; |
| 114 | }; |
| 115 | |
| 116 | &smb1355_1 { |
| 117 | pinctrl-names = "default"; |
| 118 | pinctrl-0 = <&smb_int_default |
Ashay Jaiswal | 15d3c8f | 2018-06-14 21:27:45 +0530 | [diff] [blame] | 119 | &smb_en_default &pmi632_sense_default &pmi632_ctm_default>; |
Ashay Jaiswal | cc0c423 | 2018-05-21 15:37:53 +0530 | [diff] [blame] | 120 | interrupt-parent = <&tlmm>; |
| 121 | interrupts = <59 IRQ_TYPE_LEVEL_LOW>; |
| 122 | smb1355_charger_1: qcom,smb1355-charger@1000 { |
| 123 | status ="ok"; |
| 124 | /delete-property/ io-channels; |
| 125 | /delete-property/ io-channels-names; |
| 126 | qcom,parallel-mode = <1>; |
Ashay Jaiswal | 15d3c8f | 2018-06-14 21:27:45 +0530 | [diff] [blame] | 127 | qcom,disable-ctm; |
| 128 | qcom,hw-die-temp-mitigation; |
Ashay Jaiswal | cc0c423 | 2018-05-21 15:37:53 +0530 | [diff] [blame] | 129 | }; |
| 130 | }; |