Debian Codegraph @

Documentation/devicetree/bindings/spi/amlogic,a4-spisg.yaml

raw
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 };