Heinrich Schuchardt | be12fb9 | 2019-04-28 06:46:57 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Fabian Vogt | 7ad2aa0 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 2 | /dts-v1/; |
| 3 | #include "bcm2835.dtsi" |
| 4 | #include "bcm2835-rpi.dtsi" |
Alexander Graf | 377c534 | 2017-10-04 14:39:16 +0200 | [diff] [blame] | 5 | #include "bcm283x-rpi-usb-host.dtsi" |
Fabian Vogt | 7ad2aa0 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 6 | |
| 7 | / { |
| 8 | compatible = "raspberrypi,model-a-plus", "brcm,bcm2835"; |
| 9 | model = "Raspberry Pi Model A+"; |
| 10 | |
Simon Glass | 0ca7009 | 2021-12-16 20:59:13 -0700 | [diff] [blame] | 11 | memory@0 { |
| 12 | device_type = "memory"; |
| 13 | reg = <0 0x10000000>; |
| 14 | }; |
| 15 | |
Fabian Vogt | 7ad2aa0 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 16 | leds { |
Simon Glass | 0ca7009 | 2021-12-16 20:59:13 -0700 | [diff] [blame] | 17 | led-act { |
Heinrich Schuchardt | be12fb9 | 2019-04-28 06:46:57 +0200 | [diff] [blame] | 18 | gpios = <&gpio 47 GPIO_ACTIVE_HIGH>; |
Fabian Vogt | 7ad2aa0 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 19 | }; |
| 20 | |
Simon Glass | 0ca7009 | 2021-12-16 20:59:13 -0700 | [diff] [blame] | 21 | led-pwr { |
Fabian Vogt | 7ad2aa0 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 22 | label = "PWR"; |
Heinrich Schuchardt | be12fb9 | 2019-04-28 06:46:57 +0200 | [diff] [blame] | 23 | gpios = <&gpio 35 GPIO_ACTIVE_HIGH>; |
Fabian Vogt | 7ad2aa0 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 24 | default-state = "keep"; |
| 25 | linux,default-trigger = "default-on"; |
| 26 | }; |
| 27 | }; |
| 28 | }; |
| 29 | |
| 30 | &gpio { |
Alexander Graf | 377c534 | 2017-10-04 14:39:16 +0200 | [diff] [blame] | 31 | /* |
| 32 | * This is based on the unreleased schematic for the Model A+. |
| 33 | * |
| 34 | * Legend: |
| 35 | * "NC" = not connected (no rail from the SoC) |
| 36 | * "FOO" = GPIO line named "FOO" on the schematic |
| 37 | * "FOO_N" = GPIO line named "FOO" on schematic, active low |
| 38 | */ |
Heinrich Schuchardt | be12fb9 | 2019-04-28 06:46:57 +0200 | [diff] [blame] | 39 | gpio-line-names = "ID_SDA", |
| 40 | "ID_SCL", |
Alexander Graf | 377c534 | 2017-10-04 14:39:16 +0200 | [diff] [blame] | 41 | "SDA1", |
| 42 | "SCL1", |
| 43 | "GPIO_GCLK", |
| 44 | "GPIO5", |
| 45 | "GPIO6", |
| 46 | "SPI_CE1_N", |
| 47 | "SPI_CE0_N", |
| 48 | "SPI_MISO", |
| 49 | "SPI_MOSI", |
| 50 | "SPI_SCLK", |
| 51 | "GPIO12", |
| 52 | "GPIO13", |
| 53 | /* Serial port */ |
| 54 | "TXD0", |
| 55 | "RXD0", |
| 56 | "GPIO16", |
| 57 | "GPIO17", |
| 58 | "GPIO18", |
| 59 | "GPIO19", |
| 60 | "GPIO20", |
| 61 | "GPIO21", |
| 62 | "GPIO22", |
| 63 | "GPIO23", |
| 64 | "GPIO24", |
| 65 | "GPIO25", |
| 66 | "GPIO26", |
| 67 | "GPIO27", |
| 68 | "SDA0", |
| 69 | "SCL0", |
| 70 | "NC", /* GPIO30 */ |
| 71 | "NC", /* GPIO31 */ |
| 72 | "CAM_GPIO1", /* GPIO32 */ |
| 73 | "NC", /* GPIO33 */ |
| 74 | "NC", /* GPIO34 */ |
| 75 | "PWR_LOW_N", /* GPIO35 */ |
| 76 | "NC", /* GPIO36 */ |
| 77 | "NC", /* GPIO37 */ |
| 78 | "USB_LIMIT", /* GPIO38 */ |
| 79 | "NC", /* GPIO39 */ |
| 80 | "PWM0_OUT", /* GPIO40 */ |
| 81 | "CAM_GPIO0", /* GPIO41 */ |
| 82 | "NC", /* GPIO42 */ |
| 83 | "NC", /* GPIO43 */ |
| 84 | "NC", /* GPIO44 */ |
| 85 | "PWM1_OUT", /* GPIO45 */ |
| 86 | "HDMI_HPD_N", |
| 87 | "STATUS_LED", |
| 88 | /* Used by SD Card */ |
| 89 | "SD_CLK_R", |
| 90 | "SD_CMD_R", |
| 91 | "SD_DATA0_R", |
| 92 | "SD_DATA1_R", |
| 93 | "SD_DATA2_R", |
| 94 | "SD_DATA3_R"; |
| 95 | |
| 96 | pinctrl-0 = <&gpioout &alt0 &i2s_alt0>; |
Fabian Vogt | 7ad2aa0 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 97 | |
| 98 | /* I2S interface */ |
| 99 | i2s_alt0: i2s_alt0 { |
| 100 | brcm,pins = <18 19 20 21>; |
| 101 | brcm,function = <BCM2835_FSEL_ALT0>; |
| 102 | }; |
| 103 | }; |
| 104 | |
| 105 | &hdmi { |
| 106 | hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>; |
Simon Glass | 0ca7009 | 2021-12-16 20:59:13 -0700 | [diff] [blame] | 107 | power-domains = <&power RPI_POWER_DOMAIN_HDMI>; |
| 108 | status = "okay"; |
Fabian Vogt | 7ad2aa0 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 109 | }; |
Alexander Graf | 377c534 | 2017-10-04 14:39:16 +0200 | [diff] [blame] | 110 | |
Heinrich Schuchardt | be12fb9 | 2019-04-28 06:46:57 +0200 | [diff] [blame] | 111 | &pwm { |
| 112 | pinctrl-names = "default"; |
| 113 | pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>; |
| 114 | status = "okay"; |
| 115 | }; |
| 116 | |
Simon Glass | 0ca7009 | 2021-12-16 20:59:13 -0700 | [diff] [blame] | 117 | &sdhost { |
| 118 | pinctrl-names = "default"; |
| 119 | pinctrl-0 = <&sdhost_gpio48>; |
| 120 | bus-width = <4>; |
| 121 | status = "okay"; |
| 122 | }; |
| 123 | |
Alexander Graf | 377c534 | 2017-10-04 14:39:16 +0200 | [diff] [blame] | 124 | &uart0 { |
| 125 | pinctrl-names = "default"; |
| 126 | pinctrl-0 = <&uart0_gpio14>; |
| 127 | status = "okay"; |
| 128 | }; |