N800

Overview
This page is about adding Nokia N800/N810 support to Linux mainline kernels. N800/N810 (from now on called just n8x0) has been in linux-omap tree far too long, we need to get it finally to mainline. There has been discussions on the linux-omap mailing list about this:


 * Re: N810: latest linux-omap-2.6.git master
 * OMAP support in mainline?
 * Re: Things to do after 2.6.29 gets released

All the information about n8x0 mainline inclusion is scattered and the purpose of this page is to collect them into one place. As this is a wiki, it's encouraged for the people to improve the page based on their knowledge.

Patches
Current patches are available from:

http://www.valot.fi/kalle/n8x0/patches/

The patches are against latest Linus' tree. This is to make merge to the mainline as easy as possible.

The compilation instructions:

make ARCH=arm CROSS_COMPILE=arm-linux- n8x0_defconfig make ARCH=arm CROSS_COMPILE=arm-linux- flasher -k arch/arm/boot/zImage -f -b

The patches have been, at least, tested with Sourcery G++ Lite 2008q3-66.

Communication
All discussion should happen at <[mailto:linux-omap@vger.kernel.org linux-omap@vger.kernel.org]> (subscription instructions). Kalle Valo <[mailto:kalle.valo@iki.fi kalle.valo@iki.fi]> coordinates all this, so you might want to contact him in case there's something private you want to discuss and CC on all n8x0 related patches. The public communication in the mailing list is the preferred method.

The Plan
This a a draft and very much work in progress!

Most of the drivers needed by n8x0 should be already in mainline, notably exception being the Nokia's proprietary cbus support. But this must be checked.


 * 1) platform data support for omap serial driver
 * 2) n8x0 board file
 * 3) serial port
 * 4) onenand
 * 5) display
 * 6) touchscreen
 * 7) keyboard
 * 8) wlan
 * 9) usb
 * 10) cbus
 * 11) * should be converted to use spi framework and send to inclusion for mainline
 * 12) retu
 * 13) * should use new cbus driver
 * 14) tahvo
 * 15) * should use new cbus driver

User space interfaces
Diablo user space components use non-standard kernel interfaces and most likely the interfaces are not acceptable to mainline. If we want to get diablo running with latest mainline kernels, this needs to be solved somehow. (Do we really want that or instead focus, for example, on Mer?)

Identified non-standard interfaces:


 * watchdog interface used by dsme
 * bme interface
 * private Wireless Extension calls used by wlancond/eapd
 * audio and DSP in general
 * maybe also display control
 * /proc/component_version read by linuxrc from initfs
 * /proc/bootreason read by dsme

In theory it might be possible to implement an out-of-tree module or separate patchset which provide the diablo specific interfaces to user space. This needs to be investigated.

Links

 * natisbad: "Debian and recent linux kernel on N810"
 * Noscomia "Gentoo on the Nokia N810"