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-b-plus.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-smsc9514.dtsi"
    6 #include "bcm283x-rpi-usb-host.dtsi"
    7 
    8 / {
    9         compatible = "raspberrypi,model-b-plus", "brcm,bcm2835";
   10         model = "Raspberry Pi Model B+";
   11 
   12         memory@0 {
   13                 device_type = "memory";
   14                 reg = <0 0x20000000>;
   15         };
   16 
   17         leds {
   18                 led-act {
   19                         gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
   20                 };
   21 
   22                 led-pwr {
   23                         label = "PWR";
   24                         gpios = <&gpio 35 GPIO_ACTIVE_HIGH>;
   25                         default-state = "keep";
   26                         linux,default-trigger = "default-on";
   27                 };
   28         };
   29 };
   30 
   31 &gpio {
   32         /*
   33          * Taken from Raspberry-Pi-B-Plus-V1.2-Schematics.pdf
   34          * RPI-BPLUS sheet 1
   35          *
   36          * Legend:
   37          * "FOO" = GPIO line named "FOO" on the schematic
   38          * "FOO_N" = GPIO line named "FOO" on schematic, active low
   39          */
   40         gpio-line-names = "ID_SDA",
   41                           "ID_SCL",
   42                           "SDA1",
   43                           "SCL1",
   44                           "GPIO_GCLK",
   45                           "GPIO5",
   46                           "GPIO6",
   47                           "SPI_CE1_N",
   48                           "SPI_CE0_N",
   49                           "SPI_MISO",
   50                           "SPI_MOSI",
   51                           "SPI_SCLK",
   52                           "GPIO12",
   53                           "GPIO13",
   54                           /* Serial port */
   55                           "TXD0",
   56                           "RXD0",
   57                           "GPIO16",
   58                           "GPIO17",
   59                           "GPIO18",
   60                           "GPIO19",
   61                           "GPIO20",
   62                           "GPIO21",
   63                           "GPIO22",
   64                           "GPIO23",
   65                           "GPIO24",
   66                           "GPIO25",
   67                           "GPIO26",
   68                           "GPIO27",
   69                           "SDA0",
   70                           "SCL0",
   71                           "", /* GPIO30 */
   72                           "LAN_RUN", /* GPIO31 */
   73                           "CAM_GPIO1", /* GPIO32 */
   74                           "", /* GPIO33 */
   75                           "", /* GPIO34 */
   76                           "PWR_LOW_N", /* GPIO35 */
   77                           "", /* GPIO36 */
   78                           "", /* GPIO37 */
   79                           "USB_LIMIT", /* GPIO38 */
   80                           "", /* GPIO39 */
   81                           "PWM0_OUT", /* GPIO40 */
   82                           "CAM_GPIO0", /* GPIO41 */
   83                           "", /* GPIO42 */
   84                           "", /* GPIO43 */
   85                           "ETH_CLK", /* GPIO44 */
   86                           "PWM1_OUT", /* GPIO45 */
   87                           "HDMI_HPD_N",
   88                           "STATUS_LED",
   89                           /* Used by SD Card */
   90                           "SD_CLK_R",
   91                           "SD_CMD_R",
   92                           "SD_DATA0_R",
   93                           "SD_DATA1_R",
   94                           "SD_DATA2_R",
   95                           "SD_DATA3_R";
   96 
   97         pinctrl-0 = <&gpioout &alt0 &i2s_alt0>;
   98 
   99         /* I2S interface */
  100         i2s_alt0: i2s_alt0 {
  101                 brcm,pins = <18 19 20 21>;
  102                 brcm,function = <BCM2835_FSEL_ALT0>;
  103         };
  104 };
  105 
  106 &hdmi {
  107         hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
  108         power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
  109         status = "okay";
  110 };
  111 
  112 &pwm {
  113         pinctrl-names = "default";
  114         pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>;
  115         status = "okay";
  116 };
  117 
  118 &sdhost {
  119         pinctrl-names = "default";
  120         pinctrl-0 = <&sdhost_gpio48>;
  121         bus-width = <4>;
  122         status = "okay";
  123 };
  124 
  125 &uart0 {
  126         pinctrl-names = "default";
  127         pinctrl-0 = <&uart0_gpio14>;
  128         status = "okay";
  129 };

Cache object: 9e4a927118b0c2c86e8138ef35581732


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