SC7280 PCIe0 PHY is functionally compatible with the SM8250 Gen3 x1 PCIe
PHY. To reflect this compatibility, update the binding schema to include
qcom,sc7280-qmp-gen3x1-pcie-phy using enum within a oneOf block, while
retaining qcom,sm8250-qmp-gen3x1-pcie-phy as a const.
Signed-off-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
---
.../bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml | 69 ++++++++++++----------
1 file changed, 37 insertions(+), 32 deletions(-)
diff --git a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml
index a1ae8c7988c891a11f6872e58d25e9d04abb41ce..1e08e26892f7b769b75bb905377d30a301e6631c 100644
--- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml
@@ -15,38 +15,43 @@ description:
properties:
compatible:
- enum:
- - qcom,qcs615-qmp-gen3x1-pcie-phy
- - qcom,qcs8300-qmp-gen4x2-pcie-phy
- - qcom,sa8775p-qmp-gen4x2-pcie-phy
- - qcom,sa8775p-qmp-gen4x4-pcie-phy
- - qcom,sar2130p-qmp-gen3x2-pcie-phy
- - qcom,sc8180x-qmp-pcie-phy
- - qcom,sc8280xp-qmp-gen3x1-pcie-phy
- - qcom,sc8280xp-qmp-gen3x2-pcie-phy
- - qcom,sc8280xp-qmp-gen3x4-pcie-phy
- - qcom,sdm845-qhp-pcie-phy
- - qcom,sdm845-qmp-pcie-phy
- - qcom,sdx55-qmp-pcie-phy
- - qcom,sdx65-qmp-gen4x2-pcie-phy
- - qcom,sm8150-qmp-gen3x1-pcie-phy
- - qcom,sm8150-qmp-gen3x2-pcie-phy
- - qcom,sm8250-qmp-gen3x1-pcie-phy
- - qcom,sm8250-qmp-gen3x2-pcie-phy
- - qcom,sm8250-qmp-modem-pcie-phy
- - qcom,sm8350-qmp-gen3x1-pcie-phy
- - qcom,sm8350-qmp-gen3x2-pcie-phy
- - qcom,sm8450-qmp-gen3x1-pcie-phy
- - qcom,sm8450-qmp-gen4x2-pcie-phy
- - qcom,sm8550-qmp-gen3x2-pcie-phy
- - qcom,sm8550-qmp-gen4x2-pcie-phy
- - qcom,sm8650-qmp-gen3x2-pcie-phy
- - qcom,sm8650-qmp-gen4x2-pcie-phy
- - qcom,x1e80100-qmp-gen3x2-pcie-phy
- - qcom,x1e80100-qmp-gen4x2-pcie-phy
- - qcom,x1e80100-qmp-gen4x4-pcie-phy
- - qcom,x1e80100-qmp-gen4x8-pcie-phy
- - qcom,x1p42100-qmp-gen4x4-pcie-phy
+ oneOf:
+ - items:
+ - const: qcom,sc7280-qmp-gen3x1-pcie-phy
+ - const: qcom,sm8250-qmp-gen3x1-pcie-phy
+ - items:
+ - enum:
+ - qcom,qcs615-qmp-gen3x1-pcie-phy
+ - qcom,qcs8300-qmp-gen4x2-pcie-phy
+ - qcom,sa8775p-qmp-gen4x2-pcie-phy
+ - qcom,sa8775p-qmp-gen4x4-pcie-phy
+ - qcom,sar2130p-qmp-gen3x2-pcie-phy
+ - qcom,sc8180x-qmp-pcie-phy
+ - qcom,sc8280xp-qmp-gen3x1-pcie-phy
+ - qcom,sc8280xp-qmp-gen3x2-pcie-phy
+ - qcom,sc8280xp-qmp-gen3x4-pcie-phy
+ - qcom,sdm845-qhp-pcie-phy
+ - qcom,sdm845-qmp-pcie-phy
+ - qcom,sdx55-qmp-pcie-phy
+ - qcom,sdx65-qmp-gen4x2-pcie-phy
+ - qcom,sm8150-qmp-gen3x1-pcie-phy
+ - qcom,sm8150-qmp-gen3x2-pcie-phy
+ - qcom,sm8250-qmp-gen3x1-pcie-phy
+ - qcom,sm8250-qmp-gen3x2-pcie-phy
+ - qcom,sm8250-qmp-modem-pcie-phy
+ - qcom,sm8350-qmp-gen3x1-pcie-phy
+ - qcom,sm8350-qmp-gen3x2-pcie-phy
+ - qcom,sm8450-qmp-gen3x1-pcie-phy
+ - qcom,sm8450-qmp-gen4x2-pcie-phy
+ - qcom,sm8550-qmp-gen3x2-pcie-phy
+ - qcom,sm8550-qmp-gen4x2-pcie-phy
+ - qcom,sm8650-qmp-gen3x2-pcie-phy
+ - qcom,sm8650-qmp-gen4x2-pcie-phy
+ - qcom,x1e80100-qmp-gen3x2-pcie-phy
+ - qcom,x1e80100-qmp-gen4x2-pcie-phy
+ - qcom,x1e80100-qmp-gen4x4-pcie-phy
+ - qcom,x1e80100-qmp-gen4x8-pcie-phy
+ - qcom,x1p42100-qmp-gen4x4-pcie-phy
reg:
minItems: 1
--
2.34.1
On Tue, Aug 12, 2025 at 07:26:44PM +0530, Krishna Chaitanya Chundru wrote: > SC7280 PCIe0 PHY is functionally compatible with the SM8250 Gen3 x1 PCIe > PHY. To reflect this compatibility, update the binding schema to include ^--- I think here would be a good place to break for a new paragraph, to give separation between problem description and solution description. > qcom,sc7280-qmp-gen3x1-pcie-phy using enum within a oneOf block, while > retaining qcom,sm8250-qmp-gen3x1-pcie-phy as a const. > Isn't this the case for &pcie1 as well? If so, can you please fix both? Also, before we do that, the fact that they are "functionally compatible", can you confirm that these two platforms really has the same PHY settings? Regards, Bjorn > Signed-off-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com> > --- > .../bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml | 69 ++++++++++++---------- > 1 file changed, 37 insertions(+), 32 deletions(-) > > diff --git a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml > index a1ae8c7988c891a11f6872e58d25e9d04abb41ce..1e08e26892f7b769b75bb905377d30a301e6631c 100644 > --- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml > +++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml > @@ -15,38 +15,43 @@ description: > > properties: > compatible: > - enum: > - - qcom,qcs615-qmp-gen3x1-pcie-phy > - - qcom,qcs8300-qmp-gen4x2-pcie-phy > - - qcom,sa8775p-qmp-gen4x2-pcie-phy > - - qcom,sa8775p-qmp-gen4x4-pcie-phy > - - qcom,sar2130p-qmp-gen3x2-pcie-phy > - - qcom,sc8180x-qmp-pcie-phy > - - qcom,sc8280xp-qmp-gen3x1-pcie-phy > - - qcom,sc8280xp-qmp-gen3x2-pcie-phy > - - qcom,sc8280xp-qmp-gen3x4-pcie-phy > - - qcom,sdm845-qhp-pcie-phy > - - qcom,sdm845-qmp-pcie-phy > - - qcom,sdx55-qmp-pcie-phy > - - qcom,sdx65-qmp-gen4x2-pcie-phy > - - qcom,sm8150-qmp-gen3x1-pcie-phy > - - qcom,sm8150-qmp-gen3x2-pcie-phy > - - qcom,sm8250-qmp-gen3x1-pcie-phy > - - qcom,sm8250-qmp-gen3x2-pcie-phy > - - qcom,sm8250-qmp-modem-pcie-phy > - - qcom,sm8350-qmp-gen3x1-pcie-phy > - - qcom,sm8350-qmp-gen3x2-pcie-phy > - - qcom,sm8450-qmp-gen3x1-pcie-phy > - - qcom,sm8450-qmp-gen4x2-pcie-phy > - - qcom,sm8550-qmp-gen3x2-pcie-phy > - - qcom,sm8550-qmp-gen4x2-pcie-phy > - - qcom,sm8650-qmp-gen3x2-pcie-phy > - - qcom,sm8650-qmp-gen4x2-pcie-phy > - - qcom,x1e80100-qmp-gen3x2-pcie-phy > - - qcom,x1e80100-qmp-gen4x2-pcie-phy > - - qcom,x1e80100-qmp-gen4x4-pcie-phy > - - qcom,x1e80100-qmp-gen4x8-pcie-phy > - - qcom,x1p42100-qmp-gen4x4-pcie-phy > + oneOf: > + - items: > + - const: qcom,sc7280-qmp-gen3x1-pcie-phy > + - const: qcom,sm8250-qmp-gen3x1-pcie-phy > + - items: > + - enum: > + - qcom,qcs615-qmp-gen3x1-pcie-phy > + - qcom,qcs8300-qmp-gen4x2-pcie-phy > + - qcom,sa8775p-qmp-gen4x2-pcie-phy > + - qcom,sa8775p-qmp-gen4x4-pcie-phy > + - qcom,sar2130p-qmp-gen3x2-pcie-phy > + - qcom,sc8180x-qmp-pcie-phy > + - qcom,sc8280xp-qmp-gen3x1-pcie-phy > + - qcom,sc8280xp-qmp-gen3x2-pcie-phy > + - qcom,sc8280xp-qmp-gen3x4-pcie-phy > + - qcom,sdm845-qhp-pcie-phy > + - qcom,sdm845-qmp-pcie-phy > + - qcom,sdx55-qmp-pcie-phy > + - qcom,sdx65-qmp-gen4x2-pcie-phy > + - qcom,sm8150-qmp-gen3x1-pcie-phy > + - qcom,sm8150-qmp-gen3x2-pcie-phy > + - qcom,sm8250-qmp-gen3x1-pcie-phy > + - qcom,sm8250-qmp-gen3x2-pcie-phy > + - qcom,sm8250-qmp-modem-pcie-phy > + - qcom,sm8350-qmp-gen3x1-pcie-phy > + - qcom,sm8350-qmp-gen3x2-pcie-phy > + - qcom,sm8450-qmp-gen3x1-pcie-phy > + - qcom,sm8450-qmp-gen4x2-pcie-phy > + - qcom,sm8550-qmp-gen3x2-pcie-phy > + - qcom,sm8550-qmp-gen4x2-pcie-phy > + - qcom,sm8650-qmp-gen3x2-pcie-phy > + - qcom,sm8650-qmp-gen4x2-pcie-phy > + - qcom,x1e80100-qmp-gen3x2-pcie-phy > + - qcom,x1e80100-qmp-gen4x2-pcie-phy > + - qcom,x1e80100-qmp-gen4x4-pcie-phy > + - qcom,x1e80100-qmp-gen4x8-pcie-phy > + - qcom,x1p42100-qmp-gen4x4-pcie-phy > > reg: > minItems: 1 > > -- > 2.34.1 >
© 2016 - 2025 Red Hat, Inc.