1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 2*724ba675SRob Herring/dts-v1/; 3*724ba675SRob Herring#include "bcm2835.dtsi" 4*724ba675SRob Herring#include "bcm2835-rpi.dtsi" 5*724ba675SRob Herring#include "bcm2835-rpi-common.dtsi" 6*724ba675SRob Herring#include "bcm283x-rpi-led-deprecated.dtsi" 7*724ba675SRob Herring#include "bcm283x-rpi-smsc9514.dtsi" 8*724ba675SRob Herring#include "bcm283x-rpi-usb-host.dtsi" 9*724ba675SRob Herring 10*724ba675SRob Herring/ { 11*724ba675SRob Herring compatible = "raspberrypi,model-b-plus", "brcm,bcm2835"; 12*724ba675SRob Herring model = "Raspberry Pi Model B+"; 13*724ba675SRob Herring 14*724ba675SRob Herring memory@0 { 15*724ba675SRob Herring device_type = "memory"; 16*724ba675SRob Herring reg = <0 0x20000000>; 17*724ba675SRob Herring }; 18*724ba675SRob Herring}; 19*724ba675SRob Herring 20*724ba675SRob Herring&gpio { 21*724ba675SRob Herring /* 22*724ba675SRob Herring * Taken from Raspberry-Pi-B-Plus-V1.2-Schematics.pdf 23*724ba675SRob Herring * RPI-BPLUS sheet 1 24*724ba675SRob Herring * 25*724ba675SRob Herring * Legend: 26*724ba675SRob Herring * "FOO" = GPIO line named "FOO" on the schematic 27*724ba675SRob Herring * "FOO_N" = GPIO line named "FOO" on schematic, active low 28*724ba675SRob Herring */ 29*724ba675SRob Herring gpio-line-names = "ID_SDA", 30*724ba675SRob Herring "ID_SCL", 31*724ba675SRob Herring "SDA1", 32*724ba675SRob Herring "SCL1", 33*724ba675SRob Herring "GPIO_GCLK", 34*724ba675SRob Herring "GPIO5", 35*724ba675SRob Herring "GPIO6", 36*724ba675SRob Herring "SPI_CE1_N", 37*724ba675SRob Herring "SPI_CE0_N", 38*724ba675SRob Herring "SPI_MISO", 39*724ba675SRob Herring "SPI_MOSI", 40*724ba675SRob Herring "SPI_SCLK", 41*724ba675SRob Herring "GPIO12", 42*724ba675SRob Herring "GPIO13", 43*724ba675SRob Herring /* Serial port */ 44*724ba675SRob Herring "TXD0", 45*724ba675SRob Herring "RXD0", 46*724ba675SRob Herring "GPIO16", 47*724ba675SRob Herring "GPIO17", 48*724ba675SRob Herring "GPIO18", 49*724ba675SRob Herring "GPIO19", 50*724ba675SRob Herring "GPIO20", 51*724ba675SRob Herring "GPIO21", 52*724ba675SRob Herring "GPIO22", 53*724ba675SRob Herring "GPIO23", 54*724ba675SRob Herring "GPIO24", 55*724ba675SRob Herring "GPIO25", 56*724ba675SRob Herring "GPIO26", 57*724ba675SRob Herring "GPIO27", 58*724ba675SRob Herring "SDA0", 59*724ba675SRob Herring "SCL0", 60*724ba675SRob Herring "", /* GPIO30 */ 61*724ba675SRob Herring "LAN_RUN", /* GPIO31 */ 62*724ba675SRob Herring "CAM_GPIO1", /* GPIO32 */ 63*724ba675SRob Herring "", /* GPIO33 */ 64*724ba675SRob Herring "", /* GPIO34 */ 65*724ba675SRob Herring "PWR_LOW_N", /* GPIO35 */ 66*724ba675SRob Herring "", /* GPIO36 */ 67*724ba675SRob Herring "", /* GPIO37 */ 68*724ba675SRob Herring "USB_LIMIT", /* GPIO38 */ 69*724ba675SRob Herring "", /* GPIO39 */ 70*724ba675SRob Herring "PWM0_OUT", /* GPIO40 */ 71*724ba675SRob Herring "CAM_GPIO0", /* GPIO41 */ 72*724ba675SRob Herring "", /* GPIO42 */ 73*724ba675SRob Herring "", /* GPIO43 */ 74*724ba675SRob Herring "ETH_CLK", /* GPIO44 */ 75*724ba675SRob Herring "PWM1_OUT", /* GPIO45 */ 76*724ba675SRob Herring "HDMI_HPD_N", 77*724ba675SRob Herring "STATUS_LED", 78*724ba675SRob Herring /* Used by SD Card */ 79*724ba675SRob Herring "SD_CLK_R", 80*724ba675SRob Herring "SD_CMD_R", 81*724ba675SRob Herring "SD_DATA0_R", 82*724ba675SRob Herring "SD_DATA1_R", 83*724ba675SRob Herring "SD_DATA2_R", 84*724ba675SRob Herring "SD_DATA3_R"; 85*724ba675SRob Herring 86*724ba675SRob Herring pinctrl-0 = <&gpioout &alt0 &i2s_alt0>; 87*724ba675SRob Herring 88*724ba675SRob Herring /* I2S interface */ 89*724ba675SRob Herring i2s_alt0: i2s_alt0 { 90*724ba675SRob Herring brcm,pins = <18 19 20 21>; 91*724ba675SRob Herring brcm,function = <BCM2835_FSEL_ALT0>; 92*724ba675SRob Herring }; 93*724ba675SRob Herring}; 94*724ba675SRob Herring 95*724ba675SRob Herring&hdmi { 96*724ba675SRob Herring hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>; 97*724ba675SRob Herring power-domains = <&power RPI_POWER_DOMAIN_HDMI>; 98*724ba675SRob Herring status = "okay"; 99*724ba675SRob Herring}; 100*724ba675SRob Herring 101*724ba675SRob Herring&led_act { 102*724ba675SRob Herring gpios = <&gpio 47 GPIO_ACTIVE_HIGH>; 103*724ba675SRob Herring}; 104*724ba675SRob Herring 105*724ba675SRob Herring&leds { 106*724ba675SRob Herring led-pwr { 107*724ba675SRob Herring label = "PWR"; 108*724ba675SRob Herring gpios = <&gpio 35 GPIO_ACTIVE_HIGH>; 109*724ba675SRob Herring default-state = "keep"; 110*724ba675SRob Herring linux,default-trigger = "default-on"; 111*724ba675SRob Herring }; 112*724ba675SRob Herring}; 113*724ba675SRob Herring 114*724ba675SRob Herring&pwm { 115*724ba675SRob Herring pinctrl-names = "default"; 116*724ba675SRob Herring pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>; 117*724ba675SRob Herring status = "okay"; 118*724ba675SRob Herring}; 119*724ba675SRob Herring 120*724ba675SRob Herring&sdhost { 121*724ba675SRob Herring pinctrl-names = "default"; 122*724ba675SRob Herring pinctrl-0 = <&sdhost_gpio48>; 123*724ba675SRob Herring bus-width = <4>; 124*724ba675SRob Herring status = "okay"; 125*724ba675SRob Herring}; 126*724ba675SRob Herring 127*724ba675SRob Herring&uart0 { 128*724ba675SRob Herring pinctrl-names = "default"; 129*724ba675SRob Herring pinctrl-0 = <&uart0_gpio14>; 130*724ba675SRob Herring status = "okay"; 131*724ba675SRob Herring}; 132