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 | |
Lei Chen | 92dd0bc | 2018-03-15 17:43:03 +0800 | [diff] [blame] | 14 | #include "msm8937-mdss-panels.dtsi" |
Yulei Yao | f834827 | 2018-04-11 17:24:51 +0800 | [diff] [blame^] | 15 | #include "sdm439-camera-sensor-qrd.dtsi" |
Lei Chen | 92dd0bc | 2018-03-15 17:43:03 +0800 | [diff] [blame] | 16 | |
Jingbiao Lu | dc9d878 | 2018-01-31 16:35:04 +0800 | [diff] [blame] | 17 | &blsp1_uart2 { |
| 18 | status = "ok"; |
| 19 | }; |
Sayali Lokhande | a59d113 | 2018-03-06 08:24:01 +0530 | [diff] [blame] | 20 | |
| 21 | &sdhc_1 { |
| 22 | /* device core power supply */ |
| 23 | vdd-supply = <&pm8953_l8>; |
| 24 | qcom,vdd-voltage-level = <2900000 2900000>; |
| 25 | qcom,vdd-current-level = <200 570000>; |
| 26 | |
| 27 | /* device communication power supply */ |
| 28 | vdd-io-supply = <&pm8953_l5>; |
| 29 | qcom,vdd-io-always-on; |
| 30 | qcom,vdd-io-lpm-sup; |
| 31 | qcom,vdd-io-voltage-level = <1800000 1800000>; |
| 32 | qcom,vdd-io-current-level = <200 325000>; |
| 33 | |
| 34 | pinctrl-names = "active", "sleep"; |
| 35 | pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on &sdc1_rclk_on>; |
| 36 | pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off &sdc1_rclk_off>; |
| 37 | |
| 38 | qcom,clk-rates = <400000 20000000 25000000 50000000 100000000 192000000 |
| 39 | 384000000>; |
| 40 | qcom,nonremovable; |
| 41 | qcom,bus-speed-mode = "HS400_1p8v", "HS200_1p8v", "DDR_1p8v"; |
| 42 | |
| 43 | status = "ok"; |
| 44 | }; |
| 45 | |
Xiaojun Sang | 0619b38 | 2018-03-16 15:47:04 +0800 | [diff] [blame] | 46 | &int_codec { |
| 47 | status = "okay"; |
| 48 | qcom,model = "sdm439-sku1-snd-card"; |
| 49 | qcom,msm-micbias1-ext-cap; |
| 50 | qcom,msm-micbias2-ext-cap; |
| 51 | qcom,msm-mbhc-hphl-swh = <1>; |
| 52 | qcom,msm-mbhc-gnd-swh = <0>; |
| 53 | qcom,msm-hs-micbias-type = "external"; |
| 54 | }; |
| 55 | |
| 56 | &wsa881x_i2c_f { |
| 57 | status = "okay"; |
| 58 | }; |
| 59 | |
| 60 | &wsa881x_i2c_45 { |
| 61 | status = "okay"; |
| 62 | }; |
| 63 | |
Sayali Lokhande | a59d113 | 2018-03-06 08:24:01 +0530 | [diff] [blame] | 64 | &sdhc_2 { |
| 65 | /* device core power supply */ |
| 66 | vdd-supply = <&pm8953_l11>; |
| 67 | qcom,vdd-voltage-level = <2950000 2950000>; |
| 68 | qcom,vdd-current-level = <15000 800000>; |
| 69 | |
| 70 | /* device communication power supply */ |
| 71 | vdd-io-supply = <&pm8953_l12>; |
| 72 | qcom,vdd-io-voltage-level = <1800000 2950000>; |
| 73 | qcom,vdd-io-current-level = <200 22000>; |
| 74 | |
| 75 | pinctrl-names = "active", "sleep"; |
| 76 | pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; |
| 77 | pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>; |
| 78 | |
| 79 | cd-gpios = <&tlmm 67 0x1>; |
| 80 | |
| 81 | qcom,clk-rates = <400000 20000000 25000000 50000000 100000000 |
| 82 | 200000000>; |
| 83 | qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50", "SDR104"; |
| 84 | |
| 85 | status = "ok"; |
| 86 | }; |
Shantanu Jain | 18501ee | 2018-04-04 16:48:09 +0530 | [diff] [blame] | 87 | |
| 88 | &soc { |
| 89 | gpio_keys { |
| 90 | compatible = "gpio-keys"; |
| 91 | input-name = "gpio-keys"; |
| 92 | pinctrl-names = "default"; |
| 93 | pinctrl-0 = <&gpio_key_active>; |
| 94 | |
| 95 | vol_up { |
| 96 | label = "volume_up"; |
| 97 | gpios = <&tlmm 91 0x1>; |
| 98 | linux,input-type = <1>; |
| 99 | linux,code = <115>; |
| 100 | debounce-interval = <15>; |
| 101 | linux,can-disable; |
| 102 | gpio-key,wakeup; |
| 103 | }; |
| 104 | }; |
| 105 | }; |
Lei Chen | 92dd0bc | 2018-03-15 17:43:03 +0800 | [diff] [blame] | 106 | |
| 107 | &tlmm { |
| 108 | pmx_mdss { |
| 109 | mdss_dsi_active: mdss_dsi_active { |
| 110 | mux { |
| 111 | pins = "gpio60"; |
| 112 | }; |
| 113 | config { |
| 114 | pins = "gpio60"; |
| 115 | }; |
| 116 | }; |
| 117 | mdss_dsi_suspend: mdss_dsi_suspend { |
| 118 | mux { |
| 119 | pins = "gpio60"; |
| 120 | }; |
| 121 | config { |
| 122 | pins = "gpio60"; |
| 123 | }; |
| 124 | }; |
| 125 | }; |
| 126 | }; |
| 127 | |
| 128 | &dsi_panel_pwr_supply { |
| 129 | qcom,panel-supply-entry@0 { |
| 130 | reg = <0>; |
| 131 | qcom,supply-name = "bklight_en"; |
| 132 | qcom,supply-min-voltage = <1800000>; |
| 133 | qcom,supply-max-voltage = <1800000>; |
| 134 | qcom,supply-enable-load = <100000>; |
| 135 | qcom,supply-disable-load = <100>; |
| 136 | }; |
| 137 | |
| 138 | qcom,panel-supply-entry@2 { |
| 139 | reg = <2>; |
| 140 | qcom,supply-name = "lab"; |
| 141 | qcom,supply-min-voltage = <4600000>; |
| 142 | qcom,supply-max-voltage = <6000000>; |
| 143 | qcom,supply-enable-load = <100000>; |
| 144 | qcom,supply-disable-load = <100>; |
| 145 | }; |
| 146 | |
| 147 | qcom,panel-supply-entry@3 { |
| 148 | reg = <3>; |
| 149 | qcom,supply-name = "ibb"; |
| 150 | qcom,supply-min-voltage = <4600000>; |
| 151 | qcom,supply-max-voltage = <6000000>; |
| 152 | qcom,supply-enable-load = <100000>; |
| 153 | qcom,supply-disable-load = <100>; |
| 154 | qcom,supply-post-on-sleep = <10>; |
| 155 | }; |
| 156 | }; |
| 157 | |
| 158 | &mdss_dsi { |
| 159 | hw-config = "single_dsi"; |
| 160 | }; |
| 161 | |
| 162 | &mdss_mdp { |
| 163 | qcom,mdss-pref-prim-intf = "dsi"; |
| 164 | }; |
| 165 | |
| 166 | &mdss_dsi0 { |
| 167 | lab-supply = <&lcdb_ldo_vreg>; |
| 168 | ibb-supply = <&lcdb_ncp_vreg>; |
| 169 | bklight_en-supply = <&pm8953_l5>; |
| 170 | vddio-supply = <&pm8953_l6>; |
| 171 | |
| 172 | qcom,dsi-pref-prim-pan = <&dsi_hx8399c_truly_vid>; |
| 173 | /delete-property/ qcom,platform-bklight-en-gpio; |
| 174 | pinctrl-names = "mdss_default", "mdss_sleep"; |
| 175 | pinctrl-0 = <&mdss_dsi_active &mdss_te_active>; |
| 176 | pinctrl-1 = <&mdss_dsi_suspend &mdss_te_suspend>; |
| 177 | qcom,platform-te-gpio = <&tlmm 24 0>; |
| 178 | qcom,platform-reset-gpio = <&tlmm 60 0>; |
| 179 | }; |
| 180 | |
| 181 | &mdss_dsi1 { |
| 182 | status = "disabled"; |
| 183 | }; |
| 184 | |
| 185 | &pm8953_pwm { |
| 186 | status = "ok"; |
| 187 | }; |
| 188 | |
| 189 | &dsi_hx8399c_truly_vid { |
| 190 | qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_pwm"; |
| 191 | qcom,mdss-dsi-bl-pmic-pwm-frequency = <100>; |
| 192 | qcom,mdss-dsi-bl-pmic-bank-select = <0>; |
| 193 | qcom,mdss-dsi-pwm-gpio = <&pm8953_gpios 8 0>; |
| 194 | qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; |
| 195 | qcom,mdss-dsi-panel-timings = |
| 196 | [7e 48 3c 00 64 59 3b 4a 5e 03 04 00]; |
| 197 | qcom,mdss-dsi-t-clk-post = <0x1e>; |
| 198 | qcom,mdss-dsi-t-clk-pre = <0x32>; |
| 199 | qcom,mdss-dsi-pan-enable-dynamic-fps; |
| 200 | qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; |
| 201 | }; |