| 1 |
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/phy/qcom,sc8280xp-qmp-usb3-uni-phy.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Qualcomm QMP PHY controller (USB, SC8280XP) |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Vinod Koul <[email protected]> |
| 11 |
|
| 12 |
description: |
| 13 |
The QMP PHY controller supports physical layer functionality for a number of |
| 14 |
controllers on Qualcomm chipsets, such as, PCIe, UFS, and USB. |
| 15 |
|
| 16 |
properties: |
| 17 |
compatible: |
| 18 |
enum: |
| 19 |
- qcom,glymur-qmp-usb3-uni-phy |
| 20 |
- qcom,ipq5424-qmp-usb3-phy |
| 21 |
- qcom,ipq6018-qmp-usb3-phy |
| 22 |
- qcom,ipq8074-qmp-usb3-phy |
| 23 |
- qcom,ipq9574-qmp-usb3-phy |
| 24 |
- qcom,msm8996-qmp-usb3-phy |
| 25 |
- qcom,qcs8300-qmp-usb3-uni-phy |
| 26 |
- qcom,qdu1000-qmp-usb3-uni-phy |
| 27 |
- qcom,sa8775p-qmp-usb3-uni-phy |
| 28 |
- qcom,sc8180x-qmp-usb3-uni-phy |
| 29 |
- qcom,sc8280xp-qmp-usb3-uni-phy |
| 30 |
- qcom,sdm845-qmp-usb3-uni-phy |
| 31 |
- qcom,sdx55-qmp-usb3-uni-phy |
| 32 |
- qcom,sdx65-qmp-usb3-uni-phy |
| 33 |
- qcom,sdx75-qmp-usb3-uni-phy |
| 34 |
- qcom,sm8150-qmp-usb3-uni-phy |
| 35 |
- qcom,sm8250-qmp-usb3-uni-phy |
| 36 |
- qcom,sm8350-qmp-usb3-uni-phy |
| 37 |
- qcom,x1e80100-qmp-usb3-uni-phy |
| 38 |
|
| 39 |
reg: |
| 40 |
maxItems: 1 |
| 41 |
|
| 42 |
clocks: |
| 43 |
minItems: 4 |
| 44 |
maxItems: 5 |
| 45 |
|
| 46 |
clock-names: |
| 47 |
minItems: 4 |
| 48 |
maxItems: 5 |
| 49 |
|
| 50 |
power-domains: |
| 51 |
maxItems: 1 |
| 52 |
|
| 53 |
resets: |
| 54 |
maxItems: 2 |
| 55 |
|
| 56 |
reset-names: |
| 57 |
items: |
| 58 |
- const: phy |
| 59 |
- const: phy_phy |
| 60 |
|
| 61 |
vdda-phy-supply: true |
| 62 |
|
| 63 |
vdda-pll-supply: true |
| 64 |
|
| 65 |
refgen-supply: true |
| 66 |
|
| 67 |
"#clock-cells": |
| 68 |
const: 0 |
| 69 |
|
| 70 |
clock-output-names: |
| 71 |
maxItems: 1 |
| 72 |
|
| 73 |
"#phy-cells": |
| 74 |
const: 0 |
| 75 |
|
| 76 |
required: |
| 77 |
- compatible |
| 78 |
- reg |
| 79 |
- clocks |
| 80 |
- clock-names |
| 81 |
- resets |
| 82 |
- reset-names |
| 83 |
- vdda-phy-supply |
| 84 |
- vdda-pll-supply |
| 85 |
- "#clock-cells" |
| 86 |
- clock-output-names |
| 87 |
- "#phy-cells" |
| 88 |
|
| 89 |
allOf: |
| 90 |
- if: |
| 91 |
properties: |
| 92 |
compatible: |
| 93 |
contains: |
| 94 |
enum: |
| 95 |
- qcom,ipq5424-qmp-usb3-phy |
| 96 |
- qcom,ipq6018-qmp-usb3-phy |
| 97 |
- qcom,ipq8074-qmp-usb3-phy |
| 98 |
- qcom,ipq9574-qmp-usb3-phy |
| 99 |
- qcom,msm8996-qmp-usb3-phy |
| 100 |
- qcom,sdx55-qmp-usb3-uni-phy |
| 101 |
- qcom,sdx65-qmp-usb3-uni-phy |
| 102 |
- qcom,sdx75-qmp-usb3-uni-phy |
| 103 |
then: |
| 104 |
properties: |
| 105 |
clocks: |
| 106 |
maxItems: 4 |
| 107 |
clock-names: |
| 108 |
items: |
| 109 |
- const: aux |
| 110 |
- const: ref |
| 111 |
- const: cfg_ahb |
| 112 |
- const: pipe |
| 113 |
|
| 114 |
- if: |
| 115 |
properties: |
| 116 |
compatible: |
| 117 |
contains: |
| 118 |
enum: |
| 119 |
- qcom,glymur-qmp-usb3-uni-phy |
| 120 |
- qcom,qcs8300-qmp-usb3-uni-phy |
| 121 |
- qcom,qdu1000-qmp-usb3-uni-phy |
| 122 |
- qcom,sa8775p-qmp-usb3-uni-phy |
| 123 |
- qcom,sc8180x-qmp-usb3-uni-phy |
| 124 |
- qcom,sc8280xp-qmp-usb3-uni-phy |
| 125 |
- qcom,sm8150-qmp-usb3-uni-phy |
| 126 |
- qcom,sm8250-qmp-usb3-uni-phy |
| 127 |
- qcom,sm8350-qmp-usb3-uni-phy |
| 128 |
- qcom,x1e80100-qmp-usb3-uni-phy |
| 129 |
then: |
| 130 |
properties: |
| 131 |
clocks: |
| 132 |
maxItems: 4 |
| 133 |
clock-names: |
| 134 |
items: |
| 135 |
- const: aux |
| 136 |
- const: ref |
| 137 |
- const: com_aux |
| 138 |
- const: pipe |
| 139 |
|
| 140 |
- if: |
| 141 |
properties: |
| 142 |
compatible: |
| 143 |
contains: |
| 144 |
enum: |
| 145 |
- qcom,sdm845-qmp-usb3-uni-phy |
| 146 |
then: |
| 147 |
properties: |
| 148 |
clocks: |
| 149 |
maxItems: 5 |
| 150 |
clock-names: |
| 151 |
items: |
| 152 |
- const: aux |
| 153 |
- const: cfg_ahb |
| 154 |
- const: ref |
| 155 |
- const: com_aux |
| 156 |
- const: pipe |
| 157 |
|
| 158 |
- if: |
| 159 |
properties: |
| 160 |
compatible: |
| 161 |
contains: |
| 162 |
enum: |
| 163 |
- qcom,glymur-qmp-usb3-uni-phy |
| 164 |
- qcom,sa8775p-qmp-usb3-uni-phy |
| 165 |
- qcom,sc8180x-qmp-usb3-uni-phy |
| 166 |
- qcom,sc8280xp-qmp-usb3-uni-phy |
| 167 |
- qcom,x1e80100-qmp-usb3-uni-phy |
| 168 |
then: |
| 169 |
required: |
| 170 |
- power-domains |
| 171 |
|
| 172 |
- if: |
| 173 |
properties: |
| 174 |
compatible: |
| 175 |
contains: |
| 176 |
enum: |
| 177 |
- qcom,glymur-qmp-usb3-uni-phy |
| 178 |
then: |
| 179 |
required: |
| 180 |
- refgen-supply |
| 181 |
else: |
| 182 |
properties: |
| 183 |
refgen-supply: false |
| 184 |
|
| 185 |
additionalProperties: false |
| 186 |
|
| 187 |
examples: |
| 188 |
- | |
| 189 |
#include <dt-bindings/clock/qcom,gcc-sc8280xp.h> |
| 190 |
#include <dt-bindings/clock/qcom,rpmh.h> |
| 191 |
|
| 192 |
phy@88ef000 { |
| 193 |
compatible = "qcom,sc8280xp-qmp-usb3-uni-phy"; |
| 194 |
reg = <0x088ef000 0x2000>; |
| 195 |
|
| 196 |
clocks = <&gcc GCC_USB3_MP_PHY_AUX_CLK>, |
| 197 |
<&gcc GCC_USB3_MP0_CLKREF_CLK>, |
| 198 |
<&gcc GCC_USB3_MP_PHY_COM_AUX_CLK>, |
| 199 |
<&gcc GCC_USB3_MP_PHY_PIPE_0_CLK>; |
| 200 |
clock-names = "aux", "ref", "com_aux", "pipe"; |
| 201 |
|
| 202 |
power-domains = <&gcc USB30_MP_GDSC>; |
| 203 |
|
| 204 |
resets = <&gcc GCC_USB3_UNIPHY_MP0_BCR>, |
| 205 |
<&gcc GCC_USB3UNIPHY_PHY_MP0_BCR>; |
| 206 |
reset-names = "phy", "phy_phy"; |
| 207 |
|
| 208 |
vdda-phy-supply = <&vreg_l3a>; |
| 209 |
vdda-pll-supply = <&vreg_l5a>; |
| 210 |
|
| 211 |
#clock-cells = <0>; |
| 212 |
clock-output-names = "usb2_phy0_pipe_clk"; |
| 213 |
|
| 214 |
#phy-cells = <0>; |
| 215 |
}; |