Skip to content

Commit 78d35a2

Browse files
Sunny Luobroonie
authored andcommitted
spi: dt-bindings: Add binding document of Amlogic SPISG controller
The SPISG is a new communication oriented SPI controller of Amlogic, which supports PIO, block DMA and scatter-gather DMA three operation modes. Signed-off-by: Sunny Luo <[email protected]> Acked-by: Conor Dooley <[email protected]> Signed-off-by: Xianwei Zhao <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 89be9a8 commit 78d35a2

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
# Copyright (C) 2025 Amlogic, Inc. All rights reserved
3+
%YAML 1.2
4+
---
5+
$id: http://devicetree.org/schemas/spi/amlogic,a4-spisg.yaml#
6+
$schema: http://devicetree.org/meta-schemas/core.yaml#
7+
8+
title: Amlogic SPI Scatter-Gather Controller
9+
10+
maintainers:
11+
- Xianwei Zhao <[email protected]>
12+
- Sunny Luo <[email protected]>
13+
14+
allOf:
15+
- $ref: spi-controller.yaml#
16+
17+
properties:
18+
compatible:
19+
const: amlogic,a4-spisg
20+
21+
reg:
22+
maxItems: 1
23+
24+
interrupts:
25+
maxItems: 1
26+
27+
clocks:
28+
maxItems: 2
29+
30+
clock-names:
31+
items:
32+
- const: core
33+
- const: pclk
34+
35+
resets:
36+
maxItems: 1
37+
38+
required:
39+
- compatible
40+
- reg
41+
- interrupts
42+
- clocks
43+
- clock-names
44+
45+
unevaluatedProperties: false
46+
47+
examples:
48+
- |
49+
#include <dt-bindings/interrupt-controller/arm-gic.h>
50+
spi@50000 {
51+
compatible = "amlogic,a4-spisg";
52+
reg = <0x50000 0x38>;
53+
interrupts = <GIC_SPI 183 IRQ_TYPE_LEVEL_HIGH>;
54+
clocks = <&clkc 37>,
55+
<&clkc 93>;
56+
clock-names = "core", "pclk";
57+
#address-cells = <1>;
58+
#size-cells = <0>;
59+
};

0 commit comments

Comments
 (0)