Skip to content

Commit 8acbbdd

Browse files
geerturobherring
authored andcommitted
dt-bindings: ata: rcar-sata: Convert to json-schema
Convert the Renesas R-Car Serial-ATA Device Tree binding documentation to json-schema. While at it: - Remove the deprecated "renesas,rcar-sata" compatible value, - Add "iommus", "power-domains", and "resets" properties, - Update the example. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: Rob Herring <robh@kernel.org>
1 parent 238415f commit 8acbbdd

2 files changed

Lines changed: 71 additions & 36 deletions

File tree

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: "http://devicetree.org/schemas/ata/renesas,rcar-sata.yaml#"
5+
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6+
7+
title: Renesas R-Car Serial-ATA Interface
8+
9+
maintainers:
10+
- Geert Uytterhoeven <geert+renesas@glider.be>
11+
12+
properties:
13+
compatible:
14+
oneOf:
15+
- items:
16+
- enum:
17+
- renesas,sata-r8a7779 # R-Car H1
18+
- items:
19+
- enum:
20+
- renesas,sata-r8a7790-es1 # R-Car H2 ES1
21+
- renesas,sata-r8a7790 # R-Car H2 other than ES1
22+
- renesas,sata-r8a7791 # R-Car M2-W
23+
- renesas,sata-r8a7793 # R-Car M2-N
24+
- const: renesas,rcar-gen2-sata # generic R-Car Gen2
25+
- items:
26+
- enum:
27+
- renesas,sata-r8a774b1 # RZ/G2N
28+
- renesas,sata-r8a7795 # R-Car H3
29+
- renesas,sata-r8a77965 # R-Car M3-N
30+
- const: renesas,rcar-gen3-sata # generic R-Car Gen3 or RZ/G2
31+
32+
reg:
33+
maxItems: 1
34+
35+
interrupts:
36+
maxItems: 1
37+
38+
clocks:
39+
maxItems: 1
40+
41+
iommus:
42+
maxItems: 1
43+
44+
power-domains:
45+
maxItems: 1
46+
47+
resets:
48+
maxItems: 1
49+
50+
required:
51+
- compatible
52+
- reg
53+
- interrupts
54+
- clocks
55+
56+
additionalProperties: false
57+
58+
examples:
59+
- |
60+
#include <dt-bindings/clock/r8a7791-cpg-mssr.h>
61+
#include <dt-bindings/interrupt-controller/arm-gic.h>
62+
#include <dt-bindings/power/r8a7791-sysc.h>
63+
64+
sata@ee300000 {
65+
compatible = "renesas,sata-r8a7791", "renesas,rcar-gen2-sata";
66+
reg = <0xee300000 0x200000>;
67+
interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
68+
clocks = <&cpg CPG_MOD 815>;
69+
power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
70+
resets = <&cpg 815>;
71+
};

‎Documentation/devicetree/bindings/ata/sata_rcar.txt‎

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)