1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 2724ba675SRob Herring/dts-v1/; 3724ba675SRob Herring#include "bcm2836.dtsi" 4724ba675SRob Herring#include "bcm2836-rpi.dtsi" 5724ba675SRob Herring#include "bcm283x-rpi-led-deprecated.dtsi" 6724ba675SRob Herring#include "bcm283x-rpi-smsc9514.dtsi" 7724ba675SRob Herring#include "bcm283x-rpi-usb-host.dtsi" 8724ba675SRob Herring 9724ba675SRob Herring/ { 10724ba675SRob Herring compatible = "raspberrypi,2-model-b", "brcm,bcm2836"; 11724ba675SRob Herring model = "Raspberry Pi 2 Model B"; 12724ba675SRob Herring 13724ba675SRob Herring memory@0 { 14724ba675SRob Herring device_type = "memory"; 15724ba675SRob Herring reg = <0 0x40000000>; 16724ba675SRob Herring }; 17724ba675SRob Herring}; 18724ba675SRob Herring 19724ba675SRob Herring&gpio { 20724ba675SRob Herring /* 21724ba675SRob Herring * Taken from rpi_SCH_2b_1p2_reduced.pdf and 22724ba675SRob Herring * the official GPU firmware DT blob. 23724ba675SRob Herring * 24724ba675SRob Herring * Legend: 25724ba675SRob Herring * "FOO" = GPIO line named "FOO" on the schematic 26724ba675SRob Herring * "FOO_N" = GPIO line named "FOO" on schematic, active low 27724ba675SRob Herring */ 28724ba675SRob Herring gpio-line-names = "ID_SDA", 29724ba675SRob Herring "ID_SCL", 30724ba675SRob Herring "SDA1", 31724ba675SRob Herring "SCL1", 32724ba675SRob Herring "GPIO_GCLK", 33724ba675SRob Herring "GPIO5", 34724ba675SRob Herring "GPIO6", 35724ba675SRob Herring "SPI_CE1_N", 36724ba675SRob Herring "SPI_CE0_N", 37724ba675SRob Herring "SPI_MISO", 38724ba675SRob Herring "SPI_MOSI", 39724ba675SRob Herring "SPI_SCLK", 40724ba675SRob Herring "GPIO12", 41724ba675SRob Herring "GPIO13", 42724ba675SRob Herring /* Serial port */ 43724ba675SRob Herring "TXD0", 44724ba675SRob Herring "RXD0", 45724ba675SRob Herring "GPIO16", 46724ba675SRob Herring "GPIO17", 47724ba675SRob Herring "GPIO18", 48724ba675SRob Herring "GPIO19", 49724ba675SRob Herring "GPIO20", 50724ba675SRob Herring "GPIO21", 51724ba675SRob Herring "GPIO22", 52724ba675SRob Herring "GPIO23", 53724ba675SRob Herring "GPIO24", 54724ba675SRob Herring "GPIO25", 55724ba675SRob Herring "GPIO26", 56724ba675SRob Herring "GPIO27", 57724ba675SRob Herring "SDA0", 58724ba675SRob Herring "SCL0", 59724ba675SRob Herring "", /* GPIO30 */ 60724ba675SRob Herring "LAN_RUN", 61724ba675SRob Herring "CAM_GPIO1", 62724ba675SRob Herring "", /* GPIO33 */ 63724ba675SRob Herring "", /* GPIO34 */ 64724ba675SRob Herring "PWR_LOW_N", 65724ba675SRob Herring "", /* GPIO36 */ 66724ba675SRob Herring "", /* GPIO37 */ 67724ba675SRob Herring "USB_LIMIT", 68724ba675SRob Herring "", /* GPIO39 */ 69724ba675SRob Herring "PWM0_OUT", 70724ba675SRob Herring "CAM_GPIO0", 71724ba675SRob Herring "SMPS_SCL", 72724ba675SRob Herring "SMPS_SDA", 73724ba675SRob Herring "ETH_CLK", 74724ba675SRob Herring "PWM1_OUT", 75724ba675SRob Herring "HDMI_HPD_N", 76724ba675SRob Herring "STATUS_LED", 77724ba675SRob Herring /* Used by SD Card */ 78724ba675SRob Herring "SD_CLK_R", 79724ba675SRob Herring "SD_CMD_R", 80724ba675SRob Herring "SD_DATA0_R", 81724ba675SRob Herring "SD_DATA1_R", 82724ba675SRob Herring "SD_DATA2_R", 83724ba675SRob Herring "SD_DATA3_R"; 84724ba675SRob Herring 85*2a28a5cdSStefan Wahren pinctrl-names = "default"; 86724ba675SRob Herring pinctrl-0 = <&gpioout &alt0 &i2s_alt0>; 87724ba675SRob Herring 88724ba675SRob Herring /* I2S interface */ 89724ba675SRob Herring i2s_alt0: i2s_alt0 { 90724ba675SRob Herring brcm,pins = <18 19 20 21>; 91724ba675SRob Herring brcm,function = <BCM2835_FSEL_ALT0>; 92724ba675SRob Herring }; 93724ba675SRob Herring}; 94724ba675SRob Herring 95724ba675SRob Herring&hdmi { 96724ba675SRob Herring hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>; 97724ba675SRob Herring power-domains = <&power RPI_POWER_DOMAIN_HDMI>; 98724ba675SRob Herring status = "okay"; 99724ba675SRob Herring}; 100724ba675SRob Herring 101724ba675SRob Herring&led_act { 102724ba675SRob Herring gpios = <&gpio 47 GPIO_ACTIVE_HIGH>; 103724ba675SRob Herring}; 104724ba675SRob Herring 105724ba675SRob Herring&leds { 106724ba675SRob Herring led-pwr { 107724ba675SRob Herring label = "PWR"; 108724ba675SRob Herring gpios = <&gpio 35 GPIO_ACTIVE_HIGH>; 109724ba675SRob Herring default-state = "keep"; 110724ba675SRob Herring linux,default-trigger = "default-on"; 111724ba675SRob Herring }; 112724ba675SRob Herring}; 113724ba675SRob Herring 114724ba675SRob Herring&pwm { 115724ba675SRob Herring pinctrl-names = "default"; 116724ba675SRob Herring pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>; 117724ba675SRob Herring status = "okay"; 118724ba675SRob Herring}; 119724ba675SRob Herring 120724ba675SRob Herring&sdhost { 121724ba675SRob Herring pinctrl-names = "default"; 122724ba675SRob Herring pinctrl-0 = <&sdhost_gpio48>; 123724ba675SRob Herring bus-width = <4>; 124724ba675SRob Herring status = "okay"; 125724ba675SRob Herring}; 126724ba675SRob Herring 127724ba675SRob Herring&uart0 { 128724ba675SRob Herring pinctrl-names = "default"; 129724ba675SRob Herring pinctrl-0 = <&uart0_gpio14>; 130724ba675SRob Herring status = "okay"; 131724ba675SRob Herring}; 132