Commit Graph

5 Commits

Author SHA1 Message Date
Joseph Chen 5a54baa793 dm: key: refactor code
- use standard dm framework to implement all key drivers;
- all key node to be children and attach to key bus;
- dm key uclass takes over most work;
- reduce a lot of driver code size;

Change-Id: I9ea4515249d493eb4434890b90350f694c07404f
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-04-09 10:54:14 +08:00
Joseph Chen 64048c537e dm: key: optimise framework and update drivers
1. dm key framework takes over more generic jobs;
2. key drivers remove unused codes and match new framework;
3. only power key is registered as interrupt key;

Change-Id: Icdda86f588af721b685f801ed251581f2fd85793
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-21 12:20:43 +08:00
Joseph Chen 7b0adbaa7d input: gpio key: fix compile warning
Change-Id: I897c625d623365a7f9bc49fb4ceb1ed9057cd103
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-03 10:52:29 +08:00
Joseph Chen d7a503edb0 input: gpio_key: use dm universal interface to parse event
Change-Id: Ic3b7fca99be30ab7b1bb8a37fd54b603c1da223a
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-03-01 16:29:12 +08:00
Joseph Chen c8be85008a input: key: add gpio key driver
use gpio interrupt to detect key event.

Change-Id: I5eea25ef6da26f6aaefd99458ee08189b696df87
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-01-31 18:13:53 +08:00