Lee Jones | 6934e00 | 2012-09-28 14:06:29 +0100 | [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 | |
Linus Walleij | 90c4025 | 2013-05-29 19:15:39 +0200 | [diff] [blame] | 12 | #include <dt-bindings/interrupt-controller/irq.h> |
| 13 | |
Lee Jones | 6934e00 | 2012-09-28 14:06:29 +0100 | [diff] [blame] | 14 | / { |
Linus Walleij | 1a780d4 | 2013-11-15 13:43:02 +0100 | [diff] [blame] | 15 | gpio_keys { |
| 16 | compatible = "gpio-keys"; |
| 17 | #address-cells = <1>; |
| 18 | #size-cells = <0>; |
| 19 | vdd-supply = <&ab8500_ldo_aux1_reg>; |
| 20 | pinctrl-names = "default"; |
| 21 | pinctrl-0 = <&prox_stuib_mode>, <&hall_stuib_mode>; |
| 22 | |
| 23 | button@139 { |
| 24 | /* Proximity sensor */ |
| 25 | gpios = <&gpio6 25 0x4>; |
| 26 | linux,code = <11>; /* SW_FRONT_PROXIMITY */ |
| 27 | label = "SFH7741 Proximity Sensor"; |
| 28 | }; |
| 29 | button@145 { |
| 30 | /* Hall sensor */ |
| 31 | gpios = <&gpio4 17 0x4>; |
| 32 | linux,code = <0>; /* SW_LID */ |
| 33 | label = "HED54XXU11 Hall Effect Sensor"; |
| 34 | }; |
| 35 | }; |
| 36 | |
Gabriel Fernandez | b1ba143 | 2013-03-01 14:38:07 +0100 | [diff] [blame] | 37 | soc { |
Lee Jones | cb55270 | 2012-10-04 12:41:35 +0100 | [diff] [blame] | 38 | i2c@80004000 { |
| 39 | stmpe1601: stmpe1601@40 { |
| 40 | compatible = "st,stmpe1601"; |
| 41 | reg = <0x40>; |
Linus Walleij | 90c4025 | 2013-05-29 19:15:39 +0200 | [diff] [blame] | 42 | interrupts = <26 IRQ_TYPE_EDGE_FALLING>; |
Lee Jones | cb55270 | 2012-10-04 12:41:35 +0100 | [diff] [blame] | 43 | interrupt-parent = <&gpio6>; |
| 44 | interrupt-controller; |
| 45 | |
| 46 | wakeup-source; |
| 47 | st,autosleep-timeout = <1024>; |
Lee Jones | 0927781 | 2012-10-04 14:21:35 +0100 | [diff] [blame] | 48 | |
| 49 | stmpe_keypad { |
| 50 | compatible = "st,stmpe-keypad"; |
| 51 | |
| 52 | debounce-interval = <64>; |
| 53 | st,scan-count = <8>; |
| 54 | st,no-autorepeat; |
| 55 | |
| 56 | linux,keymap = <0x205006b |
| 57 | 0x4010074 |
| 58 | 0x3050072 |
| 59 | 0x1030004 |
| 60 | 0x502006a |
| 61 | 0x500000a |
| 62 | 0x5008b |
| 63 | 0x706001c |
| 64 | 0x405000b |
| 65 | 0x6070003 |
| 66 | 0x3040067 |
| 67 | 0x303006c |
| 68 | 0x60400e7 |
| 69 | 0x602009e |
| 70 | 0x4020073 |
| 71 | 0x5050002 |
| 72 | 0x4030069 |
| 73 | 0x3020008>; |
| 74 | }; |
Lee Jones | cb55270 | 2012-10-04 12:41:35 +0100 | [diff] [blame] | 75 | }; |
| 76 | }; |
| 77 | |
Lee Jones | cbebba7 | 2012-09-28 14:41:06 +0100 | [diff] [blame] | 78 | i2c@80110000 { |
Linus Walleij | d594224 | 2013-06-04 11:50:32 +0200 | [diff] [blame] | 79 | bu21013_tp@5c { |
Linus Walleij | 2852136 | 2013-05-21 13:55:15 +0200 | [diff] [blame] | 80 | compatible = "rohm,bu21013_tp"; |
Lee Jones | cbebba7 | 2012-09-28 14:41:06 +0100 | [diff] [blame] | 81 | reg = <0x5c>; |
Lee Jones | cbebba7 | 2012-09-28 14:41:06 +0100 | [diff] [blame] | 82 | avdd-supply = <&ab8500_ldo_aux1_reg>; |
| 83 | |
Linus Walleij | 2852136 | 2013-05-21 13:55:15 +0200 | [diff] [blame] | 84 | rohm,touch-max-x = <384>; |
| 85 | rohm,touch-max-y = <704>; |
| 86 | rohm,flip-y; |
Lee Jones | cbebba7 | 2012-09-28 14:41:06 +0100 | [diff] [blame] | 87 | }; |
| 88 | |
Linus Walleij | d594224 | 2013-06-04 11:50:32 +0200 | [diff] [blame] | 89 | bu21013_tp@5d { |
Linus Walleij | 2852136 | 2013-05-21 13:55:15 +0200 | [diff] [blame] | 90 | compatible = "rohm,bu21013_tp"; |
Lee Jones | cbebba7 | 2012-09-28 14:41:06 +0100 | [diff] [blame] | 91 | reg = <0x5d>; |
Lee Jones | cbebba7 | 2012-09-28 14:41:06 +0100 | [diff] [blame] | 92 | avdd-supply = <&ab8500_ldo_aux1_reg>; |
| 93 | |
Linus Walleij | 2852136 | 2013-05-21 13:55:15 +0200 | [diff] [blame] | 94 | rohm,touch-max-x = <384>; |
| 95 | rohm,touch-max-y = <704>; |
| 96 | rohm,flip-y; |
Lee Jones | cbebba7 | 2012-09-28 14:41:06 +0100 | [diff] [blame] | 97 | }; |
| 98 | }; |
Linus Walleij | 1a780d4 | 2013-11-15 13:43:02 +0100 | [diff] [blame] | 99 | |
| 100 | pinctrl { |
| 101 | prox { |
| 102 | prox_stuib_mode: prox_stuib { |
| 103 | stuib_cfg { |
| 104 | ste,pins = "GPIO217_AH12"; |
| 105 | ste,config = <&gpio_in_pu>; |
| 106 | }; |
| 107 | }; |
| 108 | }; |
| 109 | hall { |
| 110 | hall_stuib_mode: stuib_tvk { |
| 111 | stuib_cfg { |
| 112 | ste,pins = "GPIO145_C13"; |
| 113 | ste,config = <&gpio_in_pu>; |
| 114 | }; |
| 115 | }; |
| 116 | }; |
| 117 | }; |
Lee Jones | 6934e00 | 2012-09-28 14:06:29 +0100 | [diff] [blame] | 118 | }; |
| 119 | }; |