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-cdp.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 | |
| 20 | &sdhc_1 { |
| 21 | /* device core power supply */ |
| 22 | vdd-supply = <&pm8953_l8>; |
| 23 | qcom,vdd-voltage-level = <2900000 2900000>; |
| 24 | qcom,vdd-current-level = <200 570000>; |
| 25 | |
| 26 | /* device communication power supply */ |
| 27 | vdd-io-supply = <&pm8953_l5>; |
| 28 | qcom,vdd-io-always-on; |
| 29 | qcom,vdd-io-lpm-sup; |
| 30 | qcom,vdd-io-voltage-level = <1800000 1800000>; |
| 31 | qcom,vdd-io-current-level = <200 325000>; |
| 32 | |
| 33 | pinctrl-names = "active", "sleep"; |
| 34 | pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on &sdc1_rclk_on>; |
| 35 | pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off &sdc1_rclk_off>; |
| 36 | |
| 37 | qcom,clk-rates = <400000 20000000 25000000 50000000 100000000 192000000 |
| 38 | 384000000>; |
| 39 | qcom,nonremovable; |
| 40 | qcom,bus-speed-mode = "HS400_1p8v", "HS200_1p8v", "DDR_1p8v"; |
| 41 | |
| 42 | status = "ok"; |
| 43 | }; |
| 44 | |
| 45 | &sdhc_2 { |
| 46 | /* device core power supply */ |
| 47 | vdd-supply = <&pm8953_l11>; |
| 48 | qcom,vdd-voltage-level = <2950000 2950000>; |
| 49 | qcom,vdd-current-level = <15000 800000>; |
| 50 | |
| 51 | /* device communication power supply */ |
| 52 | vdd-io-supply = <&pm8953_l12>; |
| 53 | qcom,vdd-io-voltage-level = <1800000 2950000>; |
| 54 | qcom,vdd-io-current-level = <200 22000>; |
| 55 | |
| 56 | pinctrl-names = "active", "sleep"; |
| 57 | pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; |
| 58 | pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>; |
| 59 | |
| 60 | cd-gpios = <&tlmm 67 0x1>; |
| 61 | |
| 62 | qcom,clk-rates = <400000 20000000 25000000 50000000 100000000 |
| 63 | 200000000>; |
| 64 | qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50", "SDR104"; |
| 65 | |
| 66 | status = "ok"; |
| 67 | }; |
Vevek Venkatesan | 8610b3a | 2018-03-29 14:41:05 +0530 | [diff] [blame] | 68 | |
| 69 | &soc { |
| 70 | gpio_keys { |
| 71 | compatible = "gpio-keys"; |
| 72 | input-name = "gpio-keys"; |
| 73 | pinctrl-names = "default"; |
| 74 | pinctrl-0 = <&gpio_key_active>; |
| 75 | |
| 76 | camera_focus { |
| 77 | label = "camera_focus"; |
| 78 | gpios = <&tlmm 128 0x1>; |
| 79 | linux,input-type = <1>; |
| 80 | linux,code = <0x210>; |
| 81 | debounce-interval = <15>; |
| 82 | linux,can-disable; |
| 83 | gpio-key,wakeup; |
| 84 | }; |
| 85 | |
| 86 | camera_snapshot { |
| 87 | label = "camera_snapshot"; |
| 88 | gpios = <&tlmm 127 0x1>; |
| 89 | linux,input-type = <1>; |
| 90 | linux,code = <0x2fe>; |
| 91 | debounce-interval = <15>; |
| 92 | linux,can-disable; |
| 93 | gpio-key,wakeup; |
| 94 | }; |
| 95 | |
| 96 | vol_up { |
| 97 | label = "volume_up"; |
| 98 | gpios = <&tlmm 91 0x1>; |
| 99 | linux,input-type = <1>; |
| 100 | linux,code = <115>; |
| 101 | debounce-interval = <15>; |
| 102 | linux,can-disable; |
| 103 | gpio-key,wakeup; |
| 104 | }; |
| 105 | }; |
| 106 | }; |
Rashi Bindra | a5dc494 | 2018-03-08 18:59:36 +0530 | [diff] [blame] | 107 | |
| 108 | &pm8953_gpios { |
| 109 | bklt_en { |
| 110 | bklt_en_default: bklt_en_default { |
| 111 | pins = "gpio4"; |
| 112 | function = "normal"; |
| 113 | power-source = <0>; |
| 114 | output-high; |
| 115 | }; |
| 116 | }; |
| 117 | }; |
| 118 | |
| 119 | &pm8953_pwm { |
| 120 | status = "ok"; |
| 121 | }; |
| 122 | |
| 123 | #include "msm8937-mdss-panels.dtsi" |
| 124 | |
| 125 | &mdss_mdp { |
| 126 | qcom,mdss-pref-prim-intf = "dsi"; |
| 127 | }; |
| 128 | |
| 129 | &mdss_dsi { |
| 130 | hw-config = "single_dsi"; |
| 131 | }; |
| 132 | |
| 133 | &mdss_dsi0 { |
| 134 | qcom,dsi-pref-prim-pan = <&dsi_hx8399c_truly_vid>; |
| 135 | pinctrl-names = "mdss_default", "mdss_sleep"; |
| 136 | pinctrl-0 = <&mdss_dsi_active &mdss_te_active &bklt_en_default>; |
| 137 | pinctrl-1 = <&mdss_dsi_suspend &mdss_te_suspend>; |
| 138 | |
| 139 | qcom,platform-bklight-en-gpio = <&pm8953_gpios 4 0>; |
| 140 | qcom,platform-te-gpio = <&tlmm 24 0>; |
Rashi Bindra | 2a91a16 | 2018-04-09 17:37:02 +0530 | [diff] [blame^] | 141 | qcom,platform-reset-gpio = <&tlmm 60 0>; |
Rashi Bindra | a5dc494 | 2018-03-08 18:59:36 +0530 | [diff] [blame] | 142 | lab-supply = <&lcdb_ldo_vreg>; |
| 143 | ibb-supply = <&lcdb_ncp_vreg>; |
| 144 | |
| 145 | }; |
| 146 | |
| 147 | &dsi_hx8399c_truly_vid { |
| 148 | qcom,mdss-dsi-panel-timings = |
| 149 | [f3 3a 26 00 6c 6e 2c 3e 2f 03 04 00]; |
| 150 | qcom,mdss-dsi-t-clk-post = <0x02>; |
| 151 | qcom,mdss-dsi-t-clk-pre = <0x2d>; |
| 152 | qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; |
| 153 | qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_pwm"; |
| 154 | qcom,mdss-dsi-bl-pmic-pwm-frequency = <100>; |
| 155 | qcom,mdss-dsi-bl-pmic-bank-select = <0>; |
| 156 | qcom,mdss-dsi-pwm-gpio = <&pm8953_gpios 8 0>; |
| 157 | qcom,mdss-dsi-pan-enable-dynamic-fps; |
| 158 | qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; |
| 159 | }; |
| 160 | |
| 161 | |
| 162 | &dsi_hx8399c_hd_vid { |
| 163 | qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; |
| 164 | qcom,mdss-dsi-pan-enable-dynamic-fps; |
| 165 | qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; |
| 166 | qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_pwm"; |
| 167 | qcom,mdss-dsi-bl-pmic-pwm-frequency = <100>; |
| 168 | qcom,mdss-dsi-bl-pmic-bank-select = <0>; |
| 169 | qcom,mdss-dsi-pwm-gpio = <&pm8953_gpios 8 0>; |
| 170 | }; |