xref: /freebsd/sys/contrib/device-tree/src/arm/nspire/nspire-tp.dts (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot *  Copyright (C) 2013 Daniel Tang <tangrs@tangrs.id.au>
4f126890aSEmmanuel Vadot */
5*aa1a8ff2SEmmanuel Vadot
6f126890aSEmmanuel Vadot/dts-v1/;
7f126890aSEmmanuel Vadot
8*aa1a8ff2SEmmanuel Vadot#include <dt-bindings/input/input.h>
9*aa1a8ff2SEmmanuel Vadot
10f126890aSEmmanuel Vadot/include/ "nspire-classic.dtsi"
11f126890aSEmmanuel Vadot
12f126890aSEmmanuel Vadot&keypad {
13f126890aSEmmanuel Vadot	linux,keymap = <
14*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(0,  0, 0x1c)
15*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(0,  1, 0x1c)
16*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(0,  4, 0x39)
17*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(0,  5, 0x2c)
18*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(0,  6, 0x15)
19*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(0,  7, 0x0b)
20*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(0,  8, 0x0f)
21*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(1,  0, 0x2d)
22*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(1,  1, 0x11)
23*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(1,  2, 0x2f)
24*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(1,  3, 0x04)
25*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(1,  4, 0x16)
26*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(1,  5, 0x14)
27*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(1,  6, 0x1f)
28*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(1,  7, 0x02)
29*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(1, 10, 0x6a)
30*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(2,  0, 0x13)
31*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(2,  1, 0x10)
32*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(2,  2, 0x19)
33*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(2,  3, 0x07)
34*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(2,  4, 0x18)
35*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(2,  5, 0x31)
36*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(2,  6, 0x32)
37*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(2,  7, 0x05)
38*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(2,  8, 0x28)
39*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(2,  9, 0x6c)
40*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(3,  0, 0x26)
41*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(3,  1, 0x25)
42*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(3,  2, 0x24)
43*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(3,  3, 0x0a)
44*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(3,  4, 0x17)
45*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(3,  5, 0x23)
46*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(3,  6, 0x22)
47*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(3,  7, 0x08)
48*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(3,  8, 0x35)
49*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(3,  9, 0x69)
50*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(4,  0, 0x21)
51*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(4,  1, 0x12)
52*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(4,  2, 0x20)
53*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(4,  4, 0x2e)
54*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(4,  5, 0x30)
55*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(4,  6, 0x1e)
56*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(4,  7, 0x0d)
57*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(4,  8, 0x37)
58*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(4,  9, 0x67)
59*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(5,  1, 0x38)
60*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(5,  2, 0x0c)
61*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(5,  3, 0x1b)
62*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(5,  4, 0x34)
63*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(5,  5, 0x1a)
64*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(5,  6, 0x06)
65*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(5,  8, 0x27)
66*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(5,  9, 0x0e)
67*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(5, 10, 0x6f)
68*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(6,  0, 0x2b)
69*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(6,  2, 0x4e)
70*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(6,  3, 0x68)
71*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(6,  4, 0x03)
72*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(6,  5, 0x6d)
73*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(6,  6, 0x09)
74*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(6,  7, 0x01)
75*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(6,  9, 0x0f)
76*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(7,  8, 0x2a)
77*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(7,  9, 0x1d)
78*aa1a8ff2SEmmanuel Vadot		MATRIX_KEY(7, 10, 0x33)
79*aa1a8ff2SEmmanuel Vadot	>;
80f126890aSEmmanuel Vadot};
81f126890aSEmmanuel Vadot
82f126890aSEmmanuel Vadot/ {
83f126890aSEmmanuel Vadot	model = "TI-NSPIRE Touchpad";
84f126890aSEmmanuel Vadot	compatible = "ti,nspire-tp";
85f126890aSEmmanuel Vadot};
86