xref: /freebsd/sys/contrib/device-tree/Bindings/mmc/microchip,sdhci-pic32.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* Microchip PIC32 SDHCI Controller
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThis file documents differences between the core properties in mmc.txt
4*c66ec88fSEmmanuel Vadotand the properties used by the sdhci-pic32 driver.
5*c66ec88fSEmmanuel Vadot
6*c66ec88fSEmmanuel VadotRequired properties:
7*c66ec88fSEmmanuel Vadot- compatible: Should be "microchip,pic32mzda-sdhci"
8*c66ec88fSEmmanuel Vadot- interrupts: Should contain interrupt
9*c66ec88fSEmmanuel Vadot- clock-names: Should be "base_clk", "sys_clk".
10*c66ec88fSEmmanuel Vadot               See: Documentation/devicetree/bindings/resource-names.txt
11*c66ec88fSEmmanuel Vadot- clocks: Phandle to the clock.
12*c66ec88fSEmmanuel Vadot          See: Documentation/devicetree/bindings/clock/clock-bindings.txt
13*c66ec88fSEmmanuel Vadot- pinctrl-names: A pinctrl state names "default" must be defined.
14*c66ec88fSEmmanuel Vadot- pinctrl-0: Phandle referencing pin configuration of the SDHCI controller.
15*c66ec88fSEmmanuel Vadot             See: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
16*c66ec88fSEmmanuel Vadot
17*c66ec88fSEmmanuel VadotExample:
18*c66ec88fSEmmanuel Vadot
19*c66ec88fSEmmanuel Vadot	sdhci@1f8ec000 {
20*c66ec88fSEmmanuel Vadot		compatible = "microchip,pic32mzda-sdhci";
21*c66ec88fSEmmanuel Vadot		reg = <0x1f8ec000 0x100>;
22*c66ec88fSEmmanuel Vadot		interrupts = <191 IRQ_TYPE_LEVEL_HIGH>;
23*c66ec88fSEmmanuel Vadot		clocks = <&rootclk REF4CLK>, <&rootclk PB5CLK>;
24*c66ec88fSEmmanuel Vadot		clock-names = "base_clk", "sys_clk";
25*c66ec88fSEmmanuel Vadot		bus-width = <4>;
26*c66ec88fSEmmanuel Vadot		cap-sd-highspeed;
27*c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
28*c66ec88fSEmmanuel Vadot		pinctrl-0 = <&pinctrl_sdhc1>;
29*c66ec88fSEmmanuel Vadot	};
30