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-0 = <&gpioout &alt0>;
76};
77
78&hdmi {
79	hpd-gpios = <&expgpio 1 GPIO_ACTIVE_LOW>;
80	power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
81	status = "okay";
82};
83
84&sdhost {
85	pinctrl-names = "default";
86	pinctrl-0 = <&sdhost_gpio48>;
87	bus-width = <4>;
88	status = "okay";
89};
90
91&uart0 {
92	pinctrl-names = "default";
93	pinctrl-0 = <&uart0_gpio14>;
94	status = "okay";
95};
96