Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v5.8 228 lines 4.3 kB view raw
1// SPDX-License-Identifier: GPL-2.0 2/dts-v1/; 3#include "bcm2711.dtsi" 4#include "bcm2835-rpi.dtsi" 5#include "bcm283x-rpi-usb-peripheral.dtsi" 6 7/ { 8 compatible = "raspberrypi,4-model-b", "brcm,bcm2711"; 9 model = "Raspberry Pi 4 Model B"; 10 11 chosen { 12 /* 8250 auxiliary UART instead of pl011 */ 13 stdout-path = "serial1:115200n8"; 14 }; 15 16 /* Will be filled by the bootloader */ 17 memory@0 { 18 device_type = "memory"; 19 reg = <0 0 0>; 20 }; 21 22 aliases { 23 emmc2bus = &emmc2bus; 24 ethernet0 = &genet; 25 pcie0 = &pcie0; 26 }; 27 28 leds { 29 act { 30 gpios = <&gpio 42 GPIO_ACTIVE_HIGH>; 31 }; 32 33 pwr { 34 label = "PWR"; 35 gpios = <&expgpio 2 GPIO_ACTIVE_LOW>; 36 default-state = "keep"; 37 linux,default-trigger = "default-on"; 38 }; 39 }; 40 41 wifi_pwrseq: wifi-pwrseq { 42 compatible = "mmc-pwrseq-simple"; 43 reset-gpios = <&expgpio 1 GPIO_ACTIVE_LOW>; 44 }; 45 46 sd_io_1v8_reg: sd_io_1v8_reg { 47 compatible = "regulator-gpio"; 48 regulator-name = "vdd-sd-io"; 49 regulator-min-microvolt = <1800000>; 50 regulator-max-microvolt = <3300000>; 51 regulator-boot-on; 52 regulator-always-on; 53 regulator-settling-time-us = <5000>; 54 gpios = <&expgpio 4 GPIO_ACTIVE_HIGH>; 55 states = <1800000 0x1 56 3300000 0x0>; 57 status = "okay"; 58 }; 59 60 sd_vcc_reg: sd_vcc_reg { 61 compatible = "regulator-fixed"; 62 regulator-name = "vcc-sd"; 63 regulator-min-microvolt = <3300000>; 64 regulator-max-microvolt = <3300000>; 65 regulator-boot-on; 66 enable-active-high; 67 gpio = <&expgpio 6 GPIO_ACTIVE_HIGH>; 68 }; 69}; 70 71&firmware { 72 expgpio: gpio { 73 compatible = "raspberrypi,firmware-gpio"; 74 gpio-controller; 75 #gpio-cells = <2>; 76 gpio-line-names = "BT_ON", 77 "WL_ON", 78 "PWR_LED_OFF", 79 "GLOBAL_RESET", 80 "VDD_SD_IO_SEL", 81 "CAM_GPIO", 82 "SD_PWR_ON", 83 ""; 84 status = "okay"; 85 }; 86}; 87 88&gpio { 89 /* 90 * Parts taken from rpi_SCH_4b_4p0_reduced.pdf and 91 * the official GPU firmware DT blob. 92 * 93 * Legend: 94 * "FOO" = GPIO line named "FOO" on the schematic 95 * "FOO_N" = GPIO line named "FOO" on schematic, active low 96 */ 97 gpio-line-names = "ID_SDA", 98 "ID_SCL", 99 "SDA1", 100 "SCL1", 101 "GPIO_GCLK", 102 "GPIO5", 103 "GPIO6", 104 "SPI_CE1_N", 105 "SPI_CE0_N", 106 "SPI_MISO", 107 "SPI_MOSI", 108 "SPI_SCLK", 109 "GPIO12", 110 "GPIO13", 111 /* Serial port */ 112 "TXD1", 113 "RXD1", 114 "GPIO16", 115 "GPIO17", 116 "GPIO18", 117 "GPIO19", 118 "GPIO20", 119 "GPIO21", 120 "GPIO22", 121 "GPIO23", 122 "GPIO24", 123 "GPIO25", 124 "GPIO26", 125 "GPIO27", 126 "RGMII_MDIO", 127 "RGMIO_MDC", 128 /* Used by BT module */ 129 "CTS0", 130 "RTS0", 131 "TXD0", 132 "RXD0", 133 /* Used by Wifi */ 134 "SD1_CLK", 135 "SD1_CMD", 136 "SD1_DATA0", 137 "SD1_DATA1", 138 "SD1_DATA2", 139 "SD1_DATA3", 140 /* Shared with SPI flash */ 141 "PWM0_MISO", 142 "PWM1_MOSI", 143 "STATUS_LED_G_CLK", 144 "SPIFLASH_CE_N", 145 "SDA0", 146 "SCL0", 147 "RGMII_RXCLK", 148 "RGMII_RXCTL", 149 "RGMII_RXD0", 150 "RGMII_RXD1", 151 "RGMII_RXD2", 152 "RGMII_RXD3", 153 "RGMII_TXCLK", 154 "RGMII_TXCTL", 155 "RGMII_TXD0", 156 "RGMII_TXD1", 157 "RGMII_TXD2", 158 "RGMII_TXD3"; 159}; 160 161&pwm1 { 162 pinctrl-names = "default"; 163 pinctrl-0 = <&pwm1_0_gpio40 &pwm1_1_gpio41>; 164 status = "okay"; 165}; 166 167/* SDHCI is used to control the SDIO for wireless */ 168&sdhci { 169 #address-cells = <1>; 170 #size-cells = <0>; 171 pinctrl-names = "default"; 172 pinctrl-0 = <&emmc_gpio34>; 173 bus-width = <4>; 174 non-removable; 175 mmc-pwrseq = <&wifi_pwrseq>; 176 status = "okay"; 177 178 brcmf: wifi@1 { 179 reg = <1>; 180 compatible = "brcm,bcm4329-fmac"; 181 }; 182}; 183 184/* EMMC2 is used to drive the SD card */ 185&emmc2 { 186 vqmmc-supply = <&sd_io_1v8_reg>; 187 vmmc-supply = <&sd_vcc_reg>; 188 broken-cd; 189 status = "okay"; 190}; 191 192&genet { 193 phy-handle = <&phy1>; 194 phy-mode = "rgmii-rxid"; 195 status = "okay"; 196}; 197 198&genet_mdio { 199 phy1: ethernet-phy@1 { 200 /* No PHY interrupt */ 201 reg = <0x1>; 202 }; 203}; 204 205/* uart0 communicates with the BT module */ 206&uart0 { 207 pinctrl-names = "default"; 208 pinctrl-0 = <&uart0_ctsrts_gpio30 &uart0_gpio32>; 209 uart-has-rtscts; 210 status = "okay"; 211 212 bluetooth { 213 compatible = "brcm,bcm43438-bt"; 214 max-speed = <2000000>; 215 shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>; 216 }; 217}; 218 219/* uart1 is mapped to the pin header */ 220&uart1 { 221 pinctrl-names = "default"; 222 pinctrl-0 = <&uart1_gpio14>; 223 status = "okay"; 224}; 225 226&vchiq { 227 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>; 228};