1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0+ 2f126890aSEmmanuel Vadot/* 3f126890aSEmmanuel Vadot * Copyright (C) 2017 Stefan Wahren <stefan.wahren@i2se.com> 4f126890aSEmmanuel Vadot */ 5f126890aSEmmanuel Vadot 6f126890aSEmmanuel Vadot/dts-v1/; 7f126890aSEmmanuel Vadot#include "bcm2835.dtsi" 8f126890aSEmmanuel Vadot#include "bcm2835-rpi.dtsi" 9f126890aSEmmanuel Vadot#include "bcm2835-rpi-common.dtsi" 10f126890aSEmmanuel Vadot#include "bcm283x-rpi-led-deprecated.dtsi" 11f126890aSEmmanuel Vadot#include "bcm283x-rpi-usb-otg.dtsi" 12f126890aSEmmanuel Vadot#include "bcm283x-rpi-wifi-bt.dtsi" 13f126890aSEmmanuel Vadot 14f126890aSEmmanuel Vadot/ { 15f126890aSEmmanuel Vadot compatible = "raspberrypi,model-zero-w", "brcm,bcm2835"; 16f126890aSEmmanuel Vadot model = "Raspberry Pi Zero W"; 17f126890aSEmmanuel Vadot 18f126890aSEmmanuel Vadot memory@0 { 19f126890aSEmmanuel Vadot device_type = "memory"; 20f126890aSEmmanuel Vadot reg = <0 0x20000000>; 21f126890aSEmmanuel Vadot }; 22f126890aSEmmanuel Vadot 23f126890aSEmmanuel Vadot chosen { 24f126890aSEmmanuel Vadot /* 8250 auxiliary UART instead of pl011 */ 25f126890aSEmmanuel Vadot stdout-path = "serial1:115200n8"; 26f126890aSEmmanuel Vadot }; 27f126890aSEmmanuel Vadot}; 28f126890aSEmmanuel Vadot 29f126890aSEmmanuel Vadot&bt { 30f126890aSEmmanuel Vadot shutdown-gpios = <&gpio 45 GPIO_ACTIVE_HIGH>; 31f126890aSEmmanuel Vadot}; 32f126890aSEmmanuel Vadot 33f126890aSEmmanuel Vadot&gpio { 34f126890aSEmmanuel Vadot /* 35f126890aSEmmanuel Vadot * This is based on the official GPU firmware DT blob. 36f126890aSEmmanuel Vadot * 37f126890aSEmmanuel Vadot * Legend: 38f126890aSEmmanuel Vadot * "FOO" = GPIO line named "FOO" on the schematic 39f126890aSEmmanuel Vadot * "FOO_N" = GPIO line named "FOO" on schematic, active low 40f126890aSEmmanuel Vadot */ 41f126890aSEmmanuel Vadot gpio-line-names = "ID_SDA", 42f126890aSEmmanuel Vadot "ID_SCL", 43f126890aSEmmanuel Vadot "SDA1", 44f126890aSEmmanuel Vadot "SCL1", 45f126890aSEmmanuel Vadot "GPIO_GCLK", 46f126890aSEmmanuel Vadot "GPIO5", 47f126890aSEmmanuel Vadot "GPIO6", 48f126890aSEmmanuel Vadot "SPI_CE1_N", 49f126890aSEmmanuel Vadot "SPI_CE0_N", 50f126890aSEmmanuel Vadot "SPI_MISO", 51f126890aSEmmanuel Vadot "SPI_MOSI", 52f126890aSEmmanuel Vadot "SPI_SCLK", 53f126890aSEmmanuel Vadot "GPIO12", 54f126890aSEmmanuel Vadot "GPIO13", 55f126890aSEmmanuel Vadot /* Serial port */ 56f126890aSEmmanuel Vadot "TXD0", 57f126890aSEmmanuel Vadot "RXD0", 58f126890aSEmmanuel Vadot "GPIO16", 59f126890aSEmmanuel Vadot "GPIO17", 60f126890aSEmmanuel Vadot "GPIO18", 61f126890aSEmmanuel Vadot "GPIO19", 62f126890aSEmmanuel Vadot "GPIO20", 63f126890aSEmmanuel Vadot "GPIO21", 64f126890aSEmmanuel Vadot "GPIO22", 65f126890aSEmmanuel Vadot "GPIO23", 66f126890aSEmmanuel Vadot "GPIO24", 67f126890aSEmmanuel Vadot "GPIO25", 68f126890aSEmmanuel Vadot "GPIO26", 69f126890aSEmmanuel Vadot "GPIO27", 70f126890aSEmmanuel Vadot "SDA0", 71f126890aSEmmanuel Vadot "SCL0", 72f126890aSEmmanuel Vadot /* Used by BT module */ 73f126890aSEmmanuel Vadot "CTS0", 74f126890aSEmmanuel Vadot "RTS0", 75f126890aSEmmanuel Vadot "TXD0", 76f126890aSEmmanuel Vadot "RXD0", 77f126890aSEmmanuel Vadot /* Used by Wifi */ 78f126890aSEmmanuel Vadot "SD1_CLK", 79f126890aSEmmanuel Vadot "SD1_CMD", 80f126890aSEmmanuel Vadot "SD1_DATA0", 81f126890aSEmmanuel Vadot "SD1_DATA1", 82f126890aSEmmanuel Vadot "SD1_DATA2", 83f126890aSEmmanuel Vadot "SD1_DATA3", 84f126890aSEmmanuel Vadot "CAM_GPIO1", /* GPIO40 */ 85f126890aSEmmanuel Vadot "WL_ON", /* GPIO41 */ 86f126890aSEmmanuel Vadot "", /* GPIO42 */ 87f126890aSEmmanuel Vadot "WIFI_CLK", /* GPIO43 */ 88f126890aSEmmanuel Vadot "CAM_GPIO0", /* GPIO44 */ 89f126890aSEmmanuel Vadot "BT_ON", /* GPIO45 */ 90f126890aSEmmanuel Vadot "HDMI_HPD_N", 91f126890aSEmmanuel Vadot "STATUS_LED_N", 92f126890aSEmmanuel Vadot /* Used by SD Card */ 93f126890aSEmmanuel Vadot "SD_CLK_R", 94f126890aSEmmanuel Vadot "SD_CMD_R", 95f126890aSEmmanuel Vadot "SD_DATA0_R", 96f126890aSEmmanuel Vadot "SD_DATA1_R", 97f126890aSEmmanuel Vadot "SD_DATA2_R", 98f126890aSEmmanuel Vadot "SD_DATA3_R"; 99f126890aSEmmanuel Vadot 100*aa1a8ff2SEmmanuel Vadot pinctrl-names = "default"; 101f126890aSEmmanuel Vadot pinctrl-0 = <&gpioout &alt0>; 102f126890aSEmmanuel Vadot}; 103f126890aSEmmanuel Vadot 104f126890aSEmmanuel Vadot&hdmi { 105f126890aSEmmanuel Vadot hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>; 106f126890aSEmmanuel Vadot power-domains = <&power RPI_POWER_DOMAIN_HDMI>; 107f126890aSEmmanuel Vadot status = "okay"; 108f126890aSEmmanuel Vadot}; 109f126890aSEmmanuel Vadot 110f126890aSEmmanuel Vadot&led_act { 111f126890aSEmmanuel Vadot gpios = <&gpio 47 GPIO_ACTIVE_LOW>; 112f126890aSEmmanuel Vadot}; 113f126890aSEmmanuel Vadot 114f126890aSEmmanuel Vadot&sdhci { 115*aa1a8ff2SEmmanuel Vadot pinctrl-names = "default"; 116f126890aSEmmanuel Vadot pinctrl-0 = <&emmc_gpio34 &gpclk2_gpio43>; 117f126890aSEmmanuel Vadot}; 118f126890aSEmmanuel Vadot 119f126890aSEmmanuel Vadot&sdhost { 120f126890aSEmmanuel Vadot pinctrl-names = "default"; 121f126890aSEmmanuel Vadot pinctrl-0 = <&sdhost_gpio48>; 122f126890aSEmmanuel Vadot bus-width = <4>; 123f126890aSEmmanuel Vadot status = "okay"; 124f126890aSEmmanuel Vadot}; 125f126890aSEmmanuel Vadot 126f126890aSEmmanuel Vadot&uart0 { 127f126890aSEmmanuel Vadot pinctrl-names = "default"; 128f126890aSEmmanuel Vadot pinctrl-0 = <&uart0_gpio32 &uart0_ctsrts_gpio30>; 129f126890aSEmmanuel Vadot}; 130f126890aSEmmanuel Vadot 131f126890aSEmmanuel Vadot&uart1 { 132f126890aSEmmanuel Vadot pinctrl-names = "default"; 133f126890aSEmmanuel Vadot pinctrl-0 = <&uart1_gpio14>; 134f126890aSEmmanuel Vadot status = "okay"; 135f126890aSEmmanuel Vadot}; 136f126890aSEmmanuel Vadot 137f126890aSEmmanuel Vadot&wifi_pwrseq { 138f126890aSEmmanuel Vadot reset-gpios = <&gpio 41 GPIO_ACTIVE_LOW>; 139f126890aSEmmanuel Vadot}; 140