blob: d8af8eeac7b6f9024c43b3341c5ae6c5fd182462 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Eric Anholt80534f02015-04-16 15:26:45 -07002/dts-v1/;
3#include "bcm2836.dtsi"
Phil Elwell499770e2018-09-17 09:22:23 +01004#include "bcm2836-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"
Eric Anholt80534f02015-04-16 15:26:45 -07007
8/ {
9 compatible = "raspberrypi,2-model-b", "brcm,bcm2836";
10 model = "Raspberry Pi 2 Model B";
11
Stefan Wahrenf090e1b2018-12-30 11:51:22 +010012 memory@0 {
Stefan Wahren328e3e32019-07-16 20:13:13 +020013 device_type = "memory";
Eric Anholt80534f02015-04-16 15:26:45 -070014 reg = <0 0x40000000>;
15 };
16
17 leds {
Stefan Wahren5f30dac2021-06-06 14:16:15 +020018 led-act {
Stefan Wahren3edb73d2017-12-03 17:36:18 +010019 gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
Eric Anholt80534f02015-04-16 15:26:45 -070020 };
21
Stefan Wahren5f30dac2021-06-06 14:16:15 +020022 led-pwr {
Eric Anholt80534f02015-04-16 15:26:45 -070023 label = "PWR";
Stefan Wahren3edb73d2017-12-03 17:36:18 +010024 gpios = <&gpio 35 GPIO_ACTIVE_HIGH>;
Eric Anholt80534f02015-04-16 15:26:45 -070025 default-state = "keep";
26 linux,default-trigger = "default-on";
27 };
28 };
29};
30
31&gpio {
Stefan Wahren0b559d52019-01-01 18:29:08 +010032 /*
33 * Taken from rpi_SCH_2b_1p2_reduced.pdf and
34 * the official GPU firmware DT blob.
35 *
36 * Legend:
37 * "NC" = not connected (no rail from the SoC)
38 * "FOO" = GPIO line named "FOO" on the schematic
39 * "FOO_N" = GPIO line named "FOO" on schematic, active low
40 */
41 gpio-line-names = "ID_SDA",
42 "ID_SCL",
43 "SDA1",
44 "SCL1",
45 "GPIO_GCLK",
46 "GPIO5",
47 "GPIO6",
48 "SPI_CE1_N",
49 "SPI_CE0_N",
50 "SPI_MISO",
51 "SPI_MOSI",
52 "SPI_SCLK",
53 "GPIO12",
54 "GPIO13",
55 /* Serial port */
56 "TXD0",
57 "RXD0",
58 "GPIO16",
59 "GPIO17",
60 "GPIO18",
61 "GPIO19",
62 "GPIO20",
63 "GPIO21",
64 "GPIO22",
65 "GPIO23",
66 "GPIO24",
67 "GPIO25",
68 "GPIO26",
69 "GPIO27",
70 "SDA0",
71 "SCL0",
72 "", /* GPIO30 */
73 "LAN_RUN",
74 "CAM_GPIO1",
75 "", /* GPIO33 */
76 "", /* GPIO34 */
77 "PWR_LOW_N",
78 "", /* GPIO36 */
79 "", /* GPIO37 */
80 "USB_LIMIT",
81 "", /* GPIO39 */
82 "PWM0_OUT",
83 "CAM_GPIO0",
84 "SMPS_SCL",
85 "SMPS_SDA",
86 "ETHCLK",
87 "PWM1_OUT",
88 "HDMI_HPD_N",
89 "STATUS_LED",
90 /* Used by SD Card */
91 "SD_CLK_R",
92 "SD_CMD_R",
93 "SD_DATA0_R",
94 "SD_DATA1_R",
95 "SD_DATA2_R",
96 "SD_DATA3_R";
97
Gerd Hoffmanna6d962a2016-09-19 10:43:23 +020098 pinctrl-0 = <&gpioout &alt0 &i2s_alt0>;
Eric Anholt80534f02015-04-16 15:26:45 -070099
100 /* I2S interface */
101 i2s_alt0: i2s_alt0 {
102 brcm,pins = <18 19 20 21>;
103 brcm,function = <BCM2835_FSEL_ALT0>;
104 };
105};
Eric Anholt49ac67e2015-03-02 14:36:16 -0800106
107&hdmi {
108 hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
Stefan Wahren60c833d52019-07-25 21:03:42 +0200109 power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
110 status = "okay";
Eric Anholt49ac67e2015-03-02 14:36:16 -0800111};
Stefan Wahren4188ea22017-07-30 19:10:32 +0200112
Stefan Wahrenc4bb9782018-04-21 13:28:34 +0200113&pwm {
114 pinctrl-names = "default";
115 pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>;
116 status = "okay";
117};
118
Stefan Wahrene7774042019-07-14 17:55:00 +0200119&sdhost {
120 pinctrl-names = "default";
121 pinctrl-0 = <&sdhost_gpio48>;
122 bus-width = <4>;
123 status = "okay";
124};
125
Stefan Wahren4188ea22017-07-30 19:10:32 +0200126&uart0 {
127 pinctrl-names = "default";
128 pinctrl-0 = <&uart0_gpio14>;
129 status = "okay";
130};