Re: [PATCH 0/1] input: keyboard: add qci keyboard driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Neil Leeder
Date: Tuesday, August 31, 2010 - 1:54 pm

On 8/30/2010 5:55 PM, Dmitry Torokhov wrote:

Hi Dmitry,

I can assure you that the keyboard is on the 8*18 GPIO matrix on the 
Nuvoton EC (only 8*16 being used in the current design). There certainly 
are 3 PS/2 ports on the EC, but in the board designs I have only one of 
those is used as a PS/2 port, and that is for the touchpad. The other 
two ports are muxed with GPIOs and the pins are being used as GPIOs for 
other functions, not PS/2 ports.

The firmware on the EC converts keypresses on the GPIO matrix to 
scancodes and sends them over I2C. The single GPIO used by the keyboard 
driver is an interrupt.


We can speculate on the reasons that the firmware on the EC uses 0xF4 & 
0xFA for init and ack - my guess would be for a minimal amount of 
commonality with the PS/2 protocol - but it doesn't emulate the rest of 
the PS/2 protocol for the GPIO matrix device. I tried with atkbd. It 
issues reset, getid, setleds - all of which fail with no response from 
the EC. It only responds to F4.

The scancodes reported are whatever the firmware provides. A previous 
version of firmware had some non-standard values and the driver had to 
use a look-up table to convert them to something useful. With the change 
to the current keyboard layout Quanta changed the scancodes reported to 
match the KEY_* values in input.h, which is why there is no table in the 
current driver.

--
Neil
-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/1] input: keyboard: add qci keyboard driver, Neil Leeder, (Fri Aug 27, 3:14 pm)
[PATCH 1/1] input: keyboard: add qci keyboard driver, Neil Leeder, (Fri Aug 27, 3:18 pm)
Re: [PATCH 0/1] input: keyboard: add qci keyboard driver, Dmitry Torokhov, (Fri Aug 27, 3:33 pm)
Re: [PATCH 0/1] input: keyboard: add qci keyboard driver, Dmitry Torokhov, (Mon Aug 30, 2:55 pm)
Re: [PATCH 0/1] input: keyboard: add qci keyboard driver, Neil Leeder, (Tue Aug 31, 1:54 pm)
Re: [PATCH 0/1] input: keyboard: add qci keyboard driver, Dmitry Torokhov, (Tue Aug 31, 11:34 pm)
Re: [PATCH 0/1] input: keyboard: add qci keyboard driver, Dmitry Torokhov, (Fri Sep 3, 1:37 pm)
Re: [PATCH 0/1] input: keyboard: add qci keyboard driver, Dmitry Torokhov, (Tue Sep 7, 3:14 pm)