1// SPDX-License-Identifier: GPL-2.0 2/dts-v1/; 3#include "bcm2835.dtsi" 4#include "bcm2835-rpi.dtsi" 5#include "bcm283x-rpi-usb-host.dtsi" 6 7/ { 8 compatible = "raspberrypi,model-a", "brcm,bcm2835"; 9 model = "Raspberry Pi Model A"; 10 11 memory@0 { 12 device_type = "memory"; 13 reg = <0 0x10000000>; 14 }; 15 16 leds { 17 led-act { 18 gpios = <&gpio 16 GPIO_ACTIVE_LOW>; 19 }; 20 }; 21}; 22 23&gpio { 24 /* 25 * Taken from Raspberry-Pi-Rev-1.0-Model-AB-Schematics.pdf 26 * RPI00021 sheet 02 27 * 28 * Legend: 29 * "FOO" = GPIO line named "FOO" on the schematic 30 * "FOO_N" = GPIO line named "FOO" on schematic, active low 31 */ 32 gpio-line-names = "SDA0", 33 "SCL0", 34 "SDA1", 35 "SCL1", 36 "GPIO_GCLK", 37 "CAM_GPIO1", 38 "LAN_RUN", 39 "SPI_CE1_N", 40 "SPI_CE0_N", 41 "SPI_MISO", 42 "SPI_MOSI", 43 "SPI_SCLK", 44 "", /* GPIO12 */ 45 "", /* GPIO13 */ 46 /* Serial port */ 47 "TXD0", 48 "RXD0", 49 "STATUS_LED_N", 50 "GPIO17", 51 "GPIO18", 52 "", /* GPIO19 */ 53 "", /* GPIO20 */ 54 "GPIO21", 55 "GPIO22", 56 "GPIO23", 57 "GPIO24", 58 "GPIO25", 59 "", /* GPIO26 */ 60 "CAM_GPIO0", 61 /* Binary number representing build/revision */ 62 "CONFIG0", 63 "CONFIG1", 64 "CONFIG2", 65 "CONFIG3", 66 "", /* GPIO32 */ 67 "", /* GPIO33 */ 68 "", /* GPIO34 */ 69 "", /* GPIO35 */ 70 "", /* GPIO36 */ 71 "", /* GPIO37 */ 72 "", /* GPIO38 */ 73 "", /* GPIO39 */ 74 "PWM0_OUT", 75 "", /* GPIO41 */ 76 "", /* GPIO42 */ 77 "", /* GPIO43 */ 78 "", /* GPIO44 */ 79 "PWM1_OUT", 80 "HDMI_HPD_P", 81 "SD_CARD_DET", 82 /* Used by SD Card */ 83 "SD_CLK_R", 84 "SD_CMD_R", 85 "SD_DATA0_R", 86 "SD_DATA1_R", 87 "SD_DATA2_R", 88 "SD_DATA3_R"; 89 90 pinctrl-0 = <&gpioout &alt0 &i2s_alt2>; 91 92 /* I2S interface */ 93 i2s_alt2: i2s_alt2 { 94 brcm,pins = <28 29 30 31>; 95 brcm,function = <BCM2835_FSEL_ALT2>; 96 }; 97}; 98 99&hdmi { 100 hpd-gpios = <&gpio 46 GPIO_ACTIVE_HIGH>; 101 power-domains = <&power RPI_POWER_DOMAIN_HDMI>; 102 status = "okay"; 103}; 104 105&pwm { 106 pinctrl-names = "default"; 107 pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>; 108 status = "okay"; 109}; 110 111&sdhost { 112 pinctrl-names = "default"; 113 pinctrl-0 = <&sdhost_gpio48>; 114 bus-width = <4>; 115 status = "okay"; 116}; 117 118&uart0 { 119 pinctrl-names = "default"; 120 pinctrl-0 = <&uart0_gpio14>; 121 status = "okay"; 122}; 123