[PATCH v3 1/4] spi: dt-bindings: amlogic: spisg: Document A9-specific properties

From: Xianwei Zhao via B4 Relay

Date: Fri Jul 31 2026 - 05:22:27 EST


From: Xianwei Zhao <xianwei.zhao@xxxxxxxxxxx>

Document the Amlogic A9 SPISG controller and its additional Device Tree
properties.

Add the "amlogic,a9-spisg" compatible string and define the A9-specific
"amlogic,mo-idle-output" property, which configure the MOSI idle output
level.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
Signed-off-by: Xianwei Zhao <xianwei.zhao@xxxxxxxxxxx>
---
.../devicetree/bindings/spi/amlogic,a4-spisg.yaml | 30 +++++++++++++++++++---
1 file changed, 26 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/spi/amlogic,a4-spisg.yaml b/Documentation/devicetree/bindings/spi/amlogic,a4-spisg.yaml
index 9bfb8089f7ea..427d8883009c 100644
--- a/Documentation/devicetree/bindings/spi/amlogic,a4-spisg.yaml
+++ b/Documentation/devicetree/bindings/spi/amlogic,a4-spisg.yaml
@@ -11,12 +11,11 @@ maintainers:
- Xianwei Zhao <xianwei.zhao@xxxxxxxxxxx>
- Sunny Luo <sunny.luo@xxxxxxxxxxx>

-allOf:
- - $ref: spi-controller.yaml#
-
properties:
compatible:
- const: amlogic,a4-spisg
+ enum:
+ - amlogic,a4-spisg
+ - amlogic,a9-spisg

reg:
maxItems: 1
@@ -35,6 +34,16 @@ properties:
resets:
maxItems: 1

+ amlogic,mo-idle-output:
+ description: |
+ Controls the MOSI output level when the controller is idle.
+ 0 - Drive MOSI low
+ 1 - Drive MOSI high
+ 2 - Follow the last transmitted bit
+ $ref: /schemas/types.yaml#/definitions/uint32
+ enum: [0, 1, 2]
+ default: 0
+
required:
- compatible
- reg
@@ -42,6 +51,19 @@ required:
- clocks
- clock-names

+allOf:
+ - $ref: spi-controller.yaml#
+ - if:
+ not:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - amlogic,a9-spisg
+ then:
+ properties:
+ amlogic,mo-idle-output: false
+
unevaluatedProperties: false

examples:

--
2.52.0