xref: /openbmc/linux/Documentation/devicetree/bindings/input/ti,nspire-keypad.txt (revision e5451c8f8330e03ad3cfa16048b4daf961af434f)
1*fc4f3146SDaniel TangTI-NSPIRE Keypad
2*fc4f3146SDaniel Tang
3*fc4f3146SDaniel TangRequired properties:
4*fc4f3146SDaniel Tang- compatible: Compatible property value should be "ti,nspire-keypad".
5*fc4f3146SDaniel Tang
6*fc4f3146SDaniel Tang- reg: Physical base address of the peripheral and length of memory mapped
7*fc4f3146SDaniel Tang  region.
8*fc4f3146SDaniel Tang
9*fc4f3146SDaniel Tang- interrupts: The interrupt number for the peripheral.
10*fc4f3146SDaniel Tang
11*fc4f3146SDaniel Tang- scan-interval: How often to scan in us. Based on a APB speed of 33MHz, the
12*fc4f3146SDaniel Tang	maximum and minimum delay time is ~2000us and ~500us respectively
13*fc4f3146SDaniel Tang
14*fc4f3146SDaniel Tang- row-delay: How long to wait before scanning each row.
15*fc4f3146SDaniel Tang
16*fc4f3146SDaniel Tang- clocks: The clock this peripheral is attached to.
17*fc4f3146SDaniel Tang
18*fc4f3146SDaniel Tang- linux,keymap: The keymap to use
19*fc4f3146SDaniel Tang	(see Documentation/devicetree/bindings/input/matrix-keymap.txt)
20*fc4f3146SDaniel Tang
21*fc4f3146SDaniel TangOptional properties:
22*fc4f3146SDaniel Tang- active-low: Specify that the keypad is active low (i.e. logical low signifies
23*fc4f3146SDaniel Tang	a key press).
24*fc4f3146SDaniel Tang
25*fc4f3146SDaniel TangExample:
26*fc4f3146SDaniel Tang
27*fc4f3146SDaniel Tanginput {
28*fc4f3146SDaniel Tang	compatible = "ti,nspire-keypad";
29*fc4f3146SDaniel Tang	reg = <0x900E0000 0x1000>;
30*fc4f3146SDaniel Tang	interrupts = <16>;
31*fc4f3146SDaniel Tang
32*fc4f3146SDaniel Tang	scan-interval = <1000>;
33*fc4f3146SDaniel Tang	row-delay = <200>;
34*fc4f3146SDaniel Tang
35*fc4f3146SDaniel Tang	clocks = <&apb_pclk>;
36*fc4f3146SDaniel Tang
37*fc4f3146SDaniel Tang	linux,keymap = <
38*fc4f3146SDaniel Tang	0x0000001c	0x0001001c	0x00040039
39*fc4f3146SDaniel Tang	0x0005002c	0x00060015	0x0007000b
40*fc4f3146SDaniel Tang	0x0008000f	0x0100002d	0x01010011
41*fc4f3146SDaniel Tang	0x0102002f	0x01030004	0x01040016
42*fc4f3146SDaniel Tang	0x01050014	0x0106001f	0x01070002
43*fc4f3146SDaniel Tang	0x010a006a	0x02000013	0x02010010
44*fc4f3146SDaniel Tang	0x02020019	0x02030007	0x02040018
45*fc4f3146SDaniel Tang	0x02050031	0x02060032	0x02070005
46*fc4f3146SDaniel Tang	0x02080028	0x0209006c	0x03000026
47*fc4f3146SDaniel Tang	0x03010025	0x03020024	0x0303000a
48*fc4f3146SDaniel Tang	0x03040017	0x03050023	0x03060022
49*fc4f3146SDaniel Tang	0x03070008	0x03080035	0x03090069
50*fc4f3146SDaniel Tang	0x04000021	0x04010012	0x04020020
51*fc4f3146SDaniel Tang	0x0404002e	0x04050030	0x0406001e
52*fc4f3146SDaniel Tang	0x0407000d	0x04080037	0x04090067
53*fc4f3146SDaniel Tang	0x05010038	0x0502000c	0x0503001b
54*fc4f3146SDaniel Tang	0x05040034	0x0505001a	0x05060006
55*fc4f3146SDaniel Tang	0x05080027	0x0509000e	0x050a006f
56*fc4f3146SDaniel Tang	0x0600002b	0x0602004e	0x06030068
57*fc4f3146SDaniel Tang	0x06040003	0x0605006d	0x06060009
58*fc4f3146SDaniel Tang	0x06070001	0x0609000f	0x0708002a
59*fc4f3146SDaniel Tang	0x0709001d	0x070a0033	>;
60*fc4f3146SDaniel Tang};
61