brintos

brintos / linux-shallow public Read only

0
0
Text · 2.8 KiB · 9fce8cd Raw
108 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-or-later2# Copyright 2019 IBM Corp.3%YAML 1.24---5$id: http://devicetree.org/schemas/mmc/aspeed,sdhci.yaml#6$schema: http://devicetree.org/meta-schemas/core.yaml#7 8title: ASPEED SD/SDIO/MMC Controller9 10maintainers:11  - Andrew Jeffery <andrew@aj.id.au>12  - Ryan Chen <ryanchen.aspeed@gmail.com>13 14description: |+15  The ASPEED SD/SDIO/eMMC controller exposes two slots implementing the SDIO16  Host Specification v2.00, with 1 or 4 bit data buses, or an 8 bit data bus if17  only a single slot is enabled.18 19  The two slots are supported by a common configuration area. As the SDHCIs for20  the slots are dependent on the common configuration area, they are described21  as child nodes.22 23properties:24  compatible:25    enum:26      - aspeed,ast2400-sd-controller27      - aspeed,ast2500-sd-controller28      - aspeed,ast2600-sd-controller29  reg:30    maxItems: 131    description: Common configuration registers32  "#address-cells":33    const: 134  "#size-cells":35    const: 136  ranges: true37  clocks:38    maxItems: 139    description: The SD/SDIO controller clock gate40 41patternProperties:42  "^sdhci@[0-9a-f]+$":43    type: object44    $ref: mmc-controller.yaml45    unevaluatedProperties: false46 47    properties:48      compatible:49        enum:50          - aspeed,ast2400-sdhci51          - aspeed,ast2500-sdhci52          - aspeed,ast2600-sdhci53      reg:54        maxItems: 155        description: The SDHCI registers56      clocks:57        maxItems: 158        description: The SD bus clock59      interrupts:60        maxItems: 161        description: The SD interrupt shared between both slots62      sdhci,auto-cmd12:63        type: boolean64        description: Specifies that controller should use auto CMD1265    required:66      - compatible67      - reg68      - clocks69      - interrupts70 71additionalProperties: false72 73required:74  - compatible75  - reg76  - "#address-cells"77  - "#size-cells"78  - ranges79  - clocks80 81examples:82  - |83    #include <dt-bindings/clock/aspeed-clock.h>84    sdc@1e740000 {85            compatible = "aspeed,ast2500-sd-controller";86            reg = <0x1e740000 0x100>;87            #address-cells = <1>;88            #size-cells = <1>;89            ranges = <0 0x1e740000 0x20000>;90            clocks = <&syscon ASPEED_CLK_GATE_SDCLK>;91 92            sdhci0: sdhci@100 {93                    compatible = "aspeed,ast2500-sdhci";94                    reg = <0x100 0x100>;95                    interrupts = <26>;96                    sdhci,auto-cmd12;97                    clocks = <&syscon ASPEED_CLK_SDIO>;98            };99 100            sdhci1: sdhci@200 {101                    compatible = "aspeed,ast2500-sdhci";102                    reg = <0x200 0x100>;103                    interrupts = <26>;104                    sdhci,auto-cmd12;105                    clocks = <&syscon ASPEED_CLK_SDIO>;106            };107    };108