Commit 8414061c authored by Stefan Wahren's avatar Stefan Wahren Committed by Ulf Hansson
Browse files

dt-bindings: mmc: convert bcm2835-sdhost bindings to YAML



Convert the DT binding document for bcm2835-sdhost from .txt to YAML.

Signed-off-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230604121223.9625-9-stefan.wahren@i2se.com


Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 0e92aec2
Loading
Loading
Loading
Loading
+0 −23
Original line number Diff line number Diff line
Broadcom BCM2835 SDHOST controller

This file documents differences between the core properties described
by mmc.txt and the properties that represent the BCM2835 controller.

Required properties:
- compatible: Should be "brcm,bcm2835-sdhost".
- clocks: The clock feeding the SDHOST controller.

Optional properties:
- dmas: DMA channel for read and write.
          See Documentation/devicetree/bindings/dma/dma.txt for details

Example:

sdhost: mmc@7e202000 {
	compatible = "brcm,bcm2835-sdhost";
	reg = <0x7e202000 0x100>;
	interrupts = <2 24>;
	clocks = <&clocks BCM2835_CLOCK_VPU>;
	dmas = <&dma 13>;
	dma-names = "rx-tx";
};
+54 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/mmc/brcm,bcm2835-sdhost.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Broadcom BCM2835 SDHOST controller

maintainers:
  - Stefan Wahren <stefan.wahren@i2se.com>

allOf:
  - $ref: mmc-controller.yaml

properties:
  compatible:
    const: brcm,bcm2835-sdhost

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  clocks:
    maxItems: 1

  dmas:
    maxItems: 1

  dma-names:
    const: rx-tx

required:
  - compatible
  - reg
  - interrupts
  - clocks

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/clock/bcm2835.h>

    sdhost: mmc@7e202000 {
      compatible = "brcm,bcm2835-sdhost";
      reg = <0x7e202000 0x100>;
      interrupts = <2 24>;
      clocks = <&clocks BCM2835_CLOCK_VPU>;
      dmas = <&dma 13>;
      dma-names = "rx-tx";
      bus-width = <4>;
    };