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