realtek: backport spi-realtek-rtl driver from 5.12 to 5.10
[openwrt/staging/stintel.git] / target / linux / realtek / patches-5.10 / 003-5.12-spi-realtek-rtl838x-rtl839x-spi-controller.patch
1 From 6acbd614c2c8d3b8de5fb7605d6e24b9b3a8a17b Mon Sep 17 00:00:00 2001
2 From: Bert Vermeulen <bert@biot.com>
3 Date: Wed, 20 Jan 2021 14:59:27 +0100
4 Subject: spi: Realtek RTL838x/RTL839x SPI controller
5
6 Signed-off-by: Bert Vermeulen <bert@biot.com>
7 Link: https://lore.kernel.org/r/20210120135928.246054-2-bert@biot.com
8 Signed-off-by: Mark Brown <broonie@kernel.org>
9 ---
10 .../devicetree/bindings/spi/realtek,rtl-spi.yaml | 41 ++++++++++++++++++++++
11 1 file changed, 41 insertions(+)
12 create mode 100644 Documentation/devicetree/bindings/spi/realtek,rtl-spi.yaml
13
14 diff --git a/Documentation/devicetree/bindings/spi/realtek,rtl-spi.yaml b/Documentation/devicetree/bindings/spi/realtek,rtl-spi.yaml
15 new file mode 100644
16 index 0000000000000..30a62a211984f
17 --- /dev/null
18 +++ b/Documentation/devicetree/bindings/spi/realtek,rtl-spi.yaml
19 @@ -0,0 +1,41 @@
20 +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
21 +%YAML 1.2
22 +---
23 +$id: http://devicetree.org/schemas/spi/realtek,rtl-spi.yaml#
24 +$schema: http://devicetree.org/meta-schemas/core.yaml#
25 +
26 +title: Realtek RTL838x/RTL839x SPI controller
27 +
28 +maintainers:
29 + - Bert Vermeulen <bert@biot.com>
30 + - Birger Koblitz <mail@birger-koblitz.de>
31 +
32 +allOf:
33 + - $ref: "spi-controller.yaml#"
34 +
35 +properties:
36 + compatible:
37 + oneOf:
38 + - const: realtek,rtl8380-spi
39 + - const: realtek,rtl8382-spi
40 + - const: realtek,rtl8391-spi
41 + - const: realtek,rtl8392-spi
42 + - const: realtek,rtl8393-spi
43 +
44 + reg:
45 + maxItems: 1
46 +
47 +required:
48 + - compatible
49 + - reg
50 +
51 +unevaluatedProperties: false
52 +
53 +examples:
54 + - |
55 + spi: spi@1200 {
56 + compatible = "realtek,rtl8382-spi";
57 + reg = <0x1200 0x100>;
58 + #address-cells = <1>;
59 + #size-cells = <0>;
60 + };
61 --
62 cgit 1.2.3-1.el7
63