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 | |
c_pbembr | 8ea68ce | 2018-04-13 18:23:36 +0530 | [diff] [blame] | 20 | &pm8953_gpios { |
| 21 | nfc_clk { |
| 22 | nfc_clk_default: nfc_clk_default { |
| 23 | pins = "gpio2"; |
| 24 | function = "normal"; |
| 25 | input-enable; |
| 26 | power-source = <1>; |
| 27 | }; |
| 28 | }; |
| 29 | }; |
| 30 | |
| 31 | &i2c_5 { /* BLSP2 QUP1 (NFC) */ |
| 32 | status = "ok"; |
| 33 | nq@28 { |
| 34 | compatible = "qcom,nq-nci"; |
| 35 | reg = <0x28>; |
| 36 | qcom,nq-irq = <&tlmm 17 0x00>; |
| 37 | qcom,nq-ven = <&tlmm 16 0x00>; |
| 38 | qcom,nq-firm = <&tlmm 130 0x00>; |
| 39 | qcom,nq-clkreq = <&pm8953_gpios 2 0x00>; |
| 40 | qcom,nq-esepwr = <&tlmm 93 0x00>; |
| 41 | interrupt-parent = <&tlmm>; |
| 42 | qcom,clk-src = "BBCLK2"; |
| 43 | interrupts = <17 0>; |
| 44 | interrupt-names = "nfc_irq"; |
| 45 | pinctrl-names = "nfc_active", "nfc_suspend"; |
| 46 | pinctrl-0 = <&nfc_int_active &nfc_disable_active |
| 47 | &nfc_clk_default>; |
| 48 | pinctrl-1 = <&nfc_int_suspend &nfc_disable_suspend>; |
| 49 | clocks = <&clock_gcc clk_bb_clk2_pin>; |
| 50 | clock-names = "ref_clk"; |
| 51 | }; |
| 52 | }; |
| 53 | |
Sayali Lokhande | a59d113 | 2018-03-06 08:24:01 +0530 | [diff] [blame] | 54 | &sdhc_1 { |
| 55 | /* device core power supply */ |
| 56 | vdd-supply = <&pm8953_l8>; |
| 57 | qcom,vdd-voltage-level = <2900000 2900000>; |
| 58 | qcom,vdd-current-level = <200 570000>; |
| 59 | |
| 60 | /* device communication power supply */ |
| 61 | vdd-io-supply = <&pm8953_l5>; |
| 62 | qcom,vdd-io-always-on; |
| 63 | qcom,vdd-io-lpm-sup; |
| 64 | qcom,vdd-io-voltage-level = <1800000 1800000>; |
| 65 | qcom,vdd-io-current-level = <200 325000>; |
| 66 | |
| 67 | pinctrl-names = "active", "sleep"; |
| 68 | pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on &sdc1_rclk_on>; |
| 69 | pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off &sdc1_rclk_off>; |
| 70 | |
| 71 | qcom,clk-rates = <400000 20000000 25000000 50000000 100000000 192000000 |
| 72 | 384000000>; |
| 73 | qcom,nonremovable; |
| 74 | qcom,bus-speed-mode = "HS400_1p8v", "HS200_1p8v", "DDR_1p8v"; |
| 75 | |
| 76 | status = "ok"; |
| 77 | }; |
| 78 | |
| 79 | &sdhc_2 { |
| 80 | /* device core power supply */ |
| 81 | vdd-supply = <&pm8953_l11>; |
| 82 | qcom,vdd-voltage-level = <2950000 2950000>; |
| 83 | qcom,vdd-current-level = <15000 800000>; |
| 84 | |
| 85 | /* device communication power supply */ |
| 86 | vdd-io-supply = <&pm8953_l12>; |
| 87 | qcom,vdd-io-voltage-level = <1800000 2950000>; |
| 88 | qcom,vdd-io-current-level = <200 22000>; |
| 89 | |
| 90 | pinctrl-names = "active", "sleep"; |
| 91 | pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; |
| 92 | pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>; |
| 93 | |
| 94 | cd-gpios = <&tlmm 67 0x1>; |
| 95 | |
| 96 | qcom,clk-rates = <400000 20000000 25000000 50000000 100000000 |
| 97 | 200000000>; |
| 98 | qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50", "SDR104"; |
| 99 | |
| 100 | status = "ok"; |
| 101 | }; |
Vevek Venkatesan | 8610b3a | 2018-03-29 14:41:05 +0530 | [diff] [blame] | 102 | |
| 103 | &soc { |
| 104 | gpio_keys { |
| 105 | compatible = "gpio-keys"; |
| 106 | input-name = "gpio-keys"; |
| 107 | pinctrl-names = "default"; |
| 108 | pinctrl-0 = <&gpio_key_active>; |
| 109 | |
| 110 | camera_focus { |
| 111 | label = "camera_focus"; |
| 112 | gpios = <&tlmm 128 0x1>; |
| 113 | linux,input-type = <1>; |
| 114 | linux,code = <0x210>; |
| 115 | debounce-interval = <15>; |
| 116 | linux,can-disable; |
| 117 | gpio-key,wakeup; |
| 118 | }; |
| 119 | |
| 120 | camera_snapshot { |
| 121 | label = "camera_snapshot"; |
| 122 | gpios = <&tlmm 127 0x1>; |
| 123 | linux,input-type = <1>; |
| 124 | linux,code = <0x2fe>; |
| 125 | debounce-interval = <15>; |
| 126 | linux,can-disable; |
| 127 | gpio-key,wakeup; |
| 128 | }; |
| 129 | |
| 130 | vol_up { |
| 131 | label = "volume_up"; |
| 132 | gpios = <&tlmm 91 0x1>; |
| 133 | linux,input-type = <1>; |
| 134 | linux,code = <115>; |
| 135 | debounce-interval = <15>; |
| 136 | linux,can-disable; |
| 137 | gpio-key,wakeup; |
| 138 | }; |
| 139 | }; |
| 140 | }; |
Rashi Bindra | a5dc494 | 2018-03-08 18:59:36 +0530 | [diff] [blame] | 141 | |
| 142 | &pm8953_gpios { |
| 143 | bklt_en { |
| 144 | bklt_en_default: bklt_en_default { |
| 145 | pins = "gpio4"; |
| 146 | function = "normal"; |
| 147 | power-source = <0>; |
| 148 | output-high; |
| 149 | }; |
| 150 | }; |
| 151 | }; |
| 152 | |
| 153 | &pm8953_pwm { |
| 154 | status = "ok"; |
| 155 | }; |
| 156 | |
| 157 | #include "msm8937-mdss-panels.dtsi" |
| 158 | |
| 159 | &mdss_mdp { |
| 160 | qcom,mdss-pref-prim-intf = "dsi"; |
| 161 | }; |
| 162 | |
| 163 | &mdss_dsi { |
| 164 | hw-config = "single_dsi"; |
| 165 | }; |
| 166 | |
| 167 | &mdss_dsi0 { |
| 168 | qcom,dsi-pref-prim-pan = <&dsi_hx8399c_truly_vid>; |
| 169 | pinctrl-names = "mdss_default", "mdss_sleep"; |
| 170 | pinctrl-0 = <&mdss_dsi_active &mdss_te_active &bklt_en_default>; |
| 171 | pinctrl-1 = <&mdss_dsi_suspend &mdss_te_suspend>; |
| 172 | |
| 173 | qcom,platform-bklight-en-gpio = <&pm8953_gpios 4 0>; |
| 174 | qcom,platform-te-gpio = <&tlmm 24 0>; |
Rashi Bindra | 2a91a16 | 2018-04-09 17:37:02 +0530 | [diff] [blame] | 175 | qcom,platform-reset-gpio = <&tlmm 60 0>; |
Rashi Bindra | a5dc494 | 2018-03-08 18:59:36 +0530 | [diff] [blame] | 176 | lab-supply = <&lcdb_ldo_vreg>; |
| 177 | ibb-supply = <&lcdb_ncp_vreg>; |
Padmanabhan Komanduru | dfeb2d8 | 2018-04-24 10:39:16 +0530 | [diff] [blame^] | 178 | }; |
Rashi Bindra | a5dc494 | 2018-03-08 18:59:36 +0530 | [diff] [blame] | 179 | |
Padmanabhan Komanduru | dfeb2d8 | 2018-04-24 10:39:16 +0530 | [diff] [blame^] | 180 | &mdss_dsi1 { |
| 181 | status = "disabled"; |
Rashi Bindra | a5dc494 | 2018-03-08 18:59:36 +0530 | [diff] [blame] | 182 | }; |
| 183 | |
| 184 | &dsi_hx8399c_truly_vid { |
Padmanabhan Komanduru | 9bbf9cd | 2018-04-14 10:59:03 +0530 | [diff] [blame] | 185 | /delete-property/ qcom,mdss-dsi-panel-timings; |
| 186 | qcom,mdss-dsi-panel-timings-phy-12nm = [18 0a 10 06 03 08 06 0e]; |
Rashi Bindra | a5dc494 | 2018-03-08 18:59:36 +0530 | [diff] [blame] | 187 | qcom,mdss-dsi-t-clk-post = <0x02>; |
| 188 | qcom,mdss-dsi-t-clk-pre = <0x2d>; |
| 189 | qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; |
| 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>; |
Rashi Bindra | a5dc494 | 2018-03-08 18:59:36 +0530 | [diff] [blame] | 194 | }; |
| 195 | |
| 196 | |
| 197 | &dsi_hx8399c_hd_vid { |
Padmanabhan Komanduru | 9bbf9cd | 2018-04-14 10:59:03 +0530 | [diff] [blame] | 198 | /delete-property/ qcom,mdss-dsi-panel-timings; |
| 199 | qcom,mdss-dsi-panel-timings-phy-12nm = [08 06 0a 02 00 04 02 08]; |
Rashi Bindra | a5dc494 | 2018-03-08 18:59:36 +0530 | [diff] [blame] | 200 | qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; |
Rashi Bindra | a5dc494 | 2018-03-08 18:59:36 +0530 | [diff] [blame] | 201 | qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_pwm"; |
| 202 | qcom,mdss-dsi-bl-pmic-pwm-frequency = <100>; |
| 203 | qcom,mdss-dsi-bl-pmic-bank-select = <0>; |
| 204 | qcom,mdss-dsi-pwm-gpio = <&pm8953_gpios 8 0>; |
| 205 | }; |