blob: 6dd93c6f49666557b3ee0a958be961bfd8446370 [file] [log] [blame]
Stefan Wahren703c6052018-10-22 22:15:48 +02001// SPDX-License-Identifier: GPL-2.0+
Stefan Wahrenc8336242016-08-21 15:10:03 +00002/*
3 * Copyright (C) 2016 Stefan Wahren <stefan.wahren@i2se.com>
Stefan Wahrenc8336242016-08-21 15:10:03 +00004 */
5
6/dts-v1/;
7#include "bcm2835.dtsi"
8#include "bcm2835-rpi.dtsi"
Stefan Wahren9c535352017-05-21 18:44:38 +02009#include "bcm283x-rpi-usb-otg.dtsi"
Stefan Wahrenc8336242016-08-21 15:10:03 +000010
11/ {
12 compatible = "raspberrypi,model-zero", "brcm,bcm2835";
13 model = "Raspberry Pi Zero";
14
Stefan Wahren328e3e32019-07-16 20:13:13 +020015 memory@0 {
16 device_type = "memory";
17 reg = <0 0x20000000>;
18 };
19
Stefan Wahrenc8336242016-08-21 15:10:03 +000020 leds {
21 act {
22 gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
23 };
24 };
25};
26
27&gpio {
Stefan Wahren3a1689e2016-11-16 17:52:07 +000028 /*
29 * This is based on the official GPU firmware DT blob.
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 */
Stefan Wahrenb02d6192018-12-30 17:28:35 +010036 gpio-line-names = "ID_SDA",
37 "ID_SCL",
Stefan Wahren3a1689e2016-11-16 17:52:07 +000038 "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 "NC", /* GPIO31 */
69 "CAM_GPIO1", /* GPIO32 */
70 "NC", /* GPIO33 */
71 "NC", /* GPIO34 */
72 "NC", /* GPIO35 */
73 "NC", /* GPIO36 */
74 "NC", /* GPIO37 */
75 "NC", /* GPIO38 */
76 "NC", /* GPIO39 */
77 "NC", /* GPIO40 */
78 "CAM_GPIO0", /* GPIO41 */
79 "NC", /* GPIO42 */
80 "NC", /* GPIO43 */
81 "NC", /* GPIO44 */
82 "NC", /* GPIO45 */
83 "HDMI_HPD_N",
84 "STATUS_LED_N",
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>;
Stefan Wahrenc8336242016-08-21 15:10:03 +000094
95 /* I2S interface */
96 i2s_alt0: i2s_alt0 {
97 brcm,pins = <18 19 20 21>;
98 brcm,function = <BCM2835_FSEL_ALT0>;
99 };
100};
101
102&hdmi {
103 hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
Stefan Wahren60c833d52019-07-25 21:03:42 +0200104 power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
105 status = "okay";
Stefan Wahrenc8336242016-08-21 15:10:03 +0000106};
Stefan Wahren4188ea22017-07-30 19:10:32 +0200107
Stefan Wahrene7774042019-07-14 17:55:00 +0200108&sdhost {
109 pinctrl-names = "default";
110 pinctrl-0 = <&sdhost_gpio48>;
111 bus-width = <4>;
112 status = "okay";
113};
114
Stefan Wahren4188ea22017-07-30 19:10:32 +0200115&uart0 {
116 pinctrl-names = "default";
117 pinctrl-0 = <&uart0_gpio14>;
118 status = "okay";
119};