| /* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. |
| * |
| * This program is free software; you can redistribute it and/or modify |
| * it under the terms of the GNU General Public License version 2 and |
| * only version 2 as published by the Free Software Foundation. |
| * |
| * This program is distributed in the hope that it will be useful, |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| * GNU General Public License for more details. |
| */ |
| |
| #include "qcs605-lc-pmic-overlay.dtsi" |
| #include "qcs605-lc-camera-sensor-mtp.dtsi" |
| #include "qcs605-lc-ipcamera-audio.dtsi" |
| |
| &qupv3_se9_2uart { |
| status = "disabled"; |
| }; |
| |
| &qupv3_se12_2uart { |
| status = "ok"; |
| }; |
| |
| &sdhc_1 { |
| vdd-supply = <&pm660_l19>; |
| qcom,vdd-voltage-level = <2960000 2960000>; |
| qcom,vdd-current-level = <0 570000>; |
| |
| vdd-io-supply = <&pm660_l8>; |
| qcom,vdd-io-always-on; |
| qcom,vdd-io-lpm-sup; |
| qcom,vdd-io-voltage-level = <1800000 1800000>; |
| qcom,vdd-io-current-level = <0 325000>; |
| |
| pinctrl-names = "active", "sleep"; |
| pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on &sdc1_rclk_on>; |
| pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off &sdc1_rclk_off>; |
| |
| status = "ok"; |
| }; |
| |
| &tlmm { |
| sdc2_cd_on: cd_on { |
| mux { |
| pins = "gpio116"; |
| function = "gpio"; |
| }; |
| |
| config { |
| pins = "gpio116"; |
| drive-strength = <2>; |
| bias-pull-up; |
| }; |
| }; |
| |
| sdc2_cd_off: cd_off { |
| mux { |
| pins = "gpio116"; |
| function = "gpio"; |
| }; |
| |
| config { |
| pins = "gpio116"; |
| drive-strength = <2>; |
| bias-disable; |
| }; |
| }; |
| |
| usb_det_default: usb_det_default { |
| usb_id_det_default: usb_id_det_default { |
| mux { |
| pins = "gpio131"; |
| function = "gpio"; |
| }; |
| config { |
| pins = "gpio131"; |
| drive-strength = <2>; |
| bias-pull-down; |
| output-enable; |
| }; |
| }; |
| usb_vbus_det_default: usb_vbus_det_default { |
| config { |
| pins = "gpio26"; |
| drive-strength = <2>; |
| bias-pull-up; |
| input-enable; |
| }; |
| }; |
| }; |
| }; |
| |
| &sdhc_2 { |
| /* VDD external regulator is enabled/disabled by pm660_l18 regulator */ |
| vdd-io-supply = <&pm660_l18>; |
| qcom,vdd-io-voltage-level = <1800000 2960000>; |
| qcom,vdd-io-current-level = <0 22000>; |
| |
| pinctrl-names = "active", "sleep"; |
| pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; |
| pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; |
| |
| cd-gpios = <&tlmm 116 0x1>; |
| |
| status = "ok"; |
| }; |
| |
| &soc { |
| extcon_usb1: extcon_usb1 { |
| compatible = "linux,extcon-usb-gpio"; |
| id-gpio = <&tlmm 26 0x1>; |
| trig-gpio = <&tlmm 131 0x0>; |
| gpio-names = "gpio131"; |
| |
| pinctrl-names = "default"; |
| pinctrl-0 = <&usb_vbus_det_default &usb_id_det_default>; |
| }; |
| }; |
| |
| &usb0 { |
| extcon = <&extcon_usb1>; |
| }; |
| |
| &msm_sdw_codec { |
| status = "disabled"; |
| }; |
| |
| &cdc_pdm_gpios { |
| status = "disabled"; |
| }; |
| |
| &cdc_comp_gpios { |
| status = "disabled"; |
| }; |
| |
| &cdc_dmic_gpios { |
| status = "disabled"; |
| }; |
| |
| &cdc_sdw_gpios { |
| status = "disabled"; |
| }; |
| |
| &wsa_spkr_en1 { |
| status = "disabled"; |
| }; |
| |
| &wsa_spkr_en2 { |
| status = "disabled"; |
| }; |
| |
| &qupv3_se8_spi { |
| status = "okay"; |
| }; |
| |
| &wcd9xxx_intc { |
| status = "okay"; |
| }; |
| |
| &wdsp_mgr { |
| status = "okay"; |
| }; |
| |
| &wdsp_glink { |
| status = "okay"; |
| }; |
| |
| &slim_aud { |
| status = "okay"; |
| }; |
| |
| &dai_slim { |
| status = "okay"; |
| }; |
| |
| &wcd934x_cdc { |
| status = "okay"; |
| }; |
| |
| &clock_audio_lnbb { |
| status = "okay"; |
| }; |
| |
| &tavil_snd { |
| status = "okay"; |
| compatible = "qcom,qcs605-asoc-snd-tavil"; |
| qcom,model = "qcs605-ipc-tavil-snd-card"; |
| qcom,audio-routing = |
| "AIF4 VI", "MCLK", |
| "RX_BIAS", "MCLK", |
| "MADINPUT", "MCLK", |
| "AMIC1", "MIC BIAS1", |
| "MIC BIAS1", "Handset Mic", |
| "AMIC2", "MIC BIAS2", |
| "MIC BIAS2", "Headset Mic", |
| "DMIC0", "MIC BIAS1", |
| "MIC BIAS1", "Digital Mic0", |
| "DMIC1", "MIC BIAS1", |
| "MIC BIAS1", "Digital Mic1", |
| "DMIC2", "MIC BIAS1", |
| "MIC BIAS1", "Digital Mic2", |
| "DMIC3", "MIC BIAS1", |
| "MIC BIAS1", "Digital Mic3", |
| "SpkrLeft IN", "SPK1 OUT"; |
| qcom,wsa-max-devs = <1>; |
| qcom,wsa-devs = <&wsa881x_0211>, <&wsa881x_0213>; |
| qcom,wsa-aux-dev-prefix = "SpkrLeft", "SpkrLeft"; |
| qcom,linein-det-swh = <1>; |
| qcom,lineout-det-swh = <1>; |
| qcom,linein-det-gpio = <&tlmm 124 0>; |
| qcom,lineout-det-gpio = <&tlmm 125 0>; |
| pinctrl-names = "default"; |
| pinctrl-0 = <&jack_det_linein_default |
| &jack_det_lineout_default>; |
| }; |
| |
| &soc { |
| wcd_rst_gpio1: msm_cdc_pinctrl@11 { |
| compatible = "qcom,msm-cdc-pinctrl"; |
| qcom,cdc-rst-n-gpio = <&tlmm 11 0>; |
| pinctrl-names = "aud_active", "aud_sleep"; |
| pinctrl-0 = <&cdc_reset_active>; |
| pinctrl-1 = <&cdc_reset_sleep>; |
| }; |
| }; |
| |
| &wcd934x_cdc { |
| /delete-property/ cdc-vdd-mic-bias-supply; |
| /delete-property/ qcom,cdc-static-supplies; |
| qcom,wcd-rst-gpio-node = <&wcd_rst_gpio1>; |
| }; |
| |
| &wcd9335 { |
| /delete-property/ cdc-vdd-mic-bias-supply; |
| }; |
| |
| &int_codec { |
| status = "disabled"; |
| }; |