blob: 09a088f98566178bbb4d5df30f44d03ca7280357 [file] [log] [blame]
Stefan Wahren703c6052018-10-22 22:15:48 +02001// SPDX-License-Identifier: GPL-2.0+
Stefan Wahren2c7c0402017-07-30 19:10:34 +02002/*
3 * Copyright (C) 2017 Stefan Wahren <stefan.wahren@i2se.com>
Stefan Wahren2c7c0402017-07-30 19:10:34 +02004 */
5
6/dts-v1/;
7#include "bcm2835.dtsi"
8#include "bcm2835-rpi.dtsi"
Stefan Wahrenbcc76c42018-02-24 14:47:08 +01009#include "bcm283x-rpi-usb-otg.dtsi"
Stefan Wahren2c7c0402017-07-30 19:10:34 +020010
11/ {
12 compatible = "raspberrypi,model-zero-w", "brcm,bcm2835";
13 model = "Raspberry Pi Zero W";
14
Stefan Wahren328e3e32019-07-16 20:13:13 +020015 memory@0 {
16 device_type = "memory";
17 reg = <0 0x20000000>;
18 };
19
Loic Poulainf08f58a2017-10-06 15:52:52 +020020 chosen {
21 /* 8250 auxiliary UART instead of pl011 */
22 stdout-path = "serial1:115200n8";
Stefan Wahren2c7c0402017-07-30 19:10:34 +020023 };
24
25 leds {
26 act {
27 gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
28 };
29 };
30
31 wifi_pwrseq: wifi-pwrseq {
32 compatible = "mmc-pwrseq-simple";
Stefan Wahren2c7c0402017-07-30 19:10:34 +020033 reset-gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
34 };
35};
36
37&gpio {
38 /*
39 * This is based on the official GPU firmware DT blob.
40 *
41 * Legend:
42 * "NC" = not connected (no rail from the SoC)
43 * "FOO" = GPIO line named "FOO" on the schematic
44 * "FOO_N" = GPIO line named "FOO" on schematic, active low
45 */
Stefan Wahrenb02d6192018-12-30 17:28:35 +010046 gpio-line-names = "ID_SDA",
47 "ID_SCL",
Stefan Wahren2c7c0402017-07-30 19:10:34 +020048 "SDA1",
49 "SCL1",
50 "GPIO_GCLK",
51 "GPIO5",
52 "GPIO6",
53 "SPI_CE1_N",
54 "SPI_CE0_N",
55 "SPI_MISO",
56 "SPI_MOSI",
57 "SPI_SCLK",
58 "GPIO12",
59 "GPIO13",
60 /* Serial port */
61 "TXD0",
62 "RXD0",
63 "GPIO16",
64 "GPIO17",
65 "GPIO18",
66 "GPIO19",
67 "GPIO20",
68 "GPIO21",
69 "GPIO22",
70 "GPIO23",
71 "GPIO24",
72 "GPIO25",
73 "GPIO26",
74 "GPIO27",
75 "SDA0",
76 "SCL0",
77 "NC", /* GPIO30 */
78 "NC", /* GPIO31 */
79 "NC", /* GPIO32 */
80 "NC", /* GPIO33 */
81 "NC", /* GPIO34 */
82 "NC", /* GPIO35 */
83 "NC", /* GPIO36 */
84 "NC", /* GPIO37 */
85 "NC", /* GPIO38 */
86 "NC", /* GPIO39 */
87 "CAM_GPIO1", /* GPIO40 */
88 "WL_ON", /* GPIO41 */
89 "NC", /* GPIO42 */
90 "WIFI_CLK", /* GPIO43 */
91 "CAM_GPIO0", /* GPIO44 */
92 "BT_ON", /* GPIO45 */
93 "HDMI_HPD_N",
94 "STATUS_LED_N",
95 /* Used by SD Card */
96 "SD_CLK_R",
97 "SD_CMD_R",
98 "SD_DATA0_R",
99 "SD_DATA1_R",
100 "SD_DATA2_R",
101 "SD_DATA3_R";
102
103 pinctrl-0 = <&gpioout &alt0>;
Stefan Wahren2c7c0402017-07-30 19:10:34 +0200104};
105
106&hdmi {
107 hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
Stefan Wahren60c833d52019-07-25 21:03:42 +0200108 power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
109 status = "okay";
Stefan Wahren2c7c0402017-07-30 19:10:34 +0200110};
111
112&sdhci {
113 #address-cells = <1>;
114 #size-cells = <0>;
115 pinctrl-0 = <&emmc_gpio34 &gpclk2_gpio43>;
116 mmc-pwrseq = <&wifi_pwrseq>;
117 non-removable;
118 status = "okay";
119
120 brcmf: wifi@1 {
121 reg = <1>;
122 compatible = "brcm,bcm4329-fmac";
123 };
124};
125
Stefan Wahrene7774042019-07-14 17:55:00 +0200126&sdhost {
127 pinctrl-names = "default";
128 pinctrl-0 = <&sdhost_gpio48>;
129 bus-width = <4>;
130 status = "okay";
131};
132
Stefan Wahren2c7c0402017-07-30 19:10:34 +0200133&uart0 {
134 pinctrl-names = "default";
Stefan Wahrenaa181322018-02-25 15:10:54 +0100135 pinctrl-0 = <&uart0_gpio32 &uart0_ctsrts_gpio30>;
136 status = "okay";
137
138 bluetooth {
139 compatible = "brcm,bcm43438-bt";
140 max-speed = <2000000>;
141 shutdown-gpios = <&gpio 45 GPIO_ACTIVE_HIGH>;
142 };
143};
144
145&uart1 {
146 pinctrl-names = "default";
147 pinctrl-0 = <&uart1_gpio14>;
Stefan Wahren2c7c0402017-07-30 19:10:34 +0200148 status = "okay";
149};