Banajit Goswami | 7885c69 | 2017-03-16 16:00:34 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved. |
Channagoud Kadabi | 6d4bb83 | 2016-06-30 23:40:05 -0700 | [diff] [blame] | 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
Kyle Yan | 6a20fae | 2017-02-14 13:34:41 -0800 | [diff] [blame] | 12 | |
David Collins | c668625 | 2017-03-31 14:23:09 -0700 | [diff] [blame^] | 13 | #include <dt-bindings/gpio/gpio.h> |
| 14 | |
Banajit Goswami | c0b7581 | 2017-03-16 16:14:17 -0700 | [diff] [blame] | 15 | &soc { |
| 16 | sound-tavil { |
| 17 | qcom,us-euro-gpios = <&tavil_us_euro_sw>; |
| 18 | }; |
David Collins | c668625 | 2017-03-31 14:23:09 -0700 | [diff] [blame^] | 19 | |
| 20 | gpio_keys { |
| 21 | compatible = "gpio-keys"; |
| 22 | label = "gpio-keys"; |
| 23 | |
| 24 | pinctrl-names = "default"; |
| 25 | pinctrl-0 = <&key_home_default |
| 26 | &key_vol_up_default |
| 27 | &key_cam_snapshot_default |
| 28 | &key_cam_focus_default>; |
| 29 | |
| 30 | home { |
| 31 | label = "home"; |
| 32 | gpios = <&pm8998_gpios 5 GPIO_ACTIVE_LOW>; |
| 33 | linux,input-type = <1>; |
| 34 | linux,code = <102>; |
| 35 | gpio-key,wakeup; |
| 36 | debounce-interval = <15>; |
| 37 | linux,can-disable; |
| 38 | }; |
| 39 | |
| 40 | vol_up { |
| 41 | label = "volume_up"; |
| 42 | gpios = <&pm8998_gpios 6 GPIO_ACTIVE_LOW>; |
| 43 | linux,input-type = <1>; |
| 44 | linux,code = <115>; |
| 45 | gpio-key,wakeup; |
| 46 | debounce-interval = <15>; |
| 47 | linux,can-disable; |
| 48 | }; |
| 49 | |
| 50 | cam_snapshot { |
| 51 | label = "cam_snapshot"; |
| 52 | gpios = <&pm8998_gpios 7 GPIO_ACTIVE_LOW>; |
| 53 | linux,input-type = <1>; |
| 54 | linux,code = <766>; |
| 55 | gpio-key,wakeup; |
| 56 | debounce-interval = <15>; |
| 57 | linux,can-disable; |
| 58 | }; |
| 59 | |
| 60 | cam_focus { |
| 61 | label = "cam_focus"; |
| 62 | gpios = <&pm8998_gpios 8 GPIO_ACTIVE_LOW>; |
| 63 | linux,input-type = <1>; |
| 64 | linux,code = <528>; |
| 65 | gpio-key,wakeup; |
| 66 | debounce-interval = <15>; |
| 67 | linux,can-disable; |
| 68 | }; |
| 69 | }; |
Banajit Goswami | c0b7581 | 2017-03-16 16:14:17 -0700 | [diff] [blame] | 70 | }; |