public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* Nokia Internet Tablets
@ 2008-12-22 10:34 Otto Solares
  2008-12-22 12:27 ` Felipe Balbi
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Otto Solares @ 2008-12-22 10:34 UTC (permalink / raw)
  To: linux-omap

Hi all!

I want to resurrect missing support for the Nokia Internet Tablets
starting with the N8x0s for my NITdroid project, which uses just
standard Linux kernel APIs.

So first I would like to ask some very newbie questions:

-Is there any ongoing effort to support these devices in latest kernels
 at the same level as the latest Nokia production kernel (2.6.21-omap)?

-I don't plan to suspend but just sleep while idling, is this a good
 approach to power management (pm)?

-I read about the pm branch, where can I pull it?

-What it does mean retention state for OMAP2 processors? As far as I
 can figure is some deep sleep state?

-If it is a sleep state, what are the conditions to get in? any way to
 check or how to know if it get in?

-Does CONFIG_NO_HZ works for this devices?

-Disabling serial support in linux-omap can I get rid of the serial
 clocks so it more easily get in deep sleep states?

-2.6.21-omap had DVFS for OMAP2, why it was removed and what is needed
 to port it back to latest linux-omap kernel so cpufreq scaling works?

-Same for the camera drivers, why it was removed and what is required
 to port it back?

-AFAIK the recent removals of the N800 sound driver was because it was
 not written for ALSA OMAP SoC API, right?

-Can the retu RTC be ported to the CONFIG_RTC_CLASS API?

-Are the CONFIG_REGULATOR and CONFIG_POWER_SUPPLY APIs of any use for
 the Internet Tablets?

If it is lack of time of the original developers, I would like to step
in, willing to try to complete this work as long as you are willing to
support me with answers to my newbie questions as this devices are in
plenty operation today but the Nokia kernel is getting really old and
it's a good thing if we can port all the drivers to standard Linux API.

Thx in advance!

-otto

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Nokia Internet Tablets
  2008-12-22 10:34 Nokia Internet Tablets Otto Solares
@ 2008-12-22 12:27 ` Felipe Balbi
  2008-12-22 12:33   ` Igor Stoppa
                     ` (3 more replies)
  2008-12-22 12:50 ` Jarkko Nikula
  2008-12-22 14:01 ` green
  2 siblings, 4 replies; 17+ messages in thread
From: Felipe Balbi @ 2008-12-22 12:27 UTC (permalink / raw)
  To: ext Otto Solares; +Cc: linux-omap

On Mon, Dec 22, 2008 at 04:34:22AM -0600, ext Otto Solares wrote:
> Hi all!
> 
> I want to resurrect missing support for the Nokia Internet Tablets
> starting with the N8x0s for my NITdroid project, which uses just
> standard Linux kernel APIs.
> 
> So first I would like to ask some very newbie questions:
> 
> -Is there any ongoing effort to support these devices in latest kernels
>  at the same level as the latest Nokia production kernel (2.6.21-omap)?

n8x0 devices should boot fine with current linux-omap and I'd say we
have all the drivers here as well, besides audio, camera and wifi (me thinks)

> -I don't plan to suspend but just sleep while idling, is this a good
>  approach to power management (pm)?

That's broken afaict.

> -I read about the pm branch, where can I pull it?

from linux-omap git.

git pull \
git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git pm

should do it

> -Same for the camera drivers, why it was removed and what is required
>  to port it back?

get the patch out of linux-omap and send it through v4l2 maintainer.

> -AFAIK the recent removals of the N800 sound driver was because it was
>  not written for ALSA OMAP SoC API, right?

yes.

> -Can the retu RTC be ported to the CONFIG_RTC_CLASS API?
> 
> -Are the CONFIG_REGULATOR and CONFIG_POWER_SUPPLY APIs of any use for
>  the Internet Tablets?

hmm... it could be used for charging but it won't work unless you get
documentation of the charging chips used on n8x0. Also, you'd need to
change BME I suppose, which you can't :-s

> If it is lack of time of the original developers, I would like to step
> in, willing to try to complete this work as long as you are willing to
> support me with answers to my newbie questions as this devices are in
> plenty operation today but the Nokia kernel is getting really old and
> it's a good thing if we can port all the drivers to standard Linux API.

Sure, I totally agree with you. If I had more time I'd help cleaning up
some of the old drivers and send them upstream myself, but unfortunately
I don't.

If you wanna hack, go for it.

-- 
balbi

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Nokia Internet Tablets
  2008-12-22 12:27 ` Felipe Balbi
@ 2008-12-22 12:33   ` Igor Stoppa
  2008-12-22 13:00     ` Jarkko Nikula
  2008-12-22 22:04   ` green
                     ` (2 subsequent siblings)
  3 siblings, 1 reply; 17+ messages in thread
From: Igor Stoppa @ 2008-12-22 12:33 UTC (permalink / raw)
  To: felipe.balbi; +Cc: ext Otto Solares, linux-omap

On Mon, 2008-12-22 at 14:27 +0200, ext Felipe Balbi wrote:
> On Mon, Dec 22, 2008 at 04:34:22AM -0600, ext Otto Solares wrote:


> > -I don't plan to suspend but just sleep while idling, is this a good
> >  approach to power management (pm)?
> 
> That's broken afaict.

The feature might be broken, but the approach is correct.

> > -I read about the pm branch, where can I pull it?
> 
> from linux-omap git.
> 
> git pull \
> git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git pm
> 
> should do it

but afaik it still doesn't survive the wfi

> > -Are the CONFIG_REGULATOR and CONFIG_POWER_SUPPLY APIs of any use for
> >  the Internet Tablets?
> 
> hmm... it could be used for charging but it won't work unless you get
> documentation of the charging chips used on n8x0. Also, you'd need to
> change BME I suppose, which you can't :-s

I think there was the intention to provide BME still i nbinary form but
make it available to the community and have somebody from nokia to
recompile it when needed. Far from optimal but at least something.

-- 

Cheers, Igor

---

Igor Stoppa
Maemo Software - Nokia Devices R&D - Helsinki

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Nokia Internet Tablets
  2008-12-22 10:34 Nokia Internet Tablets Otto Solares
  2008-12-22 12:27 ` Felipe Balbi
@ 2008-12-22 12:50 ` Jarkko Nikula
  2008-12-24  2:45   ` Otto Solares
  2008-12-22 14:01 ` green
  2 siblings, 1 reply; 17+ messages in thread
From: Jarkko Nikula @ 2008-12-22 12:50 UTC (permalink / raw)
  To: ext Otto Solares; +Cc: linux-omap

On Mon, 22 Dec 2008 04:34:22 -0600
"ext Otto Solares" <solca@guug.org> wrote:

> Hi all!
> 
> I want to resurrect missing support for the Nokia Internet Tablets
> starting with the N8x0s for my NITdroid project, which uses just
> standard Linux kernel APIs.
> 
> So first I would like to ask some very newbie questions:
> 
> -Is there any ongoing effort to support these devices in latest kernels
>  at the same level as the latest Nokia production kernel (2.6.21-omap)?
> 
"make n800_defconfig" in linux-omap tree is a very good start.

> -I don't plan to suspend but just sleep while idling, is this a good
>  approach to power management (pm)?
> 
> -I read about the pm branch, where can I pull it?
> 
Probably you read already this "N810 suspend" thread?

http://marc.info/?t=122937538800002&r=1&w=2

Short: N800 can do sleep_while_idle but GPS uart clock prevents it
currently in N810 and PM branch may have solution to idle it.

> -Does CONFIG_NO_HZ works for this devices?
> 
Was working at least some months ago with N800.

> -AFAIK the recent removals of the N800 sound driver was because it was
>  not written for ALSA OMAP SoC API, right?
> 
That's correct. N810 audio is already supported with SND_OMAP_SOC_N810
but N800 would require to have ASoC codec driver for TSC2301 and DAI
link driver for EAC, at least for exact sample rates.

This is due TSC2301 which can be only slave so in order to get stardard
sample rates, EAC or McBSP would require to use external master clock
to them and EAC_AC_MCLK and McBSP2.CLKS are not routed into same pads
like other four EAC and McBSP2 signals.

Most probably McBSP DAI & TSC2301 would work also if using internal 96
MHz as a source clock to McBSP. Then sample rate would be e.g.
96 MHz / 32 / 32 = 46.875 kHz.

> If it is lack of time of the original developers, I would like to step
> in, willing to try to complete this work as long as you are willing to
> support me with answers to my newbie questions as this devices are in
> plenty operation today but the Nokia kernel is getting really old and
> it's a good thing if we can port all the drivers to standard Linux API.
> 
I welcome you to step in this porting effort! I help what I can :-)


Jarkko

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Nokia Internet Tablets
  2008-12-22 12:33   ` Igor Stoppa
@ 2008-12-22 13:00     ` Jarkko Nikula
  0 siblings, 0 replies; 17+ messages in thread
From: Jarkko Nikula @ 2008-12-22 13:00 UTC (permalink / raw)
  To: igor.stoppa; +Cc: felipe.balbi, ext Otto Solares, linux-omap

On Mon, 22 Dec 2008 14:33:41 +0200
"ext Igor Stoppa" <igor.stoppa@nokia.com> wrote:

> > hmm... it could be used for charging but it won't work unless you get
> > documentation of the charging chips used on n8x0. Also, you'd need to
> > change BME I suppose, which you can't :-s
> 
> I think there was the intention to provide BME still i nbinary form but
> make it available to the community and have somebody from nokia to
> recompile it when needed. Far from optimal but at least something.
> 
It is available for the community in binary form. Just
look the /dev/mtdblock3 partition :-)

It is possible to boot via normal initfs and get BME running. Worth to
note that MMC devices nodes are changed since 2.6.21 so one would need
to copy existing initfs, modify device nodes, generate new initfs jffs2
image and flash it back.

Then MMC card can be used as a root just by:

	flasher --set-root-device=mmc

Disclaimer: I'm not charging expert so don't know is this safe but
works for me :-)


Jarkko

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Nokia Internet Tablets
  2008-12-22 10:34 Nokia Internet Tablets Otto Solares
  2008-12-22 12:27 ` Felipe Balbi
  2008-12-22 12:50 ` Jarkko Nikula
@ 2008-12-22 14:01 ` green
  2008-12-23  7:34   ` Jarkko Nikula
  2 siblings, 1 reply; 17+ messages in thread
From: green @ 2008-12-22 14:01 UTC (permalink / raw)
  To: linux-omap

[-- Attachment #1: Type: text/plain, Size: 913 bytes --]

On Mon, 2008.12.22, 357, Otto Solares wrote:
> I want to resurrect missing support for the Nokia Internet Tablets
> starting with the N8x0s for my NITdroid project, which uses just
> standard Linux kernel APIs.

> If it is lack of time of the original developers, I would like to step
> in, willing to try to complete this work as long as you are willing to
> support me with answers to my newbie questions as this devices are in
> plenty operation today but the Nokia kernel is getting really old and
> it's a good thing if we can port all the drivers to standard Linux API.

This is great; I hope you have success.  I (who am new to kernel development 
and git) have an N810 and have been trying to get Debian running on it usably; 
I do have Debian running, but: no X, no RTC, no audio, and a very short idle 
time (on a charge).  Unfortunately I have little free time in which to work on 
it.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Nokia Internet Tablets
  2008-12-22 12:27 ` Felipe Balbi
  2008-12-22 12:33   ` Igor Stoppa
@ 2008-12-22 22:04   ` green
  2008-12-24  2:05   ` Otto Solares
  2009-01-02 14:35   ` Kalle Valo
  3 siblings, 0 replies; 17+ messages in thread
From: green @ 2008-12-22 22:04 UTC (permalink / raw)
  To: linux-omap

[-- Attachment #1: Type: text/plain, Size: 489 bytes --]

On Mon, 2008.12.22, 357, Felipe Balbi wrote:
> On Mon, Dec 22, 2008 at 04:34:22AM -0600, ext Otto Solares wrote:
> > -Is there any ongoing effort to support these devices in latest kernels
> >  at the same level as the latest Nokia production kernel (2.6.21-omap)?
> 
> n8x0 devices should boot fine with current linux-omap and I'd say we
> have all the drivers here as well, besides audio, camera and wifi (me thinks)

And GPS?

RTC & bme don't really work properly either...?

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Nokia Internet Tablets
  2008-12-22 14:01 ` green
@ 2008-12-23  7:34   ` Jarkko Nikula
  2008-12-23  9:04     ` Koen Kooi
  2008-12-23  9:27     ` Hemanth V
  0 siblings, 2 replies; 17+ messages in thread
From: Jarkko Nikula @ 2008-12-23  7:34 UTC (permalink / raw)
  To: ext green; +Cc: linux-omap

[-- Attachment #1: Type: text/plain, Size: 1094 bytes --]

On Mon, 22 Dec 2008 08:01:37 -0600
"ext green" <greenfreedom10@gmail.com> wrote:

> This is great; I hope you have success.  I (who am new to kernel development 
> and git) have an N810 and have been trying to get Debian running on it usably; 
> I do have Debian running, but: no X, no RTC, no audio, and a very short idle 
> time (on a charge).  Unfortunately I have little free time in which to work on 
> it.
> 
I recently tried xserver-xorg-video-fbdev from Debian/testing and got it
working just by adding 'Option "UseFBDev" "true"' in Section "Devices".
My xorg.conf attached.

Audio note (after "make n800_defconfig):

Device Drivers ->
 Sound card support ->
  Advanced Linux Sound Architecture ->
    ALSA for SoC audio support ->
     SoC Audio for the Texas Instruments OMAP chips
     SoC Audio support for Nokia N810

And especially this:

System Type ->
 TI OMAP Implementations ->
  OMAP multiplexing support

This is because N810 bootloader muxes audio I2S pins for OMAP2420 EAC
block but ASoC drivers are using McBSP block so those pins must be
remuxed by the kernel.


Jarkko

[-- Attachment #2: xorg.conf --]
[-- Type: application/octet-stream, Size: 1254 bytes --]

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc104"
	Option		"XkbLayout"	"us"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
EndSection

Section "Device"
	Identifier	"Configured Video Device"
	Driver		"fbdev"
	Option		"UseFBDev"		"true"
EndSection

Section "Monitor"
	Identifier	"Configured Monitor"
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Monitor		"Configured Monitor"
EndSection

Section "ServerFlags"
	Option	"BlankTime"	"0"
	Option	"StandbyTime"	"0"
	Option	"SuspendTime"	"1"
	Option	"OffTime"	"0"
EndSection

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Nokia Internet Tablets
  2008-12-23  7:34   ` Jarkko Nikula
@ 2008-12-23  9:04     ` Koen Kooi
  2008-12-23  9:34       ` Jarkko Nikula
  2008-12-23  9:27     ` Hemanth V
  1 sibling, 1 reply; 17+ messages in thread
From: Koen Kooi @ 2008-12-23  9:04 UTC (permalink / raw)
  To: linux-omap@vger.kernel.org List

[-- Attachment #1: Type: text/plain, Size: 834 bytes --]


Op 23 dec 2008, om 08:34 heeft Jarkko Nikula het volgende geschreven:

> On Mon, 22 Dec 2008 08:01:37 -0600
> "ext green" <greenfreedom10@gmail.com> wrote:
>
>> This is great; I hope you have success.  I (who am new to kernel  
>> development
>> and git) have an N810 and have been trying to get Debian running on  
>> it usably;
>> I do have Debian running, but: no X, no RTC, no audio, and a very  
>> short idle
>> time (on a charge).  Unfortunately I have little free time in which  
>> to work on
>> it.
>>
> I recently tried xserver-xorg-video-fbdev from Debian/testing and  
> got it
> working just by adding 'Option "UseFBDev" "true"' in Section  
> "Devices".
> My xorg.conf attached.

have you tried http://cgit.pingu.fi/xf86-video-omapfb/ yet? That  
should give you XV and it shouldn't need an xorg.conf.

regards,

Koen

[-- Attachment #2: Dit deel van het bericht is digitaal ondertekend --]
[-- Type: application/pgp-signature, Size: 186 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Nokia Internet Tablets
  2008-12-23  7:34   ` Jarkko Nikula
  2008-12-23  9:04     ` Koen Kooi
@ 2008-12-23  9:27     ` Hemanth V
  2008-12-23  9:39       ` Jarkko Nikula
  1 sibling, 1 reply; 17+ messages in thread
From: Hemanth V @ 2008-12-23  9:27 UTC (permalink / raw)
  To: Jarkko Nikula, ext green; +Cc: linux-omap

----- Original Message ----- 
From: "Jarkko Nikula" <jarkko.nikula@nokia.com>
> I recently tried xserver-xorg-video-fbdev from Debian/testing and got it
> working just by adding 'Option "UseFBDev" "true"' in Section "Devices".
> My xorg.conf attached.

Is this same as xserver-xomap, which is used by Maemo. Is Xomap know to work 
with newer kernels .

Thanks
Hemanth



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Nokia Internet Tablets
  2008-12-23  9:04     ` Koen Kooi
@ 2008-12-23  9:34       ` Jarkko Nikula
  2008-12-23  9:58         ` Koen Kooi
  0 siblings, 1 reply; 17+ messages in thread
From: Jarkko Nikula @ 2008-12-23  9:34 UTC (permalink / raw)
  To: ext Koen Kooi; +Cc: linux-omap@vger.kernel.org List

On Tue, 23 Dec 2008 10:04:24 +0100
"ext Koen Kooi" <k.kooi@student.utwente.nl> wrote:

> have you tried http://cgit.pingu.fi/xf86-video-omapfb/ yet? That  
> should give you XV and it shouldn't need an xorg.conf.
> 
Thanks for info! Do you know does it support standard xset commands,
i.e. setting the different blanking modes?


Jarkko

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Nokia Internet Tablets
  2008-12-23  9:27     ` Hemanth V
@ 2008-12-23  9:39       ` Jarkko Nikula
  0 siblings, 0 replies; 17+ messages in thread
From: Jarkko Nikula @ 2008-12-23  9:39 UTC (permalink / raw)
  To: ext Hemanth V; +Cc: ext green, linux-omap

On Tue, 23 Dec 2008 14:57:30 +0530
"ext Hemanth V" <hemanthv@ti.com> wrote:

> ----- Original Message ----- 
> From: "Jarkko Nikula" <jarkko.nikula@nokia.com>
> > I recently tried xserver-xorg-video-fbdev from Debian/testing and got it
> > working just by adding 'Option "UseFBDev" "true"' in Section "Devices".
> > My xorg.conf attached.
> 
> Is this same as xserver-xomap, which is used by Maemo. Is Xomap know to work 
> with newer kernels .
> 
It is unaccelerated driver on top of fbdev. So e.g. no Xv acceleration.

Xomap was working at least some time ago when trying linux-omap with our
Maemo userspace. I haven't tried how well Xomap works with Debian
userspace.


Jarkko

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Nokia Internet Tablets
  2008-12-23  9:34       ` Jarkko Nikula
@ 2008-12-23  9:58         ` Koen Kooi
  2008-12-23 11:14           ` Kalle Vahlman
  0 siblings, 1 reply; 17+ messages in thread
From: Koen Kooi @ 2008-12-23  9:58 UTC (permalink / raw)
  To: Jarkko Nikula, zuh; +Cc: linux-omap@vger.kernel.org List

[-- Attachment #1: Type: text/plain, Size: 578 bytes --]


Op 23 dec 2008, om 10:34 heeft Jarkko Nikula het volgende geschreven:

> On Tue, 23 Dec 2008 10:04:24 +0100
> "ext Koen Kooi" <k.kooi@student.utwente.nl> wrote:
>
>> have you tried http://cgit.pingu.fi/xf86-video-omapfb/ yet? That
>> should give you XV and it shouldn't need an xorg.conf.
>>
> Thanks for info! Do you know does it support standard xset commands,
> i.e. setting the different blanking modes?

It shares a lot of code with xf86-video-fbdev, but I don't know if the  
blanking code made it into the driver. Kalle, do you know if blanking  
works?

regards,

Koen

[-- Attachment #2: Dit deel van het bericht is digitaal ondertekend --]
[-- Type: application/pgp-signature, Size: 186 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Nokia Internet Tablets
  2008-12-23  9:58         ` Koen Kooi
@ 2008-12-23 11:14           ` Kalle Vahlman
  0 siblings, 0 replies; 17+ messages in thread
From: Kalle Vahlman @ 2008-12-23 11:14 UTC (permalink / raw)
  To: Koen Kooi; +Cc: Jarkko Nikula, linux-omap@vger.kernel.org List

2008/12/23 Koen Kooi <k.kooi@student.utwente.nl>:
>
> Op 23 dec 2008, om 10:34 heeft Jarkko Nikula het volgende geschreven:
>
>> On Tue, 23 Dec 2008 10:04:24 +0100
>> "ext Koen Kooi" <k.kooi@student.utwente.nl> wrote:
>>
>>> have you tried http://cgit.pingu.fi/xf86-video-omapfb/ yet? That
>>> should give you XV and it shouldn't need an xorg.conf.
>>>
>> Thanks for info! Do you know does it support standard xset commands,
>> i.e. setting the different blanking modes?
>
> It shares a lot of code with xf86-video-fbdev, but I don't know if the
> blanking code made it into the driver. Kalle, do you know if blanking works?

For the extent that omapfb offers it (well, at least the driver
present on the Nokia kernel for N8x0), yes.

The DPMS support is implemented in:
  http://cgit.pingu.fi/xf86-video-omapfb/tree/src/omapfb-driver.c#n728

and as the comments indicate, I only saw on/off settings in the omapfb
kernel driver. The xf86-video-fbdev tries to set the standby and
suspend modes and fails (you'll get some "ioctl failed" message about
it), but can't remember if it manages to blank it properly for off (I
suppose so).

To circumvent that, I opted for simply setting the VESA_POWERDOWN mode
for all of the standby, suspend and off modes. The plan is to adjust
the brightness for at least standby, maybe even for suspend, so you
can use DPMS to do the usual "dim quickly, turn off later" pattern.

-- 
Kalle Vahlman, zuh@iki.fi
Powered by http://movial.fi
Interesting stuff at http://sandbox.movial.com
See also http://syslog.movial.fi

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Nokia Internet Tablets
  2008-12-22 12:27 ` Felipe Balbi
  2008-12-22 12:33   ` Igor Stoppa
  2008-12-22 22:04   ` green
@ 2008-12-24  2:05   ` Otto Solares
  2009-01-02 14:35   ` Kalle Valo
  3 siblings, 0 replies; 17+ messages in thread
From: Otto Solares @ 2008-12-24  2:05 UTC (permalink / raw)
  To: Felipe Balbi; +Cc: linux-omap

On Mon, Dec 22, 2008 at 02:27:57PM +0200, Felipe Balbi wrote:
> On Mon, Dec 22, 2008 at 04:34:22AM -0600, ext Otto Solares wrote:
> > Hi all!
> > 
> > I want to resurrect missing support for the Nokia Internet Tablets
> > starting with the N8x0s for my NITdroid project, which uses just
> > standard Linux kernel APIs.
> > 
> > So first I would like to ask some very newbie questions:
> > 
> > -Is there any ongoing effort to support these devices in latest kernels
> >  at the same level as the latest Nokia production kernel (2.6.21-omap)?
> 
> n8x0 devices should boot fine with current linux-omap and I'd say we
> have all the drivers here as well, besides audio, camera and wifi (me thinks)

Yea it boots fine minus power management.

> > -I don't plan to suspend but just sleep while idling, is this a good
> >  approach to power management (pm)?
> 
> That's broken afaict.
> 
> > -I read about the pm branch, where can I pull it?
> 
> from linux-omap git.
> 
> git pull \
> git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git pm
> 
> should do it
> 
> > -Same for the camera drivers, why it was removed and what is required
> >  to port it back?
> 
> get the patch out of linux-omap and send it through v4l2 maintainer.
> 
> > -AFAIK the recent removals of the N800 sound driver was because it was
> >  not written for ALSA OMAP SoC API, right?
> 
> yes.
> 
> > -Can the retu RTC be ported to the CONFIG_RTC_CLASS API?
> > 
> > -Are the CONFIG_REGULATOR and CONFIG_POWER_SUPPLY APIs of any use for
> >  the Internet Tablets?
> 
> hmm... it could be used for charging but it won't work unless you get
> documentation of the charging chips used on n8x0. Also, you'd need to
> change BME I suppose, which you can't :-s

It would be nice that the driver expose the current interface for BME
plus the standard Linux API so battery metering works out of the box
for distributions other than Maemo.

I put a new project to kickstart all the required Nokia proprietary
software so the NITs works with other distros without booting trhu
initfs:

http://guug.org/nit/nitboot

Eventually I would like that NIT drivers expose just standard kernel
APIs so no need for nitboot.  The only hard part as I see it is BME
which I'm pretty sure it is not a trivial task to supplant.

> > If it is lack of time of the original developers, I would like to step
> > in, willing to try to complete this work as long as you are willing to
> > support me with answers to my newbie questions as this devices are in
> > plenty operation today but the Nokia kernel is getting really old and
> > it's a good thing if we can port all the drivers to standard Linux API.
> 
> Sure, I totally agree with you. If I had more time I'd help cleaning up
> some of the old drivers and send them upstream myself, but unfortunately
> I don't.
> 
> If you wanna hack, go for it.

Cool thx for the support!

-otto

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Nokia Internet Tablets
  2008-12-22 12:50 ` Jarkko Nikula
@ 2008-12-24  2:45   ` Otto Solares
  0 siblings, 0 replies; 17+ messages in thread
From: Otto Solares @ 2008-12-24  2:45 UTC (permalink / raw)
  To: Jarkko Nikula; +Cc: linux-omap

On Mon, Dec 22, 2008 at 02:50:45PM +0200, Jarkko Nikula wrote:
> On Mon, 22 Dec 2008 04:34:22 -0600
> "ext Otto Solares" <solca@guug.org> wrote:
> 
> > Hi all!
> > 
> > I want to resurrect missing support for the Nokia Internet Tablets
> > starting with the N8x0s for my NITdroid project, which uses just
> > standard Linux kernel APIs.
> > 
> > So first I would like to ask some very newbie questions:
> > 
> > -Is there any ongoing effort to support these devices in latest kernels
> >  at the same level as the latest Nokia production kernel (2.6.21-omap)?
> > 
> "make n800_defconfig" in linux-omap tree is a very good start.
> 
> > -I don't plan to suspend but just sleep while idling, is this a good
> >  approach to power management (pm)?
> > 
> > -I read about the pm branch, where can I pull it?
> > 
> Probably you read already this "N810 suspend" thread?
> 
> http://marc.info/?t=122937538800002&r=1&w=2
> 
> Short: N800 can do sleep_while_idle but GPS uart clock prevents it
> currently in N810 and PM branch may have solution to idle it.

Will try it.

> > -Does CONFIG_NO_HZ works for this devices?
> > 
> Was working at least some months ago with N800.
> 
> > -AFAIK the recent removals of the N800 sound driver was because it was
> >  not written for ALSA OMAP SoC API, right?
> > 
> That's correct. N810 audio is already supported with SND_OMAP_SOC_N810
> but N800 would require to have ASoC codec driver for TSC2301 and DAI
> link driver for EAC, at least for exact sample rates.
> 
> This is due TSC2301 which can be only slave so in order to get stardard
> sample rates, EAC or McBSP would require to use external master clock
> to them and EAC_AC_MCLK and McBSP2.CLKS are not routed into same pads
> like other four EAC and McBSP2 signals.
> 
> Most probably McBSP DAI & TSC2301 would work also if using internal 96
> MHz as a source clock to McBSP. Then sample rate would be e.g.
> 96 MHz / 32 / 32 = 46.875 kHz.

Excellent summary, that was what I need to know, I'll take a look.

> > If it is lack of time of the original developers, I would like to step
> > in, willing to try to complete this work as long as you are willing to
> > support me with answers to my newbie questions as this devices are in
> > plenty operation today but the Nokia kernel is getting really old and
> > it's a good thing if we can port all the drivers to standard Linux API.
> > 
> I welcome you to step in this porting effort! I help what I can :-)

What about my other questions? cpufreq and dvfs?

Thx for your support!

-otto

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Nokia Internet Tablets
  2008-12-22 12:27 ` Felipe Balbi
                     ` (2 preceding siblings ...)
  2008-12-24  2:05   ` Otto Solares
@ 2009-01-02 14:35   ` Kalle Valo
  3 siblings, 0 replies; 17+ messages in thread
From: Kalle Valo @ 2009-01-02 14:35 UTC (permalink / raw)
  To: felipe.balbi; +Cc: ext Otto Solares, linux-omap

"ext Felipe Balbi" <felipe.balbi@nokia.com> writes:

> On Mon, Dec 22, 2008 at 04:34:22AM -0600, ext Otto Solares wrote:
>> Hi all!
>> 
>> I want to resurrect missing support for the Nokia Internet Tablets
>> starting with the N8x0s for my NITdroid project, which uses just
>> standard Linux kernel APIs.
>> 
>> So first I would like to ask some very newbie questions:
>> 
>> -Is there any ongoing effort to support these devices in latest kernels
>>  at the same level as the latest Nokia production kernel (2.6.21-omap)?
>
> n8x0 devices should boot fine with current linux-omap and I'd say we
> have all the drivers here as well, besides audio, camera and wifi (me thinks)

For wifi there is stlc45xx:

http://stlc45xx.garage.maemo.org/

Also Christian Lamparter is adding stlc4550 support to p54, check
linux-wireless list archives for more (search for p54spi).

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2009-01-02 14:36 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-22 10:34 Nokia Internet Tablets Otto Solares
2008-12-22 12:27 ` Felipe Balbi
2008-12-22 12:33   ` Igor Stoppa
2008-12-22 13:00     ` Jarkko Nikula
2008-12-22 22:04   ` green
2008-12-24  2:05   ` Otto Solares
2009-01-02 14:35   ` Kalle Valo
2008-12-22 12:50 ` Jarkko Nikula
2008-12-24  2:45   ` Otto Solares
2008-12-22 14:01 ` green
2008-12-23  7:34   ` Jarkko Nikula
2008-12-23  9:04     ` Koen Kooi
2008-12-23  9:34       ` Jarkko Nikula
2008-12-23  9:58         ` Koen Kooi
2008-12-23 11:14           ` Kalle Vahlman
2008-12-23  9:27     ` Hemanth V
2008-12-23  9:39       ` Jarkko Nikula

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox