gregeric
Posts: 1509
Joined: Mon Nov 28, 2011 10:08 am

Schematics of Raspberry Pi 3 Model B

Wed Mar 02, 2016 9:53 am

This thread is not an appeal for them to be published, more for us to thrash out what's connected where, & how. For starters, the GPIO pin-mapping:

Code: Select all

BANK0 (GPIO 0 to 27):
  GPIO 00: level=1 fsel=0 alt=  func=INPUT
  GPIO 01: level=1 fsel=0 alt=  func=INPUT
  GPIO 02: level=1 fsel=0 alt=  func=INPUT
  GPIO 03: level=1 fsel=0 alt=  func=INPUT
  GPIO 04: level=1 fsel=0 alt=  func=INPUT
  GPIO 05: level=1 fsel=0 alt=  func=INPUT
  GPIO 06: level=1 fsel=0 alt=  func=INPUT
  GPIO 07: level=1 fsel=0 alt=  func=INPUT
  GPIO 08: level=1 fsel=0 alt=  func=INPUT
  GPIO 09: level=0 fsel=0 alt=  func=INPUT
  GPIO 10: level=0 fsel=0 alt=  func=INPUT
  GPIO 11: level=0 fsel=0 alt=  func=INPUT
  GPIO 12: level=0 fsel=0 alt=  func=INPUT
  GPIO 13: level=0 fsel=0 alt=  func=INPUT
  GPIO 14: level=1 fsel=2 alt=5 func=TXD1
  GPIO 15: level=1 fsel=2 alt=5 func=RXD1
  GPIO 16: level=0 fsel=0 alt=  func=INPUT
  GPIO 17: level=0 fsel=0 alt=  func=INPUT
  GPIO 18: level=0 fsel=0 alt=  func=INPUT
  GPIO 19: level=0 fsel=0 alt=  func=INPUT
  GPIO 20: level=0 fsel=0 alt=  func=INPUT
  GPIO 21: level=0 fsel=0 alt=  func=INPUT
  GPIO 22: level=0 fsel=0 alt=  func=INPUT
  GPIO 23: level=0 fsel=0 alt=  func=INPUT
  GPIO 24: level=0 fsel=0 alt=  func=INPUT
  GPIO 25: level=0 fsel=0 alt=  func=INPUT
  GPIO 26: level=0 fsel=0 alt=  func=INPUT
  GPIO 27: level=0 fsel=0 alt=  func=INPUT
BANK1 (GPIO 28 to 45):
  GPIO 28: level=0 fsel=6 alt=2 func=PCM_CLK
  GPIO 29: level=1 fsel=6 alt=2 func=PCM_FS
  GPIO 30: level=0 fsel=6 alt=2 func=PCM_DIN
  GPIO 31: level=0 fsel=6 alt=2 func=PCM_DOUT
  GPIO 32: level=1 fsel=7 alt=3 func=TXD0
  GPIO 33: level=1 fsel=7 alt=3 func=RXD0
  GPIO 34: level=0 fsel=7 alt=3 func=SD1_CLK
  GPIO 35: level=1 fsel=7 alt=3 func=SD1_CMD
  GPIO 36: level=1 fsel=7 alt=3 func=SD1_DAT0
  GPIO 37: level=1 fsel=7 alt=3 func=SD1_DAT1
  GPIO 38: level=1 fsel=7 alt=3 func=SD1_DAT2
  GPIO 39: level=1 fsel=7 alt=3 func=SD1_DAT3
  GPIO 40: level=0 fsel=4 alt=0 func=PWM0
  GPIO 41: level=0 fsel=4 alt=0 func=PWM1
  GPIO 42: level=1 fsel=4 alt=0 func=GPCLK1
  GPIO 43: level=1 fsel=4 alt=0 func=GPCLK2
  GPIO 44: level=1 fsel=0 alt=  func=INPUT
  GPIO 45: level=1 fsel=0 alt=  func=INPUT
BANK2 (GPIO 46 to 53):
  GPIO 46: level=1 fsel=0 alt=  func=INPUT
  GPIO 47: level=1 fsel=0 alt=  func=INPUT
  GPIO 48: level=0 fsel=4 alt=0 func=SD0_CLK
  GPIO 49: level=1 fsel=4 alt=0 func=SD0_CMD
  GPIO 50: level=1 fsel=4 alt=0 func=SD0_DAT0
  GPIO 51: level=1 fsel=4 alt=0 func=SD0_DAT1
  GPIO 52: level=1 fsel=4 alt=0 func=SD0_DAT2
  GPIO 53: level=1 fsel=4 alt=0 func=SD0_DAT3
As adun has noiced already, there have had to be some changes over previous incarnations due to the BCM43438 requiring so many peripherals (all of 28-39). There are no outputs for LEDs for example,the PWR & ACT LEDs are controlled by discrete electronics.
Last edited by gregeric on Wed Mar 02, 2016 12:28 pm, edited 1 time in total.

naughty_ottsel
Posts: 6
Joined: Wed Mar 02, 2016 10:25 am

Re: Schematics of Raspberry Pi 3 Model B

Wed Mar 02, 2016 10:29 am

If I am understanding you correctly, this means we can no longer access the Power and Activity LED's via the GPIO pins. That's a bit disappointing :(

User avatar
adun
Posts: 102
Joined: Fri Mar 20, 2015 9:25 am
Location: Switzerland

Re: Schematics of Raspberry Pi 3 Model B

Wed Mar 02, 2016 10:48 am

I've made some schematics how I think the circuits schould be:
CVBS / PWM Audio
Image

USB Current Limit Circuit
Image
Please report any error or confirm for correctness ;)

PS: I think GPIO 44,45 are now used for the csi/dsi i2c0 line.
I'm just wondering where the cam gpio/clk have gone. If they are on virtgpio this would explain some errors with disable_camera_led=1
Last edited by adun on Wed Mar 02, 2016 11:17 am, edited 2 times in total.

gregeric
Posts: 1509
Joined: Mon Nov 28, 2011 10:08 am

Re: Schematics of Raspberry Pi 3 Model B

Wed Mar 02, 2016 11:06 am

The USB switch is pretty much what I expected as a variant on the B+/2B. Two comments:
Is R_LIM on the USB switch not set by a single R50, 19.5kOhm?
Does PTRCTRL2 go to the FAULT_N input, not USB_VBUS?

User avatar
adun
Posts: 102
Joined: Fri Mar 20, 2015 9:25 am
Location: Switzerland

Re: Schematics of Raspberry Pi 3 Model B

Wed Mar 02, 2016 11:14 am

gregeric wrote:The USB switch is pretty much what I expected as a variant on the B+/2B. Two comments:
Is R_LIM on the USB switch not set by a single R50, 19.5kOhm?
Does PTRCTRL2 go to the FAULT_N input, not USB_VBUS?
Yes you are right, thanks. Of cource PTRCTRL2 goes to FAULT_N and R_LIM is one single resistor.
The signal from/to the LAN9514 is USB_OVC_N
I updated the schematics ;)
Last edited by adun on Wed Mar 02, 2016 11:22 am, edited 1 time in total.

gregeric
Posts: 1509
Joined: Mon Nov 28, 2011 10:08 am

Re: Schematics of Raspberry Pi 3 Model B

Wed Mar 02, 2016 11:21 am

Where's HDMI hot plug detect & ic2 gone, it's awol??? I enabled camera & cannot see any changes for that either???

User avatar
adun
Posts: 102
Joined: Fri Mar 20, 2015 9:25 am
Location: Switzerland

Re: Schematics of Raspberry Pi 3 Model B

Wed Mar 02, 2016 11:25 am

HDMI hotplug should still be on GPIO 46.
Assuming that GPIO 0,1 ALT0 are still for HATs and GPIO 44,45 ATL1 for csi/dsi they are controlled by GPU not CPU.
So I don't know if you can see those gpio turned to ALT from userspace.
Last edited by adun on Wed Mar 02, 2016 11:32 am, edited 2 times in total.

gregeric
Posts: 1509
Joined: Mon Nov 28, 2011 10:08 am

Re: Schematics of Raspberry Pi 3 Model B

Wed Mar 02, 2016 11:30 am

I'm fairly sure on the Zero I used to see GPIO46 change state on plugging an HDMI cable. Can't see that behaviour on 3B. There was an exposed I2c port on the Zero visible from user-space too, I assumed that was for HDMI-CEC. Both absent from the GPIO mapping on Pi3B afaict.

User avatar
adun
Posts: 102
Joined: Fri Mar 20, 2015 9:25 am
Location: Switzerland

Re: Schematics of Raspberry Pi 3 Model B

Wed Mar 02, 2016 11:33 am

That's strange. I hope we get soon some official input about that.
GPIO 46,47 can also be used for I2C0 (ALT0). Probably the firmware has reserved those pins.
Btw GPIO 42: GPCLK1 must be the 25 MHz clock for the LAN9514
Last edited by adun on Wed Mar 02, 2016 2:58 pm, edited 1 time in total.


naughty_ottsel
Posts: 6
Joined: Wed Mar 02, 2016 10:25 am

Re: Schematics of Raspberry Pi 3 Model B

Wed Mar 02, 2016 12:19 pm

gregeric wrote:See viewtopic.php?f=43&t=138290&view=unread#p917909 - there's a GPIO expander hooked up somehow.

Related to this: https://github.com/raspberrypi/linux/co ... 3bf519efc6 ?
I'm being specific in looking at this, but the commit seems to suggest that the LED's are controlled through the GPU (I am assuming that is what is meant by VPU)

Running through the probe code and taking out bits here and there, it's suggested that the address to pass into the CPU/GPU Mailbox is 0x00040010 - But I am most likely wrong with this.

For clarification, I was running in a Swift REPL from IBM: http://swiftlang.ng.bluemix.net/#/repl/ ... 69683db4a0

junglejet
Posts: 2
Joined: Wed Mar 02, 2016 11:57 am

Re: Schematics of Raspberry Pi 3 Model B

Wed Mar 02, 2016 12:37 pm

Any information on GPIO 16 (J8-36)?
Is it still connected to the Status LED or can it be used for CTS0 under ALT3 now?
This would make it a complete serial interface with handshake now, which was a long wait.

Andy

User avatar
adun
Posts: 102
Joined: Fri Mar 20, 2015 9:25 am
Location: Switzerland

Re: Schematics of Raspberry Pi 3 Model B

Wed Mar 02, 2016 1:43 pm

With B+ this GPIO was already available on P40 header

junglejet
Posts: 2
Joined: Wed Mar 02, 2016 11:57 am

Re: Schematics of Raspberry Pi 3 Model B

Wed Mar 02, 2016 2:16 pm

adun wrote:With B+ this GPIO was already available on P40 header
Yes, but the LED would follow the CTS line before, if I am not totally wrong.

gregeric
Posts: 1509
Joined: Mon Nov 28, 2011 10:08 am

Re: Schematics of Raspberry Pi 3 Model B

Wed Mar 02, 2016 2:44 pm

On an ancient Pi with 26 pin header, yes, GPIO 16 was ACT LED, but did not appear on the header. Since the introduction of the 40 pin header with the B+, no LED has been connected to that GPIO and it is available as you said on J8-38.

ACT LED moved to GPIO47 on B+ A+ 2B Zero, vanished into thin air on 3B.

User avatar
adun
Posts: 102
Joined: Fri Mar 20, 2015 9:25 am
Location: Switzerland

Re: Schematics of Raspberry Pi 3 Model B

Wed Mar 02, 2016 2:56 pm

I'm pretty sure on RPi3 the ACT LED was moved to the GPIO expander like the the ones for the camera.
That's why it appears on a virtgpio

Code: Select all

+&leds {
+	act_led: act {
+		label = "led0";
+		linux,default-trigger = "mmc0";
+		gpios = <&virtgpio 0 0>;
+	};
+};

naughty_ottsel
Posts: 6
Joined: Wed Mar 02, 2016 10:25 am

Re: Schematics of Raspberry Pi 3 Model B

Wed Mar 02, 2016 3:08 pm

adun wrote:I'm pretty sure on RPi3 the ACT LED was moved to the GPIO expander like the the ones for the camera.
That's why it appears on a virtgpio

Code: Select all

+&leds {
+	act_led: act {
+		label = "led0";
+		linux,default-trigger = "mmc0";
+		gpios = <&virtgpio 0 0>;
+	};
+};
Going by the new gpio-bcm-virt.c file (The Virtual GPIO Driver) The led's are controlled by the GPU.

Especially as the firmware header has an address for the Virtual GPIO pointing to similar addresses used for setting up the GPU Framebuffer etc.

https://github.com/raspberrypi/linux/bl ... firmware.h

gregeric
Posts: 1509
Joined: Mon Nov 28, 2011 10:08 am

Re: Schematics of Raspberry Pi 3 Model B

Mon Mar 07, 2016 7:39 am

The GPIO expander, under GPU conmtrol, is connnected to ic2-0. See viewtopic.php?f=44&t=137848&start=25#p917967

Edit to add:
Its i2c address is 0x43: viewtopic.php?f=44&t=138897&p=923243#p922961

It appears to be U20, top-side & adjacent to the DSI connector, perhaps an 8-bit expander PCA6408A or equivalent.

User avatar
adun
Posts: 102
Joined: Fri Mar 20, 2015 9:25 am
Location: Switzerland

Re: Schematics of Raspberry Pi 3 Model B

Tue Mar 08, 2016 9:08 am

Just wanted to update this too ;)
From this thread it seems that i2c0 is now also used for SMPS control

User avatar
adun
Posts: 102
Joined: Fri Mar 20, 2015 9:25 am
Location: Switzerland

Re: Schematics of Raspberry Pi 3 Model B

Wed Apr 06, 2016 5:00 pm

Partial schematics of RPi3 Rev1.2 are now available:
https://www.raspberrypi.org/documentati ... EDUCED.pdf.
Too bad the part about the port expander is missing.

User avatar
Darkus
Posts: 2
Joined: Thu Apr 14, 2016 9:15 pm

Re: Schematics of Raspberry Pi 3 Model B

Thu Apr 14, 2016 9:45 pm

adun wrote:Partial schematics of RPi3 Rev1.2 are now available:
https://www.raspberrypi.org/documentati ... EDUCED.pdf.
Too bad the part about the port expander is missing.
Hi Adun,

Could you tell me If I could get the full schematic of RPI3? or this full schematic is restricted?

Thanks for your time.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24195
Joined: Sat Jul 30, 2011 7:41 pm

Re: Schematics of Raspberry Pi 3 Model B

Fri Apr 15, 2016 8:39 am

Full schematics have not yet been released. I am not sure if they will be released.

What do you need to know?
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

User avatar
Darkus
Posts: 2
Joined: Thu Apr 14, 2016 9:15 pm

Re: Schematics of Raspberry Pi 3 Model B

Fri Apr 15, 2016 4:25 pm

Hello James,

Actually I am planning to develop a device based on Raspberry Pi 3, but I need quit all the peripherals that I don’t need. For this reason I try to get the Full Schematic. Also, Do I need to contact to Broadcom to ask the price for the BCM2837?

klricks
Posts: 6627
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Schematics of Raspberry Pi 3 Model B

Fri Apr 15, 2016 5:13 pm

Darkus wrote:Hello James,

Actually I am planning to develop a device based on Raspberry Pi 3, but I need quit all the peripherals that I don’t need. For this reason I try to get the Full Schematic. Also, Do I need to contact to Broadcom to ask the price for the BCM2837?
The RPi manufactures provide a custom service, (connectors not put on etc), but you will have to buy several thousand units and the price per unit is likely to be higher than fully populated. I don't believe you can buy the 2837 at any price. Maybe if you sign a NDA and buy many tens of thousands of units?
Unless specified otherwise my response is based on the latest and fully updated Raspbian Buster w/ Desktop OS.

gregeric
Posts: 1509
Joined: Mon Nov 28, 2011 10:08 am

Re: Schematics of Raspberry Pi 3 Model B

Fri Apr 15, 2016 5:23 pm

Better to wait for the 3CM (you can start designing your own carrier board now, before the 3C is released), or maybe even the 3A will do what you want.

Return to “General discussion”