xref: /freebsd/sys/contrib/device-tree/src/arm64/broadcom/bcm2712-rpi-5-b.dts (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1*b2d2a78aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2*b2d2a78aSEmmanuel Vadot/dts-v1/;
3*b2d2a78aSEmmanuel Vadot
4*b2d2a78aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
5*b2d2a78aSEmmanuel Vadot#include "bcm2712.dtsi"
6*b2d2a78aSEmmanuel Vadot
7*b2d2a78aSEmmanuel Vadot/ {
8*b2d2a78aSEmmanuel Vadot	compatible = "raspberrypi,5-model-b", "brcm,bcm2712";
9*b2d2a78aSEmmanuel Vadot	model = "Raspberry Pi 5";
10*b2d2a78aSEmmanuel Vadot
11*b2d2a78aSEmmanuel Vadot	aliases {
12*b2d2a78aSEmmanuel Vadot		serial10 = &uart10;
13*b2d2a78aSEmmanuel Vadot	};
14*b2d2a78aSEmmanuel Vadot
15*b2d2a78aSEmmanuel Vadot	chosen: chosen {
16*b2d2a78aSEmmanuel Vadot		stdout-path = "serial10:115200n8";
17*b2d2a78aSEmmanuel Vadot	};
18*b2d2a78aSEmmanuel Vadot
19*b2d2a78aSEmmanuel Vadot	/* Will be filled by the bootloader */
20*b2d2a78aSEmmanuel Vadot	memory@0 {
21*b2d2a78aSEmmanuel Vadot		device_type = "memory";
22*b2d2a78aSEmmanuel Vadot		reg = <0 0 0 0x28000000>;
23*b2d2a78aSEmmanuel Vadot	};
24*b2d2a78aSEmmanuel Vadot
25*b2d2a78aSEmmanuel Vadot	sd_io_1v8_reg: sd-io-1v8-reg {
26*b2d2a78aSEmmanuel Vadot		compatible = "regulator-gpio";
27*b2d2a78aSEmmanuel Vadot		regulator-name = "vdd-sd-io";
28*b2d2a78aSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
29*b2d2a78aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
30*b2d2a78aSEmmanuel Vadot		regulator-boot-on;
31*b2d2a78aSEmmanuel Vadot		regulator-always-on;
32*b2d2a78aSEmmanuel Vadot		regulator-settling-time-us = <5000>;
33*b2d2a78aSEmmanuel Vadot		gpios = <&gio_aon 3 GPIO_ACTIVE_HIGH>;
34*b2d2a78aSEmmanuel Vadot		states = <1800000 1>,
35*b2d2a78aSEmmanuel Vadot			 <3300000 0>;
36*b2d2a78aSEmmanuel Vadot	};
37*b2d2a78aSEmmanuel Vadot
38*b2d2a78aSEmmanuel Vadot	sd_vcc_reg: sd-vcc-reg {
39*b2d2a78aSEmmanuel Vadot		compatible = "regulator-fixed";
40*b2d2a78aSEmmanuel Vadot		regulator-name = "vcc-sd";
41*b2d2a78aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
42*b2d2a78aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
43*b2d2a78aSEmmanuel Vadot		regulator-boot-on;
44*b2d2a78aSEmmanuel Vadot		enable-active-high;
45*b2d2a78aSEmmanuel Vadot		gpios = <&gio_aon 4 GPIO_ACTIVE_HIGH>;
46*b2d2a78aSEmmanuel Vadot	};
47*b2d2a78aSEmmanuel Vadot};
48*b2d2a78aSEmmanuel Vadot
49*b2d2a78aSEmmanuel Vadot/* The Debug UART, on Rpi5 it's on JST-SH 1.0mm 3-pin connector
50*b2d2a78aSEmmanuel Vadot * labeled "UART", i.e. the interface with the system console.
51*b2d2a78aSEmmanuel Vadot */
52*b2d2a78aSEmmanuel Vadot&uart10 {
53*b2d2a78aSEmmanuel Vadot	status = "okay";
54*b2d2a78aSEmmanuel Vadot};
55*b2d2a78aSEmmanuel Vadot
56*b2d2a78aSEmmanuel Vadot/* SDIO1 is used to drive the SD card */
57*b2d2a78aSEmmanuel Vadot&sdio1 {
58*b2d2a78aSEmmanuel Vadot	vqmmc-supply = <&sd_io_1v8_reg>;
59*b2d2a78aSEmmanuel Vadot	vmmc-supply = <&sd_vcc_reg>;
60*b2d2a78aSEmmanuel Vadot	bus-width = <4>;
61*b2d2a78aSEmmanuel Vadot	sd-uhs-sdr50;
62*b2d2a78aSEmmanuel Vadot	sd-uhs-ddr50;
63*b2d2a78aSEmmanuel Vadot	sd-uhs-sdr104;
64*b2d2a78aSEmmanuel Vadot};
65