xref: /freebsd/sys/contrib/device-tree/src/arm64/microchip/sparx5_pcb134_emmc.dts (revision 6be3386466ab79a84b48429ae66244f21526d3df)
1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2c66ec88fSEmmanuel Vadot/*
3c66ec88fSEmmanuel Vadot * Copyright (c) 2020 Microchip Technology Inc. and its subsidiaries.
4c66ec88fSEmmanuel Vadot */
5c66ec88fSEmmanuel Vadot
6c66ec88fSEmmanuel Vadot/dts-v1/;
7c66ec88fSEmmanuel Vadot#include "sparx5_pcb134_board.dtsi"
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadot/ {
10c66ec88fSEmmanuel Vadot	model = "Sparx5 PCB134 Reference Board (eMMC enabled)";
11c66ec88fSEmmanuel Vadot	compatible = "microchip,sparx5-pcb134", "microchip,sparx5";
12c66ec88fSEmmanuel Vadot
13c66ec88fSEmmanuel Vadot	memory@0 {
14c66ec88fSEmmanuel Vadot		device_type = "memory";
15c66ec88fSEmmanuel Vadot		reg = <0x00000000 0x00000000 0x10000000>;
16c66ec88fSEmmanuel Vadot	};
17c66ec88fSEmmanuel Vadot};
18*6be33864SEmmanuel Vadot
19*6be33864SEmmanuel Vadot&gpio {
20*6be33864SEmmanuel Vadot	emmc_pins: emmc-pins {
21*6be33864SEmmanuel Vadot		/* NB: No "GPIO_35", "GPIO_36", "GPIO_37"
22*6be33864SEmmanuel Vadot		 * (N/A: CARD_nDETECT, CARD_WP, CARD_LED)
23*6be33864SEmmanuel Vadot		 */
24*6be33864SEmmanuel Vadot		pins = "GPIO_34", "GPIO_38", "GPIO_39",
25*6be33864SEmmanuel Vadot			"GPIO_40", "GPIO_41", "GPIO_42",
26*6be33864SEmmanuel Vadot			"GPIO_43", "GPIO_44", "GPIO_45",
27*6be33864SEmmanuel Vadot			"GPIO_46", "GPIO_47";
28*6be33864SEmmanuel Vadot		drive-strength = <3>;
29*6be33864SEmmanuel Vadot		function = "emmc";
30*6be33864SEmmanuel Vadot	};
31*6be33864SEmmanuel Vadot};
32*6be33864SEmmanuel Vadot
33*6be33864SEmmanuel Vadot&sdhci0 {
34*6be33864SEmmanuel Vadot	status = "okay";
35*6be33864SEmmanuel Vadot	pinctrl-0 = <&emmc_pins>;
36*6be33864SEmmanuel Vadot	non-removable;
37*6be33864SEmmanuel Vadot	max-frequency = <52000000>;
38*6be33864SEmmanuel Vadot	bus-width = <8>;
39*6be33864SEmmanuel Vadot	microchip,clock-delay = <10>;
40*6be33864SEmmanuel Vadot};
41