Skip to content

Commit e5f3137

Browse files
xdarklightstorulf
authored andcommitted
dt-bindings: mmc: Document the Amlogic Meson SDHC MMC host controller
This documents the devicetree bindings for the SDHC MMC host controller found in Meson6, Meson8, Meson8b and Meson8m2 SoCs. It can use a bus-width of 1/4/8-bit and it supports eMMC spec 4.4x/4.5x including HS200 mode (up to 100MHz clock). It embeds an internal clock controller which outputs four clocks (mod_clk, sd_clk, tx_clk and rx_clk) and is fed by four external input clocks (clkin[0-3]). "pclk" is the module register clock, it has to be enabled to access the registers. Signed-off-by: Martin Blumenstingl <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 83fc5dd commit e5f3137

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/mmc/amlogic,meson-mx-sdhc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Amlogic Meson SDHC controller Device Tree Bindings
8+
9+
allOf:
10+
- $ref: "mmc-controller.yaml"
11+
12+
maintainers:
13+
- Martin Blumenstingl <[email protected]>
14+
15+
description: |
16+
The SDHC MMC host controller on Amlogic SoCs provides an eMMC and MMC
17+
card interface with 1/4/8-bit bus width.
18+
It supports eMMC spec 4.4x/4.5x including HS200 (up to 100MHz clock).
19+
20+
properties:
21+
compatible:
22+
items:
23+
- enum:
24+
- amlogic,meson8-sdhc
25+
- amlogic,meson8b-sdhc
26+
- amlogic,meson8m2-sdhc
27+
- const: amlogic,meson-mx-sdhc
28+
29+
reg:
30+
minItems: 1
31+
32+
interrupts:
33+
minItems: 1
34+
35+
clocks:
36+
minItems: 5
37+
38+
clock-names:
39+
items:
40+
- const: clkin0
41+
- const: clkin1
42+
- const: clkin2
43+
- const: clkin3
44+
- const: pclk
45+
46+
required:
47+
- compatible
48+
- reg
49+
- interrupts
50+
- clocks
51+
- clock-names
52+
53+
examples:
54+
- |
55+
#include <dt-bindings/interrupt-controller/irq.h>
56+
#include <dt-bindings/interrupt-controller/arm-gic.h>
57+
58+
sdhc: mmc@8e00 {
59+
compatible = "amlogic,meson8-sdhc", "amlogic,meson-mx-sdhc";
60+
reg = <0x8e00 0x42>;
61+
interrupts = <GIC_SPI 78 IRQ_TYPE_EDGE_RISING>;
62+
clocks = <&xtal>,
63+
<&fclk_div4>,
64+
<&fclk_div3>,
65+
<&fclk_div5>,
66+
<&sdhc_pclk>;
67+
clock-names = "clkin0", "clkin1", "clkin2", "clkin3", "pclk";
68+
};

0 commit comments

Comments
 (0)