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