blob: 7b4e651bafddab48bcb22ff3cc7d8184d6c9996c [file] [log] [blame]
Heinrich Schuchardt143256b2019-04-28 06:46:57 +02001// SPDX-License-Identifier: GPL-2.0
Fabian Vogt46025582016-09-26 14:26:47 +02002/dts-v1/;
3#include "bcm2836.dtsi"
Heinrich Schuchardt143256b2019-04-28 06:46:57 +02004#include "bcm2836-rpi.dtsi"
Fabian Vogt46025582016-09-26 14:26:47 +02005#include "bcm283x-rpi-smsc9514.dtsi"
Alexander Graf409f05f2017-10-04 14:39:16 +02006#include "bcm283x-rpi-usb-host.dtsi"
Fabian Vogt46025582016-09-26 14:26:47 +02007
8/ {
9 compatible = "raspberrypi,2-model-b", "brcm,bcm2836";
10 model = "Raspberry Pi 2 Model B";
11
Heinrich Schuchardt143256b2019-04-28 06:46:57 +020012 memory@0 {
Fabian Vogt46025582016-09-26 14:26:47 +020013 reg = <0 0x40000000>;
14 };
15
16 leds {
17 act {
Heinrich Schuchardt143256b2019-04-28 06:46:57 +020018 gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
Fabian Vogt46025582016-09-26 14:26:47 +020019 };
20
21 pwr {
22 label = "PWR";
Heinrich Schuchardt143256b2019-04-28 06:46:57 +020023 gpios = <&gpio 35 GPIO_ACTIVE_HIGH>;
Fabian Vogt46025582016-09-26 14:26:47 +020024 default-state = "keep";
25 linux,default-trigger = "default-on";
26 };
27 };
28};
29
30&gpio {
Heinrich Schuchardt143256b2019-04-28 06:46:57 +020031 /*
32 * Taken from rpi_SCH_2b_1p2_reduced.pdf and
33 * the official GPU firmware DT blob.
34 *
35 * Legend:
36 * "NC" = not connected (no rail from the SoC)
37 * "FOO" = GPIO line named "FOO" on the schematic
38 * "FOO_N" = GPIO line named "FOO" on schematic, active low
39 */
40 gpio-line-names = "ID_SDA",
41 "ID_SCL",
42 "SDA1",
43 "SCL1",
44 "GPIO_GCLK",
45 "GPIO5",
46 "GPIO6",
47 "SPI_CE1_N",
48 "SPI_CE0_N",
49 "SPI_MISO",
50 "SPI_MOSI",
51 "SPI_SCLK",
52 "GPIO12",
53 "GPIO13",
54 /* Serial port */
55 "TXD0",
56 "RXD0",
57 "GPIO16",
58 "GPIO17",
59 "GPIO18",
60 "GPIO19",
61 "GPIO20",
62 "GPIO21",
63 "GPIO22",
64 "GPIO23",
65 "GPIO24",
66 "GPIO25",
67 "GPIO26",
68 "GPIO27",
69 "SDA0",
70 "SCL0",
71 "", /* GPIO30 */
72 "LAN_RUN",
73 "CAM_GPIO1",
74 "", /* GPIO33 */
75 "", /* GPIO34 */
76 "PWR_LOW_N",
77 "", /* GPIO36 */
78 "", /* GPIO37 */
79 "USB_LIMIT",
80 "", /* GPIO39 */
81 "PWM0_OUT",
82 "CAM_GPIO0",
83 "SMPS_SCL",
84 "SMPS_SDA",
85 "ETHCLK",
86 "PWM1_OUT",
87 "HDMI_HPD_N",
88 "STATUS_LED",
89 /* Used by SD Card */
90 "SD_CLK_R",
91 "SD_CMD_R",
92 "SD_DATA0_R",
93 "SD_DATA1_R",
94 "SD_DATA2_R",
95 "SD_DATA3_R";
96
Alexander Graf409f05f2017-10-04 14:39:16 +020097 pinctrl-0 = <&gpioout &alt0 &i2s_alt0>;
Fabian Vogt46025582016-09-26 14:26:47 +020098
99 /* I2S interface */
100 i2s_alt0: i2s_alt0 {
101 brcm,pins = <18 19 20 21>;
102 brcm,function = <BCM2835_FSEL_ALT0>;
103 };
104};
105
106&hdmi {
107 hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
108};
Alexander Graf409f05f2017-10-04 14:39:16 +0200109
Heinrich Schuchardt143256b2019-04-28 06:46:57 +0200110&pwm {
111 pinctrl-names = "default";
112 pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>;
113 status = "okay";
114};
115
Alexander Graf409f05f2017-10-04 14:39:16 +0200116&uart0 {
117 pinctrl-names = "default";
118 pinctrl-0 = <&uart0_gpio14>;
119 status = "okay";
120};