blob: cfbdaacbaeba815cd5d1ce2a7bea50861558774a [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Matthias Kleinba2a1d62014-11-20 10:52:45 +00002/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-smsc9514.dtsi"
Stefan Wahren00a33ec2016-08-21 15:10:00 +00006#include "bcm283x-rpi-usb-host.dtsi"
Matthias Kleinba2a1d62014-11-20 10:52:45 +00007
8/ {
9 compatible = "raspberrypi,model-b-plus", "brcm,bcm2835";
10 model = "Raspberry Pi Model B+";
11
12 leds {
13 act {
Stefan Wahren3edb73d2017-12-03 17:36:18 +010014 gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
Matthias Kleinba2a1d62014-11-20 10:52:45 +000015 };
16
17 pwr {
18 label = "PWR";
Stefan Wahren3edb73d2017-12-03 17:36:18 +010019 gpios = <&gpio 35 GPIO_ACTIVE_HIGH>;
Matthias Kleinba2a1d62014-11-20 10:52:45 +000020 default-state = "keep";
21 linux,default-trigger = "default-on";
22 };
23 };
24};
25
26&gpio {
Linus Walleij731b26a2016-10-06 13:15:02 +020027 /*
28 * Taken from Raspberry-Pi-B-Plus-V1.2-Schematics.pdf
29 * RPI-BPLUS sheet 1
30 *
31 * Legend:
32 * "NC" = not connected (no rail from the SoC)
33 * "FOO" = GPIO line named "FOO" on the schematic
34 * "FOO_N" = GPIO line named "FOO" on schematic, active low
35 */
36 gpio-line-names = "SDA0",
37 "SCL0",
38 "SDA1",
39 "SCL1",
40 "GPIO_GCLK",
41 "GPIO5",
42 "GPIO6",
43 "SPI_CE1_N",
44 "SPI_CE0_N",
45 "SPI_MISO",
46 "SPI_MOSI",
47 "SPI_SCLK",
48 "GPIO12",
49 "GPIO13",
50 /* Serial port */
51 "TXD0",
52 "RXD0",
53 "GPIO16",
54 "GPIO17",
55 "GPIO18",
56 "GPIO19",
57 "GPIO20",
58 "GPIO21",
59 "GPIO22",
60 "GPIO23",
61 "GPIO24",
62 "GPIO25",
63 "GPIO26",
64 "GPIO27",
65 "SDA0",
66 "SCL0",
67 "NC", /* GPIO30 */
68 "LAN_RUN", /* GPIO31 */
69 "CAM_GPIO1", /* GPIO32 */
70 "NC", /* GPIO33 */
71 "NC", /* GPIO34 */
72 "PWR_LOW_N", /* GPIO35 */
73 "NC", /* GPIO36 */
74 "NC", /* GPIO37 */
Stefan Wahren6b917082016-11-16 17:52:06 +000075 "USB_LIMIT", /* GPIO38 */
Linus Walleij731b26a2016-10-06 13:15:02 +020076 "NC", /* GPIO39 */
77 "PWM0_OUT", /* GPIO40 */
78 "CAM_GPIO0", /* GPIO41 */
79 "NC", /* GPIO42 */
80 "NC", /* GPIO43 */
81 "ETHCLK", /* GPIO44 */
82 "PWM1_OUT", /* GPIO45 */
83 "HDMI_HPD_N",
84 "STATUS_LED",
85 /* Used by SD Card */
86 "SD_CLK_R",
87 "SD_CMD_R",
88 "SD_DATA0_R",
89 "SD_DATA1_R",
90 "SD_DATA2_R",
91 "SD_DATA3_R";
92
Gerd Hoffmanna6d962a2016-09-19 10:43:23 +020093 pinctrl-0 = <&gpioout &alt0 &i2s_alt0>;
Matthias Kleinba2a1d62014-11-20 10:52:45 +000094
95 /* I2S interface */
96 i2s_alt0: i2s_alt0 {
97 brcm,pins = <18 19 20 21>;
Stefan Wahren12091112015-01-29 18:10:50 +000098 brcm,function = <BCM2835_FSEL_ALT0>;
Matthias Kleinba2a1d62014-11-20 10:52:45 +000099 };
100};
Eric Anholt49ac67e2015-03-02 14:36:16 -0800101
102&hdmi {
103 hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
104};
Stefan Wahren4188ea22017-07-30 19:10:32 +0200105
Stefan Wahrenc4bb9782018-04-21 13:28:34 +0200106&pwm {
107 pinctrl-names = "default";
108 pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>;
109 status = "okay";
110};
111
Stefan Wahren4188ea22017-07-30 19:10:32 +0200112&uart0 {
113 pinctrl-names = "default";
114 pinctrl-0 = <&uart0_gpio14>;
115 status = "okay";
116};