0001 // SPDX-License-Identifier: GPL-2.0+
0002 /*
0003 * Copyright (C) 2016 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
0011 / {
0012 compatible = "raspberrypi,model-zero", "brcm,bcm2835";
0013 model = "Raspberry Pi Zero";
0014
0015 memory@0 {
0016 device_type = "memory";
0017 reg = <0 0x20000000>;
0018 };
0019
0020 leds {
0021 led-act {
0022 gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
0023 };
0024 };
0025 };
0026
0027 &gpio {
0028 /*
0029 * This is based on the official GPU firmware DT blob.
0030 *
0031 * Legend:
0032 * "FOO" = GPIO line named "FOO" on the schematic
0033 * "FOO_N" = GPIO line named "FOO" on schematic, active low
0034 */
0035 gpio-line-names = "ID_SDA",
0036 "ID_SCL",
0037 "SDA1",
0038 "SCL1",
0039 "GPIO_GCLK",
0040 "GPIO5",
0041 "GPIO6",
0042 "SPI_CE1_N",
0043 "SPI_CE0_N",
0044 "SPI_MISO",
0045 "SPI_MOSI",
0046 "SPI_SCLK",
0047 "GPIO12",
0048 "GPIO13",
0049 /* Serial port */
0050 "TXD0",
0051 "RXD0",
0052 "GPIO16",
0053 "GPIO17",
0054 "GPIO18",
0055 "GPIO19",
0056 "GPIO20",
0057 "GPIO21",
0058 "GPIO22",
0059 "GPIO23",
0060 "GPIO24",
0061 "GPIO25",
0062 "GPIO26",
0063 "GPIO27",
0064 "SDA0",
0065 "SCL0",
0066 "", /* GPIO30 */
0067 "", /* GPIO31 */
0068 "CAM_GPIO1", /* GPIO32 */
0069 "", /* GPIO33 */
0070 "", /* GPIO34 */
0071 "", /* GPIO35 */
0072 "", /* GPIO36 */
0073 "", /* GPIO37 */
0074 "", /* GPIO38 */
0075 "", /* GPIO39 */
0076 "", /* GPIO40 */
0077 "CAM_GPIO0", /* GPIO41 */
0078 "", /* GPIO42 */
0079 "", /* GPIO43 */
0080 "", /* GPIO44 */
0081 "", /* GPIO45 */
0082 "HDMI_HPD_N",
0083 "STATUS_LED_N",
0084 /* Used by SD Card */
0085 "SD_CLK_R",
0086 "SD_CMD_R",
0087 "SD_DATA0_R",
0088 "SD_DATA1_R",
0089 "SD_DATA2_R",
0090 "SD_DATA3_R";
0091
0092 pinctrl-0 = <&gpioout &alt0 &i2s_alt0>;
0093
0094 /* I2S interface */
0095 i2s_alt0: i2s_alt0 {
0096 brcm,pins = <18 19 20 21>;
0097 brcm,function = <BCM2835_FSEL_ALT0>;
0098 };
0099 };
0100
0101 &hdmi {
0102 hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
0103 power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
0104 status = "okay";
0105 };
0106
0107 &sdhost {
0108 pinctrl-names = "default";
0109 pinctrl-0 = <&sdhost_gpio48>;
0110 bus-width = <4>;
0111 status = "okay";
0112 };
0113
0114 &uart0 {
0115 pinctrl-names = "default";
0116 pinctrl-0 = <&uart0_gpio14>;
0117 status = "okay";
0118 };