[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: UART4 on Banapipro not working



On Sun, Dec 13, 2015 at 06:23:09PM +0100, Bernhard Seidl wrote:

> uart4 on banapipro is a very common uart since it's located at the
> standard uart in raspberry B+ J8's pinout [1]
> 
> I installed debian based on [2] via sd card. For further testing I
> connected a uart<->USB cable. The cable worked perfectly on the
> "console" header ttyS0. It seems to me that the function uart4 is not
> set in the pinctrl:
> 
> cat /sys/kernel/debug/pinctrl/1c20800.pinctrl/pinmux-pins |grep uart
> pin 54 (PB22): 1c28000.serial (GPIO UNCLAIMED) function uart0 group PB22
> pin 55 (PB23): 1c28000.serial (GPIO UNCLAIMED) function uart0 group PB23
> pin 272 (PI16): 1c28800.serial (GPIO UNCLAIMED) function uart2 group PI16
> pin 273 (PI17): 1c28800.serial (GPIO UNCLAIMED) function uart2 group PI17
> pin 274 (PI18): 1c28800.serial (GPIO UNCLAIMED) function uart2 group PI18
> pin 275 (PI19): 1c28800.serial (GPIO UNCLAIMED) function uart2 group PI19
> pin 276 (PI20): 1c29c00.serial (GPIO UNCLAIMED) function uart7 group PI20
> pin 277 (PI21): 1c29c00.serial (GPIO UNCLAIMED) function uart7 group PI21
> 
> Am I missing a something? How can I activate the group?

Hello,

I assume that you are using Jessie? UART4 has been pinmuxed to
PH4/PH5 on the BananaPro since kernel 4.1, but not before. 
Jessie uses kernel 3.16, so this mux is not active there.

These are the two commits that changed the UART4 pinmuxing:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=869afa7f1743e4227c0c63c4200830933bbeec6d
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=4528f5314b8be852e7b1c278042a5655375e39b4

HTH,
Karsten
-- 
Gem. Par. 28 Abs. 4 Bundesdatenschutzgesetz widerspreche ich der Nutzung
sowie der Weitergabe meiner personenbezogenen Daten für Zwecke der
Werbung sowie der Markt- oder Meinungsforschung.


Reply to: