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