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 | }; |
Subhash Jadavani | 20a4896 | 2017-03-27 15:37:57 -0700 | [diff] [blame] | 71 | |
| 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 Jadavani | 20a4896 | 2017-03-27 15:37:57 -0700 | [diff] [blame] | 77 | vdda-phy-max-microamp = <62900>; |
| 78 | vdda-pll-max-microamp = <18300>; |
Subhash Jadavani | 20a4896 | 2017-03-27 15:37:57 -0700 | [diff] [blame] | 79 | |
| 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 Jadavani | 0548017 | 2017-04-01 15:51:52 -0700 | [diff] [blame] | 91 | qcom,vddp-ref-clk-supply = <&pm8998_l2>; |
| 92 | qcom,vddp-ref-clk-max-microamp = <100>; |
| 93 | |
Subhash Jadavani | 20a4896 | 2017-03-27 15:37:57 -0700 | [diff] [blame] | 94 | 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 Jadavani | 20a4896 | 2017-03-27 15:37:57 -0700 | [diff] [blame] | 102 | vdda-phy-max-microamp = <62900>; |
| 103 | vdda-pll-max-microamp = <18300>; |
Subhash Jadavani | 20a4896 | 2017-03-27 15:37:57 -0700 | [diff] [blame] | 104 | |
| 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 Jadavani | 0548017 | 2017-04-01 15:51:52 -0700 | [diff] [blame] | 116 | qcom,vddp-ref-clk-supply = <&pm8998_l2>; |
| 117 | qcom,vddp-ref-clk-max-microamp = <100>; |
| 118 | |
Subhash Jadavani | 20a4896 | 2017-03-27 15:37:57 -0700 | [diff] [blame] | 119 | status = "ok"; |
| 120 | }; |
Subbaraman Narayanamurthy | cd21c81 | 2017-03-30 18:36:49 -0700 | [diff] [blame] | 121 | |
| 122 | &pmi8998_flash2 { |
| 123 | pinctrl-names = "led_enable", "led_disable"; |
| 124 | pinctrl-0 = <&flash_led3_front_en>; |
| 125 | pinctrl-1 = <&flash_led3_front_dis>; |
| 126 | }; |
| 127 | |
| 128 | &pmi8998_torch2 { |
| 129 | pinctrl-names = "led_enable", "led_disable"; |
| 130 | pinctrl-0 = <&flash_led3_front_en>; |
| 131 | pinctrl-1 = <&flash_led3_front_dis>; |
| 132 | }; |
Harry Yang | 6711166 | 2017-04-05 15:14:52 -0700 | [diff] [blame] | 133 | |
| 134 | &pmi8998_charger { |
| 135 | qcom,batteryless-platform; |
| 136 | }; |
Girish Mahadevan | 11bc2ff | 2017-04-08 08:26:35 -0600 | [diff] [blame^] | 137 | |
| 138 | / { |
| 139 | aliases { |
| 140 | serial0 = &qupv3_se9_2uart; |
| 141 | spi0 = &qupv3_se8_spi; |
| 142 | i2c0 = &qupv3_se10_i2c; |
| 143 | i2c1 = &qupv3_se3_i2c; |
| 144 | }; |
| 145 | }; |
| 146 | |
| 147 | &qupv3_se9_2uart { |
| 148 | status = "ok"; |
| 149 | }; |
| 150 | |
| 151 | &qupv3_se8_spi { |
| 152 | status = "ok"; |
| 153 | }; |
| 154 | |
| 155 | &qupv3_se3_i2c { |
| 156 | status = "ok"; |
| 157 | }; |
| 158 | |
| 159 | &qupv3_se10_i2c { |
| 160 | status = "ok"; |
| 161 | }; |