Sundara Vinayagam | bde65ab | 2018-03-19 14:27:33 +0530 | [diff] [blame] | 1 | /* Copyright (c) 2014-2018, The Linux Foundation. All rights reserved. |
| 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 | */ |
| 12 | #include <dt-bindings/pinctrl/qcom,pmic-mpp.h> |
| 13 | |
| 14 | &soc { |
| 15 | i2c@78b9000 { |
| 16 | synaptics@20 { |
| 17 | avdd-supply = <&pm8916_l17>; |
| 18 | vdd-supply = <&pm8916_l6>; |
| 19 | }; |
| 20 | }; |
| 21 | |
| 22 | i2c@78b6000 { |
| 23 | nq@28 { |
| 24 | qcom,nq-clkreq = <&pm8916_gpios 2 0>; |
| 25 | }; |
| 26 | }; |
| 27 | |
| 28 | }; |
| 29 | |
| 30 | &audio_codec_mtp { |
| 31 | qcom,model = "msm8909-pm8916-snd-card"; |
| 32 | pinctrl-names = |
| 33 | "all_off", |
| 34 | "pri_i2s_act", |
| 35 | "us_eu_gpio_act", |
| 36 | "pri_i2s_us_eu_gpio_act"; |
| 37 | pinctrl-0 = <&cdc_pdm_lines_sus &cross_conn_det_sus>; |
| 38 | pinctrl-1 = <&cdc_pdm_lines_act &cross_conn_det_sus>; |
| 39 | pinctrl-2 = <&cdc_pdm_lines_sus &cross_conn_det_act>; |
| 40 | pinctrl-3 = <&cdc_pdm_lines_act &cross_conn_det_act>; |
| 41 | asoc-codec = <&stub_codec>, <&pm8916_tombak_dig>; |
| 42 | asoc-codec-names = "msm-stub-codec.1", "cajon_codec"; |
| 43 | }; |
| 44 | |
| 45 | &sdhc_1 { |
| 46 | vdd-supply = <&pm8916_l8>; |
| 47 | vdd-io-supply = <&pm8916_l5>; |
| 48 | }; |
| 49 | |
| 50 | &sdhc_2 { |
| 51 | vdd-supply = <&pm8916_l11>; |
| 52 | vdd-io-supply = <&pm8916_l12>; |
| 53 | }; |
| 54 | |
| 55 | &i2c_3 { |
| 56 | qcom,actuator@0 { |
| 57 | cam_vaf-supply = <&pm8916_l8>; |
| 58 | }; |
| 59 | |
| 60 | |
| 61 | qcom,eeprom@6c{ |
| 62 | cam_vdig-supply = <&pm8916_l2>; |
| 63 | cam_vana-supply = <&pm8916_l10>; |
| 64 | cam_vio-supply = <&pm8916_l6>; |
| 65 | cam_vaf-supply = <&pm8916_l8>; |
| 66 | }; |
| 67 | |
| 68 | qcom,camera@0 { |
| 69 | cam_vdig-supply = <&pm8916_l2>; |
| 70 | cam_vana-supply = <&pm8916_l10>; |
| 71 | cam_vio-supply = <&pm8916_l6>; |
| 72 | cam_vaf-supply = <&pm8916_l8>; |
| 73 | }; |
| 74 | |
| 75 | qcom,camera@1 { |
| 76 | cam_vana-supply = <&pm8916_l10>; |
| 77 | cam_vio-supply = <&pm8916_l6>; |
| 78 | }; |
| 79 | }; |
| 80 | |
| 81 | &spmi_bus { |
| 82 | pm8916@0 { |
| 83 | qcom,leds@a300 { |
| 84 | status = "okay"; |
| 85 | qcom,led_mpp_4 { |
| 86 | label = "mpp"; |
| 87 | linux,name = "button-backlight"; |
| 88 | linux,default-trigger = "none"; |
| 89 | qcom,default-state = "off"; |
| 90 | qcom,max-current = <40>; |
| 91 | qcom,current-setting = <5>; |
| 92 | qcom,id = <6>; |
| 93 | qcom,mode = "manual"; |
| 94 | qcom,source-sel = <1>; |
| 95 | qcom,mode-ctrl = <0x60>; |
| 96 | }; |
| 97 | }; |
| 98 | }; |
| 99 | |
| 100 | pm8916@1 { |
| 101 | qcom,vibrator@c000 { |
| 102 | status = "okay"; |
| 103 | qcom,vib-timeout-ms = <15000>; |
| 104 | qcom,vib-vtg-level-mV = <3100>; |
| 105 | }; |
| 106 | }; |
| 107 | }; |
| 108 | |
| 109 | &pm8916_mpps { |
| 110 | /* VDD_PX_BIAS_MPP_1 */ |
| 111 | vdd_px_bias_mpp { |
| 112 | vdd_px_bias_mpp_default: vdd_px_bias_mpp_default { |
| 113 | pins = "mpp1"; |
| 114 | function = "digital"; |
| 115 | status = "disabled"; |
| 116 | }; |
| 117 | }; |
| 118 | |
| 119 | /* PMIC_MPP_2 */ |
| 120 | pmic_mpp { |
| 121 | pmic_mpp_default: pmic_mpp_default { |
| 122 | pins = "mpp2"; |
| 123 | function = "digital"; |
| 124 | status = "disabled"; |
| 125 | }; |
| 126 | }; |
| 127 | |
| 128 | /* VREF_DAC_MPP_3 */ |
| 129 | vref_dac_mpp { |
| 130 | vref_dac_mpp_default: vref_dac_mpp_default { |
| 131 | pins = "mpp3"; |
| 132 | function = "digital"; |
| 133 | status = "disabled"; |
| 134 | }; |
| 135 | }; |
| 136 | |
| 137 | /* WLED_PWM_MPP_4 */ |
| 138 | wled_pwm_mpp { |
| 139 | wled_pwm_mpp_default: wled_pwm_mpp_default { |
| 140 | pins = "mpp3"; |
| 141 | function = "digital"; |
| 142 | output-enable; |
| 143 | power-source = <PM8916_MPP_VPH>; |
| 144 | status = "okay"; |
| 145 | }; |
| 146 | }; |
| 147 | }; |
| 148 | |
| 149 | /* pm8916 gpio pinctrl configuration */ |
| 150 | &pm8916_gpios { |
| 151 | /* Battery UICC Alarm */ |
| 152 | uim_batt_alarm { /* GPIO 1 */ |
| 153 | uim_batt_alarm_default: uim_batt_alarm_default { |
| 154 | pins = "gpio1"; |
| 155 | status = "disabled"; |
| 156 | }; |
| 157 | }; |
| 158 | |
| 159 | /* GPIO 2 (NFC_CLK_REQ) */ |
| 160 | nfc_clk { |
| 161 | nfc_clk_default: nfc_clk_default { |
| 162 | pins = "gpio2"; |
| 163 | function = "normal"; |
| 164 | input-enable; |
| 165 | status = "disabled"; |
| 166 | }; |
| 167 | }; |
| 168 | |
| 169 | /* WCN_LDO_EN_GPIO_3 */ |
| 170 | wcn_ldo_en { |
| 171 | wcn_ldo_en_default: wcn_ldo_en_default { |
| 172 | pins = "gpio3"; |
| 173 | function = "normal"; |
| 174 | output-low; |
| 175 | qcom,drive-strength = <1>; |
| 176 | status = "disabled"; |
| 177 | }; |
| 178 | }; |
| 179 | |
| 180 | /* External regulator control for APC */ |
| 181 | wcd_eldo_en { /* GPIO 4 */ |
| 182 | wcd_eldo_en_default: wcd_eldo_en_default { |
| 183 | pins = "gpio4"; |
| 184 | status = "disabled"; |
| 185 | }; |
| 186 | }; |
| 187 | }; |