• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2017 Stefan Wahren <stefan.wahren@i2se.com>
4 */
5
6/dts-v1/;
7#include "bcm2835.dtsi"
8#include "bcm2835-rpi.dtsi"
9#include "bcm283x-rpi-usb-otg.dtsi"
10
11/ {
12	compatible = "raspberrypi,model-zero-w", "brcm,bcm2835";
13	model = "Raspberry Pi Zero W";
14
15	memory@0 {
16		device_type = "memory";
17		reg = <0 0x20000000>;
18	};
19
20	chosen {
21		/* 8250 auxiliary UART instead of pl011 */
22		stdout-path = "serial1:115200n8";
23	};
24
25	leds {
26		act {
27			gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
28		};
29	};
30
31	wifi_pwrseq: wifi-pwrseq {
32		compatible = "mmc-pwrseq-simple";
33		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	 */
46	gpio-line-names = "ID_SDA",
47			  "ID_SCL",
48			  "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			  /* Used by BT module */
78			  "CTS0",
79			  "RTS0",
80			  "TXD0",
81			  "RXD0",
82			  /* Used by Wifi */
83			  "SD1_CLK",
84			  "SD1_CMD",
85			  "SD1_DATA0",
86			  "SD1_DATA1",
87			  "SD1_DATA2",
88			  "SD1_DATA3",
89			  "CAM_GPIO1", /* GPIO40 */
90			  "WL_ON", /* GPIO41 */
91			  "NC", /* GPIO42 */
92			  "WIFI_CLK", /* GPIO43 */
93			  "CAM_GPIO0", /* GPIO44 */
94			  "BT_ON", /* GPIO45 */
95			  "HDMI_HPD_N",
96			  "STATUS_LED_N",
97			  /* Used by SD Card */
98			  "SD_CLK_R",
99			  "SD_CMD_R",
100			  "SD_DATA0_R",
101			  "SD_DATA1_R",
102			  "SD_DATA2_R",
103			  "SD_DATA3_R";
104
105	pinctrl-0 = <&gpioout &alt0>;
106};
107
108&hdmi {
109	hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
110	power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
111	status = "okay";
112};
113
114&sdhci {
115	#address-cells = <1>;
116	#size-cells = <0>;
117	pinctrl-names = "default";
118	pinctrl-0 = <&emmc_gpio34 &gpclk2_gpio43>;
119	bus-width = <4>;
120	mmc-pwrseq = <&wifi_pwrseq>;
121	non-removable;
122	status = "okay";
123
124	brcmf: wifi@1 {
125		reg = <1>;
126		compatible = "brcm,bcm4329-fmac";
127	};
128};
129
130&sdhost {
131	pinctrl-names = "default";
132	pinctrl-0 = <&sdhost_gpio48>;
133	bus-width = <4>;
134	status = "okay";
135};
136
137&uart0 {
138	pinctrl-names = "default";
139	pinctrl-0 = <&uart0_gpio32 &uart0_ctsrts_gpio30>;
140	status = "okay";
141
142	bluetooth {
143		compatible = "brcm,bcm43438-bt";
144		max-speed = <2000000>;
145		shutdown-gpios = <&gpio 45 GPIO_ACTIVE_HIGH>;
146	};
147};
148
149&uart1 {
150	pinctrl-names = "default";
151	pinctrl-0 = <&uart1_gpio14>;
152	status = "okay";
153};
154