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