xref: /freebsd/sys/contrib/device-tree/src/arm/broadcom/bcm2837-rpi-cm3-io3.dts (revision 96190b4fef3b4a0cc3ca0606b0c4e3e69a5e6717)
1// SPDX-License-Identifier: GPL-2.0
2/dts-v1/;
3#include "bcm2837-rpi-cm3.dtsi"
4#include "bcm283x-rpi-usb-host.dtsi"
5
6/ {
7	compatible = "raspberrypi,3-compute-module", "brcm,bcm2837";
8	model = "Raspberry Pi Compute Module 3 IO board V3.0";
9};
10
11&gpio {
12	/*
13	 * This is based on the official GPU firmware DT blob.
14	 *
15	 * Legend:
16	 * "FOO" = GPIO line named "FOO" on the schematic
17	 * "FOO_N" = GPIO line named "FOO" on schematic, active low
18	 */
19	gpio-line-names = "GPIO0",
20			  "GPIO1",
21			  "GPIO2",
22			  "GPIO3",
23			  "GPIO4",
24			  "GPIO5",
25			  "GPIO6",
26			  "GPIO7",
27			  "GPIO8",
28			  "GPIO9",
29			  "GPIO10",
30			  "GPIO11",
31			  "GPIO12",
32			  "GPIO13",
33			  "GPIO14",
34			  "GPIO15",
35			  "GPIO16",
36			  "GPIO17",
37			  "GPIO18",
38			  "GPIO19",
39			  "GPIO20",
40			  "GPIO21",
41			  "GPIO22",
42			  "GPIO23",
43			  "GPIO24",
44			  "GPIO25",
45			  "GPIO26",
46			  "GPIO27",
47			  "GPIO28",
48			  "GPIO29",
49			  "GPIO30",
50			  "GPIO31",
51			  "GPIO32",
52			  "GPIO33",
53			  "GPIO34",
54			  "GPIO35",
55			  "GPIO36",
56			  "GPIO37",
57			  "GPIO38",
58			  "GPIO39",
59			  "GPIO40",
60			  "GPIO41",
61			  "GPIO42",
62			  "GPIO43",
63			  "GPIO44",
64			  "GPIO45",
65			  "SMPS_SCL",
66			  "SMPS_SDA",
67			  /* Used by eMMC */
68			  "SD_CLK_R",
69			  "SD_CMD_R",
70			  "SD_DATA0_R",
71			  "SD_DATA1_R",
72			  "SD_DATA2_R",
73			  "SD_DATA3_R";
74
75	pinctrl-names = "default";
76	pinctrl-0 = <&gpioout &alt0>;
77};
78
79&hdmi {
80	hpd-gpios = <&expgpio 1 GPIO_ACTIVE_LOW>;
81	power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
82	status = "okay";
83};
84
85&sdhost {
86	pinctrl-names = "default";
87	pinctrl-0 = <&sdhost_gpio48>;
88	bus-width = <4>;
89	status = "okay";
90};
91
92&uart0 {
93	pinctrl-names = "default";
94	pinctrl-0 = <&uart0_gpio14>;
95	status = "okay";
96};
97