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", "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 16 GPIO_ACTIVE_LOW>;
0019 };
0020 };
0021 };
0022
0023 &gpio {
0024 /*
0025 * Taken from Raspberry-Pi-Rev-1.0-Model-AB-Schematics.pdf
0026 * RPI00021 sheet 02
0027 *
0028 * Legend:
0029 * "FOO" = GPIO line named "FOO" on the schematic
0030 * "FOO_N" = GPIO line named "FOO" on schematic, active low
0031 */
0032 gpio-line-names = "SDA0",
0033 "SCL0",
0034 "SDA1",
0035 "SCL1",
0036 "GPIO_GCLK",
0037 "CAM_GPIO1",
0038 "LAN_RUN",
0039 "SPI_CE1_N",
0040 "SPI_CE0_N",
0041 "SPI_MISO",
0042 "SPI_MOSI",
0043 "SPI_SCLK",
0044 "", /* GPIO12 */
0045 "", /* GPIO13 */
0046 /* Serial port */
0047 "TXD0",
0048 "RXD0",
0049 "STATUS_LED_N",
0050 "GPIO17",
0051 "GPIO18",
0052 "", /* GPIO19 */
0053 "", /* GPIO20 */
0054 "GPIO21",
0055 "GPIO22",
0056 "GPIO23",
0057 "GPIO24",
0058 "GPIO25",
0059 "", /* GPIO26 */
0060 "CAM_GPIO0",
0061 /* Binary number representing build/revision */
0062 "CONFIG0",
0063 "CONFIG1",
0064 "CONFIG2",
0065 "CONFIG3",
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 };