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