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