blob: 28e7513ce61713a084bc5f91f96cc2426d3f50a8 [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 "bcm2835.dtsi"
4#include "bcm2835-rpi.dtsi"
5#include "bcm283x-rpi-smsc9512.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,model-b-rev2", "brcm,bcm2835";
10 model = "Raspberry Pi Model B rev2";
11
12 leds {
13 act {
Heinrich Schuchardt143256b2019-04-28 06:46:57 +020014 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
Fabian Vogt46025582016-09-26 14:26:47 +020015 };
16 };
17};
18
19&gpio {
Alexander Graf409f05f2017-10-04 14:39:16 +020020 /*
21 * Taken from Raspberry-Pi-Rev-2.0-Model-AB-Schematics.pdf
22 * RPI00022 sheet 02
23 *
24 * Legend:
25 * "NC" = not connected (no rail from the SoC)
26 * "FOO" = GPIO line named "FOO" on the schematic
27 * "FOO_N" = GPIO line named "FOO" on schematic, active low
28 */
29 gpio-line-names = "SDA0",
30 "SCL0",
31 "SDA1",
32 "SCL1",
33 "GPIO_GCLK",
34 "CAM_CLK",
35 "LAN_RUN",
36 "SPI_CE1_N",
37 "SPI_CE0_N",
38 "SPI_MISO",
39 "SPI_MOSI",
40 "SPI_SCLK",
41 "NC", /* GPIO12 */
42 "NC", /* GPIO13 */
43 /* Serial port */
44 "TXD0",
45 "RXD0",
46 "STATUS_LED_N",
47 "GPIO17",
48 "GPIO18",
49 "NC", /* GPIO19 */
50 "NC", /* GPIO20 */
51 "CAM_GPIO",
52 "GPIO22",
53 "GPIO23",
54 "GPIO24",
55 "GPIO25",
56 "NC", /* GPIO26 */
57 "GPIO27",
58 "GPIO28",
59 "GPIO29",
60 "GPIO30",
61 "GPIO31",
62 "NC", /* GPIO32 */
63 "NC", /* GPIO33 */
64 "NC", /* GPIO34 */
65 "NC", /* GPIO35 */
66 "NC", /* GPIO36 */
67 "NC", /* GPIO37 */
68 "NC", /* GPIO38 */
69 "NC", /* GPIO39 */
70 "PWM0_OUT",
71 "NC", /* GPIO41 */
72 "NC", /* GPIO42 */
73 "NC", /* GPIO43 */
74 "NC", /* GPIO44 */
75 "PWM1_OUT",
76 "HDMI_HPD_P",
77 "SD_CARD_DET",
78 /* Used by SD Card */
79 "SD_CLK_R",
80 "SD_CMD_R",
81 "SD_DATA0_R",
82 "SD_DATA1_R",
83 "SD_DATA2_R",
84 "SD_DATA3_R";
85
86 pinctrl-0 = <&gpioout &alt0 &i2s_alt2>;
Fabian Vogt46025582016-09-26 14:26:47 +020087
88 /* I2S interface */
89 i2s_alt2: i2s_alt2 {
90 brcm,pins = <28 29 30 31>;
91 brcm,function = <BCM2835_FSEL_ALT2>;
92 };
93};
94
95&hdmi {
Heinrich Schuchardt143256b2019-04-28 06:46:57 +020096 hpd-gpios = <&gpio 46 GPIO_ACTIVE_HIGH>;
97};
98
99&pwm {
100 pinctrl-names = "default";
101 pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>;
102 status = "okay";
Fabian Vogt46025582016-09-26 14:26:47 +0200103};
Alexander Graf409f05f2017-10-04 14:39:16 +0200104
105&uart0 {
106 pinctrl-names = "default";
107 pinctrl-0 = <&uart0_gpio14>;
108 status = "okay";
109};