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-a.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 /dts-v1/;
    3 #include "bcm2835.dtsi"
    4 #include "bcm2835-rpi.dtsi"
    5 #include "bcm283x-rpi-usb-host.dtsi"
    6 
    7 / {
    8         compatible = "raspberrypi,model-a", "brcm,bcm2835";
    9         model = "Raspberry Pi Model A";
   10 
   11         memory@0 {
   12                 device_type = "memory";
   13                 reg = <0 0x10000000>;
   14         };
   15 
   16         leds {
   17                 led-act {
   18                         gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
   19                 };
   20         };
   21 };
   22 
   23 &gpio {
   24         /*
   25          * Taken from Raspberry-Pi-Rev-1.0-Model-AB-Schematics.pdf
   26          * RPI00021 sheet 02
   27          *
   28          * Legend:
   29          * "FOO" = GPIO line named "FOO" on the schematic
   30          * "FOO_N" = GPIO line named "FOO" on schematic, active low
   31          */
   32         gpio-line-names = "SDA0",
   33                           "SCL0",
   34                           "SDA1",
   35                           "SCL1",
   36                           "GPIO_GCLK",
   37                           "CAM_GPIO1",
   38                           "LAN_RUN",
   39                           "SPI_CE1_N",
   40                           "SPI_CE0_N",
   41                           "SPI_MISO",
   42                           "SPI_MOSI",
   43                           "SPI_SCLK",
   44                           "", /* GPIO12 */
   45                           "", /* GPIO13 */
   46                           /* Serial port */
   47                           "TXD0",
   48                           "RXD0",
   49                           "STATUS_LED_N",
   50                           "GPIO17",
   51                           "GPIO18",
   52                           "", /* GPIO19 */
   53                           "", /* GPIO20 */
   54                           "GPIO21",
   55                           "GPIO22",
   56                           "GPIO23",
   57                           "GPIO24",
   58                           "GPIO25",
   59                           "", /* GPIO26 */
   60                           "CAM_GPIO0",
   61                           /* Binary number representing build/revision */
   62                           "CONFIG0",
   63                           "CONFIG1",
   64                           "CONFIG2",
   65                           "CONFIG3",
   66                           "", /* GPIO32 */
   67                           "", /* GPIO33 */
   68                           "", /* GPIO34 */
   69                           "", /* GPIO35 */
   70                           "", /* GPIO36 */
   71                           "", /* GPIO37 */
   72                           "", /* GPIO38 */
   73                           "", /* GPIO39 */
   74                           "PWM0_OUT",
   75                           "", /* GPIO41 */
   76                           "", /* GPIO42 */
   77                           "", /* GPIO43 */
   78                           "", /* GPIO44 */
   79                           "PWM1_OUT",
   80                           "HDMI_HPD_P",
   81                           "SD_CARD_DET",
   82                           /* Used by SD Card */
   83                           "SD_CLK_R",
   84                           "SD_CMD_R",
   85                           "SD_DATA0_R",
   86                           "SD_DATA1_R",
   87                           "SD_DATA2_R",
   88                           "SD_DATA3_R";
   89 
   90         pinctrl-0 = <&gpioout &alt0 &i2s_alt2>;
   91 
   92         /* I2S interface */
   93         i2s_alt2: i2s_alt2 {
   94                 brcm,pins = <28 29 30 31>;
   95                 brcm,function = <BCM2835_FSEL_ALT2>;
   96         };
   97 };
   98 
   99 &hdmi {
  100         hpd-gpios = <&gpio 46 GPIO_ACTIVE_HIGH>;
  101         power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
  102         status = "okay";
  103 };
  104 
  105 &pwm {
  106         pinctrl-names = "default";
  107         pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>;
  108         status = "okay";
  109 };
  110 
  111 &sdhost {
  112         pinctrl-names = "default";
  113         pinctrl-0 = <&sdhost_gpio48>;
  114         bus-width = <4>;
  115         status = "okay";
  116 };
  117 
  118 &uart0 {
  119         pinctrl-names = "default";
  120         pinctrl-0 = <&uart0_gpio14>;
  121         status = "okay";
  122 };

Cache object: a31b3e8a3131b3d818d3e0c9ef753f23


[ 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.