On 14 January 2015 at 11:42, Lars Doelle <[email protected]> wrote:
> Hi everyone,
>
> tuning device configuration for [[Inet K970]], I did not yet find
> switches in the mainline kernel for the following features:
>
> 1) sunxi-keyboard

There is a mainline driver and I did not try it so far. The main
blocker is that I did not find instruction for fel booting mainline
u-boot and kernel. I can upload the u-boot but it searches for some
syslinux configuration which is not found. Probably patching the
default environment when SPL_FEL is selected would do the trick but
did not get to it.

>
> This provides an event device for the buttons of the tablet.
> Since this driver is not mainline, i wonder if some replacement
> should be used, e.g. GPIO_BUTTONS or something?

There is lradc patch for mainline here
https://github.com/jwrdegoede/linux-sunxi/commits/sunxi-wip
but I got more patches from somewhere and forget where.
You can try picking them from here
https://github.com/hramrach/linux-sunxi/commits/sunxi-nand-next

I tried porting the linux 3.4 lradc driver to u-boot before I found
this driver but it does not produce any events.

>
> 2) power button
>
> in sunxi-linux, this button is provided by axp209 on a separate
> event device. Anything one could switch on in mainline to make
> this available?

AFAIK it is not.

There is driver in u-boot. It is not hooked to generate keypresses but
I tried to hook it into stdin in u-boot and it does generate a
character when the power button is pressed. I did not find the
corresponding code in kernel.

>
> 3) power information
>
> in sunxi-linux, rich information about the current power state
> is provided through /sys/class/power_supply. This is empty in
> mainline. What to switch on in mainline's kernel config?

There is AXP driver for regulators but it may not read battery status
yet or the power supply sysfs interface might have changed.

Reading the power status should not be overly diffilcult since the
code exists in 3.4 kernel already.

I did not boot mainline on anything with battery yet so I would not know.

Thanks

Michal

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to