blob: 31ff602e2cd3644a5524443dbc817023852c01a9 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Simon Arlottec9653b2012-05-26 01:04:43 -06002/dts-v1/;
Eric Anholt4b8c3902015-12-16 15:55:12 -08003#include "bcm2835.dtsi"
Stefan Wahren12091112015-01-29 18:10:50 +00004#include "bcm2835-rpi.dtsi"
Lubomir Rintel6a937922016-05-02 09:06:51 +02005#include "bcm283x-rpi-smsc9512.dtsi"
Stefan Wahren00a33ec2016-08-21 15:10:00 +00006#include "bcm283x-rpi-usb-host.dtsi"
Simon Arlottec9653b2012-05-26 01:04:43 -06007
8/ {
9 compatible = "raspberrypi,model-b", "brcm,bcm2835";
10 model = "Raspberry Pi Model B";
11
Daniel Mack805b4db2013-04-28 22:49:52 +020012 leds {
Daniel Mack805b4db2013-04-28 22:49:52 +020013 act {
Stefan Wahren3edb73d2017-12-03 17:36:18 +010014 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
Daniel Mack805b4db2013-04-28 22:49:52 +020015 };
16 };
Simon Arlottec9653b2012-05-26 01:04:43 -060017};
Stephen Warren805504a2012-09-27 21:54:21 -060018
19&gpio {
Linus Walleij731b26a2016-10-06 13:15:02 +020020 /*
21 * Taken from Raspberry-Pi-Rev-1.0-Model-AB-Schematics.pdf
22 * RPI00021 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",
Stefan Wahren6b917082016-11-16 17:52:06 +000034 "CAM_GPIO1",
Linus Walleij731b26a2016-10-06 13:15:02 +020035 "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 "GPIO21",
52 "GPIO22",
53 "GPIO23",
54 "GPIO24",
55 "GPIO25",
56 "NC", /* GPIO26 */
Stefan Wahren6b917082016-11-16 17:52:06 +000057 "CAM_GPIO0",
Linus Walleij731b26a2016-10-06 13:15:02 +020058 /* Binary number representing build/revision */
59 "CONFIG0",
60 "CONFIG1",
61 "CONFIG2",
62 "CONFIG3",
63 "NC", /* GPIO32 */
64 "NC", /* GPIO33 */
65 "NC", /* GPIO34 */
66 "NC", /* GPIO35 */
67 "NC", /* GPIO36 */
68 "NC", /* GPIO37 */
69 "NC", /* GPIO38 */
70 "NC", /* GPIO39 */
71 "PWM0_OUT",
72 "NC", /* GPIO41 */
73 "NC", /* GPIO42 */
74 "NC", /* GPIO43 */
75 "NC", /* GPIO44 */
76 "PWM1_OUT",
77 "HDMI_HPD_P",
78 "SD_CARD_DET",
79 /* Used by SD Card */
80 "SD_CLK_R",
81 "SD_CMD_R",
82 "SD_DATA0_R",
83 "SD_DATA1_R",
84 "SD_DATA2_R",
85 "SD_DATA3_R";
86
Gerd Hoffmanna6d962a2016-09-19 10:43:23 +020087 pinctrl-0 = <&gpioout &alt0>;
Stephen Warren805504a2012-09-27 21:54:21 -060088};
Eric Anholt49ac67e2015-03-02 14:36:16 -080089
90&hdmi {
91 hpd-gpios = <&gpio 46 GPIO_ACTIVE_HIGH>;
92};
Stefan Wahren4188ea22017-07-30 19:10:32 +020093
Stefan Wahrenc4bb9782018-04-21 13:28:34 +020094&pwm {
95 pinctrl-names = "default";
96 pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>;
97 status = "okay";
98};
99
Stefan Wahren4188ea22017-07-30 19:10:32 +0200100&uart0 {
101 pinctrl-names = "default";
102 pinctrl-0 = <&uart0_gpio14>;
103 status = "okay";
104};