blob: 3f31f9206fb36ca1cc0802378961cd409846c977 [file] [log] [blame]
Linus Walleij9c19cfa2013-09-26 15:34:02 +02001/*
2 * Copyright 2012 ST-Ericsson AB
3 *
4 * The code contained herein is licensed under the GNU General Public
5 * License. You may obtain a copy of the GNU General Public License
6 * Version 2 or later at the following locations:
7 *
8 * http://www.opensource.org/licenses/gpl-license.html
9 * http://www.gnu.org/copyleft/gpl.html
10 *
11 * Device Tree for the TVK1281618 UIB
12 */
13
14#include <dt-bindings/interrupt-controller/irq.h>
15
16/ {
17 soc {
Linus Walleij7e0a51a2013-10-15 23:00:10 +020018 /* Add Synaptics touch screen, TC35893 keypad etc here */
Linus Walleij84919b92013-10-03 10:18:36 +020019 i2c@80004000 {
Linus Walleij7e0a51a2013-10-15 23:00:10 +020020 tc35893@44 {
21 compatible = "toshiba,tc35893";
Linus Walleij84919b92013-10-03 10:18:36 +020022 reg = <0x44>;
23 interrupt-parent = <&gpio6>;
24 interrupts = <26 IRQ_TYPE_EDGE_RISING>;
Linus Walleija45cb692013-11-13 14:57:49 +010025 pinctrl-names = "default";
26 pinctrl-0 = <&tc35893_tvk_mode>;
Linus Walleij84919b92013-10-03 10:18:36 +020027
28 interrupt-controller;
Linus Walleij7e0a51a2013-10-15 23:00:10 +020029 #interrupt-cells = <1>;
Linus Walleij84919b92013-10-03 10:18:36 +020030
31 tc3589x_gpio {
Linus Walleij7e0a51a2013-10-15 23:00:10 +020032 compatible = "toshiba,tc3589x-gpio";
33 interrupts = <0>;
Linus Walleij84919b92013-10-03 10:18:36 +020034
35 interrupt-controller;
36 #interrupt-cells = <2>;
37 gpio-controller;
38 #gpio-cells = <2>;
39 };
Linus Walleij7e0a51a2013-10-15 23:00:10 +020040 tc3589x_keypad {
41 compatible = "toshiba,tc3589x-keypad";
42 interrupts = <6>;
43 debounce-delay-ms = <4>;
44 keypad,num-columns = <8>;
45 keypad,num-rows = <8>;
46 linux,no-autorepeat;
47 linux,wakeup;
48 linux,keymap = <0x0301006b
49 0x04010066
50 0x06040072
51 0x040200d7
52 0x0303006a
53 0x0205000e
54 0x0607008b
55 0x0500001c
56 0x0403000b
57 0x03040034
58 0x05020067
59 0x0305006c
60 0x040500e7
61 0x0005009e
62 0x06020073
63 0x01030039
64 0x07060069
65 0x050500d9>;
66 };
Linus Walleij84919b92013-10-03 10:18:36 +020067 };
68 };
Linus Walleija45cb692013-11-13 14:57:49 +010069 pinctrl {
70 /* Pull up this GPIO pin */
71 tc35893 {
72 tc35893_tvk_mode: tc35893_tvk {
73 tvk_cfg {
74 ste,pins = "GPIO218_AH11";
75 ste,config = <&gpio_in_pu>;
76 };
77 };
78 };
79 };
Linus Walleij9c19cfa2013-09-26 15:34:02 +020080 };
81};