0001 // SPDX-License-Identifier: GPL-2.0+
0002 /*
0003 * Copyright (C) 2017 Stefan Wahren <stefan.wahren@i2se.com>
0004 */
0005
0006 /dts-v1/;
0007 #include "bcm2835.dtsi"
0008 #include "bcm2835-rpi.dtsi"
0009 #include "bcm283x-rpi-usb-otg.dtsi"
0010 #include "bcm283x-rpi-wifi-bt.dtsi"
0011
0012 / {
0013 compatible = "raspberrypi,model-zero-w", "brcm,bcm2835";
0014 model = "Raspberry Pi Zero W";
0015
0016 memory@0 {
0017 device_type = "memory";
0018 reg = <0 0x20000000>;
0019 };
0020
0021 chosen {
0022 /* 8250 auxiliary UART instead of pl011 */
0023 stdout-path = "serial1:115200n8";
0024 };
0025
0026 leds {
0027 led-act {
0028 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
0029 };
0030 };
0031 };
0032
0033 &bt {
0034 shutdown-gpios = <&gpio 45 GPIO_ACTIVE_HIGH>;
0035 };
0036
0037 &gpio {
0038 /*
0039 * This is based on the official GPU firmware DT blob.
0040 *
0041 * Legend:
0042 * "FOO" = GPIO line named "FOO" on the schematic
0043 * "FOO_N" = GPIO line named "FOO" on schematic, active low
0044 */
0045 gpio-line-names = "ID_SDA",
0046 "ID_SCL",
0047 "SDA1",
0048 "SCL1",
0049 "GPIO_GCLK",
0050 "GPIO5",
0051 "GPIO6",
0052 "SPI_CE1_N",
0053 "SPI_CE0_N",
0054 "SPI_MISO",
0055 "SPI_MOSI",
0056 "SPI_SCLK",
0057 "GPIO12",
0058 "GPIO13",
0059 /* Serial port */
0060 "TXD0",
0061 "RXD0",
0062 "GPIO16",
0063 "GPIO17",
0064 "GPIO18",
0065 "GPIO19",
0066 "GPIO20",
0067 "GPIO21",
0068 "GPIO22",
0069 "GPIO23",
0070 "GPIO24",
0071 "GPIO25",
0072 "GPIO26",
0073 "GPIO27",
0074 "SDA0",
0075 "SCL0",
0076 /* Used by BT module */
0077 "CTS0",
0078 "RTS0",
0079 "TXD0",
0080 "RXD0",
0081 /* Used by Wifi */
0082 "SD1_CLK",
0083 "SD1_CMD",
0084 "SD1_DATA0",
0085 "SD1_DATA1",
0086 "SD1_DATA2",
0087 "SD1_DATA3",
0088 "CAM_GPIO1", /* GPIO40 */
0089 "WL_ON", /* GPIO41 */
0090 "", /* GPIO42 */
0091 "WIFI_CLK", /* GPIO43 */
0092 "CAM_GPIO0", /* GPIO44 */
0093 "BT_ON", /* GPIO45 */
0094 "HDMI_HPD_N",
0095 "STATUS_LED_N",
0096 /* Used by SD Card */
0097 "SD_CLK_R",
0098 "SD_CMD_R",
0099 "SD_DATA0_R",
0100 "SD_DATA1_R",
0101 "SD_DATA2_R",
0102 "SD_DATA3_R";
0103
0104 pinctrl-0 = <&gpioout &alt0>;
0105 };
0106
0107 &hdmi {
0108 hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
0109 power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
0110 status = "okay";
0111 };
0112
0113 &sdhci {
0114 pinctrl-0 = <&emmc_gpio34 &gpclk2_gpio43>;
0115 };
0116
0117 &sdhost {
0118 pinctrl-names = "default";
0119 pinctrl-0 = <&sdhost_gpio48>;
0120 bus-width = <4>;
0121 status = "okay";
0122 };
0123
0124 &uart0 {
0125 pinctrl-names = "default";
0126 pinctrl-0 = <&uart0_gpio32 &uart0_ctsrts_gpio30>;
0127 };
0128
0129 &uart1 {
0130 pinctrl-names = "default";
0131 pinctrl-0 = <&uart1_gpio14>;
0132 status = "okay";
0133 };
0134
0135 &wifi_pwrseq {
0136 reset-gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
0137 };