ARM: dts: msm: Add pinctrl for USB type-C analog audio on msm8998
Add pinctrl configuration in device tree to support USB type-C analog audio on msm8998 target. CRs-Fixed: 1102048 Change-Id: I8d531ecb8bf267ddcc1cd0702c62728dd6317118 Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
This commit is contained in:
parent
08a95e6878
commit
0e04c1f68d
2 changed files with 76 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2016, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2017, 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
|
||||
|
@ -216,6 +216,10 @@
|
|||
qcom,hph-en0-gpio = <&tavil_hph_en0>;
|
||||
qcom,hph-en1-gpio = <&tavil_hph_en1>;
|
||||
qcom,tavil-mclk-clk-freq = <9600000>;
|
||||
|
||||
qcom,usbc-analog-en1_gpio = <&wcd_usbc_analog_en1_gpio>;
|
||||
qcom,usbc-analog-en2_n_gpio = <&wcd_usbc_analog_en2n_gpio>;
|
||||
|
||||
asoc-platform = <&pcm0>, <&pcm1>, <&pcm2>, <&voip>, <&voice>,
|
||||
<&loopback>, <&compress>, <&hostless>,
|
||||
<&afe>, <&lsm>, <&routing>, <&cpe>, <&compr>,
|
||||
|
@ -304,6 +308,20 @@
|
|||
pinctrl-1 = <&wcd_gnd_mic_swap_idle>;
|
||||
};
|
||||
|
||||
wcd_usbc_analog_en1_gpio: msm_cdc_pinctrl@59 {
|
||||
compatible = "qcom,msm-cdc-pinctrl";
|
||||
pinctrl-names = "aud_active", "aud_sleep";
|
||||
pinctrl-0 = <&wcd_usbc_analog_en1_active>;
|
||||
pinctrl-1 = <&wcd_usbc_analog_en1_idle>;
|
||||
};
|
||||
|
||||
wcd_usbc_analog_en2n_gpio: msm_cdc_pinctrl@60 {
|
||||
compatible = "qcom,msm-cdc-pinctrl";
|
||||
pinctrl-names = "aud_active", "aud_sleep";
|
||||
pinctrl-0 = <&wcd_usbc_analog_en2n_active>;
|
||||
pinctrl-1 = <&wcd_usbc_analog_en2n_idle>;
|
||||
};
|
||||
|
||||
wcd9xxx_intc: wcd9xxx-irq {
|
||||
status = "ok";
|
||||
compatible = "qcom,wcd9xxx-irq";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2015-2017, 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
|
||||
|
@ -668,6 +668,62 @@
|
|||
};
|
||||
};
|
||||
|
||||
/* USB C analog configuration */
|
||||
wcd_usbc_analog_en1 {
|
||||
wcd_usbc_analog_en1_idle: wcd_usbc_ana_en1_idle {
|
||||
mux {
|
||||
pins = "gpio59";
|
||||
function = "gpio";
|
||||
};
|
||||
config {
|
||||
pins = "gpio59";
|
||||
drive-strength = <2>;
|
||||
bias-pull-down;
|
||||
output-low;
|
||||
};
|
||||
};
|
||||
|
||||
wcd_usbc_analog_en1_active: wcd_usbc_ana_en1_active {
|
||||
mux {
|
||||
pins = "gpio59";
|
||||
function = "gpio";
|
||||
};
|
||||
config {
|
||||
pins = "gpio59";
|
||||
drive-strength = <2>;
|
||||
bias-disable;
|
||||
output-high;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
wcd_usbc_analog_en2n {
|
||||
wcd_usbc_analog_en2n_idle: wcd_usbc_ana_en2n_idle {
|
||||
mux {
|
||||
pins = "gpio60";
|
||||
function = "gpio";
|
||||
};
|
||||
config {
|
||||
pins = "gpio60";
|
||||
drive-strength = <2>;
|
||||
bias-disable;
|
||||
output-high;
|
||||
};
|
||||
};
|
||||
|
||||
wcd_usbc_analog_en2n_active: wcd_usbc_ana_en2n_active {
|
||||
mux {
|
||||
pins = "gpio60";
|
||||
function = "gpio";
|
||||
};
|
||||
config {
|
||||
pins = "gpio60";
|
||||
drive-strength = <2>;
|
||||
bias-pull-down;
|
||||
output-low;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cdc_reset_ctrl {
|
||||
cdc_reset_sleep: cdc_reset_sleep {
|
||||
|
|
Loading…
Add table
Reference in a new issue