Skip to content

Commit c60cffd

Browse files
AaronDotKexyBiscuit
authored andcommitted
UPSTREAM: dt-bindings: mmc: loongson,ls2k0500-mmc: Add compatible for Loongson-2K2000
Add the devicetree compatible for Loongson-2K2000 EMMC/SD/SDIO controller. Acked-by: Conor Dooley <[email protected]> Signed-off-by: Binbin Zhou <[email protected]> Reviewed-by: Huacai Chen <[email protected]> Link: https://lore.kernel.org/r/2274fcccd27d7c03bc026fd2a43727bdf5af1ef5.1750765495.git.zhoubinbin@loongson.cn Signed-off-by: Ulf Hansson <[email protected]> (cherry picked from commit 96e7288) Signed-off-by: Kexy Biscuit <[email protected]>
1 parent d08dfb7 commit c60cffd

File tree

1 file changed

+45
-2
lines changed

1 file changed

+45
-2
lines changed

Documentation/devicetree/bindings/mmc/loongson,ls2k0500-mmc.yaml

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ title: The SD/SDIO/eMMC host controller for Loongson-2K family SoCs
99
description:
1010
The MMC host controller on the Loongson-2K0500/2K1000 (using an externally
1111
shared apbdma controller) provides the SD and SDIO device interfaces.
12+
The two MMC host controllers on the Loongson-2K2000 are similar,
13+
except that they use internal exclusive DMA. one controller provides
14+
the eMMC interface and the other provides the SD/SDIO interface.
1215

1316
maintainers:
1417
- Binbin Zhou <[email protected]>
@@ -21,8 +24,10 @@ properties:
2124
enum:
2225
- loongson,ls2k0500-mmc
2326
- loongson,ls2k1000-mmc
27+
- loongson,ls2k2000-mmc
2428

2529
reg:
30+
minItems: 1
2631
items:
2732
- description: Loongson-2K MMC controller registers.
2833
- description: APB DMA config register for Loongson-2K MMC controller.
@@ -44,11 +49,31 @@ required:
4449
- reg
4550
- interrupts
4651
- clocks
47-
- dmas
48-
- dma-names
4952

5053
unevaluatedProperties: false
5154

55+
if:
56+
properties:
57+
compatible:
58+
contains:
59+
enum:
60+
- loongson,ls2k0500-mmc
61+
- loongson,ls2k1000-mmc
62+
63+
then:
64+
properties:
65+
reg:
66+
minItems: 2
67+
68+
required:
69+
- dmas
70+
- dma-names
71+
72+
else:
73+
properties:
74+
reg:
75+
maxItems: 1
76+
5277
examples:
5378
- |
5479
#include <dt-bindings/gpio/gpio.h>
@@ -67,3 +92,21 @@ examples:
6792
bus-width = <4>;
6893
cd-gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
6994
};
95+
96+
- |
97+
#include <dt-bindings/interrupt-controller/irq.h>
98+
#include <dt-bindings/clock/loongson,ls2k-clk.h>
99+
100+
mmc@79990000 {
101+
compatible = "loongson,ls2k2000-mmc";
102+
reg = <0x79990000 0x1000>;
103+
interrupt-parent = <&pic>;
104+
interrupts = <51 IRQ_TYPE_LEVEL_HIGH>;
105+
clocks = <&clk LOONGSON2_EMMC_CLK>;
106+
bus-width = <8>;
107+
non-removable;
108+
cap-mmc-highspeed;
109+
mmc-hs200-1_8v;
110+
no-sd;
111+
no-sdio;
112+
};

0 commit comments

Comments
 (0)