Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0+
0002 /*
0003  * Copyright (C) 2022 Stefan Wahren <stefan.wahren@i2se.com>
0004  */
0005 
0006 /dts-v1/;
0007 #include "bcm2837.dtsi"
0008 #include "bcm2836-rpi.dtsi"
0009 #include "bcm283x-rpi-usb-otg.dtsi"
0010 #include "bcm283x-rpi-wifi-bt.dtsi"
0011 
0012 / {
0013         compatible = "raspberrypi,model-zero-2-w", "brcm,bcm2837";
0014         model = "Raspberry Pi Zero 2 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 29 GPIO_ACTIVE_LOW>;
0029                 };
0030         };
0031 };
0032 
0033 &bt {
0034         shutdown-gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
0035 };
0036 
0037 &gpio {
0038         /*
0039          * This is based on the official GPU firmware DT blob.
0040          *
0041          * Legend:
0042          * "NC" = not connected (no rail from the SoC)
0043          * "FOO" = GPIO line named "FOO" on the schematic
0044          * "FOO_N" = GPIO line named "FOO" on schematic, active low
0045          */
0046         gpio-line-names = "ID_SDA",
0047                           "ID_SCL",
0048                           "SDA1",
0049                           "SCL1",
0050                           "GPIO_GCLK",
0051                           "GPIO5",
0052                           "GPIO6",
0053                           "SPI_CE1_N",
0054                           "SPI_CE0_N",
0055                           "SPI_MISO",
0056                           "SPI_MOSI",
0057                           "SPI_SCLK",
0058                           "GPIO12",
0059                           "GPIO13",
0060                           /* Serial port */
0061                           "TXD0",
0062                           "RXD0",
0063                           "GPIO16",
0064                           "GPIO17",
0065                           "GPIO18",
0066                           "GPIO19",
0067                           "GPIO20",
0068                           "GPIO21",
0069                           "GPIO22",
0070                           "GPIO23",
0071                           "GPIO24",
0072                           "GPIO25",
0073                           "GPIO26",
0074                           "GPIO27",
0075                           "HDMI_HPD_N",
0076                           "STATUS_LED_N",
0077                           "NC", /* GPIO30 */
0078                           "NC", /* GPIO31 */
0079                           "NC", /* GPIO32 */
0080                           "NC", /* GPIO33 */
0081                           "NC", /* GPIO34 */
0082                           "NC", /* GPIO35 */
0083                           "NC", /* GPIO36 */
0084                           "NC", /* GPIO37 */
0085                           "NC", /* GPIO38 */
0086                           "NC", /* GPIO39 */
0087                           "CAM_GPIO0", /* GPIO40 */
0088                           "WL_ON", /* GPIO41 */
0089                           "BT_ON", /* GPIO42 */
0090                           "WIFI_CLK", /* GPIO43 */
0091                           "SDA0", /* GPIO44 */
0092                           "SCL0", /* GPIO45 */
0093                           "SMPS_SCL",
0094                           "SMPS_SDA",
0095                           /* Used by SD Card */
0096                           "SD_CLK_R",
0097                           "SD_CMD_R",
0098                           "SD_DATA0_R",
0099                           "SD_DATA1_R",
0100                           "SD_DATA2_R",
0101                           "SD_DATA3_R";
0102 
0103         pinctrl-0 = <&gpioout &alt0>;
0104 };
0105 
0106 &hdmi {
0107         hpd-gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
0108         power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
0109         status = "okay";
0110 };
0111 
0112 &sdhci {
0113         pinctrl-0 = <&emmc_gpio34 &gpclk2_gpio43>;
0114 };
0115 
0116 &sdhost {
0117         pinctrl-names = "default";
0118         pinctrl-0 = <&sdhost_gpio48>;
0119         bus-width = <4>;
0120         status = "okay";
0121 };
0122 
0123 &uart0 {
0124         pinctrl-names = "default";
0125         pinctrl-0 = <&uart0_gpio32 &uart0_ctsrts_gpio30>;
0126 };
0127 
0128 &uart1 {
0129         pinctrl-names = "default";
0130         pinctrl-0 = <&uart1_gpio14>;
0131         status = "okay";
0132 };
0133 
0134 &wifi_pwrseq {
0135         reset-gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
0136 };