xref: /freebsd/sys/contrib/device-tree/Bindings/spi/mediatek,spi-slave-mt27xx.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
1c9ccf3a3SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c9ccf3a3SEmmanuel Vadot%YAML 1.2
3c9ccf3a3SEmmanuel Vadot---
4c9ccf3a3SEmmanuel Vadot$id: http://devicetree.org/schemas/spi/mediatek,spi-slave-mt27xx.yaml#
5c9ccf3a3SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c9ccf3a3SEmmanuel Vadot
7c9ccf3a3SEmmanuel Vadottitle: SPI Slave controller for MediaTek ARM SoCs
8c9ccf3a3SEmmanuel Vadot
9c9ccf3a3SEmmanuel Vadotmaintainers:
10c9ccf3a3SEmmanuel Vadot  - Leilk Liu <leilk.liu@mediatek.com>
11c9ccf3a3SEmmanuel Vadot
12c9ccf3a3SEmmanuel VadotallOf:
13*cb7aa33aSEmmanuel Vadot  - $ref: /schemas/spi/spi-controller.yaml#
14c9ccf3a3SEmmanuel Vadot
15c9ccf3a3SEmmanuel Vadotproperties:
16c9ccf3a3SEmmanuel Vadot  compatible:
17c9ccf3a3SEmmanuel Vadot    enum:
18c9ccf3a3SEmmanuel Vadot      - mediatek,mt2712-spi-slave
19c9ccf3a3SEmmanuel Vadot      - mediatek,mt8195-spi-slave
20c9ccf3a3SEmmanuel Vadot
21c9ccf3a3SEmmanuel Vadot  reg:
22c9ccf3a3SEmmanuel Vadot    maxItems: 1
23c9ccf3a3SEmmanuel Vadot
24c9ccf3a3SEmmanuel Vadot  interrupts:
25c9ccf3a3SEmmanuel Vadot    maxItems: 1
26c9ccf3a3SEmmanuel Vadot
27c9ccf3a3SEmmanuel Vadot  clocks:
28c9ccf3a3SEmmanuel Vadot    maxItems: 1
29c9ccf3a3SEmmanuel Vadot
30c9ccf3a3SEmmanuel Vadot  clock-names:
31c9ccf3a3SEmmanuel Vadot    items:
32c9ccf3a3SEmmanuel Vadot      - const: spi
33c9ccf3a3SEmmanuel Vadot
34c9ccf3a3SEmmanuel Vadotrequired:
35c9ccf3a3SEmmanuel Vadot  - compatible
36c9ccf3a3SEmmanuel Vadot  - reg
37c9ccf3a3SEmmanuel Vadot  - interrupts
38c9ccf3a3SEmmanuel Vadot  - clocks
39c9ccf3a3SEmmanuel Vadot  - clock-names
40c9ccf3a3SEmmanuel Vadot
41c9ccf3a3SEmmanuel VadotunevaluatedProperties: false
42c9ccf3a3SEmmanuel Vadot
43c9ccf3a3SEmmanuel Vadotexamples:
44c9ccf3a3SEmmanuel Vadot  - |
45c9ccf3a3SEmmanuel Vadot    #include <dt-bindings/clock/mt2712-clk.h>
46c9ccf3a3SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
47c9ccf3a3SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
48c9ccf3a3SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
49c9ccf3a3SEmmanuel Vadot
50c9ccf3a3SEmmanuel Vadot    spi@10013000 {
51c9ccf3a3SEmmanuel Vadot      compatible = "mediatek,mt2712-spi-slave";
52c9ccf3a3SEmmanuel Vadot      reg = <0x10013000 0x100>;
53c9ccf3a3SEmmanuel Vadot      interrupts = <GIC_SPI 283 IRQ_TYPE_LEVEL_LOW>;
54c9ccf3a3SEmmanuel Vadot      clocks = <&infracfg CLK_INFRA_AO_SPI1>;
55c9ccf3a3SEmmanuel Vadot      clock-names = "spi";
56c9ccf3a3SEmmanuel Vadot      assigned-clocks = <&topckgen CLK_TOP_SPISLV_SEL>;
57c9ccf3a3SEmmanuel Vadot      assigned-clock-parents = <&topckgen CLK_TOP_UNIVPLL1_D2>;
58c9ccf3a3SEmmanuel Vadot    };
59