Thread (12 messages) 12 messages, 3 authors, 2025-08-19

Re: [PATCH 1/3] spi: dt-bindings: add doc for Amlogic A113L2 SFC

From: Krzysztof Kozlowski <krzk@kernel.org>
Date: 2025-08-13 07:36:58
Also in: linux-amlogic, linux-spi, lkml

On 13/08/2025 08:13, Xianwei Zhao wrote:
quoted
quoted
+allOf:
+  - $ref: /schemas/spi/spi-controller.yaml#
+
+properties:
+  compatible:
+    const: amlogic,a4-spifc
+
+  reg:
+    items:
+      - description: core registers
+      - description: parent clk control registers
Why are you poking to parent node or to clock registers? This looks like
mixing up device address spaces.
The SPIFC bus clock multiplexes EMMC modules, so the corresponding 
frequency division register is also in EMMC module. The SPIFC and the 
EMMC modules cannot be used simultaneously.
Then obviously you cannot put here EMMC or parent registers.

It looks really like you miss proper hardware representation.
quoted
quoted
+
+  reg-names:
+    items:
+      - const: core
+      - const: pclk
+
+  clocks:
+    items:
+      - description: clock gate
Are you sure this is separate clock input to this device?
This clock is used by the APB interface to access the SPIFC registers.
So APB clock?



Best regards,
Krzysztof
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help