d1: add new target
[openwrt/staging/pepe2k.git] / target / linux / d1 / patches-6.1 / 0049-dt-bindings-iommu-sun50i-Add-compatible-for-Allwinne.patch
1 From 031deed1d755fc9f1e4908ef70969e1458203421 Mon Sep 17 00:00:00 2001
2 From: Samuel Holland <samuel@sholland.org>
3 Date: Sun, 6 Jun 2021 10:20:38 -0500
4 Subject: [PATCH 049/117] dt-bindings: iommu: sun50i: Add compatible for
5 Allwinner D1
6
7 D1 contains an IOMMU similar to the one in the H6 SoC, but the D1
8 variant has no external reset signal.
9
10 Signed-off-by: Samuel Holland <samuel@sholland.org>
11 ---
12 .../iommu/allwinner,sun50i-h6-iommu.yaml | 16 ++++++++++++++--
13 1 file changed, 14 insertions(+), 2 deletions(-)
14
15 --- a/Documentation/devicetree/bindings/iommu/allwinner,sun50i-h6-iommu.yaml
16 +++ b/Documentation/devicetree/bindings/iommu/allwinner,sun50i-h6-iommu.yaml
17 @@ -17,7 +17,9 @@ properties:
18 The content of the cell is the master ID.
19
20 compatible:
21 - const: allwinner,sun50i-h6-iommu
22 + enum:
23 + - allwinner,sun20i-d1-iommu
24 + - allwinner,sun50i-h6-iommu
25
26 reg:
27 maxItems: 1
28 @@ -37,7 +39,17 @@ required:
29 - reg
30 - interrupts
31 - clocks
32 - - resets
33 +
34 +if:
35 + properties:
36 + compatible:
37 + contains:
38 + enum:
39 + - allwinner,sun50i-h6-iommu
40 +
41 +then:
42 + required:
43 + - resets
44
45 additionalProperties: false
46