| .. | .. |
|---|
| 1 | 1 | // SPDX-License-Identifier: GPL-2.0 |
|---|
| 2 | 2 | /dts-v1/; |
|---|
| 3 | 3 | #include "bcm2836.dtsi" |
|---|
| 4 | | -#include "bcm2835-rpi.dtsi" |
|---|
| 4 | +#include "bcm2836-rpi.dtsi" |
|---|
| 5 | 5 | #include "bcm283x-rpi-smsc9514.dtsi" |
|---|
| 6 | 6 | #include "bcm283x-rpi-usb-host.dtsi" |
|---|
| 7 | 7 | |
|---|
| .. | .. |
|---|
| 9 | 9 | compatible = "raspberrypi,2-model-b", "brcm,bcm2836"; |
|---|
| 10 | 10 | model = "Raspberry Pi 2 Model B"; |
|---|
| 11 | 11 | |
|---|
| 12 | | - memory { |
|---|
| 12 | + memory@0 { |
|---|
| 13 | + device_type = "memory"; |
|---|
| 13 | 14 | reg = <0 0x40000000>; |
|---|
| 14 | 15 | }; |
|---|
| 15 | 16 | |
|---|
| 16 | 17 | leds { |
|---|
| 17 | | - act { |
|---|
| 18 | + led-act { |
|---|
| 18 | 19 | gpios = <&gpio 47 GPIO_ACTIVE_HIGH>; |
|---|
| 19 | 20 | }; |
|---|
| 20 | 21 | |
|---|
| 21 | | - pwr { |
|---|
| 22 | + led-pwr { |
|---|
| 22 | 23 | label = "PWR"; |
|---|
| 23 | 24 | gpios = <&gpio 35 GPIO_ACTIVE_HIGH>; |
|---|
| 24 | 25 | default-state = "keep"; |
|---|
| .. | .. |
|---|
| 28 | 29 | }; |
|---|
| 29 | 30 | |
|---|
| 30 | 31 | &gpio { |
|---|
| 32 | + /* |
|---|
| 33 | + * Taken from rpi_SCH_2b_1p2_reduced.pdf and |
|---|
| 34 | + * the official GPU firmware DT blob. |
|---|
| 35 | + * |
|---|
| 36 | + * Legend: |
|---|
| 37 | + * "NC" = not connected (no rail from the SoC) |
|---|
| 38 | + * "FOO" = GPIO line named "FOO" on the schematic |
|---|
| 39 | + * "FOO_N" = GPIO line named "FOO" on schematic, active low |
|---|
| 40 | + */ |
|---|
| 41 | + gpio-line-names = "ID_SDA", |
|---|
| 42 | + "ID_SCL", |
|---|
| 43 | + "SDA1", |
|---|
| 44 | + "SCL1", |
|---|
| 45 | + "GPIO_GCLK", |
|---|
| 46 | + "GPIO5", |
|---|
| 47 | + "GPIO6", |
|---|
| 48 | + "SPI_CE1_N", |
|---|
| 49 | + "SPI_CE0_N", |
|---|
| 50 | + "SPI_MISO", |
|---|
| 51 | + "SPI_MOSI", |
|---|
| 52 | + "SPI_SCLK", |
|---|
| 53 | + "GPIO12", |
|---|
| 54 | + "GPIO13", |
|---|
| 55 | + /* Serial port */ |
|---|
| 56 | + "TXD0", |
|---|
| 57 | + "RXD0", |
|---|
| 58 | + "GPIO16", |
|---|
| 59 | + "GPIO17", |
|---|
| 60 | + "GPIO18", |
|---|
| 61 | + "GPIO19", |
|---|
| 62 | + "GPIO20", |
|---|
| 63 | + "GPIO21", |
|---|
| 64 | + "GPIO22", |
|---|
| 65 | + "GPIO23", |
|---|
| 66 | + "GPIO24", |
|---|
| 67 | + "GPIO25", |
|---|
| 68 | + "GPIO26", |
|---|
| 69 | + "GPIO27", |
|---|
| 70 | + "SDA0", |
|---|
| 71 | + "SCL0", |
|---|
| 72 | + "", /* GPIO30 */ |
|---|
| 73 | + "LAN_RUN", |
|---|
| 74 | + "CAM_GPIO1", |
|---|
| 75 | + "", /* GPIO33 */ |
|---|
| 76 | + "", /* GPIO34 */ |
|---|
| 77 | + "PWR_LOW_N", |
|---|
| 78 | + "", /* GPIO36 */ |
|---|
| 79 | + "", /* GPIO37 */ |
|---|
| 80 | + "USB_LIMIT", |
|---|
| 81 | + "", /* GPIO39 */ |
|---|
| 82 | + "PWM0_OUT", |
|---|
| 83 | + "CAM_GPIO0", |
|---|
| 84 | + "SMPS_SCL", |
|---|
| 85 | + "SMPS_SDA", |
|---|
| 86 | + "ETHCLK", |
|---|
| 87 | + "PWM1_OUT", |
|---|
| 88 | + "HDMI_HPD_N", |
|---|
| 89 | + "STATUS_LED", |
|---|
| 90 | + /* Used by SD Card */ |
|---|
| 91 | + "SD_CLK_R", |
|---|
| 92 | + "SD_CMD_R", |
|---|
| 93 | + "SD_DATA0_R", |
|---|
| 94 | + "SD_DATA1_R", |
|---|
| 95 | + "SD_DATA2_R", |
|---|
| 96 | + "SD_DATA3_R"; |
|---|
| 97 | + |
|---|
| 31 | 98 | pinctrl-0 = <&gpioout &alt0 &i2s_alt0>; |
|---|
| 32 | 99 | |
|---|
| 33 | 100 | /* I2S interface */ |
|---|
| .. | .. |
|---|
| 39 | 106 | |
|---|
| 40 | 107 | &hdmi { |
|---|
| 41 | 108 | hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>; |
|---|
| 109 | + power-domains = <&power RPI_POWER_DOMAIN_HDMI>; |
|---|
| 110 | + status = "okay"; |
|---|
| 42 | 111 | }; |
|---|
| 43 | 112 | |
|---|
| 44 | 113 | &pwm { |
|---|
| .. | .. |
|---|
| 47 | 116 | status = "okay"; |
|---|
| 48 | 117 | }; |
|---|
| 49 | 118 | |
|---|
| 119 | +&sdhost { |
|---|
| 120 | + pinctrl-names = "default"; |
|---|
| 121 | + pinctrl-0 = <&sdhost_gpio48>; |
|---|
| 122 | + bus-width = <4>; |
|---|
| 123 | + status = "okay"; |
|---|
| 124 | +}; |
|---|
| 125 | + |
|---|
| 50 | 126 | &uart0 { |
|---|
| 51 | 127 | pinctrl-names = "default"; |
|---|
| 52 | 128 | pinctrl-0 = <&uart0_gpio14>; |
|---|