Skip to content

Commit c784b76

Browse files
Dharma-Bstorulf
authored andcommitted
dt-bindings: mmc: atmel,hsmci: Convert to json schema
Convert atmel,hsmci documentation to yaml format. The new file will inherit from mmc-controller.yaml. Signed-off-by: Dharma Balasubiramani <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent ec53e2e commit c784b76

File tree

2 files changed

+106
-73
lines changed

2 files changed

+106
-73
lines changed
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/mmc/atmel,hsmci.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Atmel High-Speed MultiMedia Card Interface (HSMCI)
8+
9+
description:
10+
The Atmel HSMCI controller provides an interface for MMC, SD, and SDIO memory
11+
cards.
12+
13+
maintainers:
14+
- Nicolas Ferre <[email protected]>
15+
- Aubin Constans <[email protected]>
16+
17+
allOf:
18+
- $ref: mmc-controller.yaml
19+
20+
properties:
21+
compatible:
22+
const: atmel,hsmci
23+
24+
reg:
25+
maxItems: 1
26+
27+
interrupts:
28+
maxItems: 1
29+
30+
dmas:
31+
maxItems: 1
32+
33+
dma-names:
34+
const: rxtx
35+
36+
clocks:
37+
maxItems: 1
38+
39+
clock-names:
40+
const: mci_clk
41+
42+
"#address-cells":
43+
const: 1
44+
description: Used for slot IDs.
45+
46+
"#size-cells":
47+
const: 0
48+
49+
patternProperties:
50+
"slot@[0-2]$":
51+
$ref: mmc-slot.yaml
52+
description: A slot node representing an MMC, SD, or SDIO slot.
53+
54+
properties:
55+
reg:
56+
enum: [0, 1]
57+
58+
required:
59+
- reg
60+
- bus-width
61+
62+
unevaluatedProperties: false
63+
64+
required:
65+
- compatible
66+
- reg
67+
- interrupts
68+
- clocks
69+
- clock-names
70+
- "#address-cells"
71+
- "#size-cells"
72+
73+
anyOf:
74+
- required:
75+
- slot@0
76+
- required:
77+
- slot@1
78+
79+
unevaluatedProperties: false
80+
81+
examples:
82+
- |
83+
#include <dt-bindings/interrupt-controller/irq.h>
84+
#include <dt-bindings/clock/at91.h>
85+
mmc@f0008000 {
86+
compatible = "atmel,hsmci";
87+
reg = <0xf0008000 0x600>;
88+
interrupts = <12 IRQ_TYPE_LEVEL_HIGH>;
89+
clocks = <&mci0_clk>;
90+
clock-names = "mci_clk";
91+
#address-cells = <1>;
92+
#size-cells = <0>;
93+
94+
slot@0 {
95+
reg = <0>;
96+
bus-width = <4>;
97+
cd-gpios = <&pioD 15 0>;
98+
cd-inverted;
99+
};
100+
101+
slot@1 {
102+
reg = <1>;
103+
bus-width = <4>;
104+
};
105+
};
106+
...

Documentation/devicetree/bindings/mmc/atmel-hsmci.txt

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

0 commit comments

Comments
 (0)