Skip to content

Commit b5e4e8b

Browse files
AaronDotKexyBiscuit
authored andcommitted
UPSTREAM: dt-bindings: mmc: Add Loongson-2K SD/SDIO/eMMC controller binding
Add the Loongson-2K SoC's SD/SDIO/eMMC controller binding with DT schema format using json-schema. Signed-off-by: Binbin Zhou <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Reviewed-by: Huacai Chen <[email protected]> Link: https://lore.kernel.org/r/949c55be120a806ea3d74b47fa2cc96ced2905fc.1750765495.git.zhoubinbin@loongson.cn Signed-off-by: Ulf Hansson <[email protected]> (cherry picked from commit fe62ee3) Signed-off-by: Kexy Biscuit <[email protected]>
1 parent 16c777f commit b5e4e8b

File tree

2 files changed

+75
-0
lines changed

2 files changed

+75
-0
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/mmc/loongson,ls2k0500-mmc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: The SD/SDIO/eMMC host controller for Loongson-2K family SoCs
8+
9+
description:
10+
The MMC host controller on the Loongson-2K0500/2K1000 (using an externally
11+
shared apbdma controller) provides the SD and SDIO device interfaces.
12+
13+
maintainers:
14+
- Binbin Zhou <[email protected]>
15+
16+
allOf:
17+
- $ref: mmc-controller.yaml#
18+
19+
properties:
20+
compatible:
21+
enum:
22+
- loongson,ls2k0500-mmc
23+
- loongson,ls2k1000-mmc
24+
25+
reg:
26+
items:
27+
- description: Loongson-2K MMC controller registers.
28+
- description: APB DMA config register for Loongson-2K MMC controller.
29+
30+
interrupts:
31+
maxItems: 1
32+
33+
clocks:
34+
maxItems: 1
35+
36+
dmas:
37+
maxItems: 1
38+
39+
dma-names:
40+
const: rx-tx
41+
42+
required:
43+
- compatible
44+
- reg
45+
- interrupts
46+
- clocks
47+
- dmas
48+
- dma-names
49+
50+
unevaluatedProperties: false
51+
52+
examples:
53+
- |
54+
#include <dt-bindings/gpio/gpio.h>
55+
#include <dt-bindings/interrupt-controller/irq.h>
56+
#include <dt-bindings/clock/loongson,ls2k-clk.h>
57+
58+
mmc@1fe2c000 {
59+
compatible = "loongson,ls2k1000-mmc";
60+
reg = <0x1fe2c000 0x68>,
61+
<0x1fe00438 0x8>;
62+
interrupt-parent = <&liointc0>;
63+
interrupts = <31 IRQ_TYPE_LEVEL_HIGH>;
64+
clocks = <&clk LOONGSON2_APB_CLK>;
65+
dmas = <&apbdma1 0>;
66+
dma-names = "rx-tx";
67+
bus-width = <4>;
68+
cd-gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
69+
};

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14180,6 +14180,12 @@ S: Maintained
1418014180
F: Documentation/devicetree/bindings/hwinfo/loongson,ls2k-chipid.yaml
1418114181
F: drivers/soc/loongson/loongson2_guts.c
1418214182

14183+
LOONGSON-2 SOC SERIES MMC/SD/SDIO CONTROLLER DRIVER
14184+
M: Binbin Zhou <[email protected]>
14185+
14186+
S: Maintained
14187+
F: Documentation/devicetree/bindings/mmc/loongson,ls2k0500-mmc.yaml
14188+
1418314189
LOONGSON-2 SOC SERIES PM DRIVER
1418414190
M: Yinbo Zhu <[email protected]>
1418514191

0 commit comments

Comments
 (0)