1// SPDX-License-Identifier: GPL-2.0
2/dts-v1/;
3#include "bcm2835.dtsi"
4#include "bcm2835-rpi.dtsi"
5#include "bcm283x-rpi-smsc9512.dtsi"
6#include "bcm283x-rpi-usb-host.dtsi"
7
8/ {
9	compatible = "raspberrypi,model-b-rev2", "brcm,bcm2835";
10	model = "Raspberry Pi Model B rev2";
11
12	memory@0 {
13		device_type = "memory";
14		reg = <0 0x10000000>;
15	};
16
17	leds {
18		act {
19			gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
20		};
21	};
22};
23
24&gpio {
25	/*
26	 * Taken from Raspberry-Pi-Rev-2.0-Model-AB-Schematics.pdf
27	 * RPI00022 sheet 02
28	 *
29	 * Legend:
30	 * "NC" = not connected (no rail from the SoC)
31	 * "FOO" = GPIO line named "FOO" on the schematic
32	 * "FOO_N" = GPIO line named "FOO" on schematic, active low
33	 */
34	gpio-line-names = "SDA0",
35			  "SCL0",
36			  "SDA1",
37			  "SCL1",
38			  "GPIO_GCLK",
39			  "CAM_CLK",
40			  "LAN_RUN",
41			  "SPI_CE1_N",
42			  "SPI_CE0_N",
43			  "SPI_MISO",
44			  "SPI_MOSI",
45			  "SPI_SCLK",
46			  "NC", /* GPIO12 */
47			  "NC", /* GPIO13 */
48			  /* Serial port */
49			  "TXD0",
50			  "RXD0",
51			  "STATUS_LED_N",
52			  "GPIO17",
53			  "GPIO18",
54			  "NC", /* GPIO19 */
55			  "NC", /* GPIO20 */
56			  "CAM_GPIO",
57			  "GPIO22",
58			  "GPIO23",
59			  "GPIO24",
60			  "GPIO25",
61			  "NC", /* GPIO26 */
62			  "GPIO27",
63			  "GPIO28",
64			  "GPIO29",
65			  "GPIO30",
66			  "GPIO31",
67			  "NC", /* GPIO32 */
68			  "NC", /* GPIO33 */
69			  "NC", /* GPIO34 */
70			  "NC", /* GPIO35 */
71			  "NC", /* GPIO36 */
72			  "NC", /* GPIO37 */
73			  "NC", /* GPIO38 */
74			  "NC", /* GPIO39 */
75			  "PWM0_OUT",
76			  "NC", /* GPIO41 */
77			  "NC", /* GPIO42 */
78			  "NC", /* GPIO43 */
79			  "NC", /* GPIO44 */
80			  "PWM1_OUT",
81			  "HDMI_HPD_P",
82			  "SD_CARD_DET",
83			  /* Used by SD Card */
84			  "SD_CLK_R",
85			  "SD_CMD_R",
86			  "SD_DATA0_R",
87			  "SD_DATA1_R",
88			  "SD_DATA2_R",
89			  "SD_DATA3_R";
90
91	pinctrl-0 = <&gpioout &alt0 &i2s_alt2>;
92
93	/* I2S interface */
94	i2s_alt2: i2s_alt2 {
95		brcm,pins = <28 29 30 31>;
96		brcm,function = <BCM2835_FSEL_ALT2>;
97	};
98};
99
100&hdmi {
101	hpd-gpios = <&gpio 46 GPIO_ACTIVE_HIGH>;
102	power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
103	status = "okay";
104};
105
106&pwm {
107	pinctrl-names = "default";
108	pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>;
109	status = "okay";
110};
111
112&sdhost {
113	pinctrl-names = "default";
114	pinctrl-0 = <&sdhost_gpio48>;
115	bus-width = <4>;
116	status = "okay";
117};
118
119&uart0 {
120	pinctrl-names = "default";
121	pinctrl-0 = <&uart0_gpio14>;
122	status = "okay";
123};
124