Letux Kernel

Issue 186: Pass GPIO numbers for TD028TTEC1 driver from board file initialization

Reported by Nikolaus Schaller, Nov 28, 2010

Currently, the GPIO assignment is hard-coded in the driver source. 
This makes it quite inflexible (we need different versions for 
Beagle / Panda / GTA04).

Rather, there should be some extended struct that is initialized in 
omap3-beagle.c etc. to the GPIO numbers and passed down to the 
driver. In the same way as e.g. the PENIRQ GPIO is passed to the 
TSC2007 driver.

Comment 1 by Nikolaus Schaller, Nov 28, 2010

Without this change, probability is low that we get the driver 
upstream.

Comment 2 by Nikolaus Schaller, Dec 7, 2011

The correct way to do this would be to define a SPI/McBSP port in 
the board-file and have the display panel driver use a generic 
jbt**** driver. I.e. this driver hierarchy:

TD028TTEC1 -> JBT**** -> SPI

Comment 3 by Nikolaus Schaller, Jul 28, 2013

Labels: Milestone:3.10

Comment 4 by Marek Belisko, Jul 29, 2013

GPIO spi assignment is passed as platform data to panel driver.

Related commits : 
https://github.com/goldelico/gta04-kernel/commit/10a126135a4624d520a2
e9567a11dbdcb2e87e07
https://github.com/goldelico/gta04-kernel/commit/7ac053aa387d900173b4
b0b3f627fdaac388e0cc
Status: Fixed

Created: 11 years 1 month ago by Nikolaus Schaller

Updated: 8 years 5 months ago

Status: Fixed

Followed by: 1 person

Labels:
Type:Defect
Priority:Medium
Milestone:3.10