Nuvoton MA35D1 SD/SDIO/MMC Controller

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

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

Maintainers (maintainers): "Shan-Chun Hung <shanchun1218@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): sdhci-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "nuvoton,ma35d1-sdhci"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

pinctrl-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "default"

Item 2

Exact value (const): "state_uhs"

pinctrl-0 — required here #

Should contain default/high speed pin ctrl.

Maximum number of items (maxItems): 1

pinctrl-1 — not listed as required here #

Should contain uhs mode pin ctrl.

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

nuvoton,sys — required here #

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

phandle to access GCR (Global Control Register) registers.

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "pinctrl-names", "pinctrl-0", "resets", "nuvoton,sys"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/nuvoton,ma35d1-clk.h>
#include <dt-bindings/reset/nuvoton,ma35d1-reset.h>

soc {
    #address-cells = <2>;
    #size-cells = <2>;
    mmc@40190000 {
        compatible = "nuvoton,ma35d1-sdhci";
        reg = <0x0 0x40190000 0x0 0x2000>;
        interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
        clocks = <&clk SDH1_GATE>;
        pinctrl-names = "default", "state_uhs";
        pinctrl-0 = <&pinctrl_sdhci1>;
        pinctrl-1 = <&pinctrl_sdhci1_uhs>;
        resets = <&sys MA35D1_RESET_SDH1>;
        nuvoton,sys = <&sys>;
        vqmmc-supply = <&sdhci1_vqmmc_regulator>;
        bus-width = <8>;
        max-frequency = <200000000>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page