xref: /openbmc/u-boot/arch/arm/dts/bcm2835-rpi-a.dts (revision 409f05f259ee5cb3e13b52279ce2365a6f8b8a8b)
146025584SFabian Vogt/dts-v1/;
246025584SFabian Vogt#include "bcm2835.dtsi"
346025584SFabian Vogt#include "bcm2835-rpi.dtsi"
4*409f05f2SAlexander Graf#include "bcm283x-rpi-usb-host.dtsi"
546025584SFabian Vogt
646025584SFabian Vogt/ {
746025584SFabian Vogt	compatible = "raspberrypi,model-a", "brcm,bcm2835";
846025584SFabian Vogt	model = "Raspberry Pi Model A";
946025584SFabian Vogt
1046025584SFabian Vogt	leds {
1146025584SFabian Vogt		act {
1246025584SFabian Vogt			gpios = <&gpio 16 1>;
1346025584SFabian Vogt		};
1446025584SFabian Vogt	};
1546025584SFabian Vogt};
1646025584SFabian Vogt
1746025584SFabian Vogt&gpio {
18*409f05f2SAlexander Graf	/*
19*409f05f2SAlexander Graf	 * Taken from Raspberry-Pi-Rev-1.0-Model-AB-Schematics.pdf
20*409f05f2SAlexander Graf	 * RPI00021 sheet 02
21*409f05f2SAlexander Graf	 *
22*409f05f2SAlexander Graf	 * Legend:
23*409f05f2SAlexander Graf	 * "NC" = not connected (no rail from the SoC)
24*409f05f2SAlexander Graf	 * "FOO" = GPIO line named "FOO" on the schematic
25*409f05f2SAlexander Graf	 * "FOO_N" = GPIO line named "FOO" on schematic, active low
26*409f05f2SAlexander Graf	 */
27*409f05f2SAlexander Graf	gpio-line-names = "SDA0",
28*409f05f2SAlexander Graf			  "SCL0",
29*409f05f2SAlexander Graf			  "SDA1",
30*409f05f2SAlexander Graf			  "SCL1",
31*409f05f2SAlexander Graf			  "GPIO_GCLK",
32*409f05f2SAlexander Graf			  "CAM_GPIO1",
33*409f05f2SAlexander Graf			  "LAN_RUN",
34*409f05f2SAlexander Graf			  "SPI_CE1_N",
35*409f05f2SAlexander Graf			  "SPI_CE0_N",
36*409f05f2SAlexander Graf			  "SPI_MISO",
37*409f05f2SAlexander Graf			  "SPI_MOSI",
38*409f05f2SAlexander Graf			  "SPI_SCLK",
39*409f05f2SAlexander Graf			  "NC", /* GPIO12 */
40*409f05f2SAlexander Graf			  "NC", /* GPIO13 */
41*409f05f2SAlexander Graf			  /* Serial port */
42*409f05f2SAlexander Graf			  "TXD0",
43*409f05f2SAlexander Graf			  "RXD0",
44*409f05f2SAlexander Graf			  "STATUS_LED_N",
45*409f05f2SAlexander Graf			  "GPIO17",
46*409f05f2SAlexander Graf			  "GPIO18",
47*409f05f2SAlexander Graf			  "NC", /* GPIO19 */
48*409f05f2SAlexander Graf			  "NC", /* GPIO20 */
49*409f05f2SAlexander Graf			  "GPIO21",
50*409f05f2SAlexander Graf			  "GPIO22",
51*409f05f2SAlexander Graf			  "GPIO23",
52*409f05f2SAlexander Graf			  "GPIO24",
53*409f05f2SAlexander Graf			  "GPIO25",
54*409f05f2SAlexander Graf			  "NC", /* GPIO26 */
55*409f05f2SAlexander Graf			  "CAM_GPIO0",
56*409f05f2SAlexander Graf			  /* Binary number representing build/revision */
57*409f05f2SAlexander Graf			  "CONFIG0",
58*409f05f2SAlexander Graf			  "CONFIG1",
59*409f05f2SAlexander Graf			  "CONFIG2",
60*409f05f2SAlexander Graf			  "CONFIG3",
61*409f05f2SAlexander Graf			  "NC", /* GPIO32 */
62*409f05f2SAlexander Graf			  "NC", /* GPIO33 */
63*409f05f2SAlexander Graf			  "NC", /* GPIO34 */
64*409f05f2SAlexander Graf			  "NC", /* GPIO35 */
65*409f05f2SAlexander Graf			  "NC", /* GPIO36 */
66*409f05f2SAlexander Graf			  "NC", /* GPIO37 */
67*409f05f2SAlexander Graf			  "NC", /* GPIO38 */
68*409f05f2SAlexander Graf			  "NC", /* GPIO39 */
69*409f05f2SAlexander Graf			  "PWM0_OUT",
70*409f05f2SAlexander Graf			  "NC", /* GPIO41 */
71*409f05f2SAlexander Graf			  "NC", /* GPIO42 */
72*409f05f2SAlexander Graf			  "NC", /* GPIO43 */
73*409f05f2SAlexander Graf			  "NC", /* GPIO44 */
74*409f05f2SAlexander Graf			  "PWM1_OUT",
75*409f05f2SAlexander Graf			  "HDMI_HPD_P",
76*409f05f2SAlexander Graf			  "SD_CARD_DET",
77*409f05f2SAlexander Graf			  /* Used by SD Card */
78*409f05f2SAlexander Graf			  "SD_CLK_R",
79*409f05f2SAlexander Graf			  "SD_CMD_R",
80*409f05f2SAlexander Graf			  "SD_DATA0_R",
81*409f05f2SAlexander Graf			  "SD_DATA1_R",
82*409f05f2SAlexander Graf			  "SD_DATA2_R",
83*409f05f2SAlexander Graf			  "SD_DATA3_R";
84*409f05f2SAlexander Graf
85*409f05f2SAlexander Graf	pinctrl-0 = <&gpioout &alt0 &i2s_alt2>;
8646025584SFabian Vogt
8746025584SFabian Vogt	/* I2S interface */
8846025584SFabian Vogt	i2s_alt2: i2s_alt2 {
8946025584SFabian Vogt		brcm,pins = <28 29 30 31>;
9046025584SFabian Vogt		brcm,function = <BCM2835_FSEL_ALT2>;
9146025584SFabian Vogt	};
9246025584SFabian Vogt};
9346025584SFabian Vogt
9446025584SFabian Vogt&hdmi {
9546025584SFabian Vogt	hpd-gpios = <&gpio 46 GPIO_ACTIVE_HIGH>;
9646025584SFabian Vogt};
97*409f05f2SAlexander Graf
98*409f05f2SAlexander Graf&uart0 {
99*409f05f2SAlexander Graf	pinctrl-names = "default";
100*409f05f2SAlexander Graf	pinctrl-0 = <&uart0_gpio14>;
101*409f05f2SAlexander Graf	status = "okay";
102*409f05f2SAlexander Graf};
103