Skip to contentSkip to conversation

Add ethernet dts schema for qcs615/qcs8300

PATCH Superseded Yijie Yang 2 participants 6 messages Oct 17, 2024 – Oct 29, 2024

Subsystems (6)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Yijie Yang

author
#0 lore raw

v2 cover Add ethernet dts schema for qcs615/qcs8300

Document the ethernet and SerDes compatible for qcs8300. This platform shares the same EMAC and SerDes as sa8775p, so the compatible fallback to it.
Document the ethernet compatible for qcs615. This platform shares the same EMAC as sm8150, so the compatible fallback to it. Document the compatible for revision 2 of the qcs8300-ride board.

---
This patch series depends on below patch series:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/20240926-add_initial_support_for_qcs615-v3-0-e37617e91c62@quicinc.com/

Changes in v2:
- Adjust the position of the EMAC compatible fallback for qcs8300 in the YAML file according to the order.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Yijie Yang (3):
dt-bindings: net: qcom,ethqos: add description for qcs615
dt-bindings: phy: describe the Qualcomm SGMII PHY
dt-bindings: net: qcom,ethqos: add description for qcs8300

 .../devicetree/bindings/net/qcom,ethqos.yaml          | 19 ++++++++++++++-----
 .../bindings/phy/qcom,sa8775p-dwmac-sgmii-phy.yaml    |  7 ++++++-
 2 files changed, 20 insertions(+), 6 deletions(-)

---
base-commit: 40e0c9d414f57d450e3ad03c12765e797fc3fede
change-id: 20241010-schema-50b0b777c28b

Best regards,

Signature · 1 line
Yijie Yang <[email protected]>
author
#1 lore raw

PATCH v2 1/3 dt-bindings: net: qcom,ethqos: add description for qcs615

Add compatible for the MAC controller on qcs615 platform. Since qcs615 shares the same EMAC as sm8150, so it fallback to that compatible.

---
 Documentation/devicetree/bindings/net/qcom,ethqos.yaml | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/net/qcom,ethqos.yaml +10 -5
index 6672327358bc13f4a464c845d242d32569bf66a7..8cf29493b8228967156758c0363a978daec84152 100644
@@ -18,11 +18,16 @@ allOf:
 
 properties:
   compatible:
-    enum:
-      - qcom,qcs404-ethqos
-      - qcom,sa8775p-ethqos
-      - qcom,sc8280xp-ethqos
-      - qcom,sm8150-ethqos
+    oneOf:
+      - items:
+          - enum:
+              - qcom,qcs615-ethqos
+          - const: qcom,sm8150-ethqos
+      - enum:
+          - qcom,qcs404-ethqos
+          - qcom,sa8775p-ethqos
+          - qcom,sc8280xp-ethqos
+          - qcom,sm8150-ethqos
 
   reg:
     maxItems: 2
Signature · 1 line
2.34.1
author
#2 lore raw

PATCH v2 2/3 dt-bindings: phy: describe the Qualcomm SGMII PHY

In reply to Yijie Yang

Describe the SGMII/SerDes PHY present on the qcs8300 platforms. Since qcs8300 shares the same SerDes as sa8775p, so it fallback to the compatible.

---
 .../devicetree/bindings/phy/qcom,sa8775p-dwmac-sgmii-phy.yaml      | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/phy/qcom,sa8775p-dwmac-sgmii-phy.yaml +6 -1
index b9107759b2a51738d884f6bdce16bf0bff644056..90fc8c039219c739eae05cc17108a9a2fc6193df 100644
@@ -15,7 +15,12 @@ description:
 
 properties:
   compatible:
-    const: qcom,sa8775p-dwmac-sgmii-phy
+    oneOf:
+      - items:
+          - enum:
+              - qcom,qcs8300-dwmac-sgmii-phy
+          - const: qcom,sa8775p-dwmac-sgmii-phy
+      - const: qcom,sa8775p-dwmac-sgmii-phy
 
   reg:
     items:
Signature · 1 line
2.34.1
author
#3 lore raw

PATCH v2 3/3 dt-bindings: net: qcom,ethqos: add description for qcs8300

In reply to Yijie Yang

Add compatible for the MAC controller on qcs8300 platforms. Since qcs8300 shares the same EMAC as sa8775p, so it fallback to the compatible.

---
 Documentation/devicetree/bindings/net/qcom,ethqos.yaml | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/net/qcom,ethqos.yaml +4 -0
index 8cf29493b8228967156758c0363a978daec84152..0bcd593a7bd093d4475908d82585c36dd6b3a284 100644
@@ -19,6 +19,10 @@ allOf:
 properties:
   compatible:
     oneOf:
+      - items:
+          - enum:
+              - qcom,qcs8300-ethqos
+          - const: qcom,sa8775p-ethqos
       - items:
           - enum:
               - qcom,qcs615-ethqos
Signature · 1 line
2.34.1
#4 lore raw
In reply to Yijie Yang
Quoted 7 lines · Yijie Yang

Document the ethernet and SerDes compatible for qcs8300. This platform shares the same EMAC and SerDes as sa8775p, so the compatible fallback to it.
Document the ethernet compatible for qcs615. This platform shares the same EMAC as sm8150, so the compatible fallback to it. Document the compatible for revision 2 of the qcs8300-ride board.

Quoted 5 lines

---
This patch series depends on below patch series:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/20240926-add_initial_support_for_qcs615-v3-0-e37617e91c62@quicinc.com/

So it cannot be merged...

Instead please decouple your works. I don't get why do you claim there is dependency in the first place, but anyway. Fix up your patchsets to fix that (if there is something to fix).

Best regards,
Krzysztof

author
#5 lore raw
Quoted 14 lines · Krzysztof Kozlowski
Quoted 7 lines · Yijie Yang

Document the ethernet and SerDes compatible for qcs8300. This platform shares the same EMAC and SerDes as sa8775p, so the compatible fallback to it.
Document the ethernet compatible for qcs615. This platform shares the same EMAC as sm8150, so the compatible fallback to it. Document the compatible for revision 2 of the qcs8300-ride board.

Quoted 5 lines

---
This patch series depends on below patch series:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/20240926-add_initial_support_for_qcs615-v3-0-e37617e91c62@quicinc.com/

Quoted 6 lines

So it cannot be merged...

Instead please decouple your works. I don't get why do you claim there is dependency in the first place, but anyway. Fix up your patchsets to fix that (if there is something to fix).

Actually, the dependency is unnecessary here. I will remove it together with the merged patch in the upcoming version.

Quoted 3 lines

Best regards,
Krzysztof

Signature · 2 lines
Best Regards,
Yijie