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