xref: /linux/Documentation/devicetree/bindings/spi/amlogic,a4-spisg.yaml (revision 0262163136de813894cb172aa8ccf762b92e5fd7)
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
8title: Amlogic SPI Scatter-Gather Controller
9
10maintainers:
11  - Xianwei Zhao <xianwei.zhao@amlogic.com>
12  - Sunny Luo <sunny.luo@amlogic.com>
13
14allOf:
15  - $ref: spi-controller.yaml#
16
17properties:
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
38required:
39  - compatible
40  - reg
41  - interrupts
42  - clocks
43  - clock-names
44
45unevaluatedProperties: false
46
47examples:
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    };
60