realtek: copy dts/files/patches/configs for 5.15
[openwrt/staging/stintel.git] / target / linux / realtek / patches-5.15 / 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 --- /dev/null
15 +++ b/Documentation/devicetree/bindings/spi/realtek,rtl-spi.yaml
16 @@ -0,0 +1,41 @@
17 +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
18 +%YAML 1.2
19 +---
20 +$id: http://devicetree.org/schemas/spi/realtek,rtl-spi.yaml#
21 +$schema: http://devicetree.org/meta-schemas/core.yaml#
22 +
23 +title: Realtek RTL838x/RTL839x SPI controller
24 +
25 +maintainers:
26 + - Bert Vermeulen <bert@biot.com>
27 + - Birger Koblitz <mail@birger-koblitz.de>
28 +
29 +allOf:
30 + - $ref: "spi-controller.yaml#"
31 +
32 +properties:
33 + compatible:
34 + oneOf:
35 + - const: realtek,rtl8380-spi
36 + - const: realtek,rtl8382-spi
37 + - const: realtek,rtl8391-spi
38 + - const: realtek,rtl8392-spi
39 + - const: realtek,rtl8393-spi
40 +
41 + reg:
42 + maxItems: 1
43 +
44 +required:
45 + - compatible
46 + - reg
47 +
48 +unevaluatedProperties: false
49 +
50 +examples:
51 + - |
52 + spi: spi@1200 {
53 + compatible = "realtek,rtl8382-spi";
54 + reg = <0x1200 0x100>;
55 + #address-cells = <1>;
56 + #size-cells = <0>;
57 + };