1// SPDX-License-Identifier: GPL-2.0 2/dts-v1/; 3#include "bcm2837.dtsi" 4#include "bcm2835-rpi.dtsi" 5#include "bcm283x-rpi-lan7515.dtsi" 6#include "bcm283x-rpi-usb-host.dtsi" 7 8/ { 9 compatible = "raspberrypi,3-model-b-plus", "brcm,bcm2837"; 10 model = "Raspberry Pi 3 Model B+"; 11 12 chosen { 13 /* 8250 auxiliary UART instead of pl011 */ 14 stdout-path = "serial1:115200n8"; 15 }; 16 17 memory { 18 reg = <0 0x40000000>; 19 }; 20 21 leds { 22 act { 23 gpios = <&gpio 29 GPIO_ACTIVE_HIGH>; 24 }; 25 26 pwr { 27 label = "PWR"; 28 gpios = <&expgpio 2 GPIO_ACTIVE_LOW>; 29 }; 30 }; 31 32 wifi_pwrseq: wifi-pwrseq { 33 compatible = "mmc-pwrseq-simple"; 34 reset-gpios = <&expgpio 1 GPIO_ACTIVE_LOW>; 35 }; 36}; 37 38&firmware { 39 expgpio: gpio { 40 compatible = "raspberrypi,firmware-gpio"; 41 gpio-controller; 42 #gpio-cells = <2>; 43 gpio-line-names = "BT_ON", 44 "WL_ON", 45 "STATUS_LED", 46 "LAN_RUN", 47 "", 48 "CAM_GPIO0", 49 "CAM_GPIO1", 50 ""; 51 status = "okay"; 52 }; 53}; 54 55&hdmi { 56 hpd-gpios = <&gpio 28 GPIO_ACTIVE_LOW>; 57}; 58 59&pwm { 60 pinctrl-names = "default"; 61 pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio41>; 62 status = "okay"; 63}; 64 65/* SDHCI is used to control the SDIO for wireless */ 66&sdhci { 67 #address-cells = <1>; 68 #size-cells = <0>; 69 pinctrl-names = "default"; 70 pinctrl-0 = <&emmc_gpio34>; 71 status = "okay"; 72 bus-width = <4>; 73 non-removable; 74 mmc-pwrseq = <&wifi_pwrseq>; 75 76 brcmf: wifi@1 { 77 reg = <1>; 78 compatible = "brcm,bcm4329-fmac"; 79 }; 80}; 81 82/* SDHOST is used to drive the SD card */ 83&sdhost { 84 pinctrl-names = "default"; 85 pinctrl-0 = <&sdhost_gpio48>; 86 status = "okay"; 87 bus-width = <4>; 88}; 89 90/* uart0 communicates with the BT module */ 91&uart0 { 92 pinctrl-names = "default"; 93 pinctrl-0 = <&uart0_ctsrts_gpio30 &uart0_gpio32 &gpclk2_gpio43>; 94 status = "okay"; 95 96 bluetooth { 97 compatible = "brcm,bcm43438-bt"; 98 max-speed = <2000000>; 99 shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>; 100 }; 101}; 102 103/* uart1 is mapped to the pin header */ 104&uart1 { 105 pinctrl-names = "default"; 106 pinctrl-0 = <&uart1_gpio14>; 107 status = "okay"; 108}; 109