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-smsc9512.dtsi"
0006 #include "bcm283x-rpi-usb-host.dtsi"
0007 
0008 / {
0009         compatible = "raspberrypi,model-b", "brcm,bcm2835";
0010         model = "Raspberry Pi Model B";
0011 
0012         memory@0 {
0013                 device_type = "memory";
0014                 reg = <0 0x10000000>;
0015         };
0016 
0017         leds {
0018                 led-act {
0019                         gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
0020                 };
0021         };
0022 };
0023 
0024 &gpio {
0025         /*
0026          * Taken from Raspberry-Pi-Rev-1.0-Model-AB-Schematics.pdf
0027          * RPI00021 sheet 02
0028          *
0029          * Legend:
0030          * "FOO" = GPIO line named "FOO" on the schematic
0031          * "FOO_N" = GPIO line named "FOO" on schematic, active low
0032          */
0033         gpio-line-names = "SDA0",
0034                           "SCL0",
0035                           "SDA1",
0036                           "SCL1",
0037                           "GPIO_GCLK",
0038                           "CAM_GPIO1",
0039                           "LAN_RUN",
0040                           "SPI_CE1_N",
0041                           "SPI_CE0_N",
0042                           "SPI_MISO",
0043                           "SPI_MOSI",
0044                           "SPI_SCLK",
0045                           "", /* GPIO12 */
0046                           "", /* GPIO13 */
0047                           /* Serial port */
0048                           "TXD0",
0049                           "RXD0",
0050                           "STATUS_LED_N",
0051                           "GPIO17",
0052                           "GPIO18",
0053                           "", /* GPIO19 */
0054                           "", /* GPIO20 */
0055                           "CAM_GPIO0",
0056                           "GPIO22",
0057                           "GPIO23",
0058                           "GPIO24",
0059                           "GPIO25",
0060                           "", /* GPIO26 */
0061                           "GPIO27",
0062                           "GPIO28",
0063                           "GPIO29",
0064                           "GPIO30",
0065                           "GPIO31",
0066                           "", /* GPIO32 */
0067                           "", /* GPIO33 */
0068                           "", /* GPIO34 */
0069                           "", /* GPIO35 */
0070                           "", /* GPIO36 */
0071                           "", /* GPIO37 */
0072                           "", /* GPIO38 */
0073                           "", /* GPIO39 */
0074                           "PWM0_OUT",
0075                           "", /* GPIO41 */
0076                           "", /* GPIO42 */
0077                           "", /* GPIO43 */
0078                           "", /* GPIO44 */
0079                           "PWM1_OUT",
0080                           "HDMI_HPD_P",
0081                           "SD_CARD_DET",
0082                           /* Used by SD Card */
0083                           "SD_CLK_R",
0084                           "SD_CMD_R",
0085                           "SD_DATA0_R",
0086                           "SD_DATA1_R",
0087                           "SD_DATA2_R",
0088                           "SD_DATA3_R";
0089 
0090         pinctrl-0 = <&gpioout &alt0>;
0091 };
0092 
0093 &hdmi {
0094         hpd-gpios = <&gpio 46 GPIO_ACTIVE_HIGH>;
0095         power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
0096         status = "okay";
0097 };
0098 
0099 &pwm {
0100         pinctrl-names = "default";
0101         pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>;
0102         status = "okay";
0103 };
0104 
0105 &sdhost {
0106         pinctrl-names = "default";
0107         pinctrl-0 = <&sdhost_gpio48>;
0108         bus-width = <4>;
0109         status = "okay";
0110 };
0111 
0112 &uart0 {
0113         pinctrl-names = "default";
0114         pinctrl-0 = <&uart0_gpio14>;
0115         status = "okay";
0116 };