bcm2837-rpi-3-b-plus.dts (2953B)
1// SPDX-License-Identifier: GPL-2.0 2/dts-v1/; 3#include "bcm2837.dtsi" 4#include "bcm2836-rpi.dtsi" 5#include "bcm283x-rpi-lan7515.dtsi" 6#include "bcm283x-rpi-usb-host.dtsi" 7#include "bcm283x-rpi-wifi-bt.dtsi" 8 9/ { 10 compatible = "raspberrypi,3-model-b-plus", "brcm,bcm2837"; 11 model = "Raspberry Pi 3 Model B+"; 12 13 chosen { 14 /* 8250 auxiliary UART instead of pl011 */ 15 stdout-path = "serial1:115200n8"; 16 }; 17 18 memory@0 { 19 device_type = "memory"; 20 reg = <0 0x40000000>; 21 }; 22 23 leds { 24 led-act { 25 gpios = <&gpio 29 GPIO_ACTIVE_HIGH>; 26 }; 27 28 led-pwr { 29 label = "PWR"; 30 gpios = <&expgpio 2 GPIO_ACTIVE_LOW>; 31 default-state = "keep"; 32 linux,default-trigger = "default-on"; 33 }; 34 }; 35}; 36 37&bt { 38 shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>; 39}; 40 41&firmware { 42 expgpio: gpio { 43 compatible = "raspberrypi,firmware-gpio"; 44 gpio-controller; 45 #gpio-cells = <2>; 46 gpio-line-names = "BT_ON", 47 "WL_ON", 48 "PWR_LED_R", 49 "LAN_RUN", 50 "", 51 "CAM_GPIO0", 52 "CAM_GPIO1", 53 ""; 54 status = "okay"; 55 }; 56}; 57 58&gpio { 59 /* 60 * Taken from rpi_SCH_3bplus_1p0_reduced.pdf and 61 * the official GPU firmware DT blob. 62 * 63 * Legend: 64 * "FOO" = GPIO line named "FOO" on the schematic 65 * "FOO_N" = GPIO line named "FOO" on schematic, active low 66 */ 67 gpio-line-names = "ID_SDA", 68 "ID_SCL", 69 "SDA1", 70 "SCL1", 71 "GPIO_GCLK", 72 "GPIO5", 73 "GPIO6", 74 "SPI_CE1_N", 75 "SPI_CE0_N", 76 "SPI_MISO", 77 "SPI_MOSI", 78 "SPI_SCLK", 79 "GPIO12", 80 "GPIO13", 81 /* Serial port */ 82 "TXD1", 83 "RXD1", 84 "GPIO16", 85 "GPIO17", 86 "GPIO18", 87 "GPIO19", 88 "GPIO20", 89 "GPIO21", 90 "GPIO22", 91 "GPIO23", 92 "GPIO24", 93 "GPIO25", 94 "GPIO26", 95 "GPIO27", 96 "HDMI_HPD_N", 97 "STATUS_LED_G", 98 /* Used by BT module */ 99 "CTS0", 100 "RTS0", 101 "TXD0", 102 "RXD0", 103 /* Used by Wifi */ 104 "SD1_CLK", 105 "SD1_CMD", 106 "SD1_DATA0", 107 "SD1_DATA1", 108 "SD1_DATA2", 109 "SD1_DATA3", 110 "PWM0_OUT", 111 "PWM1_OUT", 112 "ETH_CLK", 113 "WIFI_CLK", 114 "SDA0", 115 "SCL0", 116 "SMPS_SCL", 117 "SMPS_SDA", 118 /* Used by SD Card */ 119 "SD_CLK_R", 120 "SD_CMD_R", 121 "SD_DATA0_R", 122 "SD_DATA1_R", 123 "SD_DATA2_R", 124 "SD_DATA3_R"; 125}; 126 127&hdmi { 128 hpd-gpios = <&gpio 28 GPIO_ACTIVE_LOW>; 129 power-domains = <&power RPI_POWER_DOMAIN_HDMI>; 130 status = "okay"; 131}; 132 133&pwm { 134 pinctrl-names = "default"; 135 pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio41>; 136 status = "okay"; 137}; 138 139/* SDHOST is used to drive the SD card */ 140&sdhost { 141 pinctrl-names = "default"; 142 pinctrl-0 = <&sdhost_gpio48>; 143 status = "okay"; 144 bus-width = <4>; 145}; 146 147/* uart0 communicates with the BT module */ 148&uart0 { 149 pinctrl-names = "default"; 150 pinctrl-0 = <&uart0_ctsrts_gpio30 &uart0_gpio32 &gpclk2_gpio43>; 151}; 152 153/* uart1 is mapped to the pin header */ 154&uart1 { 155 pinctrl-names = "default"; 156 pinctrl-0 = <&uart1_gpio14>; 157 status = "okay"; 158}; 159 160&wifi_pwrseq { 161 reset-gpios = <&expgpio 1 GPIO_ACTIVE_LOW>; 162};