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