Skip to content

Commit eadea8e

Browse files
Charan-PedumuruUlf Hansson
authored andcommitted
dt-bindings: mmc: socionext,milbeaut-m10v-sdhci-3.0: convert to DT schema
Convert SOCIONEXT Milbeaut SDHCI controller binding to YAML format. Add a new property "voltage-ranges" to resolve dt_check errors. Signed-off-by: Charan Pedumuru <charan.pedumuru@gmail.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 262991d commit eadea8e

2 files changed

Lines changed: 79 additions & 30 deletions

File tree

Documentation/devicetree/bindings/mmc/sdhci-milbeaut.txt

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/mmc/socionext,milbeaut-m10v-sdhci-3.0.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: SOCIONEXT Milbeaut SDHCI controller
8+
9+
maintainers:
10+
- Taichi Sugaya <sugaya.taichi@socionext.com>
11+
- Takao Orito <orito.takao@socionext.com>
12+
13+
description:
14+
The SOCIONEXT Milbeaut SDHCI controller is a specialized SD Host
15+
Controller found in some of Socionext's Milbeaut image processing SoCs.
16+
It features a dedicated "bridge controller." This bridge controller
17+
implements special functions like reset control, clock management for
18+
various SDR modes (SDR12, SDR25, SDR50) and physical pin property settings.
19+
20+
allOf:
21+
- $ref: sdhci-common.yaml#
22+
23+
properties:
24+
compatible:
25+
const: socionext,milbeaut-m10v-sdhci-3.0
26+
27+
reg:
28+
maxItems: 1
29+
30+
interrupts:
31+
maxItems: 1
32+
33+
clocks:
34+
maxItems: 2
35+
36+
clock-names:
37+
items:
38+
- const: core
39+
- const: iface
40+
41+
fujitsu,cmd-dat-delay-select:
42+
description:
43+
Its presence indicates that the controller requires a specific command
44+
and data line delay selection mechanism for proper operation, particularly
45+
when dealing with high-speed SD/eMMC modes.
46+
type: boolean
47+
48+
voltage-ranges:
49+
$ref: /schemas/types.yaml#/definitions/uint32-matrix
50+
items:
51+
items:
52+
- description: minimum slot voltage (mV).
53+
- description: maximum slot voltage (mV).
54+
maxItems: 1
55+
56+
required:
57+
- compatible
58+
- reg
59+
- interrupts
60+
- clocks
61+
- clock-names
62+
63+
unevaluatedProperties: false
64+
65+
examples:
66+
- |
67+
#include <dt-bindings/interrupt-controller/arm-gic.h>
68+
mmc@1b010000 {
69+
compatible = "socionext,milbeaut-m10v-sdhci-3.0";
70+
reg = <0x1b010000 0x10000>;
71+
interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>;
72+
voltage-ranges = <3300 3300>;
73+
bus-width = <4>;
74+
clocks = <&clk 7>, <&ahb_clk>;
75+
clock-names = "core", "iface";
76+
cap-sdio-irq;
77+
fujitsu,cmd-dat-delay-select;
78+
};
79+
...

0 commit comments

Comments
 (0)