Merge tag 'for-5.4-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / spi / amlogic,meson-gx-spicc.yaml
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 # Copyright 2019 BayLibre, SAS
3 %YAML 1.2
4 ---
5 $id: "http://devicetree.org/schemas/spi/amlogic,meson-gx-spicc.yaml#"
6 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
7
8 title: Amlogic Meson SPI Communication Controller
9
10 maintainers:
11   - Neil Armstrong <narmstrong@baylibre.com>
12
13 allOf:
14   - $ref: "spi-controller.yaml#"
15
16 description: |
17   The Meson SPICC is a generic SPI controller for general purpose Full-Duplex
18   communications with dedicated 16 words RX/TX PIO FIFOs.
19
20 properties:
21   compatible:
22     enum:
23       - amlogic,meson-gx-spicc # SPICC controller on Amlogic GX and compatible SoCs
24       - amlogic,meson-axg-spicc # SPICC controller on Amlogic AXG and compatible SoCs
25
26   interrupts:
27     maxItems: 1
28
29   reg:
30     maxItems: 1
31
32   resets:
33     maxItems: 1
34
35   clocks:
36     maxItems: 1
37
38   clock-names:
39     description: input clock for the baud rate generator
40     items:
41       - const: core
42
43 required:
44   - compatible
45   - reg
46   - interrupts
47   - clocks
48   - clock-names
49
50 examples:
51   - |
52     spi@c1108d80 {
53           compatible = "amlogic,meson-gx-spicc";
54           reg = <0xc1108d80 0x80>;
55           interrupts = <112>;
56           clocks = <&clk81>;
57           clock-names = "core";
58           #address-cells = <1>;
59           #size-cells = <0>;
60
61           ethernet-switch@0 {
62               compatible = "micrel,ks8995m";
63               spi-max-frequency = <1000000>;
64               reg = <0>;
65           };
66     };
67