Linus Walleij | 9c19cfa | 2013-09-26 15:34:02 +0200 | [diff] [blame] | 1 | /* |
| 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 Walleij | 7e0a51a | 2013-10-15 23:00:10 +0200 | [diff] [blame] | 18 | /* Add Synaptics touch screen, TC35893 keypad etc here */ |
Linus Walleij | 84919b9 | 2013-10-03 10:18:36 +0200 | [diff] [blame] | 19 | i2c@80004000 { |
Linus Walleij | 7e0a51a | 2013-10-15 23:00:10 +0200 | [diff] [blame] | 20 | tc35893@44 { |
| 21 | compatible = "toshiba,tc35893"; |
Linus Walleij | 84919b9 | 2013-10-03 10:18:36 +0200 | [diff] [blame] | 22 | reg = <0x44>; |
| 23 | interrupt-parent = <&gpio6>; |
| 24 | interrupts = <26 IRQ_TYPE_EDGE_RISING>; |
Linus Walleij | a45cb69 | 2013-11-13 14:57:49 +0100 | [diff] [blame^] | 25 | pinctrl-names = "default"; |
| 26 | pinctrl-0 = <&tc35893_tvk_mode>; |
Linus Walleij | 84919b9 | 2013-10-03 10:18:36 +0200 | [diff] [blame] | 27 | |
| 28 | interrupt-controller; |
Linus Walleij | 7e0a51a | 2013-10-15 23:00:10 +0200 | [diff] [blame] | 29 | #interrupt-cells = <1>; |
Linus Walleij | 84919b9 | 2013-10-03 10:18:36 +0200 | [diff] [blame] | 30 | |
| 31 | tc3589x_gpio { |
Linus Walleij | 7e0a51a | 2013-10-15 23:00:10 +0200 | [diff] [blame] | 32 | compatible = "toshiba,tc3589x-gpio"; |
| 33 | interrupts = <0>; |
Linus Walleij | 84919b9 | 2013-10-03 10:18:36 +0200 | [diff] [blame] | 34 | |
| 35 | interrupt-controller; |
| 36 | #interrupt-cells = <2>; |
| 37 | gpio-controller; |
| 38 | #gpio-cells = <2>; |
| 39 | }; |
Linus Walleij | 7e0a51a | 2013-10-15 23:00:10 +0200 | [diff] [blame] | 40 | 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 Walleij | 84919b9 | 2013-10-03 10:18:36 +0200 | [diff] [blame] | 67 | }; |
| 68 | }; |
Linus Walleij | a45cb69 | 2013-11-13 14:57:49 +0100 | [diff] [blame^] | 69 | 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 Walleij | 9c19cfa | 2013-09-26 15:34:02 +0200 | [diff] [blame] | 80 | }; |
| 81 | }; |