blob: 85cf594724eff905e90e986395ccdea6f555ce40 [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2022 Stefan Wahren <stefan.wahren@i2se.com>
4 */
5
6/dts-v1/;
7#include "bcm2837.dtsi"
8#include "bcm2836-rpi.dtsi"
9#include "bcm283x-rpi-led-deprecated.dtsi"
10#include "bcm283x-rpi-usb-otg.dtsi"
11#include "bcm283x-rpi-wifi-bt.dtsi"
12
13/ {
14 compatible = "raspberrypi,model-zero-2-w", "brcm,bcm2837";
15 model = "Raspberry Pi Zero 2 W";
16
17 memory@0 {
18 device_type = "memory";
19 reg = <0 0x20000000>;
20 };
21
22 chosen {
23 /* 8250 auxiliary UART instead of pl011 */
24 stdout-path = "serial1:115200n8";
25 };
26};
27
28&bt {
29 shutdown-gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
30};
31
32&gpio {
33 /*
34 * This is based on 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 "HDMI_HPD_N",
71 "STATUS_LED_N",
72 "NC", /* GPIO30 */
73 "NC", /* GPIO31 */
74 "NC", /* GPIO32 */
75 "NC", /* GPIO33 */
76 "NC", /* GPIO34 */
77 "NC", /* GPIO35 */
78 "NC", /* GPIO36 */
79 "NC", /* GPIO37 */
80 "NC", /* GPIO38 */
81 "NC", /* GPIO39 */
82 "CAM_GPIO0", /* GPIO40 */
83 "WL_ON", /* GPIO41 */
84 "BT_ON", /* GPIO42 */
85 "WIFI_CLK", /* GPIO43 */
86 "SDA0", /* GPIO44 */
87 "SCL0", /* GPIO45 */
88 "SMPS_SCL",
89 "SMPS_SDA",
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
98 pinctrl-names = "default";
99 pinctrl-0 = <&gpioout &alt0>;
100};
101
102&hdmi {
103 hpd-gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
104 power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
105 status = "okay";
106};
107
108&led_act {
109 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
110};
111
112&sdhci {
113 pinctrl-names = "default";
114 pinctrl-0 = <&emmc_gpio34 &gpclk2_gpio43>;
115};
116
117&sdhost {
118 pinctrl-names = "default";
119 pinctrl-0 = <&sdhost_gpio48>;
120 bus-width = <4>;
121 status = "okay";
122};
123
124&uart0 {
125 pinctrl-names = "default";
126 pinctrl-0 = <&uart0_gpio32 &uart0_ctsrts_gpio30>;
127};
128
129&uart1 {
130 pinctrl-names = "default";
131 pinctrl-0 = <&uart1_gpio14>;
132 status = "okay";
133};
134
135&wifi_pwrseq {
136 reset-gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
137};