blob: 5ecc4032beb6808f753a73a0585a1eacd0021307 [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
Loic Poulainf08f58a2017-10-06 15:52:52 +020015 chosen {
16 /* 8250 auxiliary UART instead of pl011 */
17 stdout-path = "serial1:115200n8";
Stefan Wahren2c7c0402017-07-30 19:10:34 +020018 };
19
20 leds {
21 act {
22 gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
23 };
24 };
25
26 wifi_pwrseq: wifi-pwrseq {
27 compatible = "mmc-pwrseq-simple";
Stefan Wahren2c7c0402017-07-30 19:10:34 +020028 reset-gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
29 };
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 */
Stefan Wahrenb02d6192018-12-30 17:28:35 +010041 gpio-line-names = "ID_SDA",
42 "ID_SCL",
Stefan Wahren2c7c0402017-07-30 19:10:34 +020043 "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 "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_GPIO1", /* GPIO40 */
83 "WL_ON", /* GPIO41 */
84 "NC", /* GPIO42 */
85 "WIFI_CLK", /* GPIO43 */
86 "CAM_GPIO0", /* GPIO44 */
87 "BT_ON", /* GPIO45 */
88 "HDMI_HPD_N",
89 "STATUS_LED_N",
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-0 = <&gpioout &alt0>;
Stefan Wahren2c7c0402017-07-30 19:10:34 +020099};
100
101&hdmi {
102 hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
103};
104
105&sdhci {
106 #address-cells = <1>;
107 #size-cells = <0>;
108 pinctrl-0 = <&emmc_gpio34 &gpclk2_gpio43>;
109 mmc-pwrseq = <&wifi_pwrseq>;
110 non-removable;
111 status = "okay";
112
113 brcmf: wifi@1 {
114 reg = <1>;
115 compatible = "brcm,bcm4329-fmac";
116 };
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 Wahren2c7c0402017-07-30 19:10:34 +0200126&uart0 {
127 pinctrl-names = "default";
Stefan Wahrenaa181322018-02-25 15:10:54 +0100128 pinctrl-0 = <&uart0_gpio32 &uart0_ctsrts_gpio30>;
129 status = "okay";
130
131 bluetooth {
132 compatible = "brcm,bcm43438-bt";
133 max-speed = <2000000>;
134 shutdown-gpios = <&gpio 45 GPIO_ACTIVE_HIGH>;
135 };
136};
137
138&uart1 {
139 pinctrl-names = "default";
140 pinctrl-0 = <&uart1_gpio14>;
Stefan Wahren2c7c0402017-07-30 19:10:34 +0200141 status = "okay";
142};