]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: dts: bcm283x: Fix console path on RPi3
authorLoic Poulain <loic.poulain@gmail.com>
Fri, 6 Oct 2017 13:52:52 +0000 (15:52 +0200)
committerEric Anholt <eric@anholt.net>
Fri, 6 Oct 2017 20:04:56 +0000 (13:04 -0700)
commit1bb3b7d5325ad3dbe938195e918fbe23e45e3f38
tree77c3fa3060e8055260f1128570de2d3c525db6eb
parent2018862bdad13479b663e0e9615d7c6fcaa89285
ARM: dts: bcm283x: Fix console path on RPi3

Contrary to other RPi devices, RPi3 uses uart0 to communicate with
the BCM43438 bluetooth controller. uart1 is then used for the console.
Today, the console configuration is inherited from the bcm283x dtsi
(bootargs) which is not the correct one for the RPi3. This leads to
routing issue and confuses the Bluetooth controller with unexpected
data.

This patch introduces chosen/stdout path to configure console to uart0
on bcm283x family and overwrite it to uart1 in the RPi3 dts.

Create serial0/1 aliases referring to uart0 and uart1 paths.
Remove unneeded earlyprintk.

Fixes: 1b8f000afab5 ("ARM: bcm283x: Define UART pinmuxing on board level")
Signed-off-by: Loic Poulain <loic.poulain@gmail.com>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
arch/arm/boot/dts/bcm2835-rpi-zero-w.dts
arch/arm/boot/dts/bcm2837-rpi-3-b.dts
arch/arm/boot/dts/bcm283x.dtsi