File Index
Files and directories
Sign in
FILE

brcm,sdhci-brcmstb.yaml

File preview with syntax highlighting.

linux-6.19.14/Documentation/devicetree/bindings/mmc/brcm,sdhci-brcmstb.yaml 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/brcm,sdhci-brcmstb.yaml#
  5$schema: http://devicetree.org/meta-schemas/core.yaml#
  6
  7title: Broadcom BRCMSTB/BMIPS SDHCI Controller
  8
  9maintainers:
 10  - Al Cooper <alcooperx@gmail.com>
 11  - Florian Fainelli <f.fainelli@gmail.com>
 12
 13properties:
 14  compatible:
 15    oneOf:
 16      - items:
 17          - enum:
 18              - brcm,bcm7216-sdhci
 19          - const: brcm,bcm7445-sdhci
 20          - const: brcm,sdhci-brcmstb
 21      - items:
 22          - enum:
 23              - brcm,bcm2712-sdhci
 24              - brcm,bcm72116-sdhci
 25              - brcm,bcm74165b0-sdhci
 26              - brcm,bcm7445-sdhci
 27              - brcm,bcm7425-sdhci
 28              - brcm,bcm74371-sdhci
 29          - const: brcm,sdhci-brcmstb
 30
 31  reg:
 32    maxItems: 2
 33
 34  reg-names:
 35    items:
 36      - const: host
 37      - const: cfg
 38
 39  interrupts:
 40    maxItems: 1
 41
 42  clocks:
 43    minItems: 1
 44    items:
 45      - description: handle to core clock for the sdhci controller
 46      - description: handle to improved 150Mhz clock for sdhci controller (Optional clock)
 47
 48  clock-names:
 49    minItems: 1
 50    items:
 51      - const: sw_sdio
 52      - const: sdio_freq # Optional clock
 53
 54  clock-frequency:
 55    description:
 56      Maximum operating frequency of sdio_freq sdhci controller clock
 57    $ref: /schemas/types.yaml#/definitions/uint32
 58    minimum: 100000000
 59    maximum: 150000000
 60
 61  sdhci,auto-cmd12:
 62    type: boolean
 63    description: Specifies that controller should use auto CMD12
 64
 65allOf:
 66  - $ref: sdhci-common.yaml#
 67  - if:
 68      properties:
 69        clock-names:
 70          contains:
 71            const: sdio_freq
 72
 73    then:
 74      required:
 75        - clock-frequency
 76
 77required:
 78  - compatible
 79  - reg
 80  - interrupts
 81  - clocks
 82  - clock-names
 83
 84unevaluatedProperties: false
 85
 86examples:
 87  - |
 88    mmc@84b0000 {
 89      compatible = "brcm,bcm7216-sdhci",
 90                   "brcm,bcm7445-sdhci",
 91                   "brcm,sdhci-brcmstb";
 92      reg = <0x84b0000 0x260>, <0x84b0300 0x200>;
 93      reg-names = "host", "cfg";
 94      sd-uhs-sdr50;
 95      sd-uhs-ddr50;
 96      sd-uhs-sdr104;
 97      sdhci,auto-cmd12;
 98      interrupts = <0x0 0x26 0x4>;
 99      clocks = <&scmi_clk 245>;
100      clock-names = "sw_sdio";
101    };
102
103    mmc@84b1000 {
104      compatible = "brcm,bcm7216-sdhci",
105                   "brcm,bcm7445-sdhci",
106                   "brcm,sdhci-brcmstb";
107      reg = <0x84b1000 0x260>, <0x84b1300 0x200>;
108      reg-names = "host", "cfg";
109      mmc-ddr-1_8v;
110      mmc-hs200-1_8v;
111      mmc-hs400-1_8v;
112      mmc-hs400-enhanced-strobe;
113      supports-cqe;
114      non-removable;
115      bus-width = <0x8>;
116      interrupts = <0x0 0x27 0x4>;
117      clocks = <&scmi_clk 245>;
118      clock-names = "sw_sdio";
119    };
~/ Read-only file preview.