xref: /linux/scripts/dtc/include-prefixes/arm/broadcom/bcm2835-rpi-b.dts (revision a1c613ae4c322ddd58d5a8539dbfba2a0380a8c0)
1// SPDX-License-Identifier: GPL-2.0
2/dts-v1/;
3#include "bcm2835.dtsi"
4#include "bcm2835-rpi.dtsi"
5#include "bcm2835-rpi-common.dtsi"
6#include "bcm283x-rpi-led-deprecated.dtsi"
7#include "bcm283x-rpi-smsc9512.dtsi"
8#include "bcm283x-rpi-usb-host.dtsi"
9
10/ {
11	compatible = "raspberrypi,model-b", "brcm,bcm2835";
12	model = "Raspberry Pi Model B";
13
14	memory@0 {
15		device_type = "memory";
16		reg = <0 0x10000000>;
17	};
18};
19
20&gpio {
21	/*
22	 * Taken from Raspberry-Pi-Rev-1.0-Model-AB-Schematics.pdf
23	 * RPI00021 sheet 02
24	 *
25	 * Legend:
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_GPIO1",
35			  "LAN_RUN",
36			  "SPI_CE1_N",
37			  "SPI_CE0_N",
38			  "SPI_MISO",
39			  "SPI_MOSI",
40			  "SPI_SCLK",
41			  "", /* GPIO12 */
42			  "", /* GPIO13 */
43			  /* Serial port */
44			  "TXD0",
45			  "RXD0",
46			  "STATUS_LED_N",
47			  "GPIO17",
48			  "GPIO18",
49			  "", /* GPIO19 */
50			  "", /* GPIO20 */
51			  "CAM_GPIO0",
52			  "GPIO22",
53			  "GPIO23",
54			  "GPIO24",
55			  "GPIO25",
56			  "", /* GPIO26 */
57			  "GPIO27",
58			  "GPIO28",
59			  "GPIO29",
60			  "GPIO30",
61			  "GPIO31",
62			  "", /* GPIO32 */
63			  "", /* GPIO33 */
64			  "", /* GPIO34 */
65			  "", /* GPIO35 */
66			  "", /* GPIO36 */
67			  "", /* GPIO37 */
68			  "", /* GPIO38 */
69			  "", /* GPIO39 */
70			  "PWM0_OUT",
71			  "", /* GPIO41 */
72			  "", /* GPIO42 */
73			  "", /* GPIO43 */
74			  "", /* 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-names = "default";
87	pinctrl-0 = <&gpioout &alt0>;
88};
89
90&hdmi {
91	hpd-gpios = <&gpio 46 GPIO_ACTIVE_HIGH>;
92	power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
93	status = "okay";
94};
95
96&led_act {
97	gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
98};
99
100&pwm {
101	pinctrl-names = "default";
102	pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>;
103	status = "okay";
104};
105
106&sdhost {
107	pinctrl-names = "default";
108	pinctrl-0 = <&sdhost_gpio48>;
109	bus-width = <4>;
110	status = "okay";
111};
112
113&uart0 {
114	pinctrl-names = "default";
115	pinctrl-0 = <&uart0_gpio14>;
116	status = "okay";
117};
118