Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <zhoubinbin@loongson.cn>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Huacai Chen <chenhuacai@loongson.cn>
Link: https://lore.kernel.org/r/949c55be120a806ea3d74b47fa2cc96ced2905fc.1750765495.git.zhoubinbin@loongson.cn
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Binbin Zhou and committed by
Ulf Hansson
fe62ee33 31c2e10c

+75
+69
Documentation/devicetree/bindings/mmc/loongson,ls2k0500-mmc.yaml
··· 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 <zhoubinbin@loongson.cn> 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 + };
+6
MAINTAINERS
··· 14175 14175 F: Documentation/devicetree/bindings/hwinfo/loongson,ls2k-chipid.yaml 14176 14176 F: drivers/soc/loongson/loongson2_guts.c 14177 14177 14178 + LOONGSON-2 SOC SERIES MMC/SD/SDIO CONTROLLER DRIVER 14179 + M: Binbin Zhou <zhoubinbin@loongson.cn> 14180 + L: linux-mmc@vger.kernel.org 14181 + S: Maintained 14182 + F: Documentation/devicetree/bindings/mmc/loongson,ls2k0500-mmc.yaml 14183 + 14178 14184 LOONGSON-2 SOC SERIES PM DRIVER 14179 14185 M: Yinbo Zhu <zhuyinbo@loongson.cn> 14180 14186 L: linux-pm@vger.kernel.org