Skip to content

Can Pi2 UART Clock as Pi3 #643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Cheong2K opened this issue Aug 17, 2016 · 9 comments
Closed

Can Pi2 UART Clock as Pi3 #643

Cheong2K opened this issue Aug 17, 2016 · 9 comments

Comments

@Cheong2K
Copy link

I know that, Pi3 bcm2708.uart_clock=48000000, Pi2 bcm2708.uart_clock=3000000.
Is it possible to make the clock of Pi2 the same as Pi3? I want this because I made a HAT, and my users need to put init_uart_clock in the config.txt, the HAT now is not fully plug-&-play.

@pelwell
Copy link
Contributor

pelwell commented Aug 22, 2016

I've dropped a patch into the firmware build machine and a new release should pop out of the other end in the next few days. It will initially be available via rpi-update, but if there are no reports of adverse effects it will be included in a subsequent Raspbian release.

popcornmix added a commit that referenced this issue Aug 23, 2016
kernel: overlays: added sc16is750 UART over I2C
See: raspberrypi/linux#1617

kernel: config: Add CONFIG_IPVLAN module
See: raspberrypi/linux#1612

kernel: config: Add CONFIG_VXLAN module
See: raspberrypi/linux#1614

firmware: platform: Make the default UART0 clock 48MHz for all Pis
See: raspberrypi/linux#1601
See: #643
popcornmix added a commit to Hexxeh/rpi-firmware that referenced this issue Aug 23, 2016
kernel: overlays: added sc16is750 UART over I2C
See: raspberrypi/linux#1617

kernel: config: Add CONFIG_IPVLAN module
See: raspberrypi/linux#1612

kernel: config: Add CONFIG_VXLAN module
See: raspberrypi/linux#1614

firmware: platform: Make the default UART0 clock 48MHz for all Pis
See: raspberrypi/linux#1601
See: raspberrypi/firmware#643
@popcornmix
Copy link
Contributor

This is in latest rpi-update firmware.

@Cheong2K
Copy link
Author

Awesome, thank you!

@Cheong2K
Copy link
Author

Cheong2K commented Sep 5, 2016

With Pi Zero, after using apt-get upgrade, it will change the UART back to 3 MHz.

@Cheong2K Cheong2K reopened this Sep 5, 2016
@pelwell
Copy link
Contributor

pelwell commented Sep 5, 2016

Yes it will, until we make the next Raspbian release - which should be in the next few weeks. Until then, you need to follow any apt-get upgrade with an rpi-update.

@Cheong2K
Copy link
Author

Cheong2K commented Sep 6, 2016

Thanks, got it!

@pelwell
Copy link
Contributor

pelwell commented Oct 27, 2016

Please close if appropriate.

neuschaefer pushed a commit to neuschaefer/raspi-binary-firmware that referenced this issue Feb 27, 2017
kernel: overlays: added sc16is750 UART over I2C
See: raspberrypi/linux#1617

kernel: config: Add CONFIG_IPVLAN module
See: raspberrypi/linux#1612

kernel: config: Add CONFIG_VXLAN module
See: raspberrypi/linux#1614

firmware: platform: Make the default UART0 clock 48MHz for all Pis
See: raspberrypi/linux#1601
See: raspberrypi#643
@0xygen8
Copy link

0xygen8 commented Apr 18, 2017

I have the same question but the other way around: I'm using a Pi2 to communicate with a device running at 300-e-7-1 I found that when I switched to a Pi3 300bps is no longer a possible baud rate (only garbled data) I tried switching the UART (pi3-disable-bt) but that has no effect. Is there a way to solve this? (I'm using Raspbian Jessie lite dd 2017-04-10)

@pelwell
Copy link
Contributor

pelwell commented Apr 18, 2017

Please create a new issue for this. Commenting on old issues with details of different problems or questions just annoys all of the watchers.

kallisti5 added a commit to kallisti5/haiku that referenced this issue Nov 18, 2017
* raspberrypi/firmware#643
* Mimics what the RaspberryPi guys adjusted it to in
  the firmware.
* Solves corrupted UART serial on the RaspberryPi 2
* I think linux live-probes this frequency via dt-bindings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants