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-lan7515.dtsi" 6*f126890aSEmmanuel Vadot#include "bcm283x-rpi-led-deprecated.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-plus", "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 "PWR_LED_R", 37*f126890aSEmmanuel Vadot "LAN_RUN", 38*f126890aSEmmanuel Vadot "", 39*f126890aSEmmanuel Vadot "CAM_GPIO0", 40*f126890aSEmmanuel Vadot "CAM_GPIO1", 41*f126890aSEmmanuel Vadot ""; 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_3bplus_1p0_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 "HDMI_HPD_N", 85*f126890aSEmmanuel Vadot "STATUS_LED_G", 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&hdmi { 116*f126890aSEmmanuel Vadot hpd-gpios = <&gpio 28 GPIO_ACTIVE_LOW>; 117*f126890aSEmmanuel Vadot power-domains = <&power RPI_POWER_DOMAIN_HDMI>; 118*f126890aSEmmanuel Vadot status = "okay"; 119*f126890aSEmmanuel Vadot}; 120*f126890aSEmmanuel Vadot 121*f126890aSEmmanuel Vadot&led_act { 122*f126890aSEmmanuel Vadot gpios = <&gpio 29 GPIO_ACTIVE_HIGH>; 123*f126890aSEmmanuel Vadot}; 124*f126890aSEmmanuel Vadot 125*f126890aSEmmanuel Vadot&leds { 126*f126890aSEmmanuel Vadot led-pwr { 127*f126890aSEmmanuel Vadot label = "PWR"; 128*f126890aSEmmanuel Vadot gpios = <&expgpio 2 GPIO_ACTIVE_LOW>; 129*f126890aSEmmanuel Vadot default-state = "keep"; 130*f126890aSEmmanuel Vadot linux,default-trigger = "default-on"; 131*f126890aSEmmanuel Vadot }; 132*f126890aSEmmanuel Vadot}; 133*f126890aSEmmanuel Vadot 134*f126890aSEmmanuel Vadot&pwm { 135*f126890aSEmmanuel Vadot pinctrl-names = "default"; 136*f126890aSEmmanuel Vadot pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio41>; 137*f126890aSEmmanuel Vadot status = "okay"; 138*f126890aSEmmanuel Vadot}; 139*f126890aSEmmanuel Vadot 140*f126890aSEmmanuel Vadot/* SDHOST is used to drive the SD card */ 141*f126890aSEmmanuel Vadot&sdhost { 142*f126890aSEmmanuel Vadot pinctrl-names = "default"; 143*f126890aSEmmanuel Vadot pinctrl-0 = <&sdhost_gpio48>; 144*f126890aSEmmanuel Vadot status = "okay"; 145*f126890aSEmmanuel Vadot bus-width = <4>; 146*f126890aSEmmanuel Vadot}; 147*f126890aSEmmanuel Vadot 148*f126890aSEmmanuel Vadot/* uart0 communicates with the BT module */ 149*f126890aSEmmanuel Vadot&uart0 { 150*f126890aSEmmanuel Vadot pinctrl-names = "default"; 151*f126890aSEmmanuel Vadot pinctrl-0 = <&uart0_ctsrts_gpio30 &uart0_gpio32 &gpclk2_gpio43>; 152*f126890aSEmmanuel Vadot}; 153*f126890aSEmmanuel Vadot 154*f126890aSEmmanuel Vadot/* uart1 is mapped to the pin header */ 155*f126890aSEmmanuel Vadot&uart1 { 156*f126890aSEmmanuel Vadot pinctrl-names = "default"; 157*f126890aSEmmanuel Vadot pinctrl-0 = <&uart1_gpio14>; 158*f126890aSEmmanuel Vadot status = "okay"; 159*f126890aSEmmanuel Vadot}; 160*f126890aSEmmanuel Vadot 161*f126890aSEmmanuel Vadot&wifi_pwrseq { 162*f126890aSEmmanuel Vadot reset-gpios = <&expgpio 1 GPIO_ACTIVE_LOW>; 163*f126890aSEmmanuel Vadot}; 164