1 // SPDX-License-Identifier: BSD-3-Clause 1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 2 /* 3 * Copyright (c) 2021, Linaro Limited 3 * Copyright (c) 2021, Linaro Limited 4 */ 4 */ 5 5 6 /dts-v1/; 6 /dts-v1/; 7 7 8 #include <dt-bindings/regulator/qcom,rpmh-regu 8 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 9 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/gpio/gpio.h> 10 #include "sa8155p.dtsi" !! 10 #include "sm8150.dtsi" 11 #include "pmm8155au_1.dtsi" 11 #include "pmm8155au_1.dtsi" 12 #include "pmm8155au_2.dtsi" 12 #include "pmm8155au_2.dtsi" 13 13 14 / { 14 / { 15 model = "Qualcomm Technologies, Inc. S 15 model = "Qualcomm Technologies, Inc. SA8155P ADP"; 16 compatible = "qcom,sa8155p-adp", "qcom 16 compatible = "qcom,sa8155p-adp", "qcom,sa8155p"; 17 17 18 aliases { 18 aliases { 19 serial0 = &uart2; 19 serial0 = &uart2; 20 serial1 = &uart9; << 21 }; 20 }; 22 21 23 chosen { 22 chosen { 24 stdout-path = "serial0:115200n 23 stdout-path = "serial0:115200n8"; 25 }; 24 }; 26 25 27 vreg_3p3: vreg-3p3-regulator { !! 26 vreg_3p3: vreg_3p3_regulator { 28 compatible = "regulator-fixed" 27 compatible = "regulator-fixed"; 29 regulator-name = "vreg_3p3"; 28 regulator-name = "vreg_3p3"; 30 regulator-min-microvolt = <330 29 regulator-min-microvolt = <3300000>; 31 regulator-max-microvolt = <330 30 regulator-max-microvolt = <3300000>; 32 }; 31 }; 33 32 34 /* 33 /* 35 * S4A is always on and not controllab 34 * S4A is always on and not controllable through RPMh. 36 * So model it as a fixed regulator. 35 * So model it as a fixed regulator. 37 */ 36 */ 38 vreg_s4a_1p8: smps4 { 37 vreg_s4a_1p8: smps4 { 39 compatible = "regulator-fixed" 38 compatible = "regulator-fixed"; 40 regulator-name = "vreg_s4a_1p8 39 regulator-name = "vreg_s4a_1p8"; 41 40 42 regulator-min-microvolt = <180 41 regulator-min-microvolt = <1800000>; 43 regulator-max-microvolt = <180 42 regulator-max-microvolt = <1800000>; 44 43 45 regulator-always-on; 44 regulator-always-on; 46 regulator-boot-on; 45 regulator-boot-on; 47 46 48 vin-supply = <&vreg_3p3>; 47 vin-supply = <&vreg_3p3>; 49 }; 48 }; >> 49 >> 50 mtl_rx_setup: rx-queues-config { >> 51 snps,rx-queues-to-use = <1>; >> 52 snps,rx-sched-sp; >> 53 >> 54 queue0 { >> 55 snps,dcb-algorithm; >> 56 snps,map-to-dma-channel = <0x0>; >> 57 snps,route-up; >> 58 snps,priority = <0x1>; >> 59 }; >> 60 }; >> 61 >> 62 mtl_tx_setup: tx-queues-config { >> 63 snps,tx-queues-to-use = <1>; >> 64 snps,tx-sched-wrr; >> 65 >> 66 queue0 { >> 67 snps,weight = <0x10>; >> 68 snps,dcb-algorithm; >> 69 snps,priority = <0x0>; >> 70 }; >> 71 }; 50 }; 72 }; 51 73 52 &apps_rsc { 74 &apps_rsc { 53 regulators-0 { !! 75 pmm8155au-1-rpmh-regulators { 54 compatible = "qcom,pmm8155au-r 76 compatible = "qcom,pmm8155au-rpmh-regulators"; 55 qcom,pmic-id = "a"; 77 qcom,pmic-id = "a"; 56 78 57 vdd-s1-supply = <&vreg_3p3>; 79 vdd-s1-supply = <&vreg_3p3>; 58 vdd-s2-supply = <&vreg_3p3>; 80 vdd-s2-supply = <&vreg_3p3>; 59 vdd-s3-supply = <&vreg_3p3>; 81 vdd-s3-supply = <&vreg_3p3>; 60 vdd-s4-supply = <&vreg_3p3>; 82 vdd-s4-supply = <&vreg_3p3>; 61 vdd-s5-supply = <&vreg_3p3>; 83 vdd-s5-supply = <&vreg_3p3>; 62 vdd-s6-supply = <&vreg_3p3>; 84 vdd-s6-supply = <&vreg_3p3>; 63 vdd-s7-supply = <&vreg_3p3>; 85 vdd-s7-supply = <&vreg_3p3>; 64 vdd-s8-supply = <&vreg_3p3>; 86 vdd-s8-supply = <&vreg_3p3>; 65 vdd-s9-supply = <&vreg_3p3>; 87 vdd-s9-supply = <&vreg_3p3>; 66 vdd-s10-supply = <&vreg_3p3>; 88 vdd-s10-supply = <&vreg_3p3>; 67 89 68 vdd-l1-l8-l11-supply = <&vreg_ 90 vdd-l1-l8-l11-supply = <&vreg_s6a_0p92>; 69 vdd-l2-l10-supply = <&vreg_3p3 91 vdd-l2-l10-supply = <&vreg_3p3>; 70 vdd-l3-l4-l5-l18-supply = <&vr 92 vdd-l3-l4-l5-l18-supply = <&vreg_s6a_0p92>; 71 vdd-l6-l9-supply = <&vreg_s6a_ 93 vdd-l6-l9-supply = <&vreg_s6a_0p92>; 72 vdd-l7-l12-l14-l15-supply = <& 94 vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p04>; 73 vdd-l13-l16-l17-supply = <&vre 95 vdd-l13-l16-l17-supply = <&vreg_3p3>; 74 96 75 vreg_s5a_2p04: smps5 { 97 vreg_s5a_2p04: smps5 { 76 regulator-name = "vreg 98 regulator-name = "vreg_s5a_2p04"; 77 regulator-min-microvol 99 regulator-min-microvolt = <1904000>; 78 regulator-max-microvol 100 regulator-max-microvolt = <2000000>; 79 }; 101 }; 80 102 81 vreg_s6a_0p92: smps6 { 103 vreg_s6a_0p92: smps6 { 82 regulator-name = "vreg 104 regulator-name = "vreg_s6a_0p92"; 83 regulator-min-microvol 105 regulator-min-microvolt = <920000>; 84 regulator-max-microvol 106 regulator-max-microvolt = <1128000>; 85 }; 107 }; 86 108 87 vreg_l1a_0p752: ldo1 { 109 vreg_l1a_0p752: ldo1 { 88 regulator-name = "vreg 110 regulator-name = "vreg_l1a_0p752"; 89 regulator-min-microvol 111 regulator-min-microvolt = <752000>; 90 regulator-max-microvol 112 regulator-max-microvolt = <752000>; 91 regulator-initial-mode 113 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 92 }; 114 }; 93 115 94 vdda_usb_hs_3p1: 116 vdda_usb_hs_3p1: 95 vreg_l2a_3p072: ldo2 { 117 vreg_l2a_3p072: ldo2 { 96 regulator-name = "vreg 118 regulator-name = "vreg_l2a_3p072"; 97 regulator-min-microvol 119 regulator-min-microvolt = <3072000>; 98 regulator-max-microvol 120 regulator-max-microvolt = <3072000>; 99 regulator-initial-mode 121 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 100 }; 122 }; 101 123 102 vreg_l3a_0p8: ldo3 { 124 vreg_l3a_0p8: ldo3 { 103 regulator-name = "vreg 125 regulator-name = "vreg_l3a_0p8"; 104 regulator-min-microvol 126 regulator-min-microvolt = <800000>; 105 regulator-max-microvol 127 regulator-max-microvolt = <800000>; 106 regulator-initial-mode 128 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 107 }; 129 }; 108 130 109 vdd_usb_hs_core: 131 vdd_usb_hs_core: 110 vdda_usb_ss_dp_core_1: 132 vdda_usb_ss_dp_core_1: 111 vreg_l5a_0p88: ldo5 { 133 vreg_l5a_0p88: ldo5 { 112 regulator-name = "vreg 134 regulator-name = "vreg_l5a_0p88"; 113 regulator-min-microvol 135 regulator-min-microvolt = <880000>; 114 regulator-max-microvol 136 regulator-max-microvolt = <880000>; 115 regulator-initial-mode 137 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 116 regulator-allow-set-lo 138 regulator-allow-set-load; 117 regulator-allowed-mode !! 139 regulator-allowed-modes = 118 !! 140 <RPMH_REGULATOR_MODE_LPM >> 141 RPMH_REGULATOR_MODE_HPM>; 119 }; 142 }; 120 143 121 vreg_l7a_1p8: ldo7 { 144 vreg_l7a_1p8: ldo7 { 122 regulator-name = "vreg 145 regulator-name = "vreg_l7a_1p8"; 123 regulator-min-microvol 146 regulator-min-microvolt = <1800000>; 124 regulator-max-microvol 147 regulator-max-microvolt = <1800000>; 125 regulator-initial-mode 148 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 126 }; 149 }; 127 150 128 vreg_l10a_2p96: ldo10 { 151 vreg_l10a_2p96: ldo10 { 129 regulator-name = "vreg 152 regulator-name = "vreg_l10a_2p96"; 130 regulator-min-microvol 153 regulator-min-microvolt = <2504000>; 131 regulator-max-microvol 154 regulator-max-microvolt = <2960000>; 132 regulator-initial-mode 155 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 133 regulator-allow-set-lo 156 regulator-allow-set-load; 134 regulator-allowed-mode !! 157 regulator-allowed-modes = 135 !! 158 <RPMH_REGULATOR_MODE_LPM >> 159 RPMH_REGULATOR_MODE_HPM>; 136 }; 160 }; 137 161 138 vreg_l11a_0p8: ldo11 { 162 vreg_l11a_0p8: ldo11 { 139 regulator-name = "vreg 163 regulator-name = "vreg_l11a_0p8"; 140 regulator-min-microvol 164 regulator-min-microvolt = <800000>; 141 regulator-max-microvol 165 regulator-max-microvolt = <800000>; 142 regulator-initial-mode 166 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 143 }; 167 }; 144 168 145 vdda_usb_hs_1p8: 169 vdda_usb_hs_1p8: 146 vreg_l12a_1p8: ldo12 { 170 vreg_l12a_1p8: ldo12 { 147 regulator-name = "vreg 171 regulator-name = "vreg_l12a_1p8"; 148 regulator-min-microvol 172 regulator-min-microvolt = <1800000>; 149 regulator-max-microvol 173 regulator-max-microvolt = <1800000>; 150 regulator-initial-mode 174 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 151 }; 175 }; 152 176 153 vreg_l13a_2p7: ldo13 { 177 vreg_l13a_2p7: ldo13 { 154 regulator-name = "vreg 178 regulator-name = "vreg_l13a_2p7"; 155 regulator-min-microvol 179 regulator-min-microvolt = <2704000>; 156 regulator-max-microvol 180 regulator-max-microvolt = <2704000>; 157 regulator-initial-mode 181 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 158 }; 182 }; 159 183 160 vreg_l15a_1p7: ldo15 { 184 vreg_l15a_1p7: ldo15 { 161 regulator-name = "vreg 185 regulator-name = "vreg_l15a_1p7"; 162 regulator-min-microvol 186 regulator-min-microvolt = <1704000>; 163 regulator-max-microvol 187 regulator-max-microvolt = <1704000>; 164 regulator-initial-mode 188 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 165 }; 189 }; 166 190 167 vreg_l16a_2p7: ldo16 { 191 vreg_l16a_2p7: ldo16 { 168 regulator-name = "vreg 192 regulator-name = "vreg_l16a_2p7"; 169 regulator-min-microvol 193 regulator-min-microvolt = <2704000>; 170 regulator-max-microvol 194 regulator-max-microvolt = <2960000>; 171 regulator-initial-mode 195 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 172 }; 196 }; 173 197 174 vreg_l17a_2p96: ldo17 { 198 vreg_l17a_2p96: ldo17 { 175 regulator-name = "vreg 199 regulator-name = "vreg_l17a_2p96"; 176 regulator-min-microvol 200 regulator-min-microvolt = <2504000>; 177 regulator-max-microvol 201 regulator-max-microvolt = <2960000>; 178 regulator-initial-mode 202 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 179 }; 203 }; 180 }; 204 }; 181 205 182 regulators-1 { !! 206 pmm8155au-2-rpmh-regulators { 183 compatible = "qcom,pmm8155au-r 207 compatible = "qcom,pmm8155au-rpmh-regulators"; 184 qcom,pmic-id = "c"; 208 qcom,pmic-id = "c"; 185 209 186 vdd-s1-supply = <&vreg_3p3>; 210 vdd-s1-supply = <&vreg_3p3>; 187 vdd-s2-supply = <&vreg_3p3>; 211 vdd-s2-supply = <&vreg_3p3>; 188 vdd-s3-supply = <&vreg_3p3>; 212 vdd-s3-supply = <&vreg_3p3>; 189 vdd-s4-supply = <&vreg_3p3>; 213 vdd-s4-supply = <&vreg_3p3>; 190 vdd-s5-supply = <&vreg_3p3>; 214 vdd-s5-supply = <&vreg_3p3>; 191 vdd-s6-supply = <&vreg_3p3>; 215 vdd-s6-supply = <&vreg_3p3>; 192 vdd-s7-supply = <&vreg_3p3>; 216 vdd-s7-supply = <&vreg_3p3>; 193 vdd-s8-supply = <&vreg_3p3>; 217 vdd-s8-supply = <&vreg_3p3>; 194 vdd-s9-supply = <&vreg_3p3>; 218 vdd-s9-supply = <&vreg_3p3>; 195 vdd-s10-supply = <&vreg_3p3>; 219 vdd-s10-supply = <&vreg_3p3>; 196 220 197 vdd-l1-l8-l11-supply = <&vreg_ 221 vdd-l1-l8-l11-supply = <&vreg_s4c_1p352>; 198 vdd-l2-l10-supply = <&vreg_3p3 222 vdd-l2-l10-supply = <&vreg_3p3>; 199 vdd-l3-l4-l5-l18-supply = <&vr 223 vdd-l3-l4-l5-l18-supply = <&vreg_s4c_1p352>; 200 vdd-l6-l9-supply = <&vreg_s6c_ 224 vdd-l6-l9-supply = <&vreg_s6c_1p128>; 201 vdd-l7-l12-l14-l15-supply = <& 225 vdd-l7-l12-l14-l15-supply = <&vreg_s5c_2p04>; 202 vdd-l13-l16-l17-supply = <&vre 226 vdd-l13-l16-l17-supply = <&vreg_3p3>; 203 227 204 vreg_s4c_1p352: smps4 { 228 vreg_s4c_1p352: smps4 { 205 regulator-name = "vreg 229 regulator-name = "vreg_s4c_1p352"; 206 regulator-min-microvol 230 regulator-min-microvolt = <1352000>; 207 regulator-max-microvol 231 regulator-max-microvolt = <1352000>; 208 }; 232 }; 209 233 210 vreg_s5c_2p04: smps5 { 234 vreg_s5c_2p04: smps5 { 211 regulator-name = "vreg 235 regulator-name = "vreg_s5c_2p04"; 212 regulator-min-microvol 236 regulator-min-microvolt = <1904000>; 213 regulator-max-microvol 237 regulator-max-microvolt = <2000000>; 214 }; 238 }; 215 239 216 vreg_s6c_1p128: smps6 { 240 vreg_s6c_1p128: smps6 { 217 regulator-name = "vreg 241 regulator-name = "vreg_s6c_1p128"; 218 regulator-min-microvol 242 regulator-min-microvolt = <1128000>; 219 regulator-max-microvol 243 regulator-max-microvolt = <1128000>; 220 }; 244 }; 221 245 222 vreg_l1c_1p304: ldo1 { 246 vreg_l1c_1p304: ldo1 { 223 regulator-name = "vreg 247 regulator-name = "vreg_l1c_1p304"; 224 regulator-min-microvol 248 regulator-min-microvolt = <1304000>; 225 regulator-max-microvol 249 regulator-max-microvolt = <1304000>; 226 regulator-initial-mode 250 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 227 }; 251 }; 228 252 229 vreg_l2c_1p808: ldo2 { 253 vreg_l2c_1p808: ldo2 { 230 regulator-name = "vreg 254 regulator-name = "vreg_l2c_1p808"; 231 regulator-min-microvol 255 regulator-min-microvolt = <1704000>; 232 regulator-max-microvol 256 regulator-max-microvolt = <2928000>; 233 regulator-initial-mode 257 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 234 }; 258 }; 235 259 236 vreg_l5c_1p2: ldo5 { 260 vreg_l5c_1p2: ldo5 { 237 regulator-name = "vreg 261 regulator-name = "vreg_l5c_1p2"; 238 regulator-min-microvol 262 regulator-min-microvolt = <1200000>; 239 regulator-max-microvol 263 regulator-max-microvolt = <1200000>; 240 regulator-initial-mode 264 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 241 regulator-allow-set-lo 265 regulator-allow-set-load; 242 regulator-allowed-mode !! 266 regulator-allowed-modes = 243 !! 267 <RPMH_REGULATOR_MODE_LPM >> 268 RPMH_REGULATOR_MODE_HPM>; 244 }; 269 }; 245 270 246 vreg_l7c_1p8: ldo7 { 271 vreg_l7c_1p8: ldo7 { 247 regulator-name = "vreg 272 regulator-name = "vreg_l7c_1p8"; 248 regulator-min-microvol 273 regulator-min-microvolt = <1800000>; 249 regulator-max-microvol 274 regulator-max-microvolt = <1800000>; 250 regulator-initial-mode 275 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 251 }; 276 }; 252 277 253 vreg_l8c_1p2: ldo8 { 278 vreg_l8c_1p2: ldo8 { 254 regulator-name = "vreg 279 regulator-name = "vreg_l8c_1p2"; 255 regulator-min-microvol 280 regulator-min-microvolt = <1200000>; 256 regulator-max-microvol 281 regulator-max-microvolt = <1200000>; 257 regulator-initial-mode 282 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 258 regulator-allow-set-lo 283 regulator-allow-set-load; 259 regulator-allowed-mode !! 284 regulator-allowed-modes = 260 !! 285 <RPMH_REGULATOR_MODE_LPM >> 286 RPMH_REGULATOR_MODE_HPM>; 261 }; 287 }; 262 288 263 vreg_l10c_3p3: ldo10 { 289 vreg_l10c_3p3: ldo10 { 264 regulator-name = "vreg 290 regulator-name = "vreg_l10c_3p3"; 265 regulator-min-microvol 291 regulator-min-microvolt = <3000000>; 266 regulator-max-microvol 292 regulator-max-microvolt = <3312000>; 267 regulator-initial-mode 293 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 268 }; 294 }; 269 295 270 vreg_l11c_0p8: ldo11 { 296 vreg_l11c_0p8: ldo11 { 271 regulator-name = "vreg 297 regulator-name = "vreg_l11c_0p8"; 272 regulator-min-microvol 298 regulator-min-microvolt = <800000>; 273 regulator-max-microvol 299 regulator-max-microvolt = <800000>; 274 regulator-initial-mode 300 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 275 }; 301 }; 276 302 277 vreg_l12c_1p808: ldo12 { 303 vreg_l12c_1p808: ldo12 { 278 regulator-name = "vreg 304 regulator-name = "vreg_l12c_1p808"; 279 regulator-min-microvol 305 regulator-min-microvolt = <1704000>; 280 regulator-max-microvol 306 regulator-max-microvolt = <2928000>; 281 regulator-initial-mode 307 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 282 }; 308 }; 283 309 284 vreg_l13c_2p96: ldo13 { 310 vreg_l13c_2p96: ldo13 { 285 regulator-name = "vreg 311 regulator-name = "vreg_l13c_2p96"; 286 regulator-min-microvol !! 312 regulator-min-microvolt = <2504000>; 287 regulator-max-microvol 313 regulator-max-microvolt = <2960000>; 288 regulator-initial-mode 314 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 289 }; 315 }; 290 316 291 vreg_l15c_1p9: ldo15 { 317 vreg_l15c_1p9: ldo15 { 292 regulator-name = "vreg 318 regulator-name = "vreg_l15c_1p9"; 293 regulator-min-microvol 319 regulator-min-microvolt = <1704000>; 294 regulator-max-microvol 320 regulator-max-microvolt = <2928000>; 295 regulator-initial-mode 321 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 296 }; 322 }; 297 323 298 vreg_l16c_3p008: ldo16 { 324 vreg_l16c_3p008: ldo16 { 299 regulator-name = "vreg 325 regulator-name = "vreg_l16c_3p008"; 300 regulator-min-microvol 326 regulator-min-microvolt = <3008000>; 301 regulator-max-microvol 327 regulator-max-microvolt = <3008000>; 302 regulator-initial-mode 328 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 303 }; 329 }; 304 330 305 vreg_l18c_0p88: ldo18 { 331 vreg_l18c_0p88: ldo18 { 306 regulator-name = "vreg 332 regulator-name = "vreg_l18c_0p88"; 307 regulator-min-microvol 333 regulator-min-microvolt = <880000>; 308 regulator-max-microvol 334 regulator-max-microvolt = <880000>; 309 regulator-initial-mode 335 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 310 }; 336 }; 311 }; 337 }; 312 }; 338 }; 313 339 314 ðernet { 340 ðernet { 315 status = "okay"; 341 status = "okay"; 316 342 317 snps,reset-gpio = <&tlmm 79 GPIO_ACTIV 343 snps,reset-gpio = <&tlmm 79 GPIO_ACTIVE_LOW>; 318 snps,reset-active-low; 344 snps,reset-active-low; 319 snps,reset-delays-us = <0 11000 70000> 345 snps,reset-delays-us = <0 11000 70000>; 320 346 >> 347 snps,ptp-ref-clk-rate = <250000000>; >> 348 snps,ptp-req-clk-rate = <96000000>; >> 349 321 snps,mtl-rx-config = <&mtl_rx_setup>; 350 snps,mtl-rx-config = <&mtl_rx_setup>; 322 snps,mtl-tx-config = <&mtl_tx_setup>; 351 snps,mtl-tx-config = <&mtl_tx_setup>; 323 352 324 pinctrl-names = "default"; 353 pinctrl-names = "default"; 325 pinctrl-0 = <ðernet_defaults>; 354 pinctrl-0 = <ðernet_defaults>; 326 355 327 phy-handle = <&rgmii_phy>; 356 phy-handle = <&rgmii_phy>; 328 phy-mode = "rgmii"; 357 phy-mode = "rgmii"; 329 max-speed = <1000>; 358 max-speed = <1000>; 330 359 331 mdio { 360 mdio { >> 361 #address-cells = <0x1>; >> 362 #size-cells = <0x0>; >> 363 332 compatible = "snps,dwmac-mdio" 364 compatible = "snps,dwmac-mdio"; 333 #address-cells = <1>; << 334 #size-cells = <0>; << 335 365 336 /* Micrel KSZ9031RNZ PHY */ 366 /* Micrel KSZ9031RNZ PHY */ 337 rgmii_phy: phy@7 { 367 rgmii_phy: phy@7 { 338 compatible = "ethernet << 339 reg = <0x7>; 368 reg = <0x7>; 340 369 341 interrupts-extended = !! 370 interrupt-parent = <&tlmm>; >> 371 interrupts-extended = <&tlmm 124 IRQ_TYPE_EDGE_FALLING>; /* phy intr */ 342 device_type = "etherne 372 device_type = "ethernet-phy"; 343 }; !! 373 compatible = "ethernet-phy-ieee802.3-c22"; 344 }; << 345 << 346 mtl_rx_setup: rx-queues-config { << 347 snps,rx-queues-to-use = <1>; << 348 snps,rx-sched-sp; << 349 << 350 queue0 { << 351 snps,dcb-algorithm; << 352 snps,map-to-dma-channe << 353 snps,route-up; << 354 snps,priority = <0x1>; << 355 }; << 356 }; << 357 << 358 mtl_tx_setup: tx-queues-config { << 359 snps,tx-queues-to-use = <1>; << 360 snps,tx-sched-wrr; << 361 << 362 queue0 { << 363 snps,weight = <0x10>; << 364 snps,dcb-algorithm; << 365 snps,priority = <0x0>; << 366 }; 374 }; 367 }; 375 }; 368 }; 376 }; 369 377 370 &pmm8155au_1_gpios { << 371 pmm8155au_1_sdc2_cd: sdc2-cd-default-s << 372 pins = "gpio4"; << 373 function = "normal"; << 374 input-enable; << 375 bias-pull-up; << 376 power-source = <0>; << 377 }; << 378 }; << 379 << 380 &qupv3_id_1 { 378 &qupv3_id_1 { 381 status = "okay"; 379 status = "okay"; 382 }; 380 }; 383 381 384 &remoteproc_adsp { 382 &remoteproc_adsp { 385 status = "okay"; 383 status = "okay"; 386 firmware-name = "qcom/sa8155p/adsp.mdt 384 firmware-name = "qcom/sa8155p/adsp.mdt"; 387 }; 385 }; 388 386 389 &remoteproc_cdsp { 387 &remoteproc_cdsp { 390 status = "okay"; 388 status = "okay"; 391 firmware-name = "qcom/sa8155p/cdsp.mdt 389 firmware-name = "qcom/sa8155p/cdsp.mdt"; 392 }; 390 }; 393 391 394 &sdhc_2 { 392 &sdhc_2 { 395 status = "okay"; 393 status = "okay"; 396 394 397 cd-gpios = <&pmm8155au_1_gpios 4 GPIO_ !! 395 cd-gpios = <&tlmm 4 GPIO_ACTIVE_LOW>; 398 pinctrl-names = "default", "sleep"; 396 pinctrl-names = "default", "sleep"; 399 pinctrl-0 = <&sdc2_on &pmm8155au_1_sdc !! 397 pinctrl-0 = <&sdc2_on>; 400 pinctrl-1 = <&sdc2_off &pmm8155au_1_sd !! 398 pinctrl-1 = <&sdc2_off>; 401 vqmmc-supply = <&vreg_l13c_2p96>; /* I 399 vqmmc-supply = <&vreg_l13c_2p96>; /* IO line power */ 402 vmmc-supply = <&vreg_l17a_2p96>; /* C 400 vmmc-supply = <&vreg_l17a_2p96>; /* Card power line */ 403 bus-width = <4>; 401 bus-width = <4>; 404 no-sdio; 402 no-sdio; 405 no-mmc; !! 403 no-emmc; 406 }; 404 }; 407 405 408 &uart2 { 406 &uart2 { 409 status = "okay"; 407 status = "okay"; 410 }; 408 }; 411 409 412 &uart9 { << 413 status = "okay"; << 414 }; << 415 << 416 &ufs_mem_hc { 410 &ufs_mem_hc { 417 status = "okay"; 411 status = "okay"; 418 412 419 reset-gpios = <&tlmm 175 GPIO_ACTIVE_L 413 reset-gpios = <&tlmm 175 GPIO_ACTIVE_LOW>; 420 414 421 vcc-supply = <&vreg_l10a_2p96>; 415 vcc-supply = <&vreg_l10a_2p96>; 422 vcc-max-microamp = <750000>; 416 vcc-max-microamp = <750000>; 423 vccq-supply = <&vreg_l5c_1p2>; 417 vccq-supply = <&vreg_l5c_1p2>; 424 vccq-max-microamp = <700000>; 418 vccq-max-microamp = <700000>; 425 vccq2-supply = <&vreg_s4a_1p8>; 419 vccq2-supply = <&vreg_s4a_1p8>; 426 vccq2-max-microamp = <750000>; 420 vccq2-max-microamp = <750000>; 427 }; 421 }; 428 422 429 &ufs_mem_phy { 423 &ufs_mem_phy { 430 status = "okay"; 424 status = "okay"; 431 425 432 vdda-phy-supply = <&vreg_l8c_1p2>; 426 vdda-phy-supply = <&vreg_l8c_1p2>; 433 vdda-pll-supply = <&vreg_l5a_0p88>; 427 vdda-pll-supply = <&vreg_l5a_0p88>; 434 }; 428 }; 435 429 436 &usb_1 { 430 &usb_1 { 437 status = "okay"; 431 status = "okay"; 438 }; 432 }; 439 433 440 &usb_1_dwc3 { 434 &usb_1_dwc3 { 441 dr_mode = "host"; 435 dr_mode = "host"; 442 436 443 pinctrl-names = "default"; 437 pinctrl-names = "default"; 444 pinctrl-0 = <&usb2phy_ac_en1_default>; 438 pinctrl-0 = <&usb2phy_ac_en1_default>; 445 }; 439 }; 446 440 447 &usb_1_hsphy { 441 &usb_1_hsphy { 448 status = "okay"; 442 status = "okay"; 449 vdda-pll-supply = <&vdd_usb_hs_core>; 443 vdda-pll-supply = <&vdd_usb_hs_core>; 450 vdda33-supply = <&vdda_usb_hs_3p1>; 444 vdda33-supply = <&vdda_usb_hs_3p1>; 451 vdda18-supply = <&vdda_usb_hs_1p8>; 445 vdda18-supply = <&vdda_usb_hs_1p8>; 452 }; 446 }; 453 447 454 &usb_1_qmpphy { 448 &usb_1_qmpphy { 455 status = "disabled"; 449 status = "disabled"; 456 }; 450 }; 457 451 458 &usb_2 { 452 &usb_2 { 459 status = "okay"; 453 status = "okay"; 460 }; 454 }; 461 455 462 &usb_2_dwc3 { 456 &usb_2_dwc3 { 463 dr_mode = "host"; 457 dr_mode = "host"; 464 458 465 pinctrl-names = "default"; 459 pinctrl-names = "default"; 466 pinctrl-0 = <&usb2phy_ac_en2_default>; 460 pinctrl-0 = <&usb2phy_ac_en2_default>; 467 }; 461 }; 468 462 469 &usb_2_hsphy { 463 &usb_2_hsphy { 470 status = "okay"; 464 status = "okay"; 471 vdda-pll-supply = <&vdd_usb_hs_core>; 465 vdda-pll-supply = <&vdd_usb_hs_core>; 472 vdda33-supply = <&vdda_usb_hs_3p1>; 466 vdda33-supply = <&vdda_usb_hs_3p1>; 473 vdda18-supply = <&vdda_usb_hs_1p8>; 467 vdda18-supply = <&vdda_usb_hs_1p8>; 474 }; 468 }; 475 469 476 &usb_2_qmpphy { 470 &usb_2_qmpphy { 477 status = "okay"; 471 status = "okay"; 478 vdda-phy-supply = <&vreg_l8c_1p2>; 472 vdda-phy-supply = <&vreg_l8c_1p2>; 479 vdda-pll-supply = <&vdda_usb_ss_dp_cor 473 vdda-pll-supply = <&vdda_usb_ss_dp_core_1>; 480 }; 474 }; 481 475 482 &pcie0 { 476 &pcie0 { 483 status = "okay"; 477 status = "okay"; 484 }; 478 }; 485 479 486 &pcie0_phy { 480 &pcie0_phy { 487 status = "okay"; 481 status = "okay"; 488 vdda-phy-supply = <&vreg_l18c_0p88>; 482 vdda-phy-supply = <&vreg_l18c_0p88>; 489 vdda-pll-supply = <&vreg_l8c_1p2>; 483 vdda-pll-supply = <&vreg_l8c_1p2>; 490 }; 484 }; 491 485 492 &pcie1_phy { 486 &pcie1_phy { 493 vdda-phy-supply = <&vreg_l18c_0p88>; 487 vdda-phy-supply = <&vreg_l18c_0p88>; 494 vdda-pll-supply = <&vreg_l8c_1p2>; 488 vdda-pll-supply = <&vreg_l8c_1p2>; 495 }; 489 }; 496 490 497 &tlmm { 491 &tlmm { 498 gpio-reserved-ranges = <0 4>; 492 gpio-reserved-ranges = <0 4>; 499 493 500 sdc2_on: sdc2-on-state { !! 494 sdc2_on: sdc2_on { 501 clk-pins { !! 495 clk { 502 pins = "sdc2_clk"; 496 pins = "sdc2_clk"; 503 bias-disable; 497 bias-disable; /* No pull */ 504 drive-strength = <16>; 498 drive-strength = <16>; /* 16 MA */ 505 }; 499 }; 506 500 507 cmd-pins { !! 501 cmd { 508 pins = "sdc2_cmd"; 502 pins = "sdc2_cmd"; 509 bias-pull-up; 503 bias-pull-up; /* pull up */ 510 drive-strength = <16>; 504 drive-strength = <16>; /* 16 MA */ 511 }; 505 }; 512 506 513 data-pins { !! 507 data { 514 pins = "sdc2_data"; 508 pins = "sdc2_data"; 515 bias-pull-up; 509 bias-pull-up; /* pull up */ 516 drive-strength = <16>; 510 drive-strength = <16>; /* 16 MA */ 517 }; 511 }; >> 512 >> 513 sd-cd { >> 514 pins = "gpio96"; >> 515 function = "gpio"; >> 516 bias-pull-up; /* pull up */ >> 517 drive-strength = <2>; /* 2 MA */ >> 518 }; 518 }; 519 }; 519 520 520 sdc2_off: sdc2-off-state { !! 521 sdc2_off: sdc2_off { 521 clk-pins { !! 522 clk { 522 pins = "sdc2_clk"; 523 pins = "sdc2_clk"; 523 bias-disable; 524 bias-disable; /* No pull */ 524 drive-strength = <2>; 525 drive-strength = <2>; /* 2 MA */ 525 }; 526 }; 526 527 527 cmd-pins { !! 528 cmd { 528 pins = "sdc2_cmd"; 529 pins = "sdc2_cmd"; 529 bias-pull-up; 530 bias-pull-up; /* pull up */ 530 drive-strength = <2>; 531 drive-strength = <2>; /* 2 MA */ 531 }; 532 }; 532 533 533 data-pins { !! 534 data { 534 pins = "sdc2_data"; 535 pins = "sdc2_data"; 535 bias-pull-up; 536 bias-pull-up; /* pull up */ 536 drive-strength = <2>; 537 drive-strength = <2>; /* 2 MA */ 537 }; 538 }; >> 539 >> 540 sd-cd { >> 541 pins = "gpio96"; >> 542 function = "gpio"; >> 543 bias-pull-up; /* pull up */ >> 544 drive-strength = <2>; /* 2 MA */ >> 545 }; 538 }; 546 }; 539 547 540 usb2phy_ac_en1_default: usb2phy-ac-en1 !! 548 usb2phy_ac_en1_default: usb2phy_ac_en1_default { 541 pins = "gpio113"; !! 549 mux { 542 function = "usb2phy_ac"; !! 550 pins = "gpio113"; 543 bias-disable; !! 551 function = "usb2phy_ac"; 544 drive-strength = <2>; !! 552 bias-disable; 545 }; !! 553 drive-strength = <2>; 546 !! 554 }; 547 usb2phy_ac_en2_default: usb2phy-ac-en2 !! 555 }; 548 pins = "gpio123"; !! 556 549 function = "usb2phy_ac"; !! 557 usb2phy_ac_en2_default: usb2phy_ac_en2_default { 550 bias-disable; !! 558 mux { 551 drive-strength = <2>; !! 559 pins = "gpio123"; >> 560 function = "usb2phy_ac"; >> 561 bias-disable; >> 562 drive-strength = <2>; >> 563 }; 552 }; 564 }; 553 565 554 ethernet_defaults: ethernet-defaults-s !! 566 ethernet_defaults: ethernet-defaults { 555 mdc-pins { !! 567 mdc { 556 pins = "gpio7"; 568 pins = "gpio7"; 557 function = "rgmii"; 569 function = "rgmii"; 558 bias-pull-up; 570 bias-pull-up; 559 }; 571 }; 560 572 561 mdio-pins { !! 573 mdio { 562 pins = "gpio59"; 574 pins = "gpio59"; 563 function = "rgmii"; 575 function = "rgmii"; 564 bias-pull-up; 576 bias-pull-up; 565 }; 577 }; 566 578 567 rgmii-rx-pins { !! 579 rgmii-rx { 568 pins = "gpio117", "gpi 580 pins = "gpio117", "gpio118", "gpio119", "gpio120", "gpio115", "gpio116"; 569 function = "rgmii"; 581 function = "rgmii"; 570 bias-disable; 582 bias-disable; 571 drive-strength = <2>; 583 drive-strength = <2>; 572 }; 584 }; 573 585 574 rgmii-tx-pins { !! 586 rgmii-tx { 575 pins = "gpio122", "gpi 587 pins = "gpio122", "gpio4", "gpio5", "gpio6", "gpio114", "gpio121"; 576 function = "rgmii"; 588 function = "rgmii"; 577 bias-pull-up; 589 bias-pull-up; 578 drive-strength = <16>; 590 drive-strength = <16>; 579 }; 591 }; 580 592 581 phy-intr-pins { !! 593 phy-intr { 582 pins = "gpio124"; 594 pins = "gpio124"; 583 function = "emac_phy"; 595 function = "emac_phy"; 584 bias-disable; 596 bias-disable; 585 drive-strength = <8>; 597 drive-strength = <8>; 586 }; 598 }; 587 599 588 pps-pins { !! 600 pps { 589 pins = "gpio81"; 601 pins = "gpio81"; 590 function = "emac_pps"; 602 function = "emac_pps"; 591 bias-disable; 603 bias-disable; 592 drive-strength = <8>; 604 drive-strength = <8>; 593 }; 605 }; 594 606 595 phy-reset-pins { !! 607 phy-reset { 596 pins = "gpio79"; 608 pins = "gpio79"; 597 function = "gpio"; 609 function = "gpio"; 598 bias-pull-up; 610 bias-pull-up; 599 drive-strength = <16>; 611 drive-strength = <16>; 600 }; 612 }; 601 }; 613 }; 602 }; 614 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.