1 // SPDX-License-Identifier: BSD-3-Clause 1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 2 /* 3 * Copyright (c) 2020, Xilin Wu <strongtz@yeah. 3 * Copyright (c) 2020, Xilin Wu <strongtz@yeah.net> 4 * Copyright (c) 2022, Molly Sophia <mollysophi 4 * Copyright (c) 2022, Molly Sophia <mollysophia379@gmail.com> 5 */ 5 */ 6 6 7 /dts-v1/; 7 /dts-v1/; 8 8 9 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h 10 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 11 #include <dt-bindings/regulator/qcom,rpmh-regu 11 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 12 #include <dt-bindings/input/linux-event-codes. 12 #include <dt-bindings/input/linux-event-codes.h> 13 #include <dt-bindings/sound/qcom,q6afe.h> 13 #include <dt-bindings/sound/qcom,q6afe.h> 14 #include <dt-bindings/sound/qcom,q6asm.h> 14 #include <dt-bindings/sound/qcom,q6asm.h> 15 #include "sdm845.dtsi" 15 #include "sdm845.dtsi" 16 #include "sdm845-wcd9340.dtsi" 16 #include "sdm845-wcd9340.dtsi" 17 #include "pm8998.dtsi" 17 #include "pm8998.dtsi" 18 #include "pmi8998.dtsi" 18 #include "pmi8998.dtsi" 19 #include "pm8005.dtsi" 19 #include "pm8005.dtsi" 20 20 21 /* 21 /* 22 * Delete following upstream (sdm845.dtsi) res 22 * Delete following upstream (sdm845.dtsi) reserved 23 * memory mappings which are different in this 23 * memory mappings which are different in this device. 24 */ 24 */ 25 /delete-node/ &rmtfs_mem; 25 /delete-node/ &rmtfs_mem; 26 /delete-node/ &adsp_mem; 26 /delete-node/ &adsp_mem; 27 /delete-node/ &wlan_msa_mem; 27 /delete-node/ &wlan_msa_mem; 28 /delete-node/ &mpss_region; 28 /delete-node/ &mpss_region; 29 /delete-node/ &venus_mem; 29 /delete-node/ &venus_mem; 30 /delete-node/ &cdsp_mem; 30 /delete-node/ &cdsp_mem; 31 /delete-node/ &mba_region; 31 /delete-node/ &mba_region; 32 /delete-node/ &slpi_mem; 32 /delete-node/ &slpi_mem; 33 /delete-node/ &spss_mem; 33 /delete-node/ &spss_mem; 34 34 35 / { 35 / { 36 model = "Xiaomi Mi MIX 2S"; 36 model = "Xiaomi Mi MIX 2S"; 37 compatible = "xiaomi,polaris", "qcom,s 37 compatible = "xiaomi,polaris", "qcom,sdm845"; 38 chassis-type = "handset"; 38 chassis-type = "handset"; 39 39 40 /* required for bootloader to select c 40 /* required for bootloader to select correct board */ 41 qcom,msm-id = <0x141 0x20001>; 41 qcom,msm-id = <0x141 0x20001>; 42 qcom,board-id = <0x2a 0x0>; 42 qcom,board-id = <0x2a 0x0>; 43 43 44 aliases { 44 aliases { 45 serial0 = &uart9; 45 serial0 = &uart9; 46 serial1 = &uart6; 46 serial1 = &uart6; 47 }; 47 }; 48 48 49 gpio-keys { 49 gpio-keys { 50 compatible = "gpio-keys"; 50 compatible = "gpio-keys"; 51 autorepeat; 51 autorepeat; 52 52 53 pinctrl-names = "default"; 53 pinctrl-names = "default"; 54 pinctrl-0 = <&volume_up_gpio>; 54 pinctrl-0 = <&volume_up_gpio>; 55 55 56 key-vol-up { 56 key-vol-up { 57 label = "Volume Up"; 57 label = "Volume Up"; 58 linux,code = <KEY_VOLU 58 linux,code = <KEY_VOLUMEUP>; 59 gpios = <&pm8998_gpios 59 gpios = <&pm8998_gpios 6 GPIO_ACTIVE_LOW>; 60 debounce-interval = <1 60 debounce-interval = <15>; 61 }; 61 }; 62 }; 62 }; 63 63 64 reserved-memory { 64 reserved-memory { 65 adsp_mem: memory@8c500000 { 65 adsp_mem: memory@8c500000 { 66 reg = <0 0x8c500000 0 66 reg = <0 0x8c500000 0 0x1e00000>; 67 no-map; 67 no-map; 68 }; 68 }; 69 69 70 wlan_msa_mem: memory@8e300000 70 wlan_msa_mem: memory@8e300000 { 71 reg = <0 0x8e300000 0 71 reg = <0 0x8e300000 0 0x100000>; 72 no-map; 72 no-map; 73 }; 73 }; 74 74 75 mpss_region: memory@8e400000 { 75 mpss_region: memory@8e400000 { 76 reg = <0 0x8e400000 0 76 reg = <0 0x8e400000 0 0x7800000>; 77 no-map; 77 no-map; 78 }; 78 }; 79 79 80 venus_mem: memory@95c00000 { 80 venus_mem: memory@95c00000 { 81 reg = <0 0x95c00000 0 81 reg = <0 0x95c00000 0 0x500000>; 82 no-map; 82 no-map; 83 }; 83 }; 84 84 85 cdsp_mem: memory@96100000 { 85 cdsp_mem: memory@96100000 { 86 reg = <0 0x96100000 0 86 reg = <0 0x96100000 0 0x800000>; 87 no-map; 87 no-map; 88 }; 88 }; 89 89 90 mba_region: memory@96900000 { 90 mba_region: memory@96900000 { 91 reg = <0 0x96900000 0 91 reg = <0 0x96900000 0 0x200000>; 92 no-map; 92 no-map; 93 }; 93 }; 94 94 95 slpi_mem: memory@96b00000 { 95 slpi_mem: memory@96b00000 { 96 reg = <0 0x96b00000 0 96 reg = <0 0x96b00000 0 0x1400000>; 97 no-map; 97 no-map; 98 }; 98 }; 99 99 100 spss_mem: memory@97f00000 { 100 spss_mem: memory@97f00000 { 101 reg = <0 0x97f00000 0 101 reg = <0 0x97f00000 0 0x100000>; 102 no-map; 102 no-map; 103 }; 103 }; 104 104 105 rmtfs_mem: memory@f6301000 { 105 rmtfs_mem: memory@f6301000 { 106 compatible = "qcom,rmt 106 compatible = "qcom,rmtfs-mem"; 107 reg = <0 0xf6301000 0 107 reg = <0 0xf6301000 0 0x200000>; 108 no-map; 108 no-map; 109 109 110 qcom,client-id = <1>; 110 qcom,client-id = <1>; 111 qcom,vmid = <QCOM_SCM_ !! 111 qcom,vmid = <15>; 112 }; 112 }; 113 }; 113 }; 114 114 115 battery: battery { 115 battery: battery { 116 compatible = "simple-battery"; 116 compatible = "simple-battery"; 117 117 118 charge-full-design-microamp-ho 118 charge-full-design-microamp-hours = <3400000>; 119 voltage-min-design-microvolt = 119 voltage-min-design-microvolt = <3400000>; 120 voltage-max-design-microvolt = 120 voltage-max-design-microvolt = <4400000>; 121 }; 121 }; 122 122 123 vreg_tp_vddio: vreg-tp-vddio { 123 vreg_tp_vddio: vreg-tp-vddio { 124 compatible = "regulator-fixed" 124 compatible = "regulator-fixed"; 125 regulator-name = "vreg_tp_vddi 125 regulator-name = "vreg_tp_vddio"; 126 126 127 regulator-min-microvolt = <180 127 regulator-min-microvolt = <1800000>; 128 regulator-max-microvolt = <180 128 regulator-max-microvolt = <1800000>; 129 129 130 gpio = <&tlmm 23 GPIO_ACTIVE_H 130 gpio = <&tlmm 23 GPIO_ACTIVE_HIGH>; 131 regulator-always-on; 131 regulator-always-on; 132 regulator-boot-on; 132 regulator-boot-on; 133 enable-active-high; 133 enable-active-high; 134 }; 134 }; 135 135 136 vreg_s4a_1p8: vreg-s4a-1p8 { 136 vreg_s4a_1p8: vreg-s4a-1p8 { 137 compatible = "regulator-fixed" 137 compatible = "regulator-fixed"; 138 regulator-name = "vreg_s4a_1p8 138 regulator-name = "vreg_s4a_1p8"; 139 139 140 regulator-min-microvolt = <180 140 regulator-min-microvolt = <1800000>; 141 regulator-max-microvolt = <180 141 regulator-max-microvolt = <1800000>; 142 regulator-always-on; 142 regulator-always-on; 143 }; 143 }; 144 }; 144 }; 145 145 146 &apps_rsc { 146 &apps_rsc { 147 regulators-0 { 147 regulators-0 { 148 compatible = "qcom,pm8998-rpmh 148 compatible = "qcom,pm8998-rpmh-regulators"; 149 qcom,pmic-id = "a"; 149 qcom,pmic-id = "a"; 150 150 151 vreg_s2a_1p1: smps2 { 151 vreg_s2a_1p1: smps2 { 152 regulator-min-microvol 152 regulator-min-microvolt = <1100000>; 153 regulator-max-microvol 153 regulator-max-microvolt = <1100000>; 154 }; 154 }; 155 155 156 vreg_s3a_1p35: smps3 { 156 vreg_s3a_1p35: smps3 { 157 regulator-min-microvol 157 regulator-min-microvolt = <1352000>; 158 regulator-max-microvol 158 regulator-max-microvolt = <1352000>; 159 }; 159 }; 160 160 161 vreg_s5a_2p04: smps5 { 161 vreg_s5a_2p04: smps5 { 162 regulator-min-microvol 162 regulator-min-microvolt = <1904000>; 163 regulator-max-microvol 163 regulator-max-microvolt = <2040000>; 164 }; 164 }; 165 165 166 vreg_s7a_1p025: smps7 { 166 vreg_s7a_1p025: smps7 { 167 regulator-min-microvol 167 regulator-min-microvolt = <900000>; 168 regulator-max-microvol 168 regulator-max-microvolt = <1028000>; 169 }; 169 }; 170 170 171 vdda_mipi_dsi0_pll: 171 vdda_mipi_dsi0_pll: 172 vdda_ufs1_core: 172 vdda_ufs1_core: 173 vreg_l1a_0p875: ldo1 { 173 vreg_l1a_0p875: ldo1 { 174 regulator-min-microvol 174 regulator-min-microvolt = <880000>; 175 regulator-max-microvol 175 regulator-max-microvolt = <880000>; 176 regulator-initial-mode 176 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 177 }; 177 }; 178 178 179 vreg_l2a_1p2: ldo2 { 179 vreg_l2a_1p2: ldo2 { 180 regulator-min-microvol 180 regulator-min-microvolt = <1200000>; 181 regulator-max-microvol 181 regulator-max-microvolt = <1200000>; 182 regulator-initial-mode 182 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 183 regulator-always-on; 183 regulator-always-on; 184 }; 184 }; 185 185 186 vreg_l3a_1p0: ldo3 { 186 vreg_l3a_1p0: ldo3 { 187 regulator-min-microvol 187 regulator-min-microvolt = <1000000>; 188 regulator-max-microvol 188 regulator-max-microvolt = <1000000>; 189 regulator-initial-mode 189 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 190 }; 190 }; 191 191 192 vreg_l5a_0p8: ldo5 { 192 vreg_l5a_0p8: ldo5 { 193 regulator-min-microvol 193 regulator-min-microvolt = <800000>; 194 regulator-max-microvol 194 regulator-max-microvolt = <800000>; 195 regulator-initial-mode 195 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 196 }; 196 }; 197 197 198 vreg_l6a_1p8: ldo6 { 198 vreg_l6a_1p8: ldo6 { 199 regulator-min-microvol 199 regulator-min-microvolt = <1856000>; 200 regulator-max-microvol 200 regulator-max-microvolt = <1856000>; 201 regulator-initial-mode 201 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 202 }; 202 }; 203 203 204 vreg_l7a_1p8: ldo7 { 204 vreg_l7a_1p8: ldo7 { 205 regulator-min-microvol 205 regulator-min-microvolt = <1800000>; 206 regulator-max-microvol 206 regulator-max-microvolt = <1800000>; 207 regulator-initial-mode 207 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 208 }; 208 }; 209 209 210 vreg_l8a_1p2: ldo8 { 210 vreg_l8a_1p2: ldo8 { 211 regulator-min-microvol 211 regulator-min-microvolt = <1200000>; 212 regulator-max-microvol 212 regulator-max-microvolt = <1248000>; 213 regulator-initial-mode 213 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 214 }; 214 }; 215 215 216 vreg_l9a_1p8: ldo9 { 216 vreg_l9a_1p8: ldo9 { 217 regulator-min-microvol 217 regulator-min-microvolt = <1704000>; 218 regulator-max-microvol 218 regulator-max-microvolt = <2928000>; 219 regulator-initial-mode 219 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 220 }; 220 }; 221 221 222 vreg_l10a_2p95: ldo10 { 222 vreg_l10a_2p95: ldo10 { 223 regulator-min-microvol 223 regulator-min-microvolt = <1704000>; 224 regulator-max-microvol 224 regulator-max-microvolt = <2928000>; 225 regulator-initial-mode 225 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 226 }; 226 }; 227 227 228 vreg_l11a_1p05: ldo11 { 228 vreg_l11a_1p05: ldo11 { 229 regulator-min-microvol 229 regulator-min-microvolt = <1000000>; 230 regulator-max-microvol 230 regulator-max-microvolt = <1048000>; 231 regulator-initial-mode 231 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 232 }; 232 }; 233 233 234 vreg_l12a_1p8: ldo12 { 234 vreg_l12a_1p8: ldo12 { 235 regulator-min-microvol 235 regulator-min-microvolt = <1800000>; 236 regulator-max-microvol 236 regulator-max-microvolt = <1800000>; 237 regulator-initial-mode 237 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 238 }; 238 }; 239 239 240 vreg_l13a_2p95: ldo13 { 240 vreg_l13a_2p95: ldo13 { 241 regulator-min-microvol 241 regulator-min-microvolt = <1800000>; 242 regulator-max-microvol 242 regulator-max-microvolt = <2960000>; 243 regulator-initial-mode 243 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 244 }; 244 }; 245 245 246 vreg_l14a_1p8: ldo14 { 246 vreg_l14a_1p8: ldo14 { 247 regulator-min-microvol 247 regulator-min-microvolt = <1800000>; 248 regulator-max-microvol 248 regulator-max-microvolt = <1880000>; 249 regulator-initial-mode 249 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 250 regulator-always-on; 250 regulator-always-on; 251 }; 251 }; 252 252 253 vreg_l15a_1p8: ldo15 { 253 vreg_l15a_1p8: ldo15 { 254 regulator-min-microvol 254 regulator-min-microvolt = <1800000>; 255 regulator-max-microvol 255 regulator-max-microvolt = <1800000>; 256 regulator-initial-mode 256 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 257 }; 257 }; 258 258 259 vreg_l16a_2p7: ldo16 { 259 vreg_l16a_2p7: ldo16 { 260 regulator-min-microvol 260 regulator-min-microvolt = <2704000>; 261 regulator-max-microvol 261 regulator-max-microvolt = <2704000>; 262 regulator-initial-mode 262 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 263 }; 263 }; 264 264 265 vreg_l17a_1p3: ldo17 { 265 vreg_l17a_1p3: ldo17 { 266 regulator-min-microvol 266 regulator-min-microvolt = <1304000>; 267 regulator-max-microvol 267 regulator-max-microvolt = <1304000>; 268 regulator-initial-mode 268 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 269 regulator-always-on; 269 regulator-always-on; 270 }; 270 }; 271 271 272 vreg_l18a_2p9: ldo18 { 272 vreg_l18a_2p9: ldo18 { 273 regulator-min-microvol 273 regulator-min-microvolt = <2704000>; 274 regulator-max-microvol 274 regulator-max-microvolt = <2960000>; 275 regulator-initial-mode 275 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 276 }; 276 }; 277 277 278 vreg_l19a_3p1: ldo19 { 278 vreg_l19a_3p1: ldo19 { 279 regulator-min-microvol 279 regulator-min-microvolt = <2856000>; 280 regulator-max-microvol 280 regulator-max-microvolt = <3104000>; 281 regulator-initial-mode 281 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 282 }; 282 }; 283 283 284 vreg_l20a_2p95: ldo20 { 284 vreg_l20a_2p95: ldo20 { 285 regulator-min-microvol 285 regulator-min-microvolt = <2704000>; 286 regulator-max-microvol 286 regulator-max-microvolt = <2960000>; 287 regulator-initial-mode 287 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 288 }; 288 }; 289 289 290 vreg_l21a_2p95: ldo21 { 290 vreg_l21a_2p95: ldo21 { 291 regulator-min-microvol 291 regulator-min-microvolt = <2704000>; 292 regulator-max-microvol 292 regulator-max-microvolt = <2960000>; 293 regulator-initial-mode 293 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 294 }; 294 }; 295 295 296 vreg_l22a_3p3: ldo22 { 296 vreg_l22a_3p3: ldo22 { 297 regulator-min-microvol 297 regulator-min-microvolt = <2864000>; 298 regulator-max-microvol 298 regulator-max-microvolt = <3312000>; 299 regulator-initial-mode 299 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 300 }; 300 }; 301 301 302 vreg_l23a_3p3: ldo23 { 302 vreg_l23a_3p3: ldo23 { 303 regulator-min-microvol 303 regulator-min-microvolt = <3000000>; 304 regulator-max-microvol 304 regulator-max-microvolt = <3312000>; 305 regulator-initial-mode 305 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 306 }; 306 }; 307 307 308 vreg_l24a_3p075: ldo24 { 308 vreg_l24a_3p075: ldo24 { 309 regulator-min-microvol 309 regulator-min-microvolt = <3088000>; 310 regulator-max-microvol 310 regulator-max-microvolt = <3088000>; 311 regulator-initial-mode 311 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 312 }; 312 }; 313 313 314 vreg_l25a_3p3: ldo25 { 314 vreg_l25a_3p3: ldo25 { 315 regulator-min-microvol 315 regulator-min-microvolt = <3000000>; 316 regulator-max-microvol 316 regulator-max-microvolt = <3312000>; 317 regulator-initial-mode 317 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 318 regulator-always-on; 318 regulator-always-on; 319 }; 319 }; 320 320 321 vdda_mipi_dsi0_1p2: 321 vdda_mipi_dsi0_1p2: 322 vdda_ufs1_1p2: 322 vdda_ufs1_1p2: 323 vreg_l26a_1p2: ldo26 { 323 vreg_l26a_1p2: ldo26 { 324 regulator-min-microvol 324 regulator-min-microvolt = <1200000>; 325 regulator-max-microvol 325 regulator-max-microvolt = <1200000>; 326 regulator-initial-mode 326 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 327 }; 327 }; 328 328 329 vreg_l28a_3p0: ldo28 { 329 vreg_l28a_3p0: ldo28 { 330 regulator-min-microvol 330 regulator-min-microvolt = <2856000>; 331 regulator-max-microvol 331 regulator-max-microvolt = <3008000>; 332 regulator-initial-mode 332 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 333 regulator-always-on; 333 regulator-always-on; 334 }; 334 }; 335 335 336 vreg_lvs1a_1p8: lvs1 { 336 vreg_lvs1a_1p8: lvs1 { 337 regulator-min-microvol 337 regulator-min-microvolt = <1800000>; 338 regulator-max-microvol 338 regulator-max-microvolt = <1800000>; 339 }; 339 }; 340 340 341 vreg_lvs2a_1p8: lvs2 { 341 vreg_lvs2a_1p8: lvs2 { 342 regulator-min-microvol 342 regulator-min-microvolt = <1800000>; 343 regulator-max-microvol 343 regulator-max-microvolt = <1800000>; 344 }; 344 }; 345 }; 345 }; 346 346 347 regulators-1 { 347 regulators-1 { 348 compatible = "qcom,pmi8998-rpm 348 compatible = "qcom,pmi8998-rpmh-regulators"; 349 qcom,pmic-id = "b"; 349 qcom,pmic-id = "b"; 350 350 351 vreg_bob: bob { 351 vreg_bob: bob { 352 regulator-min-microvol 352 regulator-min-microvolt = <3312000>; 353 regulator-max-microvol 353 regulator-max-microvolt = <3600000>; 354 regulator-initial-mode 354 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>; 355 regulator-allow-bypass 355 regulator-allow-bypass; 356 }; 356 }; 357 }; 357 }; 358 358 359 regulators-2 { 359 regulators-2 { 360 compatible = "qcom,pm8005-rpmh 360 compatible = "qcom,pm8005-rpmh-regulators"; 361 qcom,pmic-id = "c"; 361 qcom,pmic-id = "c"; 362 362 363 vreg_smp3c_0p6: smps3 { 363 vreg_smp3c_0p6: smps3 { 364 regulator-min-microvol 364 regulator-min-microvolt = <600000>; 365 regulator-max-microvol 365 regulator-max-microvolt = <600000>; 366 regulator-always-on; 366 regulator-always-on; 367 }; 367 }; 368 }; 368 }; 369 }; 369 }; 370 370 371 &cdsp_pas { 371 &cdsp_pas { 372 firmware-name = "qcom/sdm845/polaris/c 372 firmware-name = "qcom/sdm845/polaris/cdsp.mbn"; 373 status = "okay"; 373 status = "okay"; 374 }; 374 }; 375 375 >> 376 &dsi0 { >> 377 vdda-supply = <&vdda_mipi_dsi0_1p2>; >> 378 status = "okay"; >> 379 >> 380 display_panel: panel@0 { >> 381 compatible = "jdi,fhd-nt35596s"; >> 382 #address-cells = <1>; >> 383 #size-cells = <0>; >> 384 reg = <0>; >> 385 >> 386 reset-gpios = <&tlmm 6 GPIO_ACTIVE_LOW>; >> 387 vddio-supply = <&vreg_l14a_1p8>; >> 388 backlight = <&pmi8998_wled>; >> 389 vddpos-supply = <&lab>; >> 390 vddneg-supply = <&ibb>; >> 391 >> 392 pinctrl-names = "default", "sleep"; >> 393 pinctrl-0 = <&sde_dsi_active>; >> 394 pinctrl-1 = <&sde_dsi_suspend>; >> 395 >> 396 port { >> 397 panel_in: endpoint { >> 398 remote-endpoint = <&dsi0_out>; >> 399 }; >> 400 }; >> 401 }; >> 402 }; >> 403 >> 404 &dsi0_out { >> 405 remote-endpoint = <&panel_in>; >> 406 data-lanes = <0 1 2 3>; >> 407 }; >> 408 >> 409 &dsi0_phy { >> 410 vdds-supply = <&vdda_mipi_dsi0_pll>; >> 411 status = "okay"; >> 412 }; >> 413 376 &gcc { 414 &gcc { 377 protected-clocks = <GCC_QSPI_CORE_CLK> 415 protected-clocks = <GCC_QSPI_CORE_CLK>, 378 <GCC_QSPI_CORE 416 <GCC_QSPI_CORE_CLK_SRC>, 379 <GCC_QSPI_CNOC 417 <GCC_QSPI_CNOC_PERIPH_AHB_CLK>, 380 <GCC_LPASS_Q6_ 418 <GCC_LPASS_Q6_AXI_CLK>, 381 <GCC_LPASS_SWA 419 <GCC_LPASS_SWAY_CLK>; 382 }; 420 }; 383 421 384 &gmu { 422 &gmu { 385 status = "okay"; 423 status = "okay"; 386 }; 424 }; 387 425 388 &gpi_dma0 { 426 &gpi_dma0 { 389 status = "okay"; 427 status = "okay"; 390 }; 428 }; 391 429 392 &gpi_dma1 { 430 &gpi_dma1 { 393 status = "okay"; 431 status = "okay"; 394 }; 432 }; 395 433 396 &gpu { 434 &gpu { 397 status = "okay"; 435 status = "okay"; 398 436 399 zap-shader { 437 zap-shader { 400 memory-region = <&gpu_mem>; 438 memory-region = <&gpu_mem>; 401 firmware-name = "qcom/sdm845/p 439 firmware-name = "qcom/sdm845/polaris/a630_zap.mbn"; 402 }; 440 }; 403 }; 441 }; 404 442 405 &ibb { 443 &ibb { 406 regulator-min-microvolt = <4600000>; 444 regulator-min-microvolt = <4600000>; 407 regulator-max-microvolt = <6000000>; 445 regulator-max-microvolt = <6000000>; 408 regulator-over-current-protection; 446 regulator-over-current-protection; 409 regulator-pull-down; 447 regulator-pull-down; 410 regulator-soft-start; 448 regulator-soft-start; 411 qcom,discharge-resistor-kohms = <300>; 449 qcom,discharge-resistor-kohms = <300>; 412 }; 450 }; 413 451 414 &ipa { 452 &ipa { 415 qcom,gsi-loader = "self"; 453 qcom,gsi-loader = "self"; 416 memory-region = <&ipa_fw_mem>; 454 memory-region = <&ipa_fw_mem>; 417 firmware-name = "qcom/sdm845/polaris/i 455 firmware-name = "qcom/sdm845/polaris/ipa_fws.mbn"; 418 status = "okay"; 456 status = "okay"; 419 }; 457 }; 420 458 421 &i2c14 { 459 &i2c14 { 422 clock-frequency = <400000>; 460 clock-frequency = <400000>; 423 status = "okay"; 461 status = "okay"; 424 462 425 touchscreen@20 { 463 touchscreen@20 { 426 compatible = "syna,rmi4-i2c"; 464 compatible = "syna,rmi4-i2c"; 427 reg = <0x20>; 465 reg = <0x20>; 428 #address-cells = <1>; 466 #address-cells = <1>; 429 #size-cells = <0>; 467 #size-cells = <0>; 430 interrupts-extended = <&tlmm 1 468 interrupts-extended = <&tlmm 125 0x2008>; 431 469 432 pinctrl-names = "default", "sl 470 pinctrl-names = "default", "sleep"; 433 pinctrl-0 = <&ts_int_default & 471 pinctrl-0 = <&ts_int_default &ts_reset_default>; 434 pinctrl-1 = <&ts_int_sleep &ts 472 pinctrl-1 = <&ts_int_sleep &ts_reset_sleep>; 435 473 436 vdd-supply = <&vreg_l28a_3p0>; 474 vdd-supply = <&vreg_l28a_3p0>; 437 vio-supply = <&vreg_tp_vddio>; 475 vio-supply = <&vreg_tp_vddio>; 438 476 439 syna,startup-delay-ms = <0xc8> 477 syna,startup-delay-ms = <0xc8>; 440 syna,reset-delay-ms = <0xc8>; 478 syna,reset-delay-ms = <0xc8>; 441 479 442 rmi4-f01@1 { 480 rmi4-f01@1 { 443 syna,nosleep-mode = <0 481 syna,nosleep-mode = <0x1>; 444 reg = <0x1>; 482 reg = <0x1>; 445 }; 483 }; 446 484 447 rmi4-f12@12 { 485 rmi4-f12@12 { 448 reg = <0x12>; 486 reg = <0x12>; 449 syna,rezero-wait-ms = 487 syna,rezero-wait-ms = <0xc8>; 450 syna,clip-x-high = <0x 488 syna,clip-x-high = <0x438>; 451 syna,clip-y-high = <0x 489 syna,clip-y-high = <0x870>; 452 syna,sensor-type = <0x 490 syna,sensor-type = <0x1>; 453 syna,clip-x-low = <0x0 491 syna,clip-x-low = <0x0>; 454 syna,clip-y-low = <0x0 492 syna,clip-y-low = <0x0>; 455 }; 493 }; 456 }; 494 }; 457 }; 495 }; 458 496 459 &lab { 497 &lab { 460 regulator-min-microvolt = <4600000>; 498 regulator-min-microvolt = <4600000>; 461 regulator-max-microvolt = <6000000>; 499 regulator-max-microvolt = <6000000>; 462 regulator-soft-start; 500 regulator-soft-start; 463 regulator-pull-down; 501 regulator-pull-down; 464 }; 502 }; 465 503 466 &mdss { 504 &mdss { 467 status = "okay"; << 468 }; << 469 << 470 &mdss_dsi0 { << 471 vdda-supply = <&vdda_mipi_dsi0_1p2>; << 472 status = "okay"; << 473 << 474 display_panel: panel@0 { << 475 compatible = "jdi,fhd-nt35596s << 476 #address-cells = <1>; << 477 #size-cells = <0>; << 478 reg = <0>; << 479 << 480 reset-gpios = <&tlmm 6 GPIO_AC << 481 vddio-supply = <&vreg_l14a_1p8 << 482 backlight = <&pmi8998_wled>; << 483 vddpos-supply = <&lab>; << 484 vddneg-supply = <&ibb>; << 485 << 486 pinctrl-names = "default", "sl << 487 pinctrl-0 = <&sde_dsi_active>; << 488 pinctrl-1 = <&sde_dsi_suspend> << 489 << 490 port { << 491 panel_in: endpoint { << 492 remote-endpoin << 493 }; << 494 }; << 495 }; << 496 }; << 497 << 498 &mdss_dsi0_out { << 499 remote-endpoint = <&panel_in>; << 500 data-lanes = <0 1 2 3>; << 501 }; << 502 << 503 &mdss_dsi0_phy { << 504 vdds-supply = <&vdda_mipi_dsi0_pll>; << 505 status = "okay"; 505 status = "okay"; 506 }; 506 }; 507 507 508 &mss_pil { 508 &mss_pil { 509 firmware-name = "qcom/sdm845/polaris/m 509 firmware-name = "qcom/sdm845/polaris/mba.mbn", "qcom/sdm845/polaris/modem.mbn"; 510 status = "okay"; 510 status = "okay"; 511 }; 511 }; 512 512 513 &pmi8998_wled { 513 &pmi8998_wled { 514 qcom,current-limit-microamp = <20000>; 514 qcom,current-limit-microamp = <20000>; 515 qcom,current-boost-limit = <970>; 515 qcom,current-boost-limit = <970>; 516 qcom,ovp-millivolt = <19600>; 516 qcom,ovp-millivolt = <19600>; 517 qcom,switching-freq = <600>; 517 qcom,switching-freq = <600>; 518 qcom,num-strings = <4>; 518 qcom,num-strings = <4>; 519 qcom,cabc; 519 qcom,cabc; 520 520 521 status = "okay"; 521 status = "okay"; 522 }; 522 }; 523 523 524 &pm8998_gpios { 524 &pm8998_gpios { 525 volume_up_gpio: pm8998-gpio6-state { 525 volume_up_gpio: pm8998-gpio6-state { 526 pinconf { 526 pinconf { 527 qcom,drive-strength = 527 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>; 528 function = "normal"; 528 function = "normal"; 529 pins = "gpio6"; 529 pins = "gpio6"; 530 input-enable; 530 input-enable; 531 bias-pull-up; 531 bias-pull-up; 532 }; 532 }; 533 }; 533 }; 534 }; 534 }; 535 535 536 &pm8998_resin { 536 &pm8998_resin { 537 linux,code = <KEY_VOLUMEDOWN>; 537 linux,code = <KEY_VOLUMEDOWN>; 538 status = "okay"; 538 status = "okay"; 539 }; 539 }; 540 540 541 &q6afedai { 541 &q6afedai { 542 dai@22 { 542 dai@22 { 543 reg = <QUATERNARY_MI2S_RX>; 543 reg = <QUATERNARY_MI2S_RX>; 544 qcom,sd-lines = <0>; 544 qcom,sd-lines = <0>; 545 }; 545 }; 546 }; 546 }; 547 547 548 &q6asmdai { 548 &q6asmdai { 549 dai@0 { 549 dai@0 { 550 reg = <0>; 550 reg = <0>; 551 }; 551 }; 552 552 553 dai@1 { 553 dai@1 { 554 reg = <1>; 554 reg = <1>; 555 }; 555 }; 556 556 557 dai@2 { 557 dai@2 { 558 reg = <2>; 558 reg = <2>; 559 }; 559 }; 560 }; 560 }; 561 561 562 &qupv3_id_0 { 562 &qupv3_id_0 { 563 status = "okay"; 563 status = "okay"; 564 }; 564 }; 565 565 566 &qupv3_id_1 { 566 &qupv3_id_1 { 567 status = "okay"; 567 status = "okay"; 568 }; 568 }; 569 569 570 &qup_i2c14_default { 570 &qup_i2c14_default { 571 drive-strength = <2>; 571 drive-strength = <2>; 572 bias-disable; 572 bias-disable; 573 }; 573 }; 574 574 575 &tlmm { 575 &tlmm { 576 gpio-reserved-ranges = <0 4>, <81 4>; 576 gpio-reserved-ranges = <0 4>, <81 4>; 577 577 578 ts_reset_default: ts-reset-default-sta 578 ts_reset_default: ts-reset-default-state { 579 pins = "gpio99"; 579 pins = "gpio99"; 580 function = "gpio"; 580 function = "gpio"; 581 drive-strength = <16>; 581 drive-strength = <16>; 582 output-high; 582 output-high; 583 }; 583 }; 584 584 585 ts_int_default: ts-int-default-state { 585 ts_int_default: ts-int-default-state { 586 pins = "gpio125"; 586 pins = "gpio125"; 587 function = "gpio"; 587 function = "gpio"; 588 bias-pull-down; 588 bias-pull-down; 589 drive-strength = <16>; 589 drive-strength = <16>; 590 }; 590 }; 591 591 592 ts_reset_sleep: ts-reset-sleep-state { 592 ts_reset_sleep: ts-reset-sleep-state { 593 pins = "gpio99"; 593 pins = "gpio99"; 594 function = "gpio"; 594 function = "gpio"; 595 bias-disable; 595 bias-disable; 596 drive-strength = <2>; 596 drive-strength = <2>; 597 }; 597 }; 598 598 599 ts_int_sleep: ts-int-sleep-state { 599 ts_int_sleep: ts-int-sleep-state { 600 pins = "gpio125"; 600 pins = "gpio125"; 601 function = "gpio"; 601 function = "gpio"; 602 bias-pull-down; 602 bias-pull-down; 603 drive-strength = <2>; 603 drive-strength = <2>; 604 }; 604 }; 605 605 606 sde_dsi_active: sde-dsi-active-state { 606 sde_dsi_active: sde-dsi-active-state { 607 pins = "gpio6", "gpio10"; 607 pins = "gpio6", "gpio10"; 608 function = "gpio"; 608 function = "gpio"; 609 drive-strength = <8>; 609 drive-strength = <8>; 610 bias-disable; 610 bias-disable; 611 }; 611 }; 612 612 613 sde_dsi_suspend: sde-dsi-suspend-state 613 sde_dsi_suspend: sde-dsi-suspend-state { 614 pins = "gpio6", "gpio10"; 614 pins = "gpio6", "gpio10"; 615 function = "gpio"; 615 function = "gpio"; 616 drive-strength = <2>; 616 drive-strength = <2>; 617 bias-pull-down; 617 bias-pull-down; 618 }; 618 }; 619 }; 619 }; 620 620 621 &uart6 { 621 &uart6 { 622 status = "okay"; 622 status = "okay"; 623 623 624 pinctrl-0 = <&qup_uart6_4pin>; 624 pinctrl-0 = <&qup_uart6_4pin>; 625 625 626 bluetooth { 626 bluetooth { 627 compatible = "qcom,wcn3990-bt" 627 compatible = "qcom,wcn3990-bt"; 628 628 629 /* This path is relative to th 629 /* This path is relative to the qca/ subdir under lib/firmware. */ 630 firmware-name = "polaris/crnv2 630 firmware-name = "polaris/crnv21.bin"; 631 631 632 vddio-supply = <&vreg_s4a_1p8> 632 vddio-supply = <&vreg_s4a_1p8>; 633 vddxo-supply = <&vreg_l7a_1p8> 633 vddxo-supply = <&vreg_l7a_1p8>; 634 vddrf-supply = <&vreg_l17a_1p3 634 vddrf-supply = <&vreg_l17a_1p3>; 635 vddch0-supply = <&vreg_l25a_3p 635 vddch0-supply = <&vreg_l25a_3p3>; 636 max-speed = <3200000>; 636 max-speed = <3200000>; 637 }; 637 }; 638 }; 638 }; 639 639 640 &usb_1 { 640 &usb_1 { 641 /* We'll use this as USB 2.0 only */ 641 /* We'll use this as USB 2.0 only */ 642 qcom,select-utmi-as-pipe-clk; 642 qcom,select-utmi-as-pipe-clk; 643 status = "okay"; 643 status = "okay"; 644 }; 644 }; 645 645 646 &usb_1_dwc3 { 646 &usb_1_dwc3 { 647 dr_mode = "peripheral"; 647 dr_mode = "peripheral"; 648 648 649 /* Fastest mode for USB 2 */ 649 /* Fastest mode for USB 2 */ 650 maximum-speed = "high-speed"; 650 maximum-speed = "high-speed"; 651 651 652 /* Remove USB3 phy */ 652 /* Remove USB3 phy */ 653 phys = <&usb_1_hsphy>; 653 phys = <&usb_1_hsphy>; 654 phy-names = "usb2-phy"; 654 phy-names = "usb2-phy"; 655 }; 655 }; 656 656 657 &usb_1_hsphy { 657 &usb_1_hsphy { 658 vdda-phy-dpdm-supply = <&vreg_l24a_3p0 658 vdda-phy-dpdm-supply = <&vreg_l24a_3p075>; 659 vdda-pll-supply = <&vreg_l12a_1p8>; 659 vdda-pll-supply = <&vreg_l12a_1p8>; 660 vdd-supply = <&vreg_l1a_0p875>; 660 vdd-supply = <&vreg_l1a_0p875>; 661 661 662 qcom,preemphasis-width = <QUSB2_V2_PRE 662 qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>; 663 qcom,preemphasis-level = <QUSB2_V2_PRE 663 qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_5_PERCENT>; 664 qcom,hstx-trim-value = <QUSB2_V2_HSTX_ 664 qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_21_6_MA>; 665 qcom,imp-res-offset-value = <8>; 665 qcom,imp-res-offset-value = <8>; 666 666 667 status = "okay"; 667 status = "okay"; 668 }; 668 }; 669 669 670 &usb_1_qmpphy { 670 &usb_1_qmpphy { 671 vdda-pll-supply = <&vreg_l1a_0p875>; 671 vdda-pll-supply = <&vreg_l1a_0p875>; 672 vdda-phy-supply = <&vreg_l26a_1p2>; 672 vdda-phy-supply = <&vreg_l26a_1p2>; 673 status = "okay"; 673 status = "okay"; 674 }; 674 }; 675 675 676 &ufs_mem_hc { 676 &ufs_mem_hc { 677 reset-gpios = <&tlmm 150 GPIO_ACTIVE_L 677 reset-gpios = <&tlmm 150 GPIO_ACTIVE_LOW>; 678 vcc-supply = <&vreg_l20a_2p95>; 678 vcc-supply = <&vreg_l20a_2p95>; 679 vcc-max-microamp = <800000>; 679 vcc-max-microamp = <800000>; 680 status = "okay"; 680 status = "okay"; 681 }; 681 }; 682 682 683 &ufs_mem_phy { 683 &ufs_mem_phy { 684 vdda-phy-supply = <&vdda_ufs1_core>; 684 vdda-phy-supply = <&vdda_ufs1_core>; 685 vdda-pll-supply = <&vdda_ufs1_1p2>; 685 vdda-pll-supply = <&vdda_ufs1_1p2>; 686 status = "okay"; 686 status = "okay"; 687 }; 687 }; 688 688 689 &venus { 689 &venus { 690 firmware-name = "qcom/sdm845/polaris/v 690 firmware-name = "qcom/sdm845/polaris/venus.mbn"; 691 status = "okay"; 691 status = "okay"; 692 }; 692 }; 693 693 694 &wcd9340 { 694 &wcd9340 { 695 reset-gpios = <&tlmm 64 GPIO_ACTIVE_HI 695 reset-gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>; 696 vdd-buck-sido-supply = <&vreg_s4a_1p8> 696 vdd-buck-sido-supply = <&vreg_s4a_1p8>; 697 vdd-buck-supply = <&vreg_s4a_1p8>; 697 vdd-buck-supply = <&vreg_s4a_1p8>; 698 vdd-tx-supply = <&vreg_s4a_1p8>; 698 vdd-tx-supply = <&vreg_s4a_1p8>; 699 vdd-rx-supply = <&vreg_s4a_1p8>; 699 vdd-rx-supply = <&vreg_s4a_1p8>; 700 vdd-io-supply = <&vreg_s4a_1p8>; 700 vdd-io-supply = <&vreg_s4a_1p8>; 701 701 702 qcom,micbias1-microvolt = <2700000>; 702 qcom,micbias1-microvolt = <2700000>; 703 qcom,micbias2-microvolt = <1800000>; 703 qcom,micbias2-microvolt = <1800000>; 704 qcom,micbias3-microvolt = <2700000>; 704 qcom,micbias3-microvolt = <2700000>; 705 qcom,micbias4-microvolt = <2700000>; 705 qcom,micbias4-microvolt = <2700000>; 706 }; 706 }; 707 707 708 &wifi { 708 &wifi { 709 vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8> 709 vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>; 710 vdd-1.8-xo-supply = <&vreg_l7a_1p8>; 710 vdd-1.8-xo-supply = <&vreg_l7a_1p8>; 711 vdd-1.3-rfa-supply = <&vreg_l17a_1p3>; 711 vdd-1.3-rfa-supply = <&vreg_l17a_1p3>; 712 vdd-3.3-ch0-supply = <&vreg_l25a_3p3>; 712 vdd-3.3-ch0-supply = <&vreg_l25a_3p3>; 713 vdd-3.3-ch1-supply = <&vreg_l23a_3p3>; 713 vdd-3.3-ch1-supply = <&vreg_l23a_3p3>; 714 status = "okay"; 714 status = "okay"; 715 }; 715 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.