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