blob: 38d7d3855bbc7352ef58fa3d0320dbc658334fb5 [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};
Subhash Jadavani20a48962017-03-27 15:37:57 -070071
72&ufsphy_mem {
73 compatible = "qcom,ufs-phy-qmp-v3";
74
75 vdda-phy-supply = <&pm8998_l1>; /* 0.88v */
76 vdda-pll-supply = <&pm8998_l26>; /* 1.2v */
Subhash Jadavani20a48962017-03-27 15:37:57 -070077 vdda-phy-max-microamp = <62900>;
78 vdda-pll-max-microamp = <18300>;
Subhash Jadavani20a48962017-03-27 15:37:57 -070079
80 status = "ok";
81};
82
83&ufshc_mem {
84 vdd-hba-supply = <&ufs_phy_gdsc>;
85 vdd-hba-fixed-regulator;
86 vcc-supply = <&pm8998_l20>;
87 vccq2-supply = <&pm8998_s4>;
88 vcc-max-microamp = <600000>;
89 vccq2-max-microamp = <600000>;
90
Subhash Jadavani05480172017-04-01 15:51:52 -070091 qcom,vddp-ref-clk-supply = <&pm8998_l2>;
92 qcom,vddp-ref-clk-max-microamp = <100>;
93
Subhash Jadavani20a48962017-03-27 15:37:57 -070094 status = "ok";
95};
96
97&ufsphy_card {
98 compatible = "qcom,ufs-phy-qmp-v3";
99
100 vdda-phy-supply = <&pm8998_l1>; /* 0.88v */
101 vdda-pll-supply = <&pm8998_l26>; /* 1.2v */
Subhash Jadavani20a48962017-03-27 15:37:57 -0700102 vdda-phy-max-microamp = <62900>;
103 vdda-pll-max-microamp = <18300>;
Subhash Jadavani20a48962017-03-27 15:37:57 -0700104
105 status = "ok";
106};
107
108&ufshc_card {
109 vdd-hba-supply = <&ufs_card_gdsc>;
110 vdd-hba-fixed-regulator;
111 vcc-supply = <&pm8998_l21>;
112 vccq2-supply = <&pm8998_s4>;
113 vcc-max-microamp = <300000>;
114 vccq2-max-microamp = <300000>;
115
Subhash Jadavani05480172017-04-01 15:51:52 -0700116 qcom,vddp-ref-clk-supply = <&pm8998_l2>;
117 qcom,vddp-ref-clk-max-microamp = <100>;
118
Subhash Jadavani20a48962017-03-27 15:37:57 -0700119 status = "ok";
120};
Subbaraman Narayanamurthycd21c812017-03-30 18:36:49 -0700121
Subbaraman Narayanamurthy58377f02017-03-21 20:38:43 -0700122&pmi8998_switch1 {
Subbaraman Narayanamurthycd21c812017-03-30 18:36:49 -0700123 pinctrl-names = "led_enable", "led_disable";
124 pinctrl-0 = <&flash_led3_front_en>;
125 pinctrl-1 = <&flash_led3_front_dis>;
126};
Harry Yang67111662017-04-05 15:14:52 -0700127
128&pmi8998_charger {
129 qcom,batteryless-platform;
130};