Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: BSD-3-Clause |
| 2 | /* |
| 3 | * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 8 | /* PM7250B is configured to use SID8/9 */ |
| 9 | #define PM7250B_SID 8 |
| 10 | #define PM7250B_SID1 9 |
| 11 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 12 | #include <dt-bindings/input/linux-event-codes.h> |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 13 | #include <dt-bindings/leds/common.h> |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 14 | #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 15 | #include <dt-bindings/regulator/qcom,rpmh-regulator.h> |
| 16 | #include "sc7280.dtsi" |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 17 | #include "pm7250b.dtsi" |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 18 | #include "pm7325.dtsi" |
| 19 | #include "pm8350c.dtsi" |
| 20 | #include "pmk8350.dtsi" |
| 21 | |
| 22 | /delete-node/ &ipa_fw_mem; |
| 23 | /delete-node/ &rmtfs_mem; |
| 24 | /delete-node/ &adsp_mem; |
| 25 | /delete-node/ &cdsp_mem; |
| 26 | /delete-node/ &video_mem; |
| 27 | /delete-node/ &wlan_ce_mem; |
| 28 | /delete-node/ &wpss_mem; |
| 29 | /delete-node/ &xbl_mem; |
| 30 | |
| 31 | / { |
| 32 | model = "Qualcomm Technologies, Inc. QCM6490 IDP"; |
| 33 | compatible = "qcom,qcm6490-idp", "qcom,qcm6490"; |
| 34 | chassis-type = "embedded"; |
| 35 | |
| 36 | aliases { |
| 37 | serial0 = &uart5; |
| 38 | }; |
| 39 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 40 | pm8350c_pwm_backlight: backlight { |
| 41 | compatible = "pwm-backlight"; |
| 42 | pwms = <&pm8350c_pwm 3 65535>; |
| 43 | enable-gpios = <&pm8350c_gpios 7 GPIO_ACTIVE_HIGH>; |
| 44 | pinctrl-0 = <&pmic_lcd_bl_en>; |
| 45 | pinctrl-names = "default"; |
| 46 | }; |
| 47 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 48 | chosen { |
| 49 | stdout-path = "serial0:115200n8"; |
| 50 | }; |
| 51 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 52 | lcd_disp_bias: regulator-lcd-disp-bias { |
| 53 | compatible = "regulator-fixed"; |
| 54 | regulator-name = "lcd_disp_bias"; |
| 55 | regulator-min-microvolt = <5500000>; |
| 56 | regulator-max-microvolt = <5500000>; |
| 57 | gpio = <&pm7250b_gpios 2 GPIO_ACTIVE_HIGH>; |
| 58 | enable-active-high; |
| 59 | pinctrl-0 = <&lcd_disp_bias_en>; |
| 60 | pinctrl-names = "default"; |
| 61 | }; |
| 62 | |
| 63 | gpio-keys { |
| 64 | compatible = "gpio-keys"; |
| 65 | |
| 66 | pinctrl-0 = <&key_vol_up_default>; |
| 67 | pinctrl-names = "default"; |
| 68 | |
| 69 | key-volume-up { |
| 70 | label = "Volume_up"; |
| 71 | gpios = <&pm7325_gpios 6 GPIO_ACTIVE_LOW>; |
| 72 | linux,code = <KEY_VOLUMEUP>; |
| 73 | wakeup-source; |
| 74 | debounce-interval = <15>; |
| 75 | linux,can-disable; |
| 76 | }; |
| 77 | }; |
| 78 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 79 | reserved-memory { |
| 80 | xbl_mem: xbl@80700000 { |
| 81 | reg = <0x0 0x80700000 0x0 0x100000>; |
| 82 | no-map; |
| 83 | }; |
| 84 | |
| 85 | cdsp_secure_heap_mem: cdsp-secure-heap@81800000 { |
| 86 | reg = <0x0 0x81800000 0x0 0x1e00000>; |
| 87 | no-map; |
| 88 | }; |
| 89 | |
| 90 | camera_mem: camera@84300000 { |
| 91 | reg = <0x0 0x84300000 0x0 0x500000>; |
| 92 | no-map; |
| 93 | }; |
| 94 | |
| 95 | wpss_mem: wpss@84800000 { |
| 96 | reg = <0x0 0x84800000 0x0 0x1900000>; |
| 97 | no-map; |
| 98 | }; |
| 99 | |
| 100 | adsp_mem: adsp@86100000 { |
| 101 | reg = <0x0 0x86100000 0x0 0x2800000>; |
| 102 | no-map; |
| 103 | }; |
| 104 | |
| 105 | cdsp_mem: cdsp@88900000 { |
| 106 | reg = <0x0 0x88900000 0x0 0x1e00000>; |
| 107 | no-map; |
| 108 | }; |
| 109 | |
| 110 | video_mem: video@8a700000 { |
| 111 | reg = <0x0 0x8a700000 0x0 0x700000>; |
| 112 | no-map; |
| 113 | }; |
| 114 | |
| 115 | cvp_mem: cvp@8ae00000 { |
| 116 | reg = <0x0 0x8ae00000 0x0 0x500000>; |
| 117 | no-map; |
| 118 | }; |
| 119 | |
| 120 | ipa_fw_mem: ipa-fw@8b300000 { |
| 121 | reg = <0x0 0x8b300000 0x0 0x10000>; |
| 122 | no-map; |
| 123 | }; |
| 124 | |
| 125 | ipa_gsi_mem: ipa-gsi@8b310000 { |
| 126 | reg = <0x0 0x8b310000 0x0 0xa000>; |
| 127 | no-map; |
| 128 | }; |
| 129 | |
| 130 | gpu_microcode_mem: gpu-microcode@8b31a000 { |
| 131 | reg = <0x0 0x8b31a000 0x0 0x2000>; |
| 132 | no-map; |
| 133 | }; |
| 134 | |
| 135 | mpss_mem: mpss@8b800000 { |
| 136 | reg = <0x0 0x8b800000 0x0 0xf600000>; |
| 137 | no-map; |
| 138 | }; |
| 139 | |
| 140 | tz_stat_mem: tz-stat@c0000000 { |
| 141 | reg = <0x0 0xc0000000 0x0 0x100000>; |
| 142 | no-map; |
| 143 | }; |
| 144 | |
| 145 | tags_mem: tags@c0100000 { |
| 146 | reg = <0x0 0xc0100000 0x0 0x1200000>; |
| 147 | no-map; |
| 148 | }; |
| 149 | |
| 150 | qtee_mem: qtee@c1300000 { |
| 151 | reg = <0x0 0xc1300000 0x0 0x500000>; |
| 152 | no-map; |
| 153 | }; |
| 154 | |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 155 | trusted_apps_mem: trusted-apps@c1800000 { |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 156 | reg = <0x0 0xc1800000 0x0 0x1c00000>; |
| 157 | no-map; |
| 158 | }; |
| 159 | |
| 160 | debug_vm_mem: debug-vm@d0600000 { |
| 161 | reg = <0x0 0xd0600000 0x0 0x100000>; |
| 162 | no-map; |
| 163 | }; |
| 164 | }; |
| 165 | |
| 166 | vph_pwr: vph-pwr-regulator { |
| 167 | compatible = "regulator-fixed"; |
| 168 | regulator-name = "vph_pwr"; |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 169 | regulator-min-microvolt = <3700000>; |
| 170 | regulator-max-microvolt = <3700000>; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 171 | }; |
| 172 | }; |
| 173 | |
| 174 | &apps_rsc { |
| 175 | regulators-0 { |
| 176 | compatible = "qcom,pm7325-rpmh-regulators"; |
| 177 | qcom,pmic-id = "b"; |
| 178 | |
| 179 | vdd-s1-supply = <&vph_pwr>; |
| 180 | vdd-s2-supply = <&vph_pwr>; |
| 181 | vdd-s3-supply = <&vph_pwr>; |
| 182 | vdd-s4-supply = <&vph_pwr>; |
| 183 | vdd-s5-supply = <&vph_pwr>; |
| 184 | vdd-s6-supply = <&vph_pwr>; |
| 185 | vdd-s7-supply = <&vph_pwr>; |
| 186 | vdd-s8-supply = <&vph_pwr>; |
| 187 | vdd-l1-l4-l12-l15-supply = <&vreg_s7b_0p972>; |
| 188 | vdd-l2-l7-supply = <&vreg_bob_3p296>; |
| 189 | vdd-l3-supply = <&vreg_s2b_0p876>; |
| 190 | vdd-l5-supply = <&vreg_s2b_0p876>; |
| 191 | vdd-l6-l9-l10-supply = <&vreg_s8b_1p272>; |
| 192 | vdd-l8-supply = <&vreg_s7b_0p972>; |
| 193 | vdd-l11-l17-l18-l19-supply = <&vreg_s1b_1p872>; |
| 194 | vdd-l13-supply = <&vreg_s7b_0p972>; |
| 195 | vdd-l14-l16-supply = <&vreg_s8b_1p272>; |
| 196 | |
| 197 | vreg_s1b_1p872: smps1 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 198 | regulator-name = "vreg_s1b_1p872"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 199 | regulator-min-microvolt = <1840000>; |
| 200 | regulator-max-microvolt = <2040000>; |
| 201 | }; |
| 202 | |
| 203 | vreg_s2b_0p876: smps2 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 204 | regulator-name = "vreg_s2b_0p876"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 205 | regulator-min-microvolt = <570070>; |
| 206 | regulator-max-microvolt = <1050000>; |
| 207 | }; |
| 208 | |
| 209 | vreg_s7b_0p972: smps7 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 210 | regulator-name = "vreg_s7b_0p972"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 211 | regulator-min-microvolt = <535000>; |
| 212 | regulator-max-microvolt = <1120000>; |
| 213 | }; |
| 214 | |
| 215 | vreg_s8b_1p272: smps8 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 216 | regulator-name = "vreg_s8b_1p272"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 217 | regulator-min-microvolt = <1200000>; |
| 218 | regulator-max-microvolt = <1500000>; |
| 219 | regulator-initial-mode = <RPMH_REGULATOR_MODE_RET>; |
| 220 | }; |
| 221 | |
| 222 | vreg_l1b_0p912: ldo1 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 223 | regulator-name = "vreg_l1b_0p912"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 224 | regulator-min-microvolt = <825000>; |
| 225 | regulator-max-microvolt = <925000>; |
| 226 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 227 | }; |
| 228 | |
| 229 | vreg_l2b_3p072: ldo2 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 230 | regulator-name = "vreg_l2b_3p072"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 231 | regulator-min-microvolt = <2700000>; |
| 232 | regulator-max-microvolt = <3544000>; |
| 233 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 234 | }; |
| 235 | |
| 236 | vreg_l3b_0p504: ldo3 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 237 | regulator-name = "vreg_l3b_0p504"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 238 | regulator-min-microvolt = <312000>; |
| 239 | regulator-max-microvolt = <910000>; |
| 240 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 241 | }; |
| 242 | |
| 243 | vreg_l4b_0p752: ldo4 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 244 | regulator-name = "vreg_l4b_0p752"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 245 | regulator-min-microvolt = <752000>; |
| 246 | regulator-max-microvolt = <820000>; |
| 247 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 248 | }; |
| 249 | |
| 250 | reg_l5b_0p752: ldo5 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 251 | regulator-name = "reg_l5b_0p752"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 252 | regulator-min-microvolt = <552000>; |
| 253 | regulator-max-microvolt = <832000>; |
| 254 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 255 | }; |
| 256 | |
| 257 | vreg_l6b_1p2: ldo6 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 258 | regulator-name = "vreg_l6b_1p2"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 259 | regulator-min-microvolt = <1140000>; |
| 260 | regulator-max-microvolt = <1260000>; |
| 261 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 262 | }; |
| 263 | |
| 264 | vreg_l7b_2p952: ldo7 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 265 | regulator-name = "vreg_l7b_2p952"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 266 | regulator-min-microvolt = <2400000>; |
| 267 | regulator-max-microvolt = <3544000>; |
| 268 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 269 | }; |
| 270 | |
| 271 | vreg_l8b_0p904: ldo8 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 272 | regulator-name = "vreg_l8b_0p904"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 273 | regulator-min-microvolt = <870000>; |
| 274 | regulator-max-microvolt = <970000>; |
| 275 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 276 | }; |
| 277 | |
| 278 | vreg_l9b_1p2: ldo9 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 279 | regulator-name = "vreg_l9b_1p2"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 280 | regulator-min-microvolt = <1200000>; |
| 281 | regulator-max-microvolt = <1304000>; |
| 282 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 283 | }; |
| 284 | |
| 285 | vreg_l11b_1p504: ldo11 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 286 | regulator-name = "vreg_l11b_1p504"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 287 | regulator-min-microvolt = <1504000>; |
| 288 | regulator-max-microvolt = <2000000>; |
| 289 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 290 | }; |
| 291 | |
| 292 | vreg_l12b_0p751: ldo12 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 293 | regulator-name = "vreg_l12b_0p751"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 294 | regulator-min-microvolt = <751000>; |
| 295 | regulator-max-microvolt = <824000>; |
| 296 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 297 | }; |
| 298 | |
| 299 | vreg_l13b_0p53: ldo13 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 300 | regulator-name = "vreg_l13b_0p53"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 301 | regulator-min-microvolt = <530000>; |
| 302 | regulator-max-microvolt = <824000>; |
| 303 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 304 | }; |
| 305 | |
| 306 | vreg_l14b_1p08: ldo14 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 307 | regulator-name = "vreg_l14b_1p08"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 308 | regulator-min-microvolt = <1080000>; |
| 309 | regulator-max-microvolt = <1304000>; |
| 310 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 311 | }; |
| 312 | |
| 313 | vreg_l15b_0p765: ldo15 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 314 | regulator-name = "vreg_l15b_0p765"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 315 | regulator-min-microvolt = <765000>; |
| 316 | regulator-max-microvolt = <1020000>; |
| 317 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 318 | }; |
| 319 | |
| 320 | vreg_l16b_1p1: ldo16 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 321 | regulator-name = "vreg_l16b_1p1"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 322 | regulator-min-microvolt = <1100000>; |
| 323 | regulator-max-microvolt = <1300000>; |
| 324 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 325 | }; |
| 326 | |
| 327 | vreg_l17b_1p7: ldo17 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 328 | regulator-name = "vreg_l17b_1p7"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 329 | regulator-min-microvolt = <1700000>; |
| 330 | regulator-max-microvolt = <1900000>; |
| 331 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 332 | }; |
| 333 | |
| 334 | vreg_l18b_1p8: ldo18 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 335 | regulator-name = "vreg_l18b_1p8"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 336 | regulator-min-microvolt = <1800000>; |
| 337 | regulator-max-microvolt = <2000000>; |
| 338 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 339 | }; |
| 340 | |
| 341 | vreg_l19b_1p8: ldo19 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 342 | regulator-name = "vreg_l19b_1p8"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 343 | regulator-min-microvolt = <1800000>; |
| 344 | regulator-max-microvolt = <2000000>; |
| 345 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 346 | regulator-allow-set-load; |
| 347 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 348 | RPMH_REGULATOR_MODE_HPM>; |
| 349 | }; |
| 350 | }; |
| 351 | |
| 352 | regulators-1 { |
| 353 | compatible = "qcom,pm8350c-rpmh-regulators"; |
| 354 | qcom,pmic-id = "c"; |
| 355 | |
| 356 | vdd-s1-supply = <&vph_pwr>; |
| 357 | vdd-s2-supply = <&vph_pwr>; |
| 358 | vdd-s3-supply = <&vph_pwr>; |
| 359 | vdd-s4-supply = <&vph_pwr>; |
| 360 | vdd-s5-supply = <&vph_pwr>; |
| 361 | vdd-s6-supply = <&vph_pwr>; |
| 362 | vdd-s7-supply = <&vph_pwr>; |
| 363 | vdd-s8-supply = <&vph_pwr>; |
| 364 | vdd-s9-supply = <&vph_pwr>; |
| 365 | vdd-s10-supply = <&vph_pwr>; |
| 366 | vdd-l1-l12-supply = <&vreg_s1b_1p872>; |
| 367 | vdd-l2-l8-supply = <&vreg_s1b_1p872>; |
| 368 | vdd-l3-l4-l5-l7-l13-supply = <&vreg_bob_3p296>; |
| 369 | vdd-l6-l9-l11-supply = <&vreg_bob_3p296>; |
| 370 | vdd-l10-supply = <&vreg_s7b_0p972>; |
| 371 | vdd-bob-supply = <&vph_pwr>; |
| 372 | |
| 373 | vreg_s1c_2p19: smps1 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 374 | regulator-name = "vreg_s1c_2p19"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 375 | regulator-min-microvolt = <2190000>; |
| 376 | regulator-max-microvolt = <2210000>; |
| 377 | }; |
| 378 | |
| 379 | vreg_s2c_0p752: smps2 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 380 | regulator-name = "vreg_s2c_0p752"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 381 | regulator-min-microvolt = <750000>; |
| 382 | regulator-max-microvolt = <800000>; |
| 383 | }; |
| 384 | |
| 385 | vreg_s5c_0p752: smps5 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 386 | regulator-name = "vreg_s5c_0p752"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 387 | regulator-min-microvolt = <465000>; |
| 388 | regulator-max-microvolt = <1050000>; |
| 389 | }; |
| 390 | |
| 391 | vreg_s7c_0p752: smps7 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 392 | regulator-name = "vreg_s7c_0p752"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 393 | regulator-min-microvolt = <465000>; |
| 394 | regulator-max-microvolt = <800000>; |
| 395 | }; |
| 396 | |
| 397 | vreg_s9c_1p084: smps9 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 398 | regulator-name = "vreg_s9c_1p084"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 399 | regulator-min-microvolt = <1010000>; |
| 400 | regulator-max-microvolt = <1170000>; |
| 401 | }; |
| 402 | |
| 403 | vreg_l1c_1p8: ldo1 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 404 | regulator-name = "vreg_l1c_1p8"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 405 | regulator-min-microvolt = <1800000>; |
| 406 | regulator-max-microvolt = <1980000>; |
| 407 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 408 | }; |
| 409 | |
| 410 | vreg_l2c_1p62: ldo2 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 411 | regulator-name = "vreg_l2c_1p62"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 412 | regulator-min-microvolt = <1620000>; |
| 413 | regulator-max-microvolt = <1980000>; |
| 414 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 415 | }; |
| 416 | |
| 417 | vreg_l3c_2p8: ldo3 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 418 | regulator-name = "vreg_l3c_2p8"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 419 | regulator-min-microvolt = <2800000>; |
| 420 | regulator-max-microvolt = <3540000>; |
| 421 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 422 | }; |
| 423 | |
| 424 | vreg_l4c_1p62: ldo4 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 425 | regulator-name = "vreg_l4c_1p62"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 426 | regulator-min-microvolt = <1620000>; |
| 427 | regulator-max-microvolt = <3300000>; |
| 428 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 429 | }; |
| 430 | |
| 431 | vreg_l5c_1p62: ldo5 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 432 | regulator-name = "vreg_l5c_1p62"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 433 | regulator-min-microvolt = <1620000>; |
| 434 | regulator-max-microvolt = <3300000>; |
| 435 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 436 | }; |
| 437 | |
| 438 | vreg_l6c_2p96: ldo6 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 439 | regulator-name = "vreg_l6c_2p96"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 440 | regulator-min-microvolt = <1650000>; |
| 441 | regulator-max-microvolt = <3544000>; |
| 442 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 443 | }; |
| 444 | |
| 445 | vreg_l7c_3p0: ldo7 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 446 | regulator-name = "vreg_l7c_3p0"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 447 | regulator-min-microvolt = <3000000>; |
| 448 | regulator-max-microvolt = <3544000>; |
| 449 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 450 | }; |
| 451 | |
| 452 | vreg_l8c_1p62: ldo8 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 453 | regulator-name = "vreg_l8c_1p62"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 454 | regulator-min-microvolt = <1620000>; |
| 455 | regulator-max-microvolt = <2000000>; |
| 456 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 457 | }; |
| 458 | |
| 459 | vreg_l9c_2p96: ldo9 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 460 | regulator-name = "vreg_l9c_2p96"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 461 | regulator-min-microvolt = <2700000>; |
| 462 | regulator-max-microvolt = <35440000>; |
| 463 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 464 | }; |
| 465 | |
| 466 | vreg_l10c_0p88: ldo10 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 467 | regulator-name = "vreg_l10c_0p88"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 468 | regulator-min-microvolt = <720000>; |
| 469 | regulator-max-microvolt = <1050000>; |
| 470 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 471 | }; |
| 472 | |
| 473 | vreg_l11c_2p8: ldo11 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 474 | regulator-name = "vreg_l11c_2p8"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 475 | regulator-min-microvolt = <2800000>; |
| 476 | regulator-max-microvolt = <3544000>; |
| 477 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 478 | }; |
| 479 | |
| 480 | vreg_l12c_1p65: ldo12 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 481 | regulator-name = "vreg_l12c_1p65"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 482 | regulator-min-microvolt = <1650000>; |
| 483 | regulator-max-microvolt = <2000000>; |
| 484 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 485 | }; |
| 486 | |
| 487 | vreg_l13c_2p7: ldo13 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 488 | regulator-name = "vreg_l13c_2p7"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 489 | regulator-min-microvolt = <2700000>; |
| 490 | regulator-max-microvolt = <3544000>; |
| 491 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 492 | }; |
| 493 | |
| 494 | vreg_bob_3p296: bob { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 495 | regulator-name = "vreg_bob_3p296"; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 496 | regulator-min-microvolt = <3008000>; |
| 497 | regulator-max-microvolt = <3960000>; |
| 498 | }; |
| 499 | }; |
| 500 | }; |
| 501 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 502 | &mdss { |
| 503 | status = "okay"; |
| 504 | }; |
| 505 | |
| 506 | &mdss_dsi { |
| 507 | vdda-supply = <&vreg_l6b_1p2>; |
| 508 | status = "okay"; |
| 509 | |
| 510 | panel@0 { |
| 511 | compatible = "novatek,nt36672e"; |
| 512 | reg = <0>; |
| 513 | |
| 514 | reset-gpios = <&tlmm 44 GPIO_ACTIVE_HIGH>; |
| 515 | |
| 516 | vddi-supply = <&vreg_l8c_1p62>; |
| 517 | avdd-supply = <&lcd_disp_bias>; |
| 518 | avee-supply = <&lcd_disp_bias>; |
| 519 | |
| 520 | backlight = <&pm8350c_pwm_backlight>; |
| 521 | |
| 522 | port { |
| 523 | panel0_in: endpoint { |
| 524 | remote-endpoint = <&mdss_dsi0_out>; |
| 525 | }; |
| 526 | }; |
| 527 | }; |
| 528 | }; |
| 529 | |
| 530 | &mdss_dsi0_out { |
| 531 | remote-endpoint = <&panel0_in>; |
| 532 | data-lanes = <0 1 2 3>; |
| 533 | }; |
| 534 | |
| 535 | &mdss_dsi_phy { |
| 536 | vdds-supply = <&vreg_l10c_0p88>; |
| 537 | status = "okay"; |
| 538 | }; |
| 539 | |
| 540 | &pm7250b_gpios { |
| 541 | lcd_disp_bias_en: lcd-disp-bias-en-state { |
| 542 | pins = "gpio2"; |
| 543 | function = "func1"; |
| 544 | bias-disable; |
| 545 | qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>; |
| 546 | input-disable; |
| 547 | output-enable; |
| 548 | power-source = <0>; |
| 549 | }; |
| 550 | }; |
| 551 | |
| 552 | &pm8350c_gpios { |
| 553 | pmic_lcd_bl_en: pmic-lcd-bl-en-state { |
| 554 | pins = "gpio7"; |
| 555 | function = "normal"; |
| 556 | bias-disable; |
| 557 | qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>; |
| 558 | output-low; |
| 559 | power-source = <0>; |
| 560 | }; |
| 561 | |
| 562 | pmic_lcd_bl_pwm: pmic-lcd-bl-pwm-state { |
| 563 | pins = "gpio8"; |
| 564 | function = "func1"; |
| 565 | bias-disable; |
| 566 | qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>; |
| 567 | output-low; |
| 568 | power-source = <0>; |
| 569 | }; |
| 570 | }; |
| 571 | |
| 572 | &pm7325_gpios { |
| 573 | key_vol_up_default: key-vol-up-state { |
| 574 | pins = "gpio6"; |
| 575 | function = "normal"; |
| 576 | input-enable; |
| 577 | bias-pull-up; |
| 578 | qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>; |
| 579 | }; |
| 580 | }; |
| 581 | |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 582 | &pm8350c_pwm { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 583 | pinctrl-0 = <&pmic_lcd_bl_pwm>; |
| 584 | pinctrl-names = "default"; |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 585 | status = "okay"; |
| 586 | |
| 587 | multi-led { |
| 588 | color = <LED_COLOR_ID_RGB>; |
| 589 | function = LED_FUNCTION_STATUS; |
| 590 | |
| 591 | #address-cells = <1>; |
| 592 | #size-cells = <0>; |
| 593 | |
| 594 | led@1 { |
| 595 | reg = <1>; |
| 596 | color = <LED_COLOR_ID_RED>; |
| 597 | }; |
| 598 | |
| 599 | led@2 { |
| 600 | reg = <2>; |
| 601 | color = <LED_COLOR_ID_GREEN>; |
| 602 | }; |
| 603 | |
| 604 | led@3 { |
| 605 | reg = <3>; |
| 606 | color = <LED_COLOR_ID_BLUE>; |
| 607 | }; |
| 608 | }; |
| 609 | }; |
| 610 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 611 | &pon_pwrkey { |
| 612 | status = "okay"; |
| 613 | }; |
| 614 | |
| 615 | &pon_resin { |
| 616 | linux,code = <KEY_VOLUMEDOWN>; |
| 617 | status = "okay"; |
| 618 | }; |
| 619 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 620 | &qupv3_id_0 { |
| 621 | status = "okay"; |
| 622 | }; |
| 623 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 624 | &remoteproc_adsp { |
| 625 | firmware-name = "qcom/qcm6490/adsp.mbn"; |
| 626 | status = "okay"; |
| 627 | }; |
| 628 | |
| 629 | &remoteproc_cdsp { |
| 630 | firmware-name = "qcom/qcm6490/cdsp.mbn"; |
| 631 | status = "okay"; |
| 632 | }; |
| 633 | |
| 634 | &remoteproc_mpss { |
| 635 | firmware-name = "qcom/qcm6490/modem.mbn"; |
| 636 | status = "okay"; |
| 637 | }; |
| 638 | |
| 639 | &remoteproc_wpss { |
| 640 | firmware-name = "qcom/qcm6490/wpss.mbn"; |
| 641 | status = "okay"; |
| 642 | }; |
| 643 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 644 | &sdhc_1 { |
| 645 | non-removable; |
| 646 | no-sd; |
| 647 | no-sdio; |
| 648 | |
| 649 | vmmc-supply = <&vreg_l7b_2p952>; |
| 650 | vqmmc-supply = <&vreg_l19b_1p8>; |
| 651 | |
| 652 | status = "okay"; |
| 653 | }; |
| 654 | |
| 655 | &tlmm { |
| 656 | gpio-reserved-ranges = <32 2>, /* ADSP */ |
| 657 | <48 4>; /* NFC */ |
| 658 | }; |
| 659 | |
| 660 | &uart5 { |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 661 | status = "okay"; |
| 662 | }; |
| 663 | |
| 664 | &usb_1 { |
| 665 | status = "okay"; |
| 666 | }; |
| 667 | |
| 668 | &usb_1_dwc3 { |
Tom Rini | 6b642ac | 2024-10-01 12:20:28 -0600 | [diff] [blame^] | 669 | /delete-property/ usb-role-switch; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 670 | dr_mode = "peripheral"; |
| 671 | }; |
| 672 | |
| 673 | &usb_1_hsphy { |
| 674 | vdda-pll-supply = <&vreg_l10c_0p88>; |
| 675 | vdda33-supply = <&vreg_l2b_3p072>; |
| 676 | vdda18-supply = <&vreg_l1c_1p8>; |
| 677 | |
| 678 | status = "okay"; |
| 679 | }; |
| 680 | |
| 681 | &usb_1_qmpphy { |
| 682 | vdda-phy-supply = <&vreg_l6b_1p2>; |
| 683 | vdda-pll-supply = <&vreg_l1b_0p912>; |
| 684 | |
| 685 | status = "okay"; |
| 686 | }; |
| 687 | |
| 688 | &wifi { |
| 689 | memory-region = <&wlan_fw_mem>; |
| 690 | }; |