1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
3 #include "bcm2835.dtsi"
4 #include "bcm2835-rpi.dtsi"
5 #include "bcm283x-rpi-smsc9512.dtsi"
6 #include "bcm283x-rpi-usb-host.dtsi"
7
8 / {
9 compatible = "raspberrypi,model-b-rev2", "brcm,bcm2835";
10 model = "Raspberry Pi Model B rev2";
11
12 memory@0 {
13 device_type = "memory";
14 reg = <0 0x10000000>;
15 };
16
17 leds {
18 led-act {
19 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
20 };
21 };
22 };
23
24 &gpio {
25 /*
26 * Taken from Raspberry-Pi-Rev-2.0-Model-AB-Schematics.pdf
27 * RPI00022 sheet 02
28 *
29 * Legend:
30 * "FOO" = GPIO line named "FOO" on the schematic
31 * "FOO_N" = GPIO line named "FOO" on schematic, active low
32 */
33 gpio-line-names = "SDA0",
34 "SCL0",
35 "SDA1",
36 "SCL1",
37 "GPIO_GCLK",
38 "CAM_CLK",
39 "LAN_RUN",
40 "SPI_CE1_N",
41 "SPI_CE0_N",
42 "SPI_MISO",
43 "SPI_MOSI",
44 "SPI_SCLK",
45 "", /* GPIO12 */
46 "", /* GPIO13 */
47 /* Serial port */
48 "TXD0",
49 "RXD0",
50 "STATUS_LED_N",
51 "GPIO17",
52 "GPIO18",
53 "", /* GPIO19 */
54 "", /* GPIO20 */
55 "CAM_GPIO",
56 "GPIO22",
57 "GPIO23",
58 "GPIO24",
59 "GPIO25",
60 "", /* GPIO26 */
61 "GPIO27",
62 "GPIO28",
63 "GPIO29",
64 "GPIO30",
65 "GPIO31",
66 "", /* GPIO32 */
67 "", /* GPIO33 */
68 "", /* GPIO34 */
69 "", /* GPIO35 */
70 "", /* GPIO36 */
71 "", /* GPIO37 */
72 "", /* GPIO38 */
73 "", /* GPIO39 */
74 "PWM0_OUT",
75 "", /* GPIO41 */
76 "", /* GPIO42 */
77 "", /* GPIO43 */
78 "", /* GPIO44 */
79 "PWM1_OUT",
80 "HDMI_HPD_P",
81 "SD_CARD_DET",
82 /* Used by SD Card */
83 "SD_CLK_R",
84 "SD_CMD_R",
85 "SD_DATA0_R",
86 "SD_DATA1_R",
87 "SD_DATA2_R",
88 "SD_DATA3_R";
89
90 pinctrl-0 = <&gpioout &alt0 &i2s_alt2>;
91
92 /* I2S interface */
93 i2s_alt2: i2s_alt2 {
94 brcm,pins = <28 29 30 31>;
95 brcm,function = <BCM2835_FSEL_ALT2>;
96 };
97 };
98
99 &hdmi {
100 hpd-gpios = <&gpio 46 GPIO_ACTIVE_HIGH>;
101 power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
102 status = "okay";
103 };
104
105 &pwm {
106 pinctrl-names = "default";
107 pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>;
108 status = "okay";
109 };
110
111 &sdhost {
112 pinctrl-names = "default";
113 pinctrl-0 = <&sdhost_gpio48>;
114 bus-width = <4>;
115 status = "okay";
116 };
117
118 &uart0 {
119 pinctrl-names = "default";
120 pinctrl-0 = <&uart0_gpio14>;
121 status = "okay";
122 };
Cache object: 2a8e776e2b1a09a672cabf29ca8f0b60
|