1// SPDX-License-Identifier: GPL-2.0
2/dts-v1/;
3#include "bcm2711-rpi-cm4.dtsi"
4#include "bcm283x-rpi-led-deprecated.dtsi"
5#include "bcm283x-rpi-usb-host.dtsi"
6
7/ {
8	model = "Raspberry Pi Compute Module 4 IO Board";
9};
10
11&ddc0 {
12	status = "okay";
13};
14
15&ddc1 {
16	status = "okay";
17};
18
19&gpio {
20	/*
21	 * Parts taken from rpi_SCH_4b_4p0_reduced.pdf and
22	 * the official GPU firmware DT blob.
23	 *
24	 * Legend:
25	 * "FOO" = GPIO line named "FOO" on the schematic
26	 * "FOO_N" = GPIO line named "FOO" on schematic, active low
27	 */
28	gpio-line-names = "ID_SDA",
29			  "ID_SCL",
30			  "SDA1",
31			  "SCL1",
32			  "GPIO_GCLK",
33			  "GPIO5",
34			  "GPIO6",
35			  "SPI_CE1_N",
36			  "SPI_CE0_N",
37			  "SPI_MISO",
38			  "SPI_MOSI",
39			  "SPI_SCLK",
40			  "GPIO12",
41			  "GPIO13",
42			  /* Serial port */
43			  "TXD1",
44			  "RXD1",
45			  "GPIO16",
46			  "GPIO17",
47			  "GPIO18",
48			  "GPIO19",
49			  "GPIO20",
50			  "GPIO21",
51			  "GPIO22",
52			  "GPIO23",
53			  "GPIO24",
54			  "GPIO25",
55			  "GPIO26",
56			  "GPIO27",
57			  "RGMII_MDIO",
58			  "RGMIO_MDC",
59			  /* Used by BT module */
60			  "CTS0",
61			  "RTS0",
62			  "TXD0",
63			  "RXD0",
64			  /* Used by Wifi */
65			  "SD1_CLK",
66			  "SD1_CMD",
67			  "SD1_DATA0",
68			  "SD1_DATA1",
69			  "SD1_DATA2",
70			  "SD1_DATA3",
71			  /* Shared with SPI flash */
72			  "PWM0_MISO",
73			  "PWM1_MOSI",
74			  "STATUS_LED_G_CLK",
75			  "SPIFLASH_CE_N",
76			  "SDA0",
77			  "SCL0",
78			  "RGMII_RXCLK",
79			  "RGMII_RXCTL",
80			  "RGMII_RXD0",
81			  "RGMII_RXD1",
82			  "RGMII_RXD2",
83			  "RGMII_RXD3",
84			  "RGMII_TXCLK",
85			  "RGMII_TXCTL",
86			  "RGMII_TXD0",
87			  "RGMII_TXD1",
88			  "RGMII_TXD2",
89			  "RGMII_TXD3";
90};
91
92&hdmi0 {
93	status = "okay";
94};
95
96&hdmi1 {
97	status = "okay";
98};
99
100&genet {
101	status = "okay";
102};
103
104&led_act {
105	gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
106};
107
108&leds {
109	led-pwr {
110		label = "PWR";
111		gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
112		default-state = "keep";
113		linux,default-trigger = "default-on";
114	};
115};
116
117&pixelvalve0 {
118	status = "okay";
119};
120
121&pixelvalve1 {
122	status = "okay";
123};
124
125&pixelvalve2 {
126	status = "okay";
127};
128
129&pixelvalve4 {
130	status = "okay";
131};
132
133&vc4 {
134	status = "okay";
135};
136
137&vec {
138	status = "disabled";
139};
140