1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 /* 2 /* 3 * Copyright (c) 2022, Alexander Martinz <amart 3 * Copyright (c) 2022, Alexander Martinz <amartinz@shiftphones.com> 4 * Copyright (c) 2022, Caleb Connolly <caleb@co 4 * Copyright (c) 2022, Caleb Connolly <caleb@connolly.tech> 5 * Copyright (c) 2022, Dylan Van Assche <me@dyl 5 * Copyright (c) 2022, Dylan Van Assche <me@dylanvanassche.be> 6 */ 6 */ 7 7 8 /dts-v1/; 8 /dts-v1/; 9 9 10 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/leds/common.h> 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/regulator/qcom,rpmh-regu 12 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 13 #include "sdm845.dtsi" 13 #include "sdm845.dtsi" 14 #include "pm8998.dtsi" 14 #include "pm8998.dtsi" 15 #include "pmi8998.dtsi" 15 #include "pmi8998.dtsi" 16 16 17 / { 17 / { 18 model = "SHIFT SHIFT6mq"; 18 model = "SHIFT SHIFT6mq"; 19 compatible = "shift,axolotl", "qcom,sd 19 compatible = "shift,axolotl", "qcom,sdm845"; 20 qcom,msm-id = <321 0x20001>; 20 qcom,msm-id = <321 0x20001>; 21 qcom,board-id = <11 0>; 21 qcom,board-id = <11 0>; 22 22 23 aliases { 23 aliases { 24 display0 = &framebuffer0; 24 display0 = &framebuffer0; 25 serial0 = &uart9; 25 serial0 = &uart9; 26 serial1 = &uart6; << 27 }; 26 }; 28 27 29 chosen { 28 chosen { 30 #address-cells = <2>; 29 #address-cells = <2>; 31 #size-cells = <2>; 30 #size-cells = <2>; 32 ranges; 31 ranges; 33 32 34 stdout-path = "serial0"; 33 stdout-path = "serial0"; 35 34 36 /* Use framebuffer setup by th 35 /* Use framebuffer setup by the bootloader. */ 37 framebuffer0: framebuffer@9d40 36 framebuffer0: framebuffer@9d400000 { 38 compatible = "simple-f 37 compatible = "simple-framebuffer"; 39 reg = <0x0 0x9d400000 38 reg = <0x0 0x9d400000 0x0 (1080 * 2160 * 4)>; 40 width = <1080>; 39 width = <1080>; 41 height = <2160>; 40 height = <2160>; 42 stride = <(1080 * 4)>; 41 stride = <(1080 * 4)>; 43 format = "a8r8g8b8"; 42 format = "a8r8g8b8"; 44 }; 43 }; 45 }; 44 }; 46 45 47 gpio-keys { 46 gpio-keys { 48 compatible = "gpio-keys"; 47 compatible = "gpio-keys"; 49 autorepeat; 48 autorepeat; 50 49 51 pinctrl-names = "default"; 50 pinctrl-names = "default"; 52 pinctrl-0 = <&volume_up_gpio>; 51 pinctrl-0 = <&volume_up_gpio>; 53 52 54 key-vol-up { 53 key-vol-up { 55 label = "volume_up"; 54 label = "volume_up"; 56 linux,code = <KEY_VOLU 55 linux,code = <KEY_VOLUMEUP>; 57 gpios = <&pm8998_gpios !! 56 gpios = <&pm8998_gpio 6 GPIO_ACTIVE_LOW>; 58 debounce-interval = <1 57 debounce-interval = <15>; 59 }; 58 }; 60 }; 59 }; 61 60 62 reserved-memory { 61 reserved-memory { 63 framebuffer@9d400000 { !! 62 framebuffer_region@9d400000 { 64 reg = <0x0 0x9d400000 63 reg = <0x0 0x9d400000 0x0 (1080 * 2160 * 4)>; 65 no-map; 64 no-map; 66 }; 65 }; 67 66 68 ramoops: ramoops@b0000000 { 67 ramoops: ramoops@b0000000 { 69 compatible = "ramoops" 68 compatible = "ramoops"; 70 reg = <0 0xb0000000 0 69 reg = <0 0xb0000000 0 0x00400000>; 71 record-size = <0x40000 70 record-size = <0x40000>; 72 console-size = <0x4000 71 console-size = <0x40000>; 73 ftrace-size = <0x40000 72 ftrace-size = <0x40000>; 74 pmsg-size = <0x200000> 73 pmsg-size = <0x200000>; 75 ecc-size = <0x0>; 74 ecc-size = <0x0>; 76 }; 75 }; 77 }; 76 }; 78 77 79 battery: battery { 78 battery: battery { 80 compatible = "simple-battery"; 79 compatible = "simple-battery"; 81 80 82 charge-full-design-microamp-ho 81 charge-full-design-microamp-hours = <3850000>; 83 voltage-min-design-microvolt = 82 voltage-min-design-microvolt = <3600000>; 84 voltage-max-design-microvolt = 83 voltage-max-design-microvolt = <4400000>; 85 }; 84 }; 86 85 87 vph_pwr: vph-pwr-regulator { 86 vph_pwr: vph-pwr-regulator { 88 compatible = "regulator-fixed" 87 compatible = "regulator-fixed"; 89 regulator-name = "vph_pwr"; 88 regulator-name = "vph_pwr"; 90 regulator-min-microvolt = <370 89 regulator-min-microvolt = <3700000>; 91 regulator-max-microvolt = <370 90 regulator-max-microvolt = <3700000>; 92 }; 91 }; 93 92 94 vreg_s4a_1p8: pm8998-smps4 { 93 vreg_s4a_1p8: pm8998-smps4 { 95 compatible = "regulator-fixed" 94 compatible = "regulator-fixed"; 96 regulator-name = "vreg_s4a_1p8 95 regulator-name = "vreg_s4a_1p8"; 97 96 98 regulator-min-microvolt = <180 97 regulator-min-microvolt = <1800000>; 99 regulator-max-microvolt = <180 98 regulator-max-microvolt = <1800000>; 100 99 101 regulator-always-on; 100 regulator-always-on; 102 regulator-boot-on; 101 regulator-boot-on; 103 102 104 vin-supply = <&vph_pwr>; 103 vin-supply = <&vph_pwr>; 105 }; 104 }; 106 }; 105 }; 107 106 108 &adsp_pas { 107 &adsp_pas { 109 status = "okay"; 108 status = "okay"; 110 firmware-name = "qcom/sdm845/axolotl/a 109 firmware-name = "qcom/sdm845/axolotl/adsp.mbn"; 111 }; 110 }; 112 111 113 &apps_rsc { 112 &apps_rsc { 114 regulators-0 { !! 113 pm8998-rpmh-regulators { 115 compatible = "qcom,pm8998-rpmh 114 compatible = "qcom,pm8998-rpmh-regulators"; 116 qcom,pmic-id = "a"; 115 qcom,pmic-id = "a"; 117 116 118 vdd-s1-supply = <&vph_pwr>; 117 vdd-s1-supply = <&vph_pwr>; 119 vdd-s2-supply = <&vph_pwr>; 118 vdd-s2-supply = <&vph_pwr>; 120 vdd-s3-supply = <&vph_pwr>; 119 vdd-s3-supply = <&vph_pwr>; 121 vdd-s4-supply = <&vph_pwr>; 120 vdd-s4-supply = <&vph_pwr>; 122 vdd-s5-supply = <&vph_pwr>; 121 vdd-s5-supply = <&vph_pwr>; 123 vdd-s6-supply = <&vph_pwr>; 122 vdd-s6-supply = <&vph_pwr>; 124 vdd-s7-supply = <&vph_pwr>; 123 vdd-s7-supply = <&vph_pwr>; 125 vdd-s8-supply = <&vph_pwr>; 124 vdd-s8-supply = <&vph_pwr>; 126 vdd-s9-supply = <&vph_pwr>; 125 vdd-s9-supply = <&vph_pwr>; 127 vdd-s10-supply = <&vph_pwr>; 126 vdd-s10-supply = <&vph_pwr>; 128 vdd-s11-supply = <&vph_pwr>; 127 vdd-s11-supply = <&vph_pwr>; 129 vdd-s12-supply = <&vph_pwr>; 128 vdd-s12-supply = <&vph_pwr>; 130 vdd-s13-supply = <&vph_pwr>; 129 vdd-s13-supply = <&vph_pwr>; 131 vdd-l1-l27-supply = <&vreg_s7a 130 vdd-l1-l27-supply = <&vreg_s7a_1p025>; 132 vdd-l2-l8-l17-supply = <&vreg_ 131 vdd-l2-l8-l17-supply = <&vreg_s3a_1p35>; 133 vdd-l3-l11-supply = <&vreg_s7a 132 vdd-l3-l11-supply = <&vreg_s7a_1p025>; 134 vdd-l4-l5-supply = <&vreg_s7a_ 133 vdd-l4-l5-supply = <&vreg_s7a_1p025>; 135 vdd-l6-supply = <&vph_pwr>; 134 vdd-l6-supply = <&vph_pwr>; 136 vdd-l7-l12-l14-l15-supply = <& 135 vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p04>; 137 vdd-l9-supply = <&vreg_bob>; 136 vdd-l9-supply = <&vreg_bob>; 138 vdd-l10-l23-l25-supply = <&vre 137 vdd-l10-l23-l25-supply = <&vreg_bob>; 139 vdd-l13-l19-l21-supply = <&vre 138 vdd-l13-l19-l21-supply = <&vreg_bob>; 140 vdd-l16-l28-supply = <&vreg_bo 139 vdd-l16-l28-supply = <&vreg_bob>; 141 vdd-l18-l22-supply = <&vreg_bo 140 vdd-l18-l22-supply = <&vreg_bob>; 142 vdd-l20-l24-supply = <&vreg_bo 141 vdd-l20-l24-supply = <&vreg_bob>; 143 vdd-l26-supply = <&vreg_s3a_1p 142 vdd-l26-supply = <&vreg_s3a_1p35>; 144 vin-lvs-1-2-supply = <&vreg_s4 143 vin-lvs-1-2-supply = <&vreg_s4a_1p8>; 145 144 146 vreg_s2a_1p125: smps2 { 145 vreg_s2a_1p125: smps2 { 147 regulator-min-microvol 146 regulator-min-microvolt = <1100000>; 148 regulator-max-microvol 147 regulator-max-microvolt = <1100000>; 149 }; 148 }; 150 149 151 vreg_s3a_1p35: smps3 { 150 vreg_s3a_1p35: smps3 { 152 regulator-min-microvol 151 regulator-min-microvolt = <1352000>; 153 regulator-max-microvol 152 regulator-max-microvolt = <1352000>; 154 }; 153 }; 155 154 156 vreg_s5a_2p04: smps5 { 155 vreg_s5a_2p04: smps5 { 157 regulator-min-microvol 156 regulator-min-microvolt = <1904000>; 158 regulator-max-microvol 157 regulator-max-microvolt = <2040000>; 159 }; 158 }; 160 159 161 vreg_s7a_1p025: smps7 { 160 vreg_s7a_1p025: smps7 { 162 regulator-min-microvol 161 regulator-min-microvolt = <900000>; 163 regulator-max-microvol 162 regulator-max-microvolt = <1028000>; 164 }; 163 }; 165 164 166 vdd_qusb_hs0: 165 vdd_qusb_hs0: 167 vdda_hp_pcie_core: 166 vdda_hp_pcie_core: 168 vdda_mipi_csi0_0p9: 167 vdda_mipi_csi0_0p9: 169 vdda_mipi_csi1_0p9: 168 vdda_mipi_csi1_0p9: 170 vdda_mipi_csi2_0p9: 169 vdda_mipi_csi2_0p9: 171 vdda_mipi_dsi0_pll: 170 vdda_mipi_dsi0_pll: 172 vdda_mipi_dsi1_pll: 171 vdda_mipi_dsi1_pll: 173 vdda_qlink_lv: 172 vdda_qlink_lv: 174 vdda_qlink_lv_ck: 173 vdda_qlink_lv_ck: 175 vdda_qrefs_0p875: 174 vdda_qrefs_0p875: 176 vdda_pcie_core: 175 vdda_pcie_core: 177 vdda_pll_cc_ebi01: 176 vdda_pll_cc_ebi01: 178 vdda_pll_cc_ebi23: 177 vdda_pll_cc_ebi23: 179 vdda_sp_sensor: 178 vdda_sp_sensor: 180 vdda_ufs1_core: 179 vdda_ufs1_core: 181 vdda_ufs2_core: 180 vdda_ufs2_core: 182 vdda_usb1_ss_core: 181 vdda_usb1_ss_core: 183 vdda_usb2_ss_core: 182 vdda_usb2_ss_core: 184 vreg_l1a_0p875: ldo1 { 183 vreg_l1a_0p875: ldo1 { 185 regulator-min-microvol 184 regulator-min-microvolt = <880000>; 186 regulator-max-microvol 185 regulator-max-microvolt = <880000>; 187 regulator-initial-mode 186 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 188 }; 187 }; 189 188 190 vddpx_10: 189 vddpx_10: 191 vreg_l2a_1p2: ldo2 { 190 vreg_l2a_1p2: ldo2 { 192 regulator-min-microvol 191 regulator-min-microvolt = <1200000>; 193 regulator-max-microvol 192 regulator-max-microvolt = <1200000>; 194 regulator-initial-mode 193 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 195 regulator-always-on; 194 regulator-always-on; 196 }; 195 }; 197 196 198 vreg_l3a_1p0: ldo3 { 197 vreg_l3a_1p0: ldo3 { 199 regulator-min-microvol 198 regulator-min-microvolt = <1000000>; 200 regulator-max-microvol 199 regulator-max-microvolt = <1000000>; 201 regulator-initial-mode 200 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 202 }; 201 }; 203 202 204 vdd_wcss_cx: 203 vdd_wcss_cx: 205 vdd_wcss_mx: 204 vdd_wcss_mx: 206 vdda_wcss_pll: 205 vdda_wcss_pll: 207 vreg_l5a_0p8: ldo5 { 206 vreg_l5a_0p8: ldo5 { 208 regulator-min-microvol 207 regulator-min-microvolt = <800000>; 209 regulator-max-microvol 208 regulator-max-microvolt = <800000>; 210 regulator-initial-mode 209 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 211 }; 210 }; 212 211 213 vddpx_13: 212 vddpx_13: 214 vreg_l6a_1p8: ldo6 { 213 vreg_l6a_1p8: ldo6 { 215 regulator-min-microvol 214 regulator-min-microvolt = <1856000>; 216 regulator-max-microvol 215 regulator-max-microvolt = <1856000>; 217 regulator-initial-mode 216 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 218 }; 217 }; 219 218 220 vreg_l7a_1p8: ldo7 { 219 vreg_l7a_1p8: ldo7 { 221 regulator-min-microvol 220 regulator-min-microvolt = <1800000>; 222 regulator-max-microvol 221 regulator-max-microvolt = <1800000>; 223 regulator-initial-mode 222 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 224 }; 223 }; 225 224 226 vreg_l8a_1p2: ldo8 { 225 vreg_l8a_1p2: ldo8 { 227 regulator-min-microvol 226 regulator-min-microvolt = <1200000>; 228 regulator-max-microvol 227 regulator-max-microvolt = <1248000>; 229 regulator-initial-mode 228 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 230 }; 229 }; 231 230 232 vreg_l9a_1p8: ldo9 { 231 vreg_l9a_1p8: ldo9 { 233 regulator-min-microvol 232 regulator-min-microvolt = <1704000>; 234 regulator-max-microvol 233 regulator-max-microvolt = <2928000>; 235 regulator-initial-mode 234 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 236 }; 235 }; 237 236 238 vreg_l10a_1p8: ldo10 { 237 vreg_l10a_1p8: ldo10 { 239 regulator-min-microvol 238 regulator-min-microvolt = <1704000>; 240 regulator-max-microvol 239 regulator-max-microvolt = <2928000>; 241 regulator-initial-mode 240 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 242 }; 241 }; 243 242 244 vreg_l11a_1p0: ldo11 { 243 vreg_l11a_1p0: ldo11 { 245 regulator-min-microvol 244 regulator-min-microvolt = <1000000>; 246 regulator-max-microvol 245 regulator-max-microvolt = <1048000>; 247 regulator-initial-mode 246 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 248 }; 247 }; 249 248 250 vdd_qfprom: 249 vdd_qfprom: 251 vdd_qfprom_sp: 250 vdd_qfprom_sp: 252 vdda_apc1_cs_1p8: 251 vdda_apc1_cs_1p8: 253 vdda_gfx_cs_1p8: 252 vdda_gfx_cs_1p8: 254 vdda_qrefs_1p8: 253 vdda_qrefs_1p8: 255 vdda_qusb_hs0_1p8: 254 vdda_qusb_hs0_1p8: 256 vddpx_11: 255 vddpx_11: 257 vreg_l12a_1p8: ldo12 { 256 vreg_l12a_1p8: ldo12 { 258 regulator-min-microvol 257 regulator-min-microvolt = <1800000>; 259 regulator-max-microvol 258 regulator-max-microvolt = <1800000>; 260 regulator-initial-mode 259 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 261 }; 260 }; 262 261 263 vddpx_2: 262 vddpx_2: 264 vreg_l13a_2p95: ldo13 { 263 vreg_l13a_2p95: ldo13 { 265 regulator-min-microvol 264 regulator-min-microvolt = <1800000>; 266 regulator-max-microvol 265 regulator-max-microvolt = <2960000>; 267 regulator-initial-mode 266 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 268 }; 267 }; 269 268 270 vreg_l14a_1p88: ldo14 { 269 vreg_l14a_1p88: ldo14 { 271 regulator-min-microvol 270 regulator-min-microvolt = <1800000>; 272 regulator-max-microvol 271 regulator-max-microvolt = <1800000>; 273 regulator-initial-mode 272 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 274 }; 273 }; 275 274 276 vreg_l15a_1p8: ldo15 { 275 vreg_l15a_1p8: ldo15 { 277 regulator-min-microvol 276 regulator-min-microvolt = <1800000>; 278 regulator-max-microvol 277 regulator-max-microvolt = <1800000>; 279 regulator-initial-mode 278 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 280 }; 279 }; 281 280 282 vreg_l16a_2p7: ldo16 { 281 vreg_l16a_2p7: ldo16 { 283 regulator-min-microvol 282 regulator-min-microvolt = <2704000>; 284 regulator-max-microvol 283 regulator-max-microvolt = <2704000>; 285 regulator-initial-mode 284 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 286 }; 285 }; 287 286 288 vreg_l17a_1p3: ldo17 { 287 vreg_l17a_1p3: ldo17 { 289 regulator-min-microvol 288 regulator-min-microvolt = <1304000>; 290 regulator-max-microvol 289 regulator-max-microvolt = <1304000>; 291 regulator-initial-mode 290 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 292 }; 291 }; 293 292 294 vreg_l18a_2p7: ldo18 { 293 vreg_l18a_2p7: ldo18 { 295 regulator-min-microvol 294 regulator-min-microvolt = <2704000>; 296 regulator-max-microvol 295 regulator-max-microvolt = <2960000>; 297 regulator-initial-mode 296 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 298 }; 297 }; 299 298 300 vreg_l19a_3p0: ldo19 { 299 vreg_l19a_3p0: ldo19 { 301 regulator-min-microvol 300 regulator-min-microvolt = <2856000>; 302 regulator-max-microvol 301 regulator-max-microvolt = <3104000>; 303 regulator-initial-mode 302 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 304 }; 303 }; 305 304 306 vreg_l20a_2p95: ldo20 { 305 vreg_l20a_2p95: ldo20 { 307 regulator-min-microvol 306 regulator-min-microvolt = <2704000>; 308 regulator-max-microvol 307 regulator-max-microvolt = <2960000>; 309 regulator-initial-mode 308 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 310 }; 309 }; 311 310 312 vreg_l21a_2p95: ldo21 { 311 vreg_l21a_2p95: ldo21 { 313 regulator-min-microvol 312 regulator-min-microvolt = <2704000>; 314 regulator-max-microvol 313 regulator-max-microvolt = <2960000>; 315 regulator-initial-mode 314 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 316 }; 315 }; 317 316 318 vreg_l22a_2p85: ldo22 { 317 vreg_l22a_2p85: ldo22 { 319 regulator-min-microvol 318 regulator-min-microvolt = <2864000>; 320 regulator-max-microvol 319 regulator-max-microvolt = <3312000>; 321 regulator-initial-mode 320 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 322 }; 321 }; 323 322 324 vreg_l23a_3p3: ldo23 { 323 vreg_l23a_3p3: ldo23 { 325 regulator-min-microvol 324 regulator-min-microvolt = <3000000>; 326 regulator-max-microvol 325 regulator-max-microvolt = <3312000>; 327 regulator-initial-mode 326 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 328 }; 327 }; 329 328 330 vdda_qusb_hs0_3p1: 329 vdda_qusb_hs0_3p1: 331 vreg_l24a_3p075: ldo24 { 330 vreg_l24a_3p075: ldo24 { 332 regulator-min-microvol 331 regulator-min-microvolt = <3088000>; 333 regulator-max-microvol 332 regulator-max-microvolt = <3088000>; 334 regulator-initial-mode 333 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 335 }; 334 }; 336 335 337 vreg_l25a_3p3: ldo25 { 336 vreg_l25a_3p3: ldo25 { 338 regulator-min-microvol 337 regulator-min-microvolt = <3300000>; 339 regulator-max-microvol 338 regulator-max-microvolt = <3312000>; 340 regulator-initial-mode 339 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 341 }; 340 }; 342 341 343 vdda_hp_pcie_1p2: 342 vdda_hp_pcie_1p2: 344 vdda_hv_ebi0: 343 vdda_hv_ebi0: 345 vdda_hv_ebi1: 344 vdda_hv_ebi1: 346 vdda_hv_ebi2: 345 vdda_hv_ebi2: 347 vdda_hv_ebi3: 346 vdda_hv_ebi3: 348 vdda_mipi_csi_1p25: 347 vdda_mipi_csi_1p25: 349 vdda_mipi_dsi0_1p2: 348 vdda_mipi_dsi0_1p2: 350 vdda_mipi_dsi1_1p2: 349 vdda_mipi_dsi1_1p2: 351 vdda_pcie_1p2: 350 vdda_pcie_1p2: 352 vdda_ufs1_1p2: 351 vdda_ufs1_1p2: 353 vdda_ufs2_1p2: 352 vdda_ufs2_1p2: 354 vdda_usb1_ss_1p2: 353 vdda_usb1_ss_1p2: 355 vdda_usb2_ss_1p2: 354 vdda_usb2_ss_1p2: 356 vreg_l26a_1p2: ldo26 { 355 vreg_l26a_1p2: ldo26 { 357 regulator-min-microvol 356 regulator-min-microvolt = <1200000>; 358 regulator-max-microvol 357 regulator-max-microvolt = <1200000>; 359 regulator-initial-mode 358 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 360 }; 359 }; 361 360 362 vreg_l28a_3p0: ldo28 { 361 vreg_l28a_3p0: ldo28 { 363 regulator-min-microvol 362 regulator-min-microvolt = <2856000>; 364 regulator-max-microvol 363 regulator-max-microvolt = <3008000>; 365 regulator-initial-mode 364 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 366 }; 365 }; 367 366 368 vreg_lvs1a_1p8: lvs1 { 367 vreg_lvs1a_1p8: lvs1 { 369 regulator-min-microvol 368 regulator-min-microvolt = <1800000>; 370 regulator-max-microvol 369 regulator-max-microvolt = <1800000>; 371 }; 370 }; 372 371 373 vreg_lvs2a_1p8: lvs2 { 372 vreg_lvs2a_1p8: lvs2 { 374 regulator-min-microvol 373 regulator-min-microvolt = <1800000>; 375 regulator-max-microvol 374 regulator-max-microvolt = <1800000>; 376 }; 375 }; 377 }; 376 }; 378 377 379 regulators-1 { !! 378 pmi8998-rpmh-regulators { 380 compatible = "qcom,pmi8998-rpm 379 compatible = "qcom,pmi8998-rpmh-regulators"; 381 qcom,pmic-id = "b"; 380 qcom,pmic-id = "b"; 382 381 383 vdd-bob-supply = <&vph_pwr>; 382 vdd-bob-supply = <&vph_pwr>; 384 383 385 vreg_bob: bob { 384 vreg_bob: bob { 386 regulator-min-microvol 385 regulator-min-microvolt = <3312000>; 387 regulator-max-microvol 386 regulator-max-microvolt = <3600000>; 388 regulator-initial-mode 387 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>; 389 regulator-allow-bypass 388 regulator-allow-bypass; 390 }; 389 }; 391 }; 390 }; 392 391 393 regulators-2 { !! 392 pm8005-rpmh-regulators { 394 compatible = "qcom,pm8005-rpmh 393 compatible = "qcom,pm8005-rpmh-regulators"; 395 qcom,pmic-id = "c"; 394 qcom,pmic-id = "c"; 396 395 397 vdd-s1-supply = <&vph_pwr>; 396 vdd-s1-supply = <&vph_pwr>; 398 vdd-s2-supply = <&vph_pwr>; 397 vdd-s2-supply = <&vph_pwr>; 399 vdd-s3-supply = <&vph_pwr>; 398 vdd-s3-supply = <&vph_pwr>; 400 vdd-s4-supply = <&vph_pwr>; 399 vdd-s4-supply = <&vph_pwr>; 401 400 402 vreg_s3c_0p6: smps3 { 401 vreg_s3c_0p6: smps3 { 403 regulator-min-microvol 402 regulator-min-microvolt = <600000>; 404 regulator-max-microvol 403 regulator-max-microvolt = <600000>; 405 }; 404 }; 406 }; 405 }; 407 }; 406 }; 408 407 409 &cdsp_pas { 408 &cdsp_pas { 410 status = "okay"; 409 status = "okay"; 411 firmware-name = "qcom/sdm845/axolotl/c 410 firmware-name = "qcom/sdm845/axolotl/cdsp.mbn"; 412 }; 411 }; 413 412 >> 413 &dsi0 { >> 414 status = "okay"; >> 415 vdda-supply = <&vdda_mipi_dsi0_1p2>; >> 416 >> 417 panel@0 { >> 418 compatible = "visionox,rm69299-shift"; >> 419 status = "okay"; >> 420 reg = <0>; >> 421 vdda-supply = <&vreg_l14a_1p88>; >> 422 vdd3p3-supply = <&vreg_l28a_3p0>; >> 423 >> 424 #address-cells = <1>; >> 425 #size-cells = <0>; >> 426 >> 427 reset-gpios = <&tlmm 6 GPIO_ACTIVE_HIGH>; >> 428 >> 429 pinctrl-names = "default", "sleep"; >> 430 pinctrl-0 = <&sde_dsi_active &sde_te_active>; >> 431 pinctrl-1 = <&sde_dsi_suspend &sde_te_suspend>; >> 432 >> 433 port { >> 434 panel_in_0: endpoint { >> 435 remote-endpoint = <&dsi0_out>; >> 436 }; >> 437 }; >> 438 }; >> 439 }; >> 440 >> 441 &dsi0_out { >> 442 remote-endpoint = <&panel_in_0>; >> 443 data-lanes = <0 1 2 3>; >> 444 }; >> 445 >> 446 &dsi0_phy { >> 447 status = "okay"; >> 448 vdds-supply = <&vdda_mipi_dsi0_pll>; >> 449 }; >> 450 414 &gcc { 451 &gcc { 415 protected-clocks = <GCC_QSPI_CORE_CLK> 452 protected-clocks = <GCC_QSPI_CORE_CLK>, 416 <GCC_QSPI_CORE_CLK_ 453 <GCC_QSPI_CORE_CLK_SRC>, 417 <GCC_QSPI_CNOC_PERI 454 <GCC_QSPI_CNOC_PERIPH_AHB_CLK>, 418 <GCC_LPASS_Q6_AXI_C 455 <GCC_LPASS_Q6_AXI_CLK>, 419 <GCC_LPASS_SWAY_CLK 456 <GCC_LPASS_SWAY_CLK>; 420 }; 457 }; 421 458 422 &gmu { 459 &gmu { 423 status = "okay"; 460 status = "okay"; 424 }; 461 }; 425 462 426 &gpu { 463 &gpu { 427 status = "okay"; 464 status = "okay"; 428 465 429 zap-shader { 466 zap-shader { 430 memory-region = <&gpu_mem>; 467 memory-region = <&gpu_mem>; 431 firmware-name = "qcom/sdm845/a 468 firmware-name = "qcom/sdm845/axolotl/a630_zap.mbn"; 432 }; 469 }; 433 }; 470 }; 434 471 435 &i2c5 { 472 &i2c5 { 436 status = "okay"; 473 status = "okay"; 437 474 438 touchscreen@38 { 475 touchscreen@38 { 439 compatible = "focaltech,fts871 476 compatible = "focaltech,fts8719"; 440 reg = <0x38>; 477 reg = <0x38>; 441 wakeup-source; 478 wakeup-source; 442 interrupt-parent = <&tlmm>; 479 interrupt-parent = <&tlmm>; 443 interrupts = <125 IRQ_TYPE_EDG !! 480 interrupts = <125 0x2>; 444 vdd-supply = <&vreg_l28a_3p0>; 481 vdd-supply = <&vreg_l28a_3p0>; 445 vcc-i2c-supply = <&vreg_l14a_1 482 vcc-i2c-supply = <&vreg_l14a_1p88>; 446 483 447 pinctrl-names = "default", "su 484 pinctrl-names = "default", "suspend"; 448 pinctrl-0 = <&ts_int_active &t 485 pinctrl-0 = <&ts_int_active &ts_reset_active>; 449 pinctrl-1 = <&ts_int_suspend & 486 pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; 450 487 451 reset-gpio = <&tlmm 99 GPIO_AC 488 reset-gpio = <&tlmm 99 GPIO_ACTIVE_HIGH>; 452 irq-gpio = <&tlmm 125 GPIO_TRA 489 irq-gpio = <&tlmm 125 GPIO_TRANSITORY>; 453 touchscreen-size-x = <1080>; 490 touchscreen-size-x = <1080>; 454 touchscreen-size-y = <2160>; 491 touchscreen-size-y = <2160>; 455 focaltech,max-touch-number = < 492 focaltech,max-touch-number = <5>; 456 }; 493 }; 457 }; 494 }; 458 495 459 &i2c10 { << 460 /* SMB1355@0x0C */ << 461 }; << 462 << 463 &ipa { 496 &ipa { 464 qcom,gsi-loader = "self"; !! 497 status = "okay"; >> 498 465 memory-region = <&ipa_fw_mem>; 499 memory-region = <&ipa_fw_mem>; 466 firmware-name = "qcom/sdm845/axolotl/i 500 firmware-name = "qcom/sdm845/axolotl/ipa_fws.mbn"; 467 status = "okay"; << 468 }; 501 }; 469 502 470 &mdss { 503 &mdss { 471 status = "okay"; 504 status = "okay"; 472 }; 505 }; 473 506 474 &mdss_dsi0 { << 475 status = "okay"; << 476 vdda-supply = <&vdda_mipi_dsi0_1p2>; << 477 << 478 panel@0 { << 479 compatible = "visionox,rm69299 << 480 status = "okay"; << 481 reg = <0>; << 482 vdda-supply = <&vreg_l14a_1p88 << 483 vdd3p3-supply = <&vreg_l28a_3p << 484 << 485 #address-cells = <1>; << 486 #size-cells = <0>; << 487 << 488 reset-gpios = <&tlmm 6 GPIO_AC << 489 << 490 pinctrl-names = "default", "sl << 491 pinctrl-0 = <&sde_dsi_active & << 492 pinctrl-1 = <&sde_dsi_suspend << 493 << 494 port { << 495 panel_in_0: endpoint { << 496 remote-endpoin << 497 }; << 498 }; << 499 }; << 500 }; << 501 << 502 &mdss_dsi0_out { << 503 remote-endpoint = <&panel_in_0>; << 504 data-lanes = <0 1 2 3>; << 505 }; << 506 << 507 &mdss_dsi0_phy { << 508 status = "okay"; << 509 vdds-supply = <&vdda_mipi_dsi0_pll>; << 510 }; << 511 << 512 &mss_pil { 507 &mss_pil { 513 status = "okay"; 508 status = "okay"; 514 firmware-name = "qcom/sdm845/axolotl/m 509 firmware-name = "qcom/sdm845/axolotl/mba.mbn", "qcom/sdm845/axolotl/modem.mbn"; 515 }; 510 }; 516 511 517 &pm8998_gpios { !! 512 &pm8998_gpio { 518 volume_up_gpio: pm8998-gpio6-state { 513 volume_up_gpio: pm8998-gpio6-state { 519 pinconf { 514 pinconf { 520 pins = "gpio6"; 515 pins = "gpio6"; 521 function = "normal"; 516 function = "normal"; 522 input-enable; 517 input-enable; 523 bias-pull-up; 518 bias-pull-up; 524 qcom,drive-strength = 519 qcom,drive-strength = <0>; 525 }; 520 }; 526 }; 521 }; 527 }; 522 }; 528 523 529 &pmi8998_charger { !! 524 &pm8998_pon { 530 monitored-battery = <&battery>; !! 525 volume_down_resin: resin { 531 !! 526 compatible = "qcom,pm8941-resin"; 532 status = "okay"; !! 527 interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; 533 }; !! 528 debounce = <15625>; 534 !! 529 bias-pull-up; 535 &pm8998_resin { !! 530 linux,code = <KEY_VOLUMEDOWN>; 536 linux,code = <KEY_VOLUMEDOWN>; !! 531 }; 537 status = "okay"; << 538 }; 532 }; 539 533 540 &pmi8998_lpg { 534 &pmi8998_lpg { 541 status = "okay"; 535 status = "okay"; 542 536 543 multi-led { 537 multi-led { 544 color = <LED_COLOR_ID_RGB>; 538 color = <LED_COLOR_ID_RGB>; 545 function = LED_FUNCTION_STATUS 539 function = LED_FUNCTION_STATUS; 546 540 547 #address-cells = <1>; 541 #address-cells = <1>; 548 #size-cells = <0>; 542 #size-cells = <0>; 549 543 550 led@3 { 544 led@3 { 551 reg = <3>; 545 reg = <3>; 552 color = <LED_COLOR_ID_ 546 color = <LED_COLOR_ID_BLUE>; 553 }; 547 }; 554 548 555 led@4 { 549 led@4 { 556 reg = <4>; 550 reg = <4>; 557 color = <LED_COLOR_ID_ 551 color = <LED_COLOR_ID_GREEN>; 558 }; 552 }; 559 553 560 led@5 { 554 led@5 { 561 reg = <5>; 555 reg = <5>; 562 color = <LED_COLOR_ID_ 556 color = <LED_COLOR_ID_RED>; 563 }; 557 }; 564 }; 558 }; 565 }; 559 }; 566 560 567 &pmi8998_flash { !! 561 &qup_uart9_default { 568 status = "okay"; !! 562 pinconf-rx { 569 !! 563 pins = "gpio5"; 570 led-0 { !! 564 drive-strength = <2>; 571 function = LED_FUNCTION_FLASH; !! 565 bias-pull-up; 572 color = <LED_COLOR_ID_WHITE>; << 573 led-sources = <1>; << 574 led-max-microamp = <100000>; << 575 flash-max-microamp = <1100000> << 576 flash-max-timeout-us = <128000 << 577 }; 566 }; 578 567 579 led-1 { !! 568 pinconf-tx { 580 function = LED_FUNCTION_FLASH; !! 569 pins = "gpio4"; 581 color = <LED_COLOR_ID_YELLOW>; !! 570 drive-strength = <2>; 582 led-sources = <2>; !! 571 bias-disable; 583 led-max-microamp = <100000>; << 584 flash-max-microamp = <1100000> << 585 flash-max-timeout-us = <128000 << 586 }; 572 }; 587 }; 573 }; 588 574 589 &qup_uart9_rx { << 590 drive-strength = <2>; << 591 bias-pull-up; << 592 }; << 593 << 594 &qup_uart9_tx { << 595 drive-strength = <2>; << 596 bias-disable; << 597 }; << 598 << 599 &qupv3_id_0 { 575 &qupv3_id_0 { 600 status = "okay"; 576 status = "okay"; 601 }; 577 }; 602 578 603 &qupv3_id_1 { 579 &qupv3_id_1 { 604 status = "okay"; 580 status = "okay"; 605 }; 581 }; 606 582 607 &slpi_pas { << 608 firmware-name = "qcom/sdm845/axolotl/s << 609 status = "okay"; << 610 }; << 611 << 612 &tlmm { 583 &tlmm { 613 gpio-reserved-ranges = <0 4>, <81 4>; 584 gpio-reserved-ranges = <0 4>, <81 4>; 614 585 615 sde_dsi_active: sde-dsi-active-state { !! 586 sde_dsi_active: sde-dsi-active { 616 pins = "gpio6", "gpio11"; !! 587 mux { 617 function = "gpio"; !! 588 pins = "gpio6", "gpio11"; 618 drive-strength = <8>; !! 589 function = "gpio"; 619 bias-disable; !! 590 }; >> 591 >> 592 config { >> 593 pins = "gpio6", "gpio11"; >> 594 drive-strength = <8>; >> 595 bias-disable; >> 596 }; 620 }; 597 }; 621 598 622 sde_dsi_suspend: sde-dsi-suspend-state !! 599 sde_dsi_suspend: sde-dsi-suspend { 623 pins = "gpio6", "gpio11"; !! 600 mux { 624 function = "gpio"; !! 601 pins = "gpio6", "gpio11"; 625 drive-strength = <2>; !! 602 function = "gpio"; 626 bias-pull-down; !! 603 }; >> 604 >> 605 config { >> 606 pins = "gpio6", "gpio11"; >> 607 drive-strength = <2>; >> 608 bias-pull-down; >> 609 }; 627 }; 610 }; 628 611 629 sde_te_active: sde-te-active-state { !! 612 sde_te_active: sde-te-active { 630 pins = "gpio10"; !! 613 mux { 631 function = "mdp_vsync"; !! 614 pins = "gpio10"; 632 drive-strength = <2>; !! 615 function = "mdp_vsync"; 633 bias-pull-down; !! 616 }; >> 617 >> 618 config { >> 619 pins = "gpio10"; >> 620 drive-strength = <2>; >> 621 bias-pull-down; >> 622 }; 634 }; 623 }; 635 624 636 sde_te_suspend: sde-te-suspend-state { !! 625 sde_te_suspend: sde-te-suspend { 637 pins = "gpio10"; !! 626 mux { 638 function = "mdp_vsync"; !! 627 pins = "gpio10"; 639 drive-strength = <2>; !! 628 function = "mdp_vsync"; 640 bias-pull-down; !! 629 }; >> 630 >> 631 config { >> 632 pins = "gpio10"; >> 633 drive-strength = <2>; >> 634 bias-pull-down; >> 635 }; 641 }; 636 }; 642 637 643 ts_int_active: ts-int-active-state { !! 638 ts_int_active: ts-int-active { 644 pins = "gpio125"; !! 639 mux { 645 function = "gpio"; !! 640 pins = "gpio125"; 646 drive-strength = <8>; !! 641 function = "gpio"; 647 bias-pull-up; !! 642 }; >> 643 >> 644 config { >> 645 pins = "gpio125"; >> 646 drive-strength = <8>; >> 647 bias-pull-up; >> 648 input-enable; >> 649 }; 648 }; 650 }; 649 651 650 ts_int_suspend: ts-int-suspend-state { !! 652 ts_int_suspend: ts-int-suspend { 651 pins = "gpio125"; !! 653 mux { 652 function = "gpio"; !! 654 pins = "gpio125"; 653 drive-strength = <2>; !! 655 function = "gpio"; 654 bias-pull-down; !! 656 }; >> 657 >> 658 config { >> 659 pins = "gpio125"; >> 660 drive-strength = <2>; >> 661 bias-pull-down; >> 662 input-enable; >> 663 }; 655 }; 664 }; 656 665 657 ts_reset_active: ts-reset-active-state !! 666 ts_reset_active: ts-reset-active { 658 pins = "gpio99"; !! 667 mux { 659 function = "gpio"; !! 668 pins = "gpio99"; 660 drive-strength = <8>; !! 669 function = "gpio"; 661 bias-pull-up; !! 670 }; >> 671 >> 672 config { >> 673 pins = "gpio99"; >> 674 drive-strength = <8>; >> 675 bias-pull-up; >> 676 }; 662 }; 677 }; 663 678 664 ts_reset_suspend: ts-reset-suspend-sta !! 679 ts_reset_suspend: ts-reset-suspend { 665 pins = "gpio99"; !! 680 mux { 666 function = "gpio"; !! 681 pins = "gpio99"; 667 drive-strength = <2>; !! 682 function = "gpio"; 668 bias-pull-down; !! 683 }; >> 684 >> 685 config { >> 686 pins = "gpio99"; >> 687 drive-strength = <2>; >> 688 bias-pull-down; >> 689 }; 669 }; 690 }; 670 }; 691 }; 671 692 672 &uart6 { 693 &uart6 { 673 status = "okay"; 694 status = "okay"; 674 695 675 pinctrl-0 = <&qup_uart6_4pin>; << 676 << 677 bluetooth { 696 bluetooth { 678 compatible = "qcom,wcn3990-bt" 697 compatible = "qcom,wcn3990-bt"; 679 << 680 /* << 681 * This path is relative to th << 682 * subdir under lib/firmware. << 683 */ << 684 firmware-name = "axolotl/crnv2 << 685 698 686 vddio-supply = <&vreg_s4a_1p8> 699 vddio-supply = <&vreg_s4a_1p8>; 687 vddxo-supply = <&vreg_l7a_1p8> 700 vddxo-supply = <&vreg_l7a_1p8>; 688 vddrf-supply = <&vreg_l17a_1p3 701 vddrf-supply = <&vreg_l17a_1p3>; 689 vddch0-supply = <&vreg_l25a_3p 702 vddch0-supply = <&vreg_l25a_3p3>; 690 max-speed = <3200000>; 703 max-speed = <3200000>; 691 }; 704 }; 692 }; 705 }; 693 706 694 &uart9 { 707 &uart9 { 695 status = "okay"; 708 status = "okay"; 696 }; 709 }; 697 710 698 &ufs_mem_hc { 711 &ufs_mem_hc { 699 status = "okay"; 712 status = "okay"; 700 713 701 reset-gpios = <&tlmm 150 GPIO_ACTIVE_L 714 reset-gpios = <&tlmm 150 GPIO_ACTIVE_LOW>; 702 715 703 vcc-supply = <&vreg_l20a_2p95>; 716 vcc-supply = <&vreg_l20a_2p95>; 704 vcc-max-microamp = <600000>; 717 vcc-max-microamp = <600000>; 705 }; 718 }; 706 719 707 &ufs_mem_phy { 720 &ufs_mem_phy { 708 status = "okay"; 721 status = "okay"; 709 722 710 vdda-phy-supply = <&vdda_ufs1_core>; 723 vdda-phy-supply = <&vdda_ufs1_core>; 711 vdda-pll-supply = <&vdda_ufs1_1p2>; 724 vdda-pll-supply = <&vdda_ufs1_1p2>; 712 }; 725 }; 713 726 714 &usb_1 { 727 &usb_1 { 715 status = "okay"; 728 status = "okay"; 716 }; 729 }; 717 730 718 &usb_1_dwc3 { 731 &usb_1_dwc3 { 719 dr_mode = "peripheral"; 732 dr_mode = "peripheral"; 720 }; 733 }; 721 734 722 &usb_1_hsphy { 735 &usb_1_hsphy { 723 status = "okay"; 736 status = "okay"; 724 737 725 vdd-supply = <&vreg_l1a_0p875>; 738 vdd-supply = <&vreg_l1a_0p875>; 726 vdda-phy-dpdm-supply = <&vreg_l24a_3p0 739 vdda-phy-dpdm-supply = <&vreg_l24a_3p075>; 727 vdda-pll-supply = <&vreg_l12a_1p8>; 740 vdda-pll-supply = <&vreg_l12a_1p8>; 728 }; 741 }; 729 742 730 &usb_1_qmpphy { 743 &usb_1_qmpphy { 731 status = "okay"; 744 status = "okay"; 732 745 733 vdda-phy-supply = <&vreg_l26a_1p2>; 746 vdda-phy-supply = <&vreg_l26a_1p2>; 734 vdda-pll-supply = <&vreg_l1a_0p875>; 747 vdda-pll-supply = <&vreg_l1a_0p875>; 735 }; 748 }; 736 749 737 &venus { 750 &venus { 738 status = "okay"; 751 status = "okay"; 739 firmware-name = "qcom/sdm845/axolotl/v 752 firmware-name = "qcom/sdm845/axolotl/venus.mbn"; 740 }; 753 }; 741 754 742 &wifi { 755 &wifi { 743 status = "okay"; 756 status = "okay"; 744 757 745 vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8> 758 vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>; 746 vdd-1.3-rfa-supply = <&vreg_l17a_1p3>; 759 vdd-1.3-rfa-supply = <&vreg_l17a_1p3>; 747 vdd-1.8-xo-supply = <&vreg_l7a_1p8>; 760 vdd-1.8-xo-supply = <&vreg_l7a_1p8>; 748 vdd-3.3-ch0-supply = <&vreg_l25a_3p3>; 761 vdd-3.3-ch0-supply = <&vreg_l25a_3p3>; 749 vdd-3.3-ch1-supply = <&vreg_l23a_3p3>; 762 vdd-3.3-ch1-supply = <&vreg_l23a_3p3>; 750 763 751 qcom,snoc-host-cap-8bit-quirk; 764 qcom,snoc-host-cap-8bit-quirk; 752 }; 765 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.