]>
Commit | Line | Data |
---|---|---|
66de150a NA |
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: | |
c6a43fb3 | 11 | - Neil Armstrong <neil.armstrong@linaro.org> |
66de150a NA |
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 | |
9ea7db81 | 25 | - amlogic,meson-g12a-spicc # SPICC controller on Amlogic G12A and compatible SoCs |
66de150a NA |
26 | |
27 | interrupts: | |
28 | maxItems: 1 | |
29 | ||
30 | reg: | |
31 | maxItems: 1 | |
32 | ||
33 | resets: | |
34 | maxItems: 1 | |
35 | ||
36 | clocks: | |
a575357b | 37 | minItems: 1 |
a575357b AS |
38 | items: |
39 | - description: controller register bus clock | |
40 | - description: baud rate generator and delay control clock | |
66de150a NA |
41 | |
42 | clock-names: | |
a575357b AS |
43 | minItems: 1 |
44 | maxItems: 2 | |
66de150a | 45 | |
9ea7db81 NA |
46 | if: |
47 | properties: | |
48 | compatible: | |
49 | contains: | |
50 | enum: | |
51 | - amlogic,meson-g12a-spicc | |
52 | ||
53 | then: | |
54 | properties: | |
55 | clocks: | |
a575357b | 56 | minItems: 2 |
9ea7db81 NA |
57 | |
58 | clock-names: | |
9ea7db81 NA |
59 | items: |
60 | - const: core | |
61 | - const: pclk | |
62 | ||
a575357b AS |
63 | else: |
64 | properties: | |
65 | clocks: | |
66 | maxItems: 1 | |
67 | ||
68 | clock-names: | |
69 | items: | |
70 | - const: core | |
71 | ||
66de150a NA |
72 | required: |
73 | - compatible | |
74 | - reg | |
75 | - interrupts | |
76 | - clocks | |
77 | - clock-names | |
78 | ||
6fdc6e23 RH |
79 | unevaluatedProperties: false |
80 | ||
66de150a NA |
81 | examples: |
82 | - | | |
83 | spi@c1108d80 { | |
84 | compatible = "amlogic,meson-gx-spicc"; | |
85 | reg = <0xc1108d80 0x80>; | |
86 | interrupts = <112>; | |
87 | clocks = <&clk81>; | |
88 | clock-names = "core"; | |
89 | #address-cells = <1>; | |
90 | #size-cells = <0>; | |
91 | ||
28ffe8bf RH |
92 | display@0 { |
93 | compatible = "lg,lg4573"; | |
66de150a NA |
94 | spi-max-frequency = <1000000>; |
95 | reg = <0>; | |
96 | }; | |
97 | }; |