Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /dts-v1/;
0003 #include "bcm2835.dtsi"
0004 #include "bcm2835-rpi.dtsi"
0005 #include "bcm283x-rpi-smsc9514.dtsi"
0006 #include "bcm283x-rpi-usb-host.dtsi"
0007 
0008 / {
0009         compatible = "raspberrypi,model-b-plus", "brcm,bcm2835";
0010         model = "Raspberry Pi Model B+";
0011 
0012         memory@0 {
0013                 device_type = "memory";
0014                 reg = <0 0x20000000>;
0015         };
0016 
0017         leds {
0018                 led-act {
0019                         gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
0020                 };
0021 
0022                 led-pwr {
0023                         label = "PWR";
0024                         gpios = <&gpio 35 GPIO_ACTIVE_HIGH>;
0025                         default-state = "keep";
0026                         linux,default-trigger = "default-on";
0027                 };
0028         };
0029 };
0030 
0031 &gpio {
0032         /*
0033          * Taken from Raspberry-Pi-B-Plus-V1.2-Schematics.pdf
0034          * RPI-BPLUS sheet 1
0035          *
0036          * Legend:
0037          * "FOO" = GPIO line named "FOO" on the schematic
0038          * "FOO_N" = GPIO line named "FOO" on schematic, active low
0039          */
0040         gpio-line-names = "ID_SDA",
0041                           "ID_SCL",
0042                           "SDA1",
0043                           "SCL1",
0044                           "GPIO_GCLK",
0045                           "GPIO5",
0046                           "GPIO6",
0047                           "SPI_CE1_N",
0048                           "SPI_CE0_N",
0049                           "SPI_MISO",
0050                           "SPI_MOSI",
0051                           "SPI_SCLK",
0052                           "GPIO12",
0053                           "GPIO13",
0054                           /* Serial port */
0055                           "TXD0",
0056                           "RXD0",
0057                           "GPIO16",
0058                           "GPIO17",
0059                           "GPIO18",
0060                           "GPIO19",
0061                           "GPIO20",
0062                           "GPIO21",
0063                           "GPIO22",
0064                           "GPIO23",
0065                           "GPIO24",
0066                           "GPIO25",
0067                           "GPIO26",
0068                           "GPIO27",
0069                           "SDA0",
0070                           "SCL0",
0071                           "", /* GPIO30 */
0072                           "LAN_RUN", /* GPIO31 */
0073                           "CAM_GPIO1", /* GPIO32 */
0074                           "", /* GPIO33 */
0075                           "", /* GPIO34 */
0076                           "PWR_LOW_N", /* GPIO35 */
0077                           "", /* GPIO36 */
0078                           "", /* GPIO37 */
0079                           "USB_LIMIT", /* GPIO38 */
0080                           "", /* GPIO39 */
0081                           "PWM0_OUT", /* GPIO40 */
0082                           "CAM_GPIO0", /* GPIO41 */
0083                           "", /* GPIO42 */
0084                           "", /* GPIO43 */
0085                           "ETH_CLK", /* GPIO44 */
0086                           "PWM1_OUT", /* GPIO45 */
0087                           "HDMI_HPD_N",
0088                           "STATUS_LED",
0089                           /* Used by SD Card */
0090                           "SD_CLK_R",
0091                           "SD_CMD_R",
0092                           "SD_DATA0_R",
0093                           "SD_DATA1_R",
0094                           "SD_DATA2_R",
0095                           "SD_DATA3_R";
0096 
0097         pinctrl-0 = <&gpioout &alt0 &i2s_alt0>;
0098 
0099         /* I2S interface */
0100         i2s_alt0: i2s_alt0 {
0101                 brcm,pins = <18 19 20 21>;
0102                 brcm,function = <BCM2835_FSEL_ALT0>;
0103         };
0104 };
0105 
0106 &hdmi {
0107         hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
0108         power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
0109         status = "okay";
0110 };
0111 
0112 &pwm {
0113         pinctrl-names = "default";
0114         pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>;
0115         status = "okay";
0116 };
0117 
0118 &sdhost {
0119         pinctrl-names = "default";
0120         pinctrl-0 = <&sdhost_gpio48>;
0121         bus-width = <4>;
0122         status = "okay";
0123 };
0124 
0125 &uart0 {
0126         pinctrl-names = "default";
0127         pinctrl-0 = <&uart0_gpio14>;
0128         status = "okay";
0129 };