Channagoud Kadabi | 44da495 | 2017-03-20 20:35:56 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2017, The Linux Foundation. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
Harry Yang | 6711166 | 2017-04-05 15:14:52 -0700 | [diff] [blame] | 12 | |
Harry Yang | 801aa2e | 2017-04-10 17:59:05 -0700 | [diff] [blame] | 13 | #include "smb1355.dtsi" |
Kyle Yan | 1686053 | 2017-05-05 15:38:47 -0700 | [diff] [blame] | 14 | #include <dt-bindings/gpio/gpio.h> |
Harry Yang | 801aa2e | 2017-04-10 17:59:05 -0700 | [diff] [blame] | 15 | |
Harry Yang | 6711166 | 2017-04-05 15:14:52 -0700 | [diff] [blame] | 16 | /{ |
Sungjun Park | bd0446d | 2017-05-17 14:07:18 -0700 | [diff] [blame] | 17 | bluetooth: bt_wcn3990 { |
| 18 | compatible = "qca,wcn3990"; |
| 19 | qca,bt-vdd-io-supply = <&pm8998_s3>; |
| 20 | qca,bt-vdd-xtal-supply = <&pm8998_s5>; |
| 21 | qca,bt-vdd-core-supply = <&pm8998_l7>; |
| 22 | qca,bt-vdd-pa-supply = <&pm8998_l17>; |
| 23 | qca,bt-vdd-ldo-supply = <&pm8998_l25>; |
| 24 | |
| 25 | qca,bt-vdd-io-voltage-level = <1352000 1352000>; |
| 26 | qca,bt-vdd-xtal-voltage-level = <2040000 2040000>; |
| 27 | qca,bt-vdd-core-voltage-level = <1800000 1800000>; |
| 28 | qca,bt-vdd-pa-voltage-level = <1304000 1304000>; |
| 29 | qca,bt-vdd-ldo-voltage-level = <3312000 3312000>; |
| 30 | |
| 31 | qca,bt-vdd-io-current-level = <1>; /* LPM/PFM */ |
| 32 | qca,bt-vdd-xtal-current-level = <1>; /* LPM/PFM */ |
| 33 | qca,bt-vdd-core-current-level = <1>; /* LPM/PFM */ |
| 34 | qca,bt-vdd-pa-current-level = <1>; /* LPM/PFM */ |
| 35 | qca,bt-vdd-ldo-current-level = <1>; /* LPM/PFM */ |
| 36 | }; |
| 37 | |
Harry Yang | 6711166 | 2017-04-05 15:14:52 -0700 | [diff] [blame] | 38 | qrd_batterydata: qcom,battery-data { |
| 39 | qcom,batt-id-range-pct = <15>; |
| 40 | #include "fg-gen3-batterydata-itech-3000mah.dtsi" |
| 41 | #include "fg-gen3-batterydata-ascent-3450mah.dtsi" |
| 42 | }; |
Girish Mahadevan | b8f9deb | 2017-05-08 14:14:46 -0600 | [diff] [blame] | 43 | |
| 44 | aliases { |
| 45 | serial0 = &qupv3_se9_2uart; |
| 46 | spi0 = &qupv3_se8_spi; |
| 47 | i2c0 = &qupv3_se10_i2c; |
| 48 | i2c1 = &qupv3_se3_i2c; |
| 49 | hsuart0 = &qupv3_se6_4uart; |
| 50 | }; |
| 51 | }; |
| 52 | |
| 53 | &qupv3_se9_2uart { |
| 54 | status = "ok"; |
| 55 | }; |
| 56 | |
| 57 | &qupv3_se8_spi { |
| 58 | status = "ok"; |
| 59 | }; |
| 60 | |
| 61 | &qupv3_se3_i2c { |
| 62 | status = "ok"; |
Gaurav Singhal | f6d253d | 2017-05-11 08:24:40 +0530 | [diff] [blame] | 63 | nq@28 { |
| 64 | compatible = "qcom,nq-nci"; |
| 65 | reg = <0x28>; |
| 66 | qcom,nq-irq = <&tlmm 63 0x00>; |
| 67 | qcom,nq-ven = <&tlmm 12 0x00>; |
| 68 | qcom,nq-firm = <&tlmm 62 0x00>; |
| 69 | qcom,nq-clkreq = <&pm8998_gpios 21 0x00>; |
| 70 | qcom,nq-esepwr = <&tlmm 116 0x00>; |
| 71 | interrupt-parent = <&tlmm>; |
| 72 | qcom,clk-src = "BBCLK3"; |
| 73 | interrupts = <63 0>; |
| 74 | interrupt-names = "nfc_irq"; |
| 75 | pinctrl-names = "nfc_active", "nfc_suspend"; |
| 76 | pinctrl-0 = <&nfc_int_active &nfc_enable_active>; |
| 77 | pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>; |
| 78 | clocks = <&clock_rpmh RPMH_LN_BB_CLK3>; |
| 79 | clock-names = "ref_clk"; |
| 80 | }; |
Girish Mahadevan | b8f9deb | 2017-05-08 14:14:46 -0600 | [diff] [blame] | 81 | }; |
| 82 | |
| 83 | &qupv3_se10_i2c { |
| 84 | status = "ok"; |
| 85 | }; |
| 86 | |
| 87 | &qupv3_se6_4uart { |
| 88 | status = "ok"; |
Harry Yang | 6711166 | 2017-04-05 15:14:52 -0700 | [diff] [blame] | 89 | }; |
| 90 | |
| 91 | &pmi8998_fg { |
| 92 | qcom,battery-data = <&qrd_batterydata>; |
| 93 | }; |
Xiaoyu Ye | 7370212 | 2017-04-07 17:55:01 -0700 | [diff] [blame] | 94 | |
Harry Yang | 801aa2e | 2017-04-10 17:59:05 -0700 | [diff] [blame] | 95 | &smb1355_charger { |
| 96 | status = "ok"; |
| 97 | }; |
| 98 | |
Ram Chandrasekar | 316c393 | 2017-04-25 12:48:55 -0600 | [diff] [blame] | 99 | &mdss_mdp { |
| 100 | #cooling-cells = <2>; |
| 101 | }; |
| 102 | |
Xiaoyu Ye | 7370212 | 2017-04-07 17:55:01 -0700 | [diff] [blame] | 103 | &soc { |
| 104 | sound-tavil { |
| 105 | qcom,wsa-max-devs = <1>; |
| 106 | qcom,wsa-devs = <&wsa881x_0211>, <&wsa881x_0213>; |
| 107 | qcom,wsa-aux-dev-prefix = "SpkrRight", "SpkrRight"; |
| 108 | }; |
| 109 | }; |
Kyle Yan | 1686053 | 2017-05-05 15:38:47 -0700 | [diff] [blame] | 110 | |
| 111 | &ufsphy_mem { |
| 112 | compatible = "qcom,ufs-phy-qmp-v3"; |
| 113 | |
| 114 | vdda-phy-supply = <&pm8998_l1>; /* 0.88v */ |
| 115 | vdda-pll-supply = <&pm8998_l26>; /* 1.2v */ |
| 116 | vdda-phy-max-microamp = <62900>; |
| 117 | vdda-pll-max-microamp = <18300>; |
| 118 | |
| 119 | status = "ok"; |
| 120 | }; |
| 121 | |
| 122 | &ufshc_mem { |
| 123 | vdd-hba-supply = <&ufs_phy_gdsc>; |
| 124 | vdd-hba-fixed-regulator; |
| 125 | vcc-supply = <&pm8998_l20>; |
| 126 | vccq2-supply = <&pm8998_s4>; |
| 127 | vcc-max-microamp = <600000>; |
| 128 | vccq2-max-microamp = <600000>; |
| 129 | |
| 130 | qcom,vddp-ref-clk-supply = <&pm8998_l2>; |
| 131 | qcom,vddp-ref-clk-max-microamp = <100>; |
| 132 | |
| 133 | status = "ok"; |
| 134 | }; |
| 135 | |
| 136 | &ufsphy_card { |
| 137 | compatible = "qcom,ufs-phy-qmp-v3"; |
| 138 | |
| 139 | vdda-phy-supply = <&pm8998_l1>; /* 0.88v */ |
| 140 | vdda-pll-supply = <&pm8998_l26>; /* 1.2v */ |
| 141 | vdda-phy-max-microamp = <62900>; |
| 142 | vdda-pll-max-microamp = <18300>; |
| 143 | |
| 144 | status = "ok"; |
| 145 | }; |
| 146 | |
| 147 | &ufshc_card { |
| 148 | vdd-hba-supply = <&ufs_card_gdsc>; |
| 149 | vdd-hba-fixed-regulator; |
| 150 | vcc-supply = <&pm8998_l21>; |
| 151 | vccq2-supply = <&pm8998_s4>; |
| 152 | vcc-max-microamp = <300000>; |
| 153 | vccq2-max-microamp = <300000>; |
| 154 | |
| 155 | qcom,vddp-ref-clk-supply = <&pm8998_l2>; |
| 156 | qcom,vddp-ref-clk-max-microamp = <100>; |
| 157 | |
| 158 | status = "ok"; |
| 159 | }; |
Shashank Babu Chinta Venkata | b4e499f | 2017-05-01 11:39:57 -0700 | [diff] [blame] | 160 | |
| 161 | &labibb { |
| 162 | status = "ok"; |
| 163 | qcom,qpnp-labibb-mode = "lcd"; |
| 164 | }; |
| 165 | |
| 166 | &pmi8998_wled { |
| 167 | status = "okay"; |
| 168 | qcom,led-strings-list = [01 02]; |
| 169 | }; |
| 170 | |
| 171 | &mdss_mdp { |
Dhaval Patel | 7556ced | 2017-02-10 19:53:10 -0800 | [diff] [blame] | 172 | connectors = <&sde_rscc &sde_wb &dsi_sharp_4k_dsc_video_display>; |
Shashank Babu Chinta Venkata | b4e499f | 2017-05-01 11:39:57 -0700 | [diff] [blame] | 173 | }; |
| 174 | |
| 175 | &dsi_sharp_4k_dsc_video { |
| 176 | qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; |
| 177 | qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; |
| 178 | qcom,mdss-dsi-bl-min-level = <1>; |
| 179 | qcom,mdss-dsi-bl-max-level = <4095>; |
| 180 | qcom,mdss-dsi-panel-mode-gpio-state = "dual_port"; |
| 181 | qcom,panel-mode-gpio = <&tlmm 52 0>; |
| 182 | qcom,platform-te-gpio = <&tlmm 10 0>; |
| 183 | qcom,platform-reset-gpio = <&tlmm 6 0>; |
Dhaval Patel | 3d43fc4 | 2017-05-17 17:52:05 -0700 | [diff] [blame] | 184 | qcom,mdss-dsi-panel-orientation = "180"; |
Shashank Babu Chinta Venkata | b4e499f | 2017-05-01 11:39:57 -0700 | [diff] [blame] | 185 | }; |
| 186 | |
| 187 | &dsi_sharp_4k_dsc_video_display { |
| 188 | qcom,dsi-display-active; |
| 189 | }; |
Maya Erez | 6e14acb | 2017-05-16 09:59:02 +0300 | [diff] [blame] | 190 | |
| 191 | &wil6210 { |
| 192 | status = "ok"; |
| 193 | }; |
Harry Yang | 4c05d3e4 | 2017-05-09 16:18:17 -0700 | [diff] [blame^] | 194 | |
| 195 | &ext_5v_boost { |
| 196 | status = "ok"; |
| 197 | }; |