Arasan SDHCI Controller

Schema identifier ($id): "http://devicetree.org/schemas/mmc/arasan,sdhci.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Adrian Hunter <adrian.hunter@intel.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): mmc-controller.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "arasan,sdhci-5.1"

When the condition matches (then) #

Required in this object (required): "phys", "phy-names"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "xlnx,zynqmp-8.9a", "xlnx,versal-8.9a", "xlnx,versal-net-emmc"

When the condition matches (then) #

Properties and child nodes (properties)

clock-output-names — not listed as required here

Exactly one of these rules must match (oneOf)

Rule 1

Array item rules (items)

Item 1

Exact value (const): "clk_out_sd0"

Item 2

Exact value (const): "clk_in_sd0"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "clk_out_sd1"

Item 2

Exact value (const): "clk_in_sd1"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "renesas,rzn1-sdhci"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 2

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "arasan,sdhci-8.9a"

Rule 2

Exact value (const): "arasan,sdhci-4.9a"

Rule 3

Exact value (const): "arasan,sdhci-5.1"

Rule 4

Array item rules (items)

Item 1

Exact value (const): "renesas,r9a06g032-sdhci"

Item 2

Exact value (const): "renesas,rzn1-sdhci"

Item 3

Exact value (const): "arasan,sdhci-8.9a"

Rule 5

Array item rules (items)

Item 1

Exact value (const): "rockchip,rk3399-sdhci-5.1"

Item 2

Exact value (const): "arasan,sdhci-5.1"

For this device it is strongly suggested to include arasan,soc-ctl-syscon.

Rule 6

Array item rules (items)

Item 1

Exact value (const): "xlnx,zynqmp-8.9a"

Item 2

Exact value (const): "arasan,sdhci-8.9a"

For this device it is strongly suggested to include clock-output-names and '#clock-cells'.

Rule 7

Array item rules (items)

Item 1

Exact value (const): "xlnx,versal-8.9a"

Item 2

Exact value (const): "arasan,sdhci-8.9a"

For this device it is strongly suggested to include clock-output-names and '#clock-cells'.

Rule 8

Exact value (const): "xlnx,versal-net-emmc"

For this device it is strongly suggested to include clock-output-names and '#clock-cells'.

Rule 9

Array item rules (items)

Item 1

Exact value (const): "intel,lgm-sdhci-5.1-emmc"

Item 2

Exact value (const): "arasan,sdhci-5.1"

For this device it is strongly suggested to include arasan,soc-ctl-syscon.

Rule 10

Array item rules (items)

Item 1

Exact value (const): "intel,lgm-sdhci-5.1-sdxc"

Item 2

Exact value (const): "arasan,sdhci-5.1"

For this device it is strongly suggested to include arasan,soc-ctl-syscon.

Rule 11

Array item rules (items)

Item 1

Exact value (const): "intel,keembay-sdhci-5.1-emmc"

Item 2

Exact value (const): "arasan,sdhci-5.1"

For this device it is strongly suggested to include arasan,soc-ctl-syscon.

Rule 12

Exact value (const): "intel,keembay-sdhci-5.1-sd"

For this device it is strongly suggested to include arasan,soc-ctl-syscon.

Rule 13

Exact value (const): "intel,keembay-sdhci-5.1-sdio"

For this device it is strongly suggested to include arasan,soc-ctl-syscon.

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

clock-names — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "clk_xin"

Item 2

Exact value (const): "clk_ahb"

Item 3

Exact value (const): "gate"

interrupts — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

interrupt-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "int"

Item 2

Exact value (const): "wakeup"

phys — not listed as required here #

Maximum number of items (maxItems): 1

phy-names — not listed as required here #

Exact value (const): "phy_arasan"

resets — not listed as required here #

Maximum number of items (maxItems): 1

arasan,soc-ctl-syscon — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

A phandle to a syscon device (see ../mfd/syscon.txt) used to access core corecfg registers. Offsets of registers in this syscon are determined based on the main compatible string for the device.

clock-output-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Name of the card clock which will be exposed by this device.

#clock-cells — not listed as required here #

Allowed values (enum): 0, 1

With this property in place we will export one or two clocks representing the Card Clock. These clocks are expected to be consumed by our PHY.

xlnx,fails-without-test-cd — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

When present, the controller doesn't work when the CD line is not connected properly, and the line is not connected properly. Test mode can be used to force the controller to function.

xlnx,int-clock-stable-broken — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

When present, the controller always reports that the internal clock is stable even when it is not.

xlnx,mio-bank — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2

Default value (default): 0

The MIO bank number in which the command and data lines are configured.

iommus — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

Property dependencies (dependencies) #

#clock-cells — applies when this property is present #

Also requires: "clock-output-names"

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

mmc@e0100000 {
      compatible = "arasan,sdhci-8.9a";
      reg = <0xe0100000 0x1000>;
      clock-names = "clk_xin", "clk_ahb";
      clocks = <&clkc 21>, <&clkc 32>;
      interrupt-parent = <&gic>;
      interrupts = <0 24 4>;
};
mmc@e2800000 {
      compatible = "arasan,sdhci-5.1";
      reg = <0xe2800000 0x1000>;
      clock-names = "clk_xin", "clk_ahb";
      clocks = <&cru 8>, <&cru 18>;
      interrupt-parent = <&gic>;
      interrupts = <0 24 4>;
      phys = <&emmc_phy>;
      phy-names = "phy_arasan";
};
#include <dt-bindings/clock/rk3399-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
mmc@fe330000 {
      compatible = "rockchip,rk3399-sdhci-5.1", "arasan,sdhci-5.1";
      reg = <0xfe330000 0x10000>;
      interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
      clocks = <&cru SCLK_EMMC>, <&cru ACLK_EMMC>;
      clock-names = "clk_xin", "clk_ahb";
      arasan,soc-ctl-syscon = <&grf>;
      assigned-clocks = <&cru SCLK_EMMC>;
      assigned-clock-rates = <200000000>;
      clock-output-names = "emmc_cardclock";
      phys = <&emmc_phy>;
      phy-names = "phy_arasan";
      #clock-cells = <0>;
};
mmc@ff160000 {
      compatible = "xlnx,zynqmp-8.9a", "arasan,sdhci-8.9a";
      interrupt-parent = <&gic>;
      interrupts = <0 48 4>;
      reg = <0xff160000 0x1000>;
      clocks = <&clk200>, <&clk200>, <&clk1200>;
      clock-names = "clk_xin", "clk_ahb", "gate";
      clock-output-names = "clk_out_sd0", "clk_in_sd0";
      #clock-cells = <1>;
      clk-phase-sd-hs = <63>, <72>;
};
mmc@f1040000 {
      compatible = "xlnx,versal-8.9a", "arasan,sdhci-8.9a";
      interrupt-parent = <&gic>;
      interrupts = <0 126 4>;
      reg = <0xf1040000 0x10000>;
      clocks = <&clk200>, <&clk200>, <&clk1200>;
      clock-names = "clk_xin", "clk_ahb", "gate";
      clock-output-names = "clk_out_sd0", "clk_in_sd0";
      #clock-cells = <1>;
      clk-phase-sd-hs = <132>, <60>;
};
#define LGM_CLK_EMMC5
#define LGM_CLK_NGI
#define LGM_GCLK_EMMC
mmc@ec700000 {
      compatible = "intel,lgm-sdhci-5.1-emmc", "arasan,sdhci-5.1";
      reg = <0xec700000 0x300>;
      interrupt-parent = <&ioapic1>;
      interrupts = <44 1>;
      clocks = <&cgu0 LGM_CLK_EMMC5>, <&cgu0 LGM_CLK_NGI>,
               <&cgu0 LGM_GCLK_EMMC>;
      clock-names = "clk_xin", "clk_ahb", "gate";
      clock-output-names = "emmc_cardclock";
      #clock-cells = <0>;
      phys = <&emmc_phy>;
      phy-names = "phy_arasan";
      arasan,soc-ctl-syscon = <&sysconf>;
};
#define LGM_CLK_SDIO
#define LGM_GCLK_SDXC
mmc@ec600000 {
      compatible = "intel,lgm-sdhci-5.1-sdxc", "arasan,sdhci-5.1";
      reg = <0xec600000 0x300>;
      interrupt-parent = <&ioapic1>;
      interrupts = <43 1>;
      clocks = <&cgu0 LGM_CLK_SDIO>, <&cgu0 LGM_CLK_NGI>,
               <&cgu0 LGM_GCLK_SDXC>;
      clock-names = "clk_xin", "clk_ahb", "gate";
      clock-output-names = "sdxc_cardclock";
      #clock-cells = <0>;
      phys = <&sdxc_phy>;
      phy-names = "phy_arasan";
      arasan,soc-ctl-syscon = <&sysconf>;
};
#define KEEM_BAY_PSS_AUX_EMMC
#define KEEM_BAY_PSS_EMMC
mmc@33000000 {
      compatible = "intel,keembay-sdhci-5.1-emmc", "arasan,sdhci-5.1";
      interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
      reg = <0x33000000 0x300>;
      clock-names = "clk_xin", "clk_ahb";
      clocks = <&scmi_clk KEEM_BAY_PSS_AUX_EMMC>,
               <&scmi_clk KEEM_BAY_PSS_EMMC>;
      phys = <&emmc_phy>;
      phy-names = "phy_arasan";
      assigned-clocks = <&scmi_clk KEEM_BAY_PSS_AUX_EMMC>;
      assigned-clock-rates = <200000000>;
      clock-output-names = "emmc_cardclock";
      #clock-cells = <0>;
      arasan,soc-ctl-syscon = <&mmc_phy_syscon>;
};
#define KEEM_BAY_PSS_AUX_SD0
#define KEEM_BAY_PSS_SD0
mmc@31000000 {
      compatible = "intel,keembay-sdhci-5.1-sd";
      interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
      reg = <0x31000000 0x300>;
      clock-names = "clk_xin", "clk_ahb";
      clocks = <&scmi_clk KEEM_BAY_PSS_AUX_SD0>,
               <&scmi_clk KEEM_BAY_PSS_SD0>;
      arasan,soc-ctl-syscon = <&sd0_phy_syscon>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 54: generic Arasan SDHCI 8.9a PHY

Line 55: generic Arasan SDHCI 4.9a PHY

Line 56: generic Arasan SDHCI 5.1 PHY

Line 58: Renesas RZ/N1D SoC

Line 59: Renesas RZ/N1 family

Line 62: rk3399 eMMC PHY

Line 68: ZynqMP SDHCI 8.9a PHY

Line 74: Versal SDHCI 8.9a PHY

Line 79: Versal Net eMMC PHY

Line 84: Intel LGM eMMC PHY

Line 90: Intel LGM SDXC PHY

Line 96: Intel Keem Bay eMMC PHY

Line 101: Intel Keem Bay SD controller

Line 105: Intel Keem Bay SDIO controller

Edit this page