86 lines
1.9 KiB
Plaintext
86 lines
1.9 KiB
Plaintext
|
// SPDX-License-Identifier: GPL-2.0-only
|
||
|
/*
|
||
|
* Copyright (C) 2013 Daniel Tang <tangrs@tangrs.id.au>
|
||
|
*/
|
||
|
|
||
|
/dts-v1/;
|
||
|
|
||
|
#include <dt-bindings/input/input.h>
|
||
|
|
||
|
/include/ "nspire-classic.dtsi"
|
||
|
|
||
|
&keypad {
|
||
|
linux,keymap = <
|
||
|
MATRIX_KEY(0, 0, 0x1c)
|
||
|
MATRIX_KEY(0, 1, 0x1c)
|
||
|
MATRIX_KEY(0, 4, 0x39)
|
||
|
MATRIX_KEY(0, 5, 0x2c)
|
||
|
MATRIX_KEY(0, 6, 0x15)
|
||
|
MATRIX_KEY(0, 7, 0x0b)
|
||
|
MATRIX_KEY(0, 8, 0x0f)
|
||
|
MATRIX_KEY(1, 0, 0x2d)
|
||
|
MATRIX_KEY(1, 1, 0x11)
|
||
|
MATRIX_KEY(1, 2, 0x2f)
|
||
|
MATRIX_KEY(1, 3, 0x04)
|
||
|
MATRIX_KEY(1, 4, 0x16)
|
||
|
MATRIX_KEY(1, 5, 0x14)
|
||
|
MATRIX_KEY(1, 6, 0x1f)
|
||
|
MATRIX_KEY(1, 7, 0x02)
|
||
|
MATRIX_KEY(1, 10, 0x6a)
|
||
|
MATRIX_KEY(2, 0, 0x13)
|
||
|
MATRIX_KEY(2, 1, 0x10)
|
||
|
MATRIX_KEY(2, 2, 0x19)
|
||
|
MATRIX_KEY(2, 3, 0x07)
|
||
|
MATRIX_KEY(2, 4, 0x18)
|
||
|
MATRIX_KEY(2, 5, 0x31)
|
||
|
MATRIX_KEY(2, 6, 0x32)
|
||
|
MATRIX_KEY(2, 7, 0x05)
|
||
|
MATRIX_KEY(2, 8, 0x28)
|
||
|
MATRIX_KEY(2, 9, 0x6c)
|
||
|
MATRIX_KEY(3, 0, 0x26)
|
||
|
MATRIX_KEY(3, 1, 0x25)
|
||
|
MATRIX_KEY(3, 2, 0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|
||
|
model = "TI-NSPIRE Touchpad";
|
||
|
compatible = "ti,nspire-tp";
|
||
|
};
|