1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2*4882a593Smuzhiyun%YAML 1.2 3*4882a593Smuzhiyun--- 4*4882a593Smuzhiyun$id: http://devicetree.org/schemas/mmc/cdns,sdhci.yaml# 5*4882a593Smuzhiyun$schema: http://devicetree.org/meta-schemas/core.yaml# 6*4882a593Smuzhiyun 7*4882a593Smuzhiyuntitle: Cadence SD/SDIO/eMMC Host Controller (SD4HC) 8*4882a593Smuzhiyun 9*4882a593Smuzhiyunmaintainers: 10*4882a593Smuzhiyun - Masahiro Yamada <yamada.masahiro@socionext.com> 11*4882a593Smuzhiyun - Piotr Sroka <piotrs@cadence.com> 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunallOf: 14*4882a593Smuzhiyun - $ref: mmc-controller.yaml 15*4882a593Smuzhiyun 16*4882a593Smuzhiyunproperties: 17*4882a593Smuzhiyun compatible: 18*4882a593Smuzhiyun items: 19*4882a593Smuzhiyun - enum: 20*4882a593Smuzhiyun - socionext,uniphier-sd4hc 21*4882a593Smuzhiyun - const: cdns,sd4hc 22*4882a593Smuzhiyun 23*4882a593Smuzhiyun reg: 24*4882a593Smuzhiyun maxItems: 1 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun interrupts: 27*4882a593Smuzhiyun maxItems: 1 28*4882a593Smuzhiyun 29*4882a593Smuzhiyun clocks: 30*4882a593Smuzhiyun maxItems: 1 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun # PHY DLL input delays: 33*4882a593Smuzhiyun # They are used to delay the data valid window, and align the window to 34*4882a593Smuzhiyun # sampling clock. The delay starts from 5ns (for delay parameter equal to 0) 35*4882a593Smuzhiyun # and it is increased by 2.5ns in each step. 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun cdns,phy-input-delay-sd-highspeed: 38*4882a593Smuzhiyun description: Value of the delay in the input path for SD high-speed timing 39*4882a593Smuzhiyun $ref: "/schemas/types.yaml#/definitions/uint32" 40*4882a593Smuzhiyun minimum: 0 41*4882a593Smuzhiyun maximum: 0x1f 42*4882a593Smuzhiyun 43*4882a593Smuzhiyun cdns,phy-input-delay-legacy: 44*4882a593Smuzhiyun description: Value of the delay in the input path for legacy timing 45*4882a593Smuzhiyun $ref: "/schemas/types.yaml#/definitions/uint32" 46*4882a593Smuzhiyun minimum: 0 47*4882a593Smuzhiyun maximum: 0x1f 48*4882a593Smuzhiyun 49*4882a593Smuzhiyun cdns,phy-input-delay-sd-uhs-sdr12: 50*4882a593Smuzhiyun description: Value of the delay in the input path for SD UHS SDR12 timing 51*4882a593Smuzhiyun $ref: "/schemas/types.yaml#/definitions/uint32" 52*4882a593Smuzhiyun minimum: 0 53*4882a593Smuzhiyun maximum: 0x1f 54*4882a593Smuzhiyun 55*4882a593Smuzhiyun cdns,phy-input-delay-sd-uhs-sdr25: 56*4882a593Smuzhiyun description: Value of the delay in the input path for SD UHS SDR25 timing 57*4882a593Smuzhiyun $ref: "/schemas/types.yaml#/definitions/uint32" 58*4882a593Smuzhiyun minimum: 0 59*4882a593Smuzhiyun maximum: 0x1f 60*4882a593Smuzhiyun 61*4882a593Smuzhiyun cdns,phy-input-delay-sd-uhs-sdr50: 62*4882a593Smuzhiyun description: Value of the delay in the input path for SD UHS SDR50 timing 63*4882a593Smuzhiyun $ref: "/schemas/types.yaml#/definitions/uint32" 64*4882a593Smuzhiyun minimum: 0 65*4882a593Smuzhiyun maximum: 0x1f 66*4882a593Smuzhiyun 67*4882a593Smuzhiyun cdns,phy-input-delay-sd-uhs-ddr50: 68*4882a593Smuzhiyun description: Value of the delay in the input path for SD UHS DDR50 timing 69*4882a593Smuzhiyun $ref: "/schemas/types.yaml#/definitions/uint32" 70*4882a593Smuzhiyun minimum: 0 71*4882a593Smuzhiyun maximum: 0x1f 72*4882a593Smuzhiyun 73*4882a593Smuzhiyun cdns,phy-input-delay-mmc-highspeed: 74*4882a593Smuzhiyun description: Value of the delay in the input path for MMC high-speed timing 75*4882a593Smuzhiyun $ref: "/schemas/types.yaml#/definitions/uint32" 76*4882a593Smuzhiyun minimum: 0 77*4882a593Smuzhiyun maximum: 0x1f 78*4882a593Smuzhiyun 79*4882a593Smuzhiyun cdns,phy-input-delay-mmc-ddr: 80*4882a593Smuzhiyun description: Value of the delay in the input path for eMMC high-speed DDR timing 81*4882a593Smuzhiyun 82*4882a593Smuzhiyun # PHY DLL clock delays: 83*4882a593Smuzhiyun # Each delay property represents the fraction of the clock period. 84*4882a593Smuzhiyun # The approximate delay value will be 85*4882a593Smuzhiyun # (<delay property value>/128)*sdmclk_clock_period. 86*4882a593Smuzhiyun $ref: "/schemas/types.yaml#/definitions/uint32" 87*4882a593Smuzhiyun minimum: 0 88*4882a593Smuzhiyun maximum: 0x1f 89*4882a593Smuzhiyun 90*4882a593Smuzhiyun cdns,phy-dll-delay-sdclk: 91*4882a593Smuzhiyun description: | 92*4882a593Smuzhiyun Value of the delay introduced on the sdclk output for all modes except 93*4882a593Smuzhiyun HS200, HS400 and HS400_ES. 94*4882a593Smuzhiyun $ref: "/schemas/types.yaml#/definitions/uint32" 95*4882a593Smuzhiyun minimum: 0 96*4882a593Smuzhiyun maximum: 0x7f 97*4882a593Smuzhiyun 98*4882a593Smuzhiyun cdns,phy-dll-delay-sdclk-hsmmc: 99*4882a593Smuzhiyun description: | 100*4882a593Smuzhiyun Value of the delay introduced on the sdclk output for HS200, HS400 and 101*4882a593Smuzhiyun HS400_ES speed modes. 102*4882a593Smuzhiyun $ref: "/schemas/types.yaml#/definitions/uint32" 103*4882a593Smuzhiyun minimum: 0 104*4882a593Smuzhiyun maximum: 0x7f 105*4882a593Smuzhiyun 106*4882a593Smuzhiyun cdns,phy-dll-delay-strobe: 107*4882a593Smuzhiyun description: | 108*4882a593Smuzhiyun Value of the delay introduced on the dat_strobe input used in 109*4882a593Smuzhiyun HS400 / HS400_ES speed modes. 110*4882a593Smuzhiyun $ref: "/schemas/types.yaml#/definitions/uint32" 111*4882a593Smuzhiyun minimum: 0 112*4882a593Smuzhiyun maximum: 0x7f 113*4882a593Smuzhiyun 114*4882a593Smuzhiyunrequired: 115*4882a593Smuzhiyun - compatible 116*4882a593Smuzhiyun - reg 117*4882a593Smuzhiyun - interrupts 118*4882a593Smuzhiyun - clocks 119*4882a593Smuzhiyun 120*4882a593SmuzhiyununevaluatedProperties: false 121*4882a593Smuzhiyun 122*4882a593Smuzhiyunexamples: 123*4882a593Smuzhiyun - | 124*4882a593Smuzhiyun emmc: mmc@5a000000 { 125*4882a593Smuzhiyun compatible = "socionext,uniphier-sd4hc", "cdns,sd4hc"; 126*4882a593Smuzhiyun reg = <0x5a000000 0x400>; 127*4882a593Smuzhiyun interrupts = <0 78 4>; 128*4882a593Smuzhiyun clocks = <&clk 4>; 129*4882a593Smuzhiyun bus-width = <8>; 130*4882a593Smuzhiyun mmc-ddr-1_8v; 131*4882a593Smuzhiyun mmc-hs200-1_8v; 132*4882a593Smuzhiyun mmc-hs400-1_8v; 133*4882a593Smuzhiyun cdns,phy-dll-delay-sdclk = <0>; 134*4882a593Smuzhiyun }; 135