1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 /* 2 /* 3 * SDM845 Samsung S9 (SM-G9600) (starqltechn / 3 * SDM845 Samsung S9 (SM-G9600) (starqltechn / star2qltechn) common device tree source 4 * 4 * 5 * Copyright (c) 2020, The Linux Foundation. A 5 * Copyright (c) 2020, The Linux Foundation. All rights reserved. 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/regulator/qcom,rpmh-regu 11 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 12 #include "sdm845.dtsi" 12 #include "sdm845.dtsi" 13 13 14 / { 14 / { 15 chassis-type = "handset"; 15 chassis-type = "handset"; 16 model = "Samsung Galaxy S9 SM-G9600"; 16 model = "Samsung Galaxy S9 SM-G9600"; 17 compatible = "samsung,starqltechn", "q 17 compatible = "samsung,starqltechn", "qcom,sdm845"; 18 18 19 chosen { 19 chosen { 20 #address-cells = <2>; 20 #address-cells = <2>; 21 #size-cells = <2>; 21 #size-cells = <2>; 22 ranges; 22 ranges; 23 framebuffer: framebuffer@9d400 23 framebuffer: framebuffer@9d400000 { 24 compatible = "simple-f 24 compatible = "simple-framebuffer"; 25 reg = <0 0x9d400000 0 25 reg = <0 0x9d400000 0 (2960 * 1440 * 4)>;//2400000 26 width = <1440>; 26 width = <1440>; 27 height = <2960>; 27 height = <2960>; 28 stride = <(1440 * 4)>; 28 stride = <(1440 * 4)>; 29 format = "a8r8g8b8"; 29 format = "a8r8g8b8"; 30 }; 30 }; 31 }; 31 }; 32 32 33 vph_pwr: vph-pwr-regulator { 33 vph_pwr: vph-pwr-regulator { 34 compatible = "regulator-fixed" 34 compatible = "regulator-fixed"; 35 regulator-name = "vph_pwr"; 35 regulator-name = "vph_pwr"; 36 regulator-min-microvolt = <370 36 regulator-min-microvolt = <3700000>; 37 regulator-max-microvolt = <370 37 regulator-max-microvolt = <3700000>; 38 }; 38 }; 39 39 40 /* 40 /* 41 * Apparently RPMh does not provide su 41 * Apparently RPMh does not provide support for PM8998 S4 because it 42 * is always-on; model it as a fixed r 42 * is always-on; model it as a fixed regulator. 43 */ 43 */ 44 vreg_s4a_1p8: pm8998-smps4 { 44 vreg_s4a_1p8: pm8998-smps4 { 45 compatible = "regulator-fixed" 45 compatible = "regulator-fixed"; 46 regulator-name = "vreg_s4a_1p8 46 regulator-name = "vreg_s4a_1p8"; 47 47 48 regulator-min-microvolt = <180 48 regulator-min-microvolt = <1800000>; 49 regulator-max-microvolt = <180 49 regulator-max-microvolt = <1800000>; 50 50 51 regulator-always-on; 51 regulator-always-on; 52 regulator-boot-on; 52 regulator-boot-on; 53 53 54 vin-supply = <&vph_pwr>; 54 vin-supply = <&vph_pwr>; 55 }; 55 }; 56 56 57 reserved-memory { 57 reserved-memory { 58 memory@9d400000 { 58 memory@9d400000 { 59 reg = <0x0 0x9d400000 59 reg = <0x0 0x9d400000 0x0 0x02400000>; 60 no-map; 60 no-map; 61 }; 61 }; 62 62 63 memory@a1300000 { 63 memory@a1300000 { 64 compatible = "ramoops" 64 compatible = "ramoops"; 65 reg = <0x0 0xa1300000 65 reg = <0x0 0xa1300000 0x0 0x100000>; 66 record-size = <0x40000 66 record-size = <0x40000>; 67 console-size = <0x4000 67 console-size = <0x40000>; 68 ftrace-size = <0x40000 68 ftrace-size = <0x40000>; 69 pmsg-size = <0x40000>; 69 pmsg-size = <0x40000>; 70 }; 70 }; 71 }; 71 }; 72 }; 72 }; 73 73 74 74 75 &apps_rsc { 75 &apps_rsc { 76 regulators-0 { 76 regulators-0 { 77 compatible = "qcom,pm8998-rpmh 77 compatible = "qcom,pm8998-rpmh-regulators"; 78 qcom,pmic-id = "a"; 78 qcom,pmic-id = "a"; 79 79 80 vdd-s1-supply = <&vph_pwr>; 80 vdd-s1-supply = <&vph_pwr>; 81 vdd-s2-supply = <&vph_pwr>; 81 vdd-s2-supply = <&vph_pwr>; 82 vdd-s3-supply = <&vph_pwr>; 82 vdd-s3-supply = <&vph_pwr>; 83 vdd-s4-supply = <&vph_pwr>; 83 vdd-s4-supply = <&vph_pwr>; 84 vdd-s5-supply = <&vph_pwr>; 84 vdd-s5-supply = <&vph_pwr>; 85 vdd-s6-supply = <&vph_pwr>; 85 vdd-s6-supply = <&vph_pwr>; 86 vdd-s7-supply = <&vph_pwr>; 86 vdd-s7-supply = <&vph_pwr>; 87 vdd-s8-supply = <&vph_pwr>; 87 vdd-s8-supply = <&vph_pwr>; 88 vdd-s9-supply = <&vph_pwr>; 88 vdd-s9-supply = <&vph_pwr>; 89 vdd-s10-supply = <&vph_pwr>; 89 vdd-s10-supply = <&vph_pwr>; 90 vdd-s11-supply = <&vph_pwr>; 90 vdd-s11-supply = <&vph_pwr>; 91 vdd-s12-supply = <&vph_pwr>; 91 vdd-s12-supply = <&vph_pwr>; 92 vdd-s13-supply = <&vph_pwr>; 92 vdd-s13-supply = <&vph_pwr>; 93 vdd-l1-l27-supply = <&vreg_s7a 93 vdd-l1-l27-supply = <&vreg_s7a_1p025>; 94 vdd-l2-l8-l17-supply = <&vreg_ 94 vdd-l2-l8-l17-supply = <&vreg_s3a_1p35>; 95 vdd-l3-l11-supply = <&vreg_s7a 95 vdd-l3-l11-supply = <&vreg_s7a_1p025>; 96 vdd-l4-l5-supply = <&vreg_s7a_ 96 vdd-l4-l5-supply = <&vreg_s7a_1p025>; 97 vdd-l6-supply = <&vph_pwr>; 97 vdd-l6-supply = <&vph_pwr>; 98 vdd-l7-l12-l14-l15-supply = <& 98 vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p04>; 99 vdd-l26-supply = <&vreg_s3a_1p 99 vdd-l26-supply = <&vreg_s3a_1p35>; 100 vin-lvs-1-2-supply = <&vreg_s4 100 vin-lvs-1-2-supply = <&vreg_s4a_1p8>; 101 101 102 vreg_s2a_1p125: smps2 { 102 vreg_s2a_1p125: smps2 { 103 regulator-min-microvol 103 regulator-min-microvolt = <1100000>; 104 regulator-max-microvol 104 regulator-max-microvolt = <1100000>; 105 }; 105 }; 106 106 107 vreg_s3a_1p35: smps3 { 107 vreg_s3a_1p35: smps3 { 108 regulator-min-microvol 108 regulator-min-microvolt = <1352000>; 109 regulator-max-microvol 109 regulator-max-microvolt = <1352000>; 110 }; 110 }; 111 111 112 vreg_s5a_2p04: smps5 { 112 vreg_s5a_2p04: smps5 { 113 regulator-min-microvol 113 regulator-min-microvolt = <1904000>; 114 regulator-max-microvol 114 regulator-max-microvolt = <2040000>; 115 }; 115 }; 116 116 117 vreg_s7a_1p025: smps7 { 117 vreg_s7a_1p025: smps7 { 118 regulator-min-microvol 118 regulator-min-microvolt = <900000>; 119 regulator-max-microvol 119 regulator-max-microvolt = <1028000>; 120 }; 120 }; 121 121 122 vdd_qusb_hs0: 122 vdd_qusb_hs0: 123 vdda_hp_pcie_core: 123 vdda_hp_pcie_core: 124 vdda_mipi_csi0_0p9: 124 vdda_mipi_csi0_0p9: 125 vdda_mipi_csi1_0p9: 125 vdda_mipi_csi1_0p9: 126 vdda_mipi_csi2_0p9: 126 vdda_mipi_csi2_0p9: 127 vdda_mipi_dsi0_pll: 127 vdda_mipi_dsi0_pll: 128 vdda_mipi_dsi1_pll: 128 vdda_mipi_dsi1_pll: 129 vdda_qlink_lv: 129 vdda_qlink_lv: 130 vdda_qlink_lv_ck: 130 vdda_qlink_lv_ck: 131 vdda_qrefs_0p875: 131 vdda_qrefs_0p875: 132 vdda_pcie_core: 132 vdda_pcie_core: 133 vdda_pll_cc_ebi01: 133 vdda_pll_cc_ebi01: 134 vdda_pll_cc_ebi23: 134 vdda_pll_cc_ebi23: 135 vdda_sp_sensor: 135 vdda_sp_sensor: 136 vdda_ufs1_core: 136 vdda_ufs1_core: 137 vdda_ufs2_core: 137 vdda_ufs2_core: 138 vdda_usb1_ss_core: 138 vdda_usb1_ss_core: 139 vdda_usb2_ss_core: 139 vdda_usb2_ss_core: 140 vreg_l1a_0p875: ldo1 { 140 vreg_l1a_0p875: ldo1 { 141 regulator-min-microvol 141 regulator-min-microvolt = <880000>; 142 regulator-max-microvol 142 regulator-max-microvolt = <880000>; 143 regulator-initial-mode 143 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 144 }; 144 }; 145 145 146 vddpx_10: 146 vddpx_10: 147 vreg_l2a_1p2: ldo2 { 147 vreg_l2a_1p2: ldo2 { 148 regulator-min-microvol 148 regulator-min-microvolt = <1200000>; 149 regulator-max-microvol 149 regulator-max-microvolt = <1200000>; 150 regulator-initial-mode 150 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 151 regulator-always-on; 151 regulator-always-on; 152 }; 152 }; 153 153 154 vreg_l3a_1p0: ldo3 { 154 vreg_l3a_1p0: ldo3 { 155 regulator-min-microvol 155 regulator-min-microvolt = <1000000>; 156 regulator-max-microvol 156 regulator-max-microvolt = <1000000>; 157 regulator-initial-mode 157 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 158 }; 158 }; 159 159 160 vdd_wcss_cx: 160 vdd_wcss_cx: 161 vdd_wcss_mx: 161 vdd_wcss_mx: 162 vdda_wcss_pll: 162 vdda_wcss_pll: 163 vreg_l5a_0p8: ldo5 { 163 vreg_l5a_0p8: ldo5 { 164 regulator-min-microvol 164 regulator-min-microvolt = <800000>; 165 regulator-max-microvol 165 regulator-max-microvolt = <800000>; 166 regulator-initial-mode 166 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 167 }; 167 }; 168 168 169 vddpx_13: 169 vddpx_13: 170 vreg_l6a_1p8: ldo6 { 170 vreg_l6a_1p8: ldo6 { 171 regulator-min-microvol 171 regulator-min-microvolt = <1856000>; 172 regulator-max-microvol 172 regulator-max-microvolt = <1856000>; 173 regulator-initial-mode 173 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 174 }; 174 }; 175 175 176 vreg_l7a_1p8: ldo7 { 176 vreg_l7a_1p8: ldo7 { 177 regulator-min-microvol 177 regulator-min-microvolt = <1800000>; 178 regulator-max-microvol 178 regulator-max-microvolt = <1800000>; 179 regulator-initial-mode 179 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 180 }; 180 }; 181 181 182 vreg_l8a_1p2: ldo8 { 182 vreg_l8a_1p2: ldo8 { 183 regulator-min-microvol 183 regulator-min-microvolt = <1200000>; 184 regulator-max-microvol 184 regulator-max-microvolt = <1248000>; 185 regulator-initial-mode 185 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 186 }; 186 }; 187 187 188 vreg_l9a_1p8: ldo9 { 188 vreg_l9a_1p8: ldo9 { 189 regulator-min-microvol 189 regulator-min-microvolt = <1704000>; 190 regulator-max-microvol 190 regulator-max-microvolt = <2928000>; 191 regulator-initial-mode 191 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 192 }; 192 }; 193 193 194 vreg_l10a_1p8: ldo10 { 194 vreg_l10a_1p8: ldo10 { 195 regulator-min-microvol 195 regulator-min-microvolt = <1704000>; 196 regulator-max-microvol 196 regulator-max-microvolt = <2928000>; 197 regulator-initial-mode 197 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 198 }; 198 }; 199 199 200 vreg_l11a_1p0: ldo11 { 200 vreg_l11a_1p0: ldo11 { 201 regulator-min-microvol 201 regulator-min-microvolt = <1000000>; 202 regulator-max-microvol 202 regulator-max-microvolt = <1048000>; 203 regulator-initial-mode 203 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 204 }; 204 }; 205 205 206 vdd_qfprom: 206 vdd_qfprom: 207 vdd_qfprom_sp: 207 vdd_qfprom_sp: 208 vdda_apc1_cs_1p8: 208 vdda_apc1_cs_1p8: 209 vdda_gfx_cs_1p8: 209 vdda_gfx_cs_1p8: 210 vdda_qrefs_1p8: 210 vdda_qrefs_1p8: 211 vdda_qusb_hs0_1p8: 211 vdda_qusb_hs0_1p8: 212 vddpx_11: 212 vddpx_11: 213 vreg_l12a_1p8: ldo12 { 213 vreg_l12a_1p8: ldo12 { 214 regulator-min-microvol 214 regulator-min-microvolt = <1800000>; 215 regulator-max-microvol 215 regulator-max-microvolt = <1800000>; 216 regulator-initial-mode 216 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 217 }; 217 }; 218 218 219 vddpx_2: 219 vddpx_2: 220 vreg_l13a_2p95: ldo13 { 220 vreg_l13a_2p95: ldo13 { 221 regulator-min-microvol 221 regulator-min-microvolt = <1800000>; 222 regulator-max-microvol 222 regulator-max-microvolt = <2960000>; 223 regulator-initial-mode 223 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 224 }; 224 }; 225 225 226 vreg_l14a_1p88: ldo14 { 226 vreg_l14a_1p88: ldo14 { 227 regulator-min-microvol 227 regulator-min-microvolt = <1800000>; 228 regulator-max-microvol 228 regulator-max-microvolt = <1800000>; 229 regulator-initial-mode 229 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 230 }; 230 }; 231 231 232 vreg_l15a_1p8: ldo15 { 232 vreg_l15a_1p8: ldo15 { 233 regulator-min-microvol 233 regulator-min-microvolt = <1800000>; 234 regulator-max-microvol 234 regulator-max-microvolt = <1800000>; 235 regulator-initial-mode 235 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 236 }; 236 }; 237 237 238 vreg_l16a_2p7: ldo16 { 238 vreg_l16a_2p7: ldo16 { 239 regulator-min-microvol 239 regulator-min-microvolt = <2704000>; 240 regulator-max-microvol 240 regulator-max-microvolt = <2704000>; 241 regulator-initial-mode 241 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 242 }; 242 }; 243 243 244 vreg_l17a_1p3: ldo17 { 244 vreg_l17a_1p3: ldo17 { 245 regulator-min-microvol 245 regulator-min-microvolt = <1304000>; 246 regulator-max-microvol 246 regulator-max-microvolt = <1304000>; 247 regulator-initial-mode 247 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 248 }; 248 }; 249 249 250 vreg_l18a_2p7: ldo18 { 250 vreg_l18a_2p7: ldo18 { 251 regulator-min-microvol 251 regulator-min-microvolt = <2704000>; 252 regulator-max-microvol 252 regulator-max-microvolt = <2960000>; 253 regulator-initial-mode 253 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 254 }; 254 }; 255 255 256 vreg_l19a_3p0: ldo19 { 256 vreg_l19a_3p0: ldo19 { 257 regulator-min-microvol 257 regulator-min-microvolt = <2856000>; 258 regulator-max-microvol 258 regulator-max-microvolt = <3104000>; 259 regulator-initial-mode 259 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 260 }; 260 }; 261 261 262 vreg_l20a_2p95: ldo20 { 262 vreg_l20a_2p95: ldo20 { 263 regulator-min-microvol 263 regulator-min-microvolt = <2704000>; 264 regulator-max-microvol 264 regulator-max-microvolt = <2960000>; 265 regulator-initial-mode 265 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 266 }; 266 }; 267 267 268 vreg_l21a_2p95: ldo21 { 268 vreg_l21a_2p95: ldo21 { 269 regulator-min-microvol 269 regulator-min-microvolt = <2704000>; 270 regulator-max-microvol 270 regulator-max-microvolt = <2960000>; 271 regulator-initial-mode 271 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 272 }; 272 }; 273 273 274 vreg_l22a_2p85: ldo22 { 274 vreg_l22a_2p85: ldo22 { 275 regulator-min-microvol 275 regulator-min-microvolt = <2864000>; 276 regulator-max-microvol 276 regulator-max-microvolt = <3312000>; 277 regulator-initial-mode 277 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 278 }; 278 }; 279 279 280 vreg_l23a_3p3: ldo23 { 280 vreg_l23a_3p3: ldo23 { 281 regulator-min-microvol 281 regulator-min-microvolt = <3000000>; 282 regulator-max-microvol 282 regulator-max-microvolt = <3312000>; 283 regulator-initial-mode 283 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 284 }; 284 }; 285 285 286 vdda_qusb_hs0_3p1: 286 vdda_qusb_hs0_3p1: 287 vreg_l24a_3p075: ldo24 { 287 vreg_l24a_3p075: ldo24 { 288 regulator-min-microvol 288 regulator-min-microvolt = <3088000>; 289 regulator-max-microvol 289 regulator-max-microvolt = <3088000>; 290 regulator-initial-mode 290 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 291 }; 291 }; 292 292 293 vreg_l25a_3p3: ldo25 { 293 vreg_l25a_3p3: ldo25 { 294 regulator-min-microvol 294 regulator-min-microvolt = <3300000>; 295 regulator-max-microvol 295 regulator-max-microvolt = <3312000>; 296 regulator-initial-mode 296 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 297 }; 297 }; 298 298 299 vdda_hp_pcie_1p2: 299 vdda_hp_pcie_1p2: 300 vdda_hv_ebi0: 300 vdda_hv_ebi0: 301 vdda_hv_ebi1: 301 vdda_hv_ebi1: 302 vdda_hv_ebi2: 302 vdda_hv_ebi2: 303 vdda_hv_ebi3: 303 vdda_hv_ebi3: 304 vdda_mipi_csi_1p25: 304 vdda_mipi_csi_1p25: 305 vdda_mipi_dsi0_1p2: 305 vdda_mipi_dsi0_1p2: 306 vdda_mipi_dsi1_1p2: 306 vdda_mipi_dsi1_1p2: 307 vdda_pcie_1p2: 307 vdda_pcie_1p2: 308 vdda_ufs1_1p2: 308 vdda_ufs1_1p2: 309 vdda_ufs2_1p2: 309 vdda_ufs2_1p2: 310 vdda_usb1_ss_1p2: 310 vdda_usb1_ss_1p2: 311 vdda_usb2_ss_1p2: 311 vdda_usb2_ss_1p2: 312 vreg_l26a_1p2: ldo26 { 312 vreg_l26a_1p2: ldo26 { 313 regulator-min-microvol 313 regulator-min-microvolt = <1200000>; 314 regulator-max-microvol 314 regulator-max-microvolt = <1200000>; 315 regulator-initial-mode 315 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 316 }; 316 }; 317 317 318 vreg_l28a_3p0: ldo28 { 318 vreg_l28a_3p0: ldo28 { 319 regulator-min-microvol 319 regulator-min-microvolt = <2856000>; 320 regulator-max-microvol 320 regulator-max-microvolt = <3008000>; 321 regulator-initial-mode 321 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 322 }; 322 }; 323 323 324 vreg_lvs1a_1p8: lvs1 { 324 vreg_lvs1a_1p8: lvs1 { 325 regulator-min-microvol 325 regulator-min-microvolt = <1800000>; 326 regulator-max-microvol 326 regulator-max-microvolt = <1800000>; 327 }; 327 }; 328 328 329 vreg_lvs2a_1p8: lvs2 { 329 vreg_lvs2a_1p8: lvs2 { 330 regulator-min-microvol 330 regulator-min-microvolt = <1800000>; 331 regulator-max-microvol 331 regulator-max-microvolt = <1800000>; 332 }; 332 }; 333 }; 333 }; 334 334 335 regulators-1 { 335 regulators-1 { 336 compatible = "qcom,pm8005-rpmh 336 compatible = "qcom,pm8005-rpmh-regulators"; 337 qcom,pmic-id = "c"; 337 qcom,pmic-id = "c"; 338 338 339 vdd-s1-supply = <&vph_pwr>; 339 vdd-s1-supply = <&vph_pwr>; 340 vdd-s2-supply = <&vph_pwr>; 340 vdd-s2-supply = <&vph_pwr>; 341 vdd-s3-supply = <&vph_pwr>; 341 vdd-s3-supply = <&vph_pwr>; 342 vdd-s4-supply = <&vph_pwr>; 342 vdd-s4-supply = <&vph_pwr>; 343 343 344 vreg_s3c_0p6: smps3 { 344 vreg_s3c_0p6: smps3 { 345 regulator-min-microvol 345 regulator-min-microvolt = <600000>; 346 regulator-max-microvol 346 regulator-max-microvolt = <600000>; 347 }; 347 }; 348 }; 348 }; 349 }; 349 }; 350 350 351 &gcc { 351 &gcc { 352 protected-clocks = <GCC_QSPI_CORE_CLK> 352 protected-clocks = <GCC_QSPI_CORE_CLK>, 353 <GCC_QSPI_CORE 353 <GCC_QSPI_CORE_CLK_SRC>, 354 <GCC_QSPI_CNOC 354 <GCC_QSPI_CNOC_PERIPH_AHB_CLK>, 355 <GCC_LPASS_Q6_ 355 <GCC_LPASS_Q6_AXI_CLK>, 356 <GCC_LPASS_SWA 356 <GCC_LPASS_SWAY_CLK>; 357 }; 357 }; 358 358 359 &i2c10 { 359 &i2c10 { 360 clock-frequency = <400000>; 360 clock-frequency = <400000>; 361 status = "okay"; 361 status = "okay"; 362 }; 362 }; 363 363 364 &qupv3_id_1 { 364 &qupv3_id_1 { 365 status = "okay"; 365 status = "okay"; 366 }; 366 }; 367 367 368 &uart9 { 368 &uart9 { 369 status = "okay"; 369 status = "okay"; 370 }; 370 }; 371 371 372 &ufs_mem_hc { 372 &ufs_mem_hc { 373 reset-gpios = <&tlmm 150 GPIO_ACTIVE_L 373 reset-gpios = <&tlmm 150 GPIO_ACTIVE_LOW>; 374 vcc-supply = <&vreg_l20a_2p95>; 374 vcc-supply = <&vreg_l20a_2p95>; 375 vcc-max-microamp = <600000>; 375 vcc-max-microamp = <600000>; 376 status = "okay"; 376 status = "okay"; 377 }; 377 }; 378 378 379 &ufs_mem_phy { 379 &ufs_mem_phy { 380 vdda-phy-supply = <&vdda_ufs1_core>; 380 vdda-phy-supply = <&vdda_ufs1_core>; 381 vdda-pll-supply = <&vdda_ufs1_1p2>; 381 vdda-pll-supply = <&vdda_ufs1_1p2>; 382 status = "okay"; 382 status = "okay"; 383 }; 383 }; 384 384 385 &sdhc_2 { 385 &sdhc_2 { 386 pinctrl-names = "default"; 386 pinctrl-names = "default"; 387 pinctrl-0 = <&sdc2_clk_state &sdc2_cmd 387 pinctrl-0 = <&sdc2_clk_state &sdc2_cmd_state &sdc2_data_state &sd_card_det_n_state>; 388 cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW> 388 cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>; 389 vmmc-supply = <&vreg_l21a_2p95>; 389 vmmc-supply = <&vreg_l21a_2p95>; 390 vqmmc-supply = <&vddpx_2>; 390 vqmmc-supply = <&vddpx_2>; 391 status = "okay"; 391 status = "okay"; 392 }; 392 }; 393 393 394 &usb_1 { 394 &usb_1 { 395 status = "okay"; 395 status = "okay"; 396 }; 396 }; 397 397 398 &usb_1_dwc3 { 398 &usb_1_dwc3 { 399 /* Until we have Type C hooked up we'l 399 /* Until we have Type C hooked up we'll force this as peripheral. */ 400 dr_mode = "peripheral"; 400 dr_mode = "peripheral"; 401 }; 401 }; 402 402 403 &usb_1_hsphy { 403 &usb_1_hsphy { 404 vdd-supply = <&vdda_usb1_ss_core>; 404 vdd-supply = <&vdda_usb1_ss_core>; 405 vdda-pll-supply = <&vdda_qusb_hs0_1p8> 405 vdda-pll-supply = <&vdda_qusb_hs0_1p8>; 406 vdda-phy-dpdm-supply = <&vdda_qusb_hs0 406 vdda-phy-dpdm-supply = <&vdda_qusb_hs0_3p1>; 407 407 408 qcom,imp-res-offset-value = <8>; 408 qcom,imp-res-offset-value = <8>; 409 qcom,hstx-trim-value = <QUSB2_V2_HSTX_ 409 qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_21_6_MA>; 410 qcom,preemphasis-level = <QUSB2_V2_PRE 410 qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_5_PERCENT>; 411 qcom,preemphasis-width = <QUSB2_V2_PRE 411 qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>; 412 status = "okay"; 412 status = "okay"; 413 }; 413 }; 414 414 415 &usb_1_qmpphy { 415 &usb_1_qmpphy { 416 vdda-phy-supply = <&vdda_usb1_ss_1p2>; 416 vdda-phy-supply = <&vdda_usb1_ss_1p2>; 417 vdda-pll-supply = <&vdda_usb1_ss_core> 417 vdda-pll-supply = <&vdda_usb1_ss_core>; 418 status = "okay"; 418 status = "okay"; 419 }; 419 }; 420 420 421 &wifi { 421 &wifi { 422 vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8> 422 vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>; 423 vdd-1.8-xo-supply = <&vreg_l7a_1p8>; 423 vdd-1.8-xo-supply = <&vreg_l7a_1p8>; 424 vdd-1.3-rfa-supply = <&vreg_l17a_1p3>; 424 vdd-1.3-rfa-supply = <&vreg_l17a_1p3>; 425 vdd-3.3-ch0-supply = <&vreg_l25a_3p3>; 425 vdd-3.3-ch0-supply = <&vreg_l25a_3p3>; 426 status = "okay"; 426 status = "okay"; 427 }; 427 }; 428 428 429 &tlmm { 429 &tlmm { 430 gpio-reserved-ranges = <0 4>, <27 4>, 430 gpio-reserved-ranges = <0 4>, <27 4>, <81 4>, <85 4>; 431 431 432 sdc2_clk_state: sdc2-clk-state { 432 sdc2_clk_state: sdc2-clk-state { 433 pins = "sdc2_clk"; 433 pins = "sdc2_clk"; 434 bias-disable; 434 bias-disable; 435 435 436 /* 436 /* 437 * It seems that mmc_test repo 437 * It seems that mmc_test reports errors if drive 438 * strength is not 16 on clk, 438 * strength is not 16 on clk, cmd, and data pins. 439 */ 439 */ 440 drive-strength = <16>; 440 drive-strength = <16>; 441 }; 441 }; 442 442 443 sdc2_cmd_state: sdc2-cmd-state { 443 sdc2_cmd_state: sdc2-cmd-state { 444 pins = "sdc2_cmd"; 444 pins = "sdc2_cmd"; 445 bias-pull-up; 445 bias-pull-up; 446 drive-strength = <16>; 446 drive-strength = <16>; 447 }; 447 }; 448 448 449 sdc2_data_state: sdc2-data-state { 449 sdc2_data_state: sdc2-data-state { 450 pins = "sdc2_data"; 450 pins = "sdc2_data"; 451 bias-pull-up; 451 bias-pull-up; 452 drive-strength = <16>; 452 drive-strength = <16>; 453 }; 453 }; 454 454 455 sd_card_det_n_state: sd-card-det-n-sta 455 sd_card_det_n_state: sd-card-det-n-state { 456 pins = "gpio126"; 456 pins = "gpio126"; 457 function = "gpio"; 457 function = "gpio"; 458 bias-pull-up; 458 bias-pull-up; 459 }; 459 }; 460 }; 460 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.