blob: a846f1e781d8a30e2e0afeaed5e67c32005f9b97 [file] [log] [blame]
Fabian Vogt46025582016-09-26 14:26:47 +02001/dts-v1/;
2#include "bcm2835.dtsi"
3#include "bcm2835-rpi.dtsi"
4#include "bcm283x-rpi-smsc9514.dtsi"
Alexander Graf409f05f2017-10-04 14:39:16 +02005#include "bcm283x-rpi-usb-host.dtsi"
Fabian Vogt46025582016-09-26 14:26:47 +02006
7/ {
8 compatible = "raspberrypi,model-b-plus", "brcm,bcm2835";
9 model = "Raspberry Pi Model B+";
10
11 leds {
12 act {
13 gpios = <&gpio 47 0>;
14 };
15
16 pwr {
17 label = "PWR";
18 gpios = <&gpio 35 0>;
19 default-state = "keep";
20 linux,default-trigger = "default-on";
21 };
22 };
23};
24
25&gpio {
Alexander Graf409f05f2017-10-04 14:39:16 +020026 /*
27 * Taken from Raspberry-Pi-B-Plus-V1.2-Schematics.pdf
28 * RPI-BPLUS sheet 1
29 *
30 * Legend:
31 * "NC" = not connected (no rail from the SoC)
32 * "FOO" = GPIO line named "FOO" on the schematic
33 * "FOO_N" = GPIO line named "FOO" on schematic, active low
34 */
35 gpio-line-names = "SDA0",
36 "SCL0",
37 "SDA1",
38 "SCL1",
39 "GPIO_GCLK",
40 "GPIO5",
41 "GPIO6",
42 "SPI_CE1_N",
43 "SPI_CE0_N",
44 "SPI_MISO",
45 "SPI_MOSI",
46 "SPI_SCLK",
47 "GPIO12",
48 "GPIO13",
49 /* Serial port */
50 "TXD0",
51 "RXD0",
52 "GPIO16",
53 "GPIO17",
54 "GPIO18",
55 "GPIO19",
56 "GPIO20",
57 "GPIO21",
58 "GPIO22",
59 "GPIO23",
60 "GPIO24",
61 "GPIO25",
62 "GPIO26",
63 "GPIO27",
64 "SDA0",
65 "SCL0",
66 "NC", /* GPIO30 */
67 "LAN_RUN", /* GPIO31 */
68 "CAM_GPIO1", /* GPIO32 */
69 "NC", /* GPIO33 */
70 "NC", /* GPIO34 */
71 "PWR_LOW_N", /* GPIO35 */
72 "NC", /* GPIO36 */
73 "NC", /* GPIO37 */
74 "USB_LIMIT", /* GPIO38 */
75 "NC", /* GPIO39 */
76 "PWM0_OUT", /* GPIO40 */
77 "CAM_GPIO0", /* GPIO41 */
78 "NC", /* GPIO42 */
79 "NC", /* GPIO43 */
80 "ETHCLK", /* GPIO44 */
81 "PWM1_OUT", /* GPIO45 */
82 "HDMI_HPD_N",
83 "STATUS_LED",
84 /* Used by SD Card */
85 "SD_CLK_R",
86 "SD_CMD_R",
87 "SD_DATA0_R",
88 "SD_DATA1_R",
89 "SD_DATA2_R",
90 "SD_DATA3_R";
91
92 pinctrl-0 = <&gpioout &alt0 &i2s_alt0>;
Fabian Vogt46025582016-09-26 14:26:47 +020093
94 /* I2S interface */
95 i2s_alt0: i2s_alt0 {
96 brcm,pins = <18 19 20 21>;
97 brcm,function = <BCM2835_FSEL_ALT0>;
98 };
99};
100
101&hdmi {
102 hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
103};
Alexander Graf409f05f2017-10-04 14:39:16 +0200104
105&uart0 {
106 pinctrl-names = "default";
107 pinctrl-0 = <&uart0_gpio14>;
108 status = "okay";
109};