1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/mmc/amlogic,meson-mx-sdhc.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 77ef62cebSEmmanuel Vadottitle: Amlogic Meson SDHC controller 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel VadotallOf: 10*cb7aa33aSEmmanuel Vadot - $ref: mmc-controller.yaml 11c66ec88fSEmmanuel Vadot 12c66ec88fSEmmanuel Vadotmaintainers: 13c66ec88fSEmmanuel Vadot - Martin Blumenstingl <martin.blumenstingl@googlemail.com> 14c66ec88fSEmmanuel Vadot 15c66ec88fSEmmanuel Vadotdescription: | 16c66ec88fSEmmanuel Vadot The SDHC MMC host controller on Amlogic SoCs provides an eMMC and MMC 17c66ec88fSEmmanuel Vadot card interface with 1/4/8-bit bus width. 18c66ec88fSEmmanuel Vadot It supports eMMC spec 4.4x/4.5x including HS200 (up to 100MHz clock). 19c66ec88fSEmmanuel Vadot 20c66ec88fSEmmanuel Vadotproperties: 21c66ec88fSEmmanuel Vadot compatible: 22c66ec88fSEmmanuel Vadot items: 23c66ec88fSEmmanuel Vadot - enum: 24c66ec88fSEmmanuel Vadot - amlogic,meson8-sdhc 25c66ec88fSEmmanuel Vadot - amlogic,meson8b-sdhc 26c66ec88fSEmmanuel Vadot - amlogic,meson8m2-sdhc 27c66ec88fSEmmanuel Vadot - const: amlogic,meson-mx-sdhc 28c66ec88fSEmmanuel Vadot 29c66ec88fSEmmanuel Vadot reg: 30c66ec88fSEmmanuel Vadot minItems: 1 31c66ec88fSEmmanuel Vadot 32c66ec88fSEmmanuel Vadot interrupts: 33c66ec88fSEmmanuel Vadot minItems: 1 34c66ec88fSEmmanuel Vadot 35c66ec88fSEmmanuel Vadot clocks: 36c66ec88fSEmmanuel Vadot minItems: 5 37c66ec88fSEmmanuel Vadot 38c66ec88fSEmmanuel Vadot clock-names: 39c66ec88fSEmmanuel Vadot items: 40c66ec88fSEmmanuel Vadot - const: clkin0 41c66ec88fSEmmanuel Vadot - const: clkin1 42c66ec88fSEmmanuel Vadot - const: clkin2 43c66ec88fSEmmanuel Vadot - const: clkin3 44c66ec88fSEmmanuel Vadot - const: pclk 45c66ec88fSEmmanuel Vadot 46c66ec88fSEmmanuel Vadotrequired: 47c66ec88fSEmmanuel Vadot - compatible 48c66ec88fSEmmanuel Vadot - reg 49c66ec88fSEmmanuel Vadot - interrupts 50c66ec88fSEmmanuel Vadot - clocks 51c66ec88fSEmmanuel Vadot - clock-names 52c66ec88fSEmmanuel Vadot 536be33864SEmmanuel VadotunevaluatedProperties: false 546be33864SEmmanuel Vadot 55c66ec88fSEmmanuel Vadotexamples: 56c66ec88fSEmmanuel Vadot - | 57c66ec88fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 58c66ec88fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 59c66ec88fSEmmanuel Vadot 60c66ec88fSEmmanuel Vadot sdhc: mmc@8e00 { 61c66ec88fSEmmanuel Vadot compatible = "amlogic,meson8-sdhc", "amlogic,meson-mx-sdhc"; 62c66ec88fSEmmanuel Vadot reg = <0x8e00 0x42>; 63c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 78 IRQ_TYPE_EDGE_RISING>; 64c66ec88fSEmmanuel Vadot clocks = <&xtal>, 65c66ec88fSEmmanuel Vadot <&fclk_div4>, 66c66ec88fSEmmanuel Vadot <&fclk_div3>, 67c66ec88fSEmmanuel Vadot <&fclk_div5>, 68c66ec88fSEmmanuel Vadot <&sdhc_pclk>; 69c66ec88fSEmmanuel Vadot clock-names = "clkin0", "clkin1", "clkin2", "clkin3", "pclk"; 70c66ec88fSEmmanuel Vadot }; 71