1*b2d2a78aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*b2d2a78aSEmmanuel Vadot%YAML 1.2 3*b2d2a78aSEmmanuel Vadot--- 4*b2d2a78aSEmmanuel Vadot$id: http://devicetree.org/schemas/mmc/nuvoton,ma35d1-sdhci.yaml# 5*b2d2a78aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*b2d2a78aSEmmanuel Vadot 7*b2d2a78aSEmmanuel Vadottitle: Nuvoton MA35D1 SD/SDIO/MMC Controller 8*b2d2a78aSEmmanuel Vadot 9*b2d2a78aSEmmanuel Vadotmaintainers: 10*b2d2a78aSEmmanuel Vadot - Shan-Chun Hung <shanchun1218@gmail.com> 11*b2d2a78aSEmmanuel Vadot 12*b2d2a78aSEmmanuel VadotallOf: 13*b2d2a78aSEmmanuel Vadot - $ref: sdhci-common.yaml# 14*b2d2a78aSEmmanuel Vadot 15*b2d2a78aSEmmanuel Vadotproperties: 16*b2d2a78aSEmmanuel Vadot compatible: 17*b2d2a78aSEmmanuel Vadot enum: 18*b2d2a78aSEmmanuel Vadot - nuvoton,ma35d1-sdhci 19*b2d2a78aSEmmanuel Vadot 20*b2d2a78aSEmmanuel Vadot reg: 21*b2d2a78aSEmmanuel Vadot maxItems: 1 22*b2d2a78aSEmmanuel Vadot 23*b2d2a78aSEmmanuel Vadot interrupts: 24*b2d2a78aSEmmanuel Vadot maxItems: 1 25*b2d2a78aSEmmanuel Vadot 26*b2d2a78aSEmmanuel Vadot clocks: 27*b2d2a78aSEmmanuel Vadot maxItems: 1 28*b2d2a78aSEmmanuel Vadot 29*b2d2a78aSEmmanuel Vadot pinctrl-names: 30*b2d2a78aSEmmanuel Vadot minItems: 1 31*b2d2a78aSEmmanuel Vadot items: 32*b2d2a78aSEmmanuel Vadot - const: default 33*b2d2a78aSEmmanuel Vadot - const: state_uhs 34*b2d2a78aSEmmanuel Vadot 35*b2d2a78aSEmmanuel Vadot pinctrl-0: 36*b2d2a78aSEmmanuel Vadot description: 37*b2d2a78aSEmmanuel Vadot Should contain default/high speed pin ctrl. 38*b2d2a78aSEmmanuel Vadot maxItems: 1 39*b2d2a78aSEmmanuel Vadot 40*b2d2a78aSEmmanuel Vadot pinctrl-1: 41*b2d2a78aSEmmanuel Vadot description: 42*b2d2a78aSEmmanuel Vadot Should contain uhs mode pin ctrl. 43*b2d2a78aSEmmanuel Vadot maxItems: 1 44*b2d2a78aSEmmanuel Vadot 45*b2d2a78aSEmmanuel Vadot resets: 46*b2d2a78aSEmmanuel Vadot maxItems: 1 47*b2d2a78aSEmmanuel Vadot 48*b2d2a78aSEmmanuel Vadot nuvoton,sys: 49*b2d2a78aSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle 50*b2d2a78aSEmmanuel Vadot description: phandle to access GCR (Global Control Register) registers. 51*b2d2a78aSEmmanuel Vadot 52*b2d2a78aSEmmanuel Vadotrequired: 53*b2d2a78aSEmmanuel Vadot - compatible 54*b2d2a78aSEmmanuel Vadot - reg 55*b2d2a78aSEmmanuel Vadot - interrupts 56*b2d2a78aSEmmanuel Vadot - clocks 57*b2d2a78aSEmmanuel Vadot - pinctrl-names 58*b2d2a78aSEmmanuel Vadot - pinctrl-0 59*b2d2a78aSEmmanuel Vadot - resets 60*b2d2a78aSEmmanuel Vadot - nuvoton,sys 61*b2d2a78aSEmmanuel Vadot 62*b2d2a78aSEmmanuel VadotunevaluatedProperties: false 63*b2d2a78aSEmmanuel Vadot 64*b2d2a78aSEmmanuel Vadotexamples: 65*b2d2a78aSEmmanuel Vadot - | 66*b2d2a78aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 67*b2d2a78aSEmmanuel Vadot #include <dt-bindings/clock/nuvoton,ma35d1-clk.h> 68*b2d2a78aSEmmanuel Vadot #include <dt-bindings/reset/nuvoton,ma35d1-reset.h> 69*b2d2a78aSEmmanuel Vadot 70*b2d2a78aSEmmanuel Vadot soc { 71*b2d2a78aSEmmanuel Vadot #address-cells = <2>; 72*b2d2a78aSEmmanuel Vadot #size-cells = <2>; 73*b2d2a78aSEmmanuel Vadot mmc@40190000 { 74*b2d2a78aSEmmanuel Vadot compatible = "nuvoton,ma35d1-sdhci"; 75*b2d2a78aSEmmanuel Vadot reg = <0x0 0x40190000 0x0 0x2000>; 76*b2d2a78aSEmmanuel Vadot interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>; 77*b2d2a78aSEmmanuel Vadot clocks = <&clk SDH1_GATE>; 78*b2d2a78aSEmmanuel Vadot pinctrl-names = "default", "state_uhs"; 79*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&pinctrl_sdhci1>; 80*b2d2a78aSEmmanuel Vadot pinctrl-1 = <&pinctrl_sdhci1_uhs>; 81*b2d2a78aSEmmanuel Vadot resets = <&sys MA35D1_RESET_SDH1>; 82*b2d2a78aSEmmanuel Vadot nuvoton,sys = <&sys>; 83*b2d2a78aSEmmanuel Vadot vqmmc-supply = <&sdhci1_vqmmc_regulator>; 84*b2d2a78aSEmmanuel Vadot bus-width = <8>; 85*b2d2a78aSEmmanuel Vadot max-frequency = <200000000>; 86*b2d2a78aSEmmanuel Vadot }; 87*b2d2a78aSEmmanuel Vadot }; 88