The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/src/arm/bcm2835-rpi-zero-w.dts

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

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

Cache object: eb4f494f81d0c8c9862b47c7a01348ec


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.