1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 # Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/
5 $id: "http://devicetree.org/schemas/mmc/sdhci-am654.yaml#"
6 $schema : "http://devicetree.org/meta-schemas/core.yaml#"
8 title: TI AM654 MMC Controller
11 - Ulf Hansson <ulf.hansson@linaro.org>
14 - $ref: mmc-controller.yaml#
37 description: Handles to input clocks
46 # PHY output tap delays:
47 # Used to delay the data valid window and align it to the sampling clock.
48 # Binding needs to be provided for each supported speed mode otherwise the
49 # corresponding mode will be disabled.
51 ti,otap-del-sel-legacy:
52 description: Output tap delay for SD/MMC legacy timing
53 $ref: "/schemas/types.yaml#/definitions/uint32"
57 ti,otap-del-sel-mmc-hs:
58 description: Output tap delay for MMC high speed timing
59 $ref: "/schemas/types.yaml#/definitions/uint32"
63 ti,otap-del-sel-sd-hs:
64 description: Output tap delay for SD high speed timing
65 $ref: "/schemas/types.yaml#/definitions/uint32"
69 ti,otap-del-sel-sdr12:
70 description: Output tap delay for SD UHS SDR12 timing
71 $ref: "/schemas/types.yaml#/definitions/uint32"
75 ti,otap-del-sel-sdr25:
76 description: Output tap delay for SD UHS SDR25 timing
77 $ref: "/schemas/types.yaml#/definitions/uint32"
81 ti,otap-del-sel-sdr50:
82 description: Output tap delay for SD UHS SDR50 timing
83 $ref: "/schemas/types.yaml#/definitions/uint32"
87 ti,otap-del-sel-sdr104:
88 description: Output tap delay for SD UHS SDR104 timing
89 $ref: "/schemas/types.yaml#/definitions/uint32"
93 ti,otap-del-sel-ddr50:
94 description: Output tap delay for SD UHS DDR50 timing
95 $ref: "/schemas/types.yaml#/definitions/uint32"
99 ti,otap-del-sel-ddr52:
100 description: Output tap delay for eMMC DDR52 timing
101 $ref: "/schemas/types.yaml#/definitions/uint32"
105 ti,otap-del-sel-hs200:
106 description: Output tap delay for eMMC HS200 timing
107 $ref: "/schemas/types.yaml#/definitions/uint32"
111 ti,otap-del-sel-hs400:
112 description: Output tap delay for eMMC HS400 timing
113 $ref: "/schemas/types.yaml#/definitions/uint32"
117 # PHY input tap delays:
118 # Used to delay the data valid window and align it to the sampling clock for
119 # modes that don't support tuning
121 ti,itap-del-sel-legacy:
122 description: Input tap delay for SD/MMC legacy timing
123 $ref: "/schemas/types.yaml#/definitions/uint32"
127 ti,itap-del-sel-mmc-hs:
128 description: Input tap delay for MMC high speed timing
129 $ref: "/schemas/types.yaml#/definitions/uint32"
133 ti,itap-del-sel-sd-hs:
134 description: Input tap delay for SD high speed timing
135 $ref: "/schemas/types.yaml#/definitions/uint32"
139 ti,itap-del-sel-sdr12:
140 description: Input tap delay for SD UHS SDR12 timing
141 $ref: "/schemas/types.yaml#/definitions/uint32"
145 ti,itap-del-sel-sdr25:
146 description: Input tap delay for SD UHS SDR25 timing
147 $ref: "/schemas/types.yaml#/definitions/uint32"
151 ti,itap-del-sel-ddr52:
152 description: Input tap delay for MMC DDR52 timing
153 $ref: "/schemas/types.yaml#/definitions/uint32"
158 description: DLL trim select
159 $ref: "/schemas/types.yaml#/definitions/uint32"
163 ti,driver-strength-ohm:
164 description: DLL drive strength in ohms
165 $ref: "/schemas/types.yaml#/definitions/uint32"
175 description: strobe select delay for HS400 speed mode.
176 $ref: "/schemas/types.yaml#/definitions/uint32"
179 description: Clock Delay Buffer Select
180 $ref: "/schemas/types.yaml#/definitions/uint32"
188 - ti,otap-del-sel-legacy
192 #include <dt-bindings/interrupt-controller/irq.h>
193 #include <dt-bindings/interrupt-controller/arm-gic.h>
196 #address-cells = <2>;
200 compatible = "ti,am654-sdhci-5.1";
201 reg = <0x0 0x4f80000 0x0 0x260>, <0x0 0x4f90000 0x0 0x134>;
202 power-domains = <&k3_pds 47>;
203 clocks = <&k3_clks 47 0>, <&k3_clks 47 1>;
204 clock-names = "clk_ahb", "clk_xin";
205 interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>;
206 sdhci-caps-mask = <0x80000007 0x0>;
208 ti,otap-del-sel-legacy = <0x0>;
209 ti,otap-del-sel-mmc-hs = <0x0>;
210 ti,otap-del-sel-ddr52 = <0x5>;
211 ti,otap-del-sel-hs200 = <0x5>;
212 ti,otap-del-sel-hs400 = <0x0>;
213 ti,itap-del-sel-legacy = <0x10>;
214 ti,itap-del-sel-mmc-hs = <0xa>;
215 ti,itap-del-sel-ddr52 = <0x3>;