Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1551452 > unrolled thread

Re: Nokia N900 sound driver and ECI GPIOs

Started byAaro Koskinen <aaro.koskinen@iki.fi>
First post2017-01-04 23:30 +0100
Last post2017-01-04 23:50 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Nokia N900 sound driver and ECI GPIOs Aaro Koskinen <aaro.koskinen@iki.fi> - 2017-01-04 23:30 +0100
    Re: Nokia N900 sound driver and ECI GPIOs Pali Rohár <pali.rohar@gmail.com> - 2017-01-04 23:50 +0100

#1551452 — Re: Nokia N900 sound driver and ECI GPIOs

FromAaro Koskinen <aaro.koskinen@iki.fi>
Date2017-01-04 23:30 +0100
SubjectRe: Nokia N900 sound driver and ECI GPIOs
Message-ID<sW2ee-2r4-33@gated-at.bofh.it>
Hi,

On Mon, Jan 02, 2017 at 10:05:39PM +0100, joerg Reisenweber wrote:
> On Mon 02 January 2017 21:01:01 Pali Rohár wrote:
> > On Monday 02 January 2017 19:49:45 Aaro Koskinen wrote:
> > > The schematic shows ECI(5:0), but only 3 are connected/used. There
> > > were 3 other GPIOs reserved but not used in the final product.
> > 
> > Are you sure that this is truth (maybe you have some information)? Or
> > you just looked at schematic and deduced this observation (as other
> > people too)?
> > 
> > Joerg already told us that RX51 schematic does not 100% match production
> > N900 and e.g. there is missing UART3 pins...
> 
> We found this, see https://irclog.whitequark.org/neo900/2017-01-01 (has a lot 
> of possibly useful references/links)
> The question is if pin AA3 aka GPIO_178 is actually NotConnected in N900 or 
> it's just an omission in schematics and there's actually some more 'stealth 
> hardware' in N900 that doesn't show up in docs, just like the testpoint UART 
> console http://wiki.maemo.org/N900_Hardware_Hacking#Debug_ports which also are 
> missing in schematics.
> 
> 
> > What we know that gpio 178 is *already* controlled and changed by
> > production Nokia kernel running on production N900 devices (as I wrote
> > in first email).
> 
> I could use one of the unpopulated N900 PCB and solder a wire to the OMAP AA3 
> pad, then try to make sure it's not connected to anything, or if it is then 
> find out about the details of this.
> But I'm reluctant to do this, since it's an error prone and (in case of N/C) 
> not verifiable procedure, so I'd appreciate any further info, whether from 
> historical anecdote or from sourcecode review and conclusions, regarding that.

Even if the published production kernel source controls GPIO 178, it
does not mean the production device has it connected, as the same kernel
also supported many older in-house prototype versions of the hardware
(and some of those had it connected).

Probably the easiest test would be to take the final published source,
and then comment out all the GPIO 178 related code and build and run
the kernel on the production device. Then see if you can observe any
difference in behaviour.

A.

[toc] | [next] | [standalone]


#1551471

FromPali Rohár <pali.rohar@gmail.com>
Date2017-01-04 23:50 +0100
Message-ID<sW2xA-2xV-23@gated-at.bofh.it>
In reply to#1551452

[Multipart message — attachments visible in raw view] — view raw

On Wednesday 04 January 2017 23:27:49 Aaro Koskinen wrote:
> Hi,
> 
> On Mon, Jan 02, 2017 at 10:05:39PM +0100, joerg Reisenweber wrote:
> > On Mon 02 January 2017 21:01:01 Pali Rohár wrote:
> > > On Monday 02 January 2017 19:49:45 Aaro Koskinen wrote:
> > > > The schematic shows ECI(5:0), but only 3 are connected/used.
> > > > There were 3 other GPIOs reserved but not used in the final
> > > > product.
> > > 
> > > Are you sure that this is truth (maybe you have some
> > > information)? Or you just looked at schematic and deduced this
> > > observation (as other people too)?
> > > 
> > > Joerg already told us that RX51 schematic does not 100% match
> > > production N900 and e.g. there is missing UART3 pins...
> > 
> > We found this, see https://irclog.whitequark.org/neo900/2017-01-01
> > (has a lot of possibly useful references/links)
> > The question is if pin AA3 aka GPIO_178 is actually NotConnected in
> > N900 or it's just an omission in schematics and there's actually
> > some more 'stealth hardware' in N900 that doesn't show up in docs,
> > just like the testpoint UART console
> > http://wiki.maemo.org/N900_Hardware_Hacking#Debug_ports which also
> > are missing in schematics.
> > 
> > > What we know that gpio 178 is *already* controlled and changed by
> > > production Nokia kernel running on production N900 devices (as I
> > > wrote in first email).
> > 
> > I could use one of the unpopulated N900 PCB and solder a wire to
> > the OMAP AA3 pad, then try to make sure it's not connected to
> > anything, or if it is then find out about the details of this.
> > But I'm reluctant to do this, since it's an error prone and (in
> > case of N/C) not verifiable procedure, so I'd appreciate any
> > further info, whether from historical anecdote or from sourcecode
> > review and conclusions, regarding that.
> 
> Even if the published production kernel source controls GPIO 178, it
> does not mean the production device has it connected, as the same
> kernel also supported many older in-house prototype versions of the
> hardware (and some of those had it connected).

Yes, seems reasonable. Also in production kernel source there is on some 
places check for prototype hw revision and acts differently...

> Probably the easiest test would be to take the final published
> source, and then comment out all the GPIO 178 related code and build
> and run the kernel on the production device. Then see if you can
> observe any difference in behaviour.

Current mainline kernel does not control GPIO 178, so looks like audio 
somehow working... Jarkko sent driver to mainline so I asked in this 
thread if does not know something... But A/V cable detection is not in 
mainline (yet).

We can do that test to verify if production Maemo system is working as 
before. But result "nothing visible" does not prove that GPIO does not 
control anything. With this test we can just prove if system stops 
working as before.

-- 
Pali Rohár
pali.rohar@gmail.com

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web