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-rev2", "brcm,bcm2835";
0010         model = "Raspberry Pi Model B rev2";
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-2.0-Model-AB-Schematics.pdf
0027          * RPI00022 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_CLK",
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_GPIO",
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 &i2s_alt2>;
0091 
0092         /* I2S interface */
0093         i2s_alt2: i2s_alt2 {
0094                 brcm,pins = <28 29 30 31>;
0095                 brcm,function = <BCM2835_FSEL_ALT2>;
0096         };
0097 };
0098 
0099 &hdmi {
0100         hpd-gpios = <&gpio 46 GPIO_ACTIVE_HIGH>;
0101         power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
0102         status = "okay";
0103 };
0104 
0105 &pwm {
0106         pinctrl-names = "default";
0107         pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>;
0108         status = "okay";
0109 };
0110 
0111 &sdhost {
0112         pinctrl-names = "default";
0113         pinctrl-0 = <&sdhost_gpio48>;
0114         bus-width = <4>;
0115         status = "okay";
0116 };
0117 
0118 &uart0 {
0119         pinctrl-names = "default";
0120         pinctrl-0 = <&uart0_gpio14>;
0121         status = "okay";
0122 };