blob: 663ff3a463f4faaac3d50fc555dbb96f896a58a4 [file] [log] [blame]
Banajit Goswami7885c692017-03-16 16:00:34 -07001/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
Channagoud Kadabi6d4bb832016-06-30 23:40:05 -07002 *
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 Yan6a20fae2017-02-14 13:34:41 -080012
David Collinsc6686252017-03-31 14:23:09 -070013#include <dt-bindings/gpio/gpio.h>
14
Banajit Goswamic0b75812017-03-16 16:14:17 -070015&soc {
16 sound-tavil {
17 qcom,us-euro-gpios = <&tavil_us_euro_sw>;
18 };
David Collinsc6686252017-03-31 14:23:09 -070019
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 Goswamic0b75812017-03-16 16:14:17 -070070};