Skip to contentSkip to conversation

dt-bindings: spi: rockchip-sfc: add RK3506 support

PATCH In review ZhuXiangyu 3 participants 4 messages Nov 21 – Nov 24 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

ZhuXiangyu

author
#1 lore raw

PATCH 2/2 dt-bindings: spi: rockchip-sfc: add RK3506 support

Document the RK3506 FSPI compatible with the generic SFC fallback, and the rockchip,grf and rockchip,max-dll properties used for the power-good handshake and DLL training.

---
 .../devicetree/bindings/spi/rockchip-sfc.yaml | 30 ++++++++++++++++---
 1 file changed, 26 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/spi/rockchip-sfc.yaml +26 -4
index ac1503de..428740c8 100644
@@ -13,13 +13,27 @@ maintainers:
 allOf:
   - $ref: spi-controller.yaml#
 
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: rockchip,rk3506-fspi
+    then:
+      required:
+        - rockchip,grf
+
 properties:
   compatible:
-    const: rockchip,sfc
+    oneOf:
+      - const: rockchip,sfc
+      - items:
+          - const: rockchip,rk3506-fspi
+          - const: rockchip,sfc
     description:
-      The rockchip sfc controller is a standalone IP with version register,
-      and the driver can handle all the feature difference inside the IP
-      depending on the version register.
+      The Rockchip SFC controller is a standalone IP with a version
+      register. The driver handles most feature differences based on the
+      version register, while SoC-specific data such as the power-good
+      GRF offset is selected by the SoC-specific compatible.
 
   reg:
     maxItems: 1
@@ -44,6 +58,14 @@ properties:
     description: Disable DMA and utilize FIFO mode only
     type: boolean
 
+  rockchip,grf:
+    $ref: /schemas/types.yaml#/definitions/phandle
+    description: Phandle to the PMU GRF used for the power-good check.
+
+  rockchip,max-dll:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description: Maximum DLL cells used for delay-line training.
+
 patternProperties:
   "^flash@[0-3]$":
     type: object
Signature · 1 line
2.47.3
#2 lore raw
Quoted 6 lines · ZhuXiangyu

Document the RK3506 FSPI compatible with the generic SFC fallback, and the rockchip,grf and rockchip,max-dll properties used for the power-good handshake and DLL training.

---

I will mark everything you as changes requested. This is all half broken, b4 review cannot even fetch for review.

Best regards,
Krzysztof

maintainer
#3 lore raw
Quoted 9 lines · Krzysztof Kozlowski
Quoted 5 lines · ZhuXiangyu

Document the RK3506 FSPI compatible with the generic SFC fallback, and the rockchip,grf and rockchip,max-dll properties used for the power-good handshake and DLL training.

I will mark everything you as changes requested. This is all half broken, b4 review cannot even fetch for review.

FWIW it was perfectly happy to ingest it for me, might be some network issue?

#4 lore raw
Quoted 6 lines · Mark Brown
Quoted 5 lines · Krzysztof Kozlowski
Quoted 4 lines · ZhuXiangyu

Document the RK3506 FSPI compatible with the generic SFC fallback, and the rockchip,grf and rockchip,max-dll properties used for the power-good handshake and DLL training.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

I will mark everything you as changes requested. This is all half broken, b4 review cannot even fetch for review.

FWIW it was perfectly happy to ingest it for me, might be some network issue?

I am taking from Patchwork interface (not manually track) and there it complained on missing cover letter.

Best regards,
Krzysztof