blob: 067d1f07a2d36c1653e47b2b3d64d77a0c81b813 [file] [log] [blame]
Heinrich Schuchardtbe12fb92019-04-28 06:46:57 +02001// SPDX-License-Identifier: GPL-2.0
Fabian Vogt7ad2aa02016-09-26 14:26:47 +02002/dts-v1/;
3#include "bcm2835.dtsi"
4#include "bcm2835-rpi.dtsi"
Alexander Graf377c5342017-10-04 14:39:16 +02005#include "bcm283x-rpi-usb-host.dtsi"
Fabian Vogt7ad2aa02016-09-26 14:26:47 +02006
7/ {
8 compatible = "raspberrypi,model-a", "brcm,bcm2835";
9 model = "Raspberry Pi Model A";
10
11 leds {
12 act {
Heinrich Schuchardtbe12fb92019-04-28 06:46:57 +020013 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
Fabian Vogt7ad2aa02016-09-26 14:26:47 +020014 };
15 };
16};
17
18&gpio {
Alexander Graf377c5342017-10-04 14:39:16 +020019 /*
20 * Taken from Raspberry-Pi-Rev-1.0-Model-AB-Schematics.pdf
21 * RPI00021 sheet 02
22 *
23 * Legend:
24 * "NC" = not connected (no rail from the SoC)
25 * "FOO" = GPIO line named "FOO" on the schematic
26 * "FOO_N" = GPIO line named "FOO" on schematic, active low
27 */
28 gpio-line-names = "SDA0",
29 "SCL0",
30 "SDA1",
31 "SCL1",
32 "GPIO_GCLK",
33 "CAM_GPIO1",
34 "LAN_RUN",
35 "SPI_CE1_N",
36 "SPI_CE0_N",
37 "SPI_MISO",
38 "SPI_MOSI",
39 "SPI_SCLK",
40 "NC", /* GPIO12 */
41 "NC", /* GPIO13 */
42 /* Serial port */
43 "TXD0",
44 "RXD0",
45 "STATUS_LED_N",
46 "GPIO17",
47 "GPIO18",
48 "NC", /* GPIO19 */
49 "NC", /* GPIO20 */
50 "GPIO21",
51 "GPIO22",
52 "GPIO23",
53 "GPIO24",
54 "GPIO25",
55 "NC", /* GPIO26 */
56 "CAM_GPIO0",
57 /* Binary number representing build/revision */
58 "CONFIG0",
59 "CONFIG1",
60 "CONFIG2",
61 "CONFIG3",
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 Vogt7ad2aa02016-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 {
96 hpd-gpios = <&gpio 46 GPIO_ACTIVE_HIGH>;
97};
Alexander Graf377c5342017-10-04 14:39:16 +020098
Heinrich Schuchardtbe12fb92019-04-28 06:46:57 +020099&pwm {
100 pinctrl-names = "default";
101 pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>;
102 status = "okay";
103};
104
Alexander Graf377c5342017-10-04 14:39:16 +0200105&uart0 {
106 pinctrl-names = "default";
107 pinctrl-0 = <&uart0_gpio14>;
108 status = "okay";
109};