Created
January 21, 2024 15:34
-
-
Save kaechele/5340c813daf618af05fccf63b2ec04b3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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. | |
*/ | |
/dts-v1/; | |
#include "apq8053-lite-dragon-v2.2.dtsi" | |
/ { | |
model = "Lenovo CD-18781Y"; | |
compatible = "lenovo,cd-18781y", "qcom,apq8053-lite-dragonboard", | |
"qcom,apq8053", "qcom,dragonboard"; | |
qcom,board-id = <0x01010520 0>; | |
}; | |
&soc { | |
gpio_keys { | |
compatible = "gpio-keys"; | |
input-name = "gpio-keys"; | |
pinctrl-names = "tlmm_gpio_key_active","tlmm_gpio_key_suspend"; | |
pinctrl-0 = <&gpio_key_active>; | |
pinctrl-1 = <&gpio_key_suspend>; | |
camera_switch { | |
label = "camera_switch"; | |
gpios = <&tlmm 87 GPIO_ACTIVE_LOW>; | |
linux,input-type = <EV_SW>; | |
linux,code = <SW_CAMERA_LENS_COVER>; | |
debounce-interval = <15>; | |
}; | |
mute { | |
label = "mute"; | |
gpios = <&tlmm 86 0GPIO_ACTIVE_LOW>; | |
linux,input-type = <EV_SW>; | |
linux,code = <SW_MUTE_DEVICE>; | |
debounce-interval = <15>; | |
}; | |
vol_up { | |
label = "volume_up"; | |
gpios = <&tlmm 85 GPIO_ACTIVE_LOW>; | |
linux,input-type = <EV_KEY>; | |
linux,code = <KEY_VOLUMEUP>; | |
debounce-interval = <15>; | |
}; | |
}; | |
tlmm { | |
/*add gpio for tas5782 */ | |
audio_enable_gpio68: audio_enable_gpio68 { | |
mux { | |
pins = "gpio68"; | |
function = "gpio"; | |
}; | |
config { | |
pins = "gpio68"; | |
bias-disable; /* No PULL */ | |
drive-strength = <8>; /* 8 MA */ | |
}; | |
}; | |
}; | |
}; | |
&blsp2_uart0 { | |
status = "okay"; | |
}; | |
&mdss_dsi0 { | |
qcom,dsi-pref-prim-pan = <&dsi_boyift8201_800p_video>; | |
}; | |
&i2c_1 { | |
tas5782m: tas5782m@49 { | |
compatible = "ti,tas5782m"; | |
reg = <0x49>; | |
//vio-supply = <&pm8953_l6>; | |
pinctrl-names = "audio_enable_default_gpio"; | |
pinctrl-0 = <&audio_enable_gpio68>; | |
qcom,audio_enable_gpio68 = <&tlmm 68 GPIO_ACTIVE_HIGH>; | |
}; | |
}; | |
&i2c_3 { | |
status = "okay"; | |
/delete-node/ gt9xx-i2c@14; | |
focaltech_ts@38 { | |
compatible = "focaltech,fts"; | |
reg = <0x38>; | |
interrupt-parent = <&tlmm>; | |
interrupts = <65 0x2>; | |
vdd-supply = <&pm8953_l10>; | |
avdd-supply = <&pm8953_l6>; | |
pinctrl-names = "pmx_ts_active","pmx_ts_suspend", | |
"pmx_ts_release"; | |
pinctrl-0 = <&ts_int_active &ts_reset_active>; | |
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; | |
pinctrl-2 = <&ts_release>; | |
focaltech,display-coords = <0 0 800 1280>; | |
focaltech,reset-gpio = <&tlmm 64 GPIO_ACTIVE_HIGH>; | |
focaltech,irq-gpio = <&tlmm 65 IRQ_TYPE_EDGE_FALLING>; | |
focaltech,max-touch-number = <5>; | |
report_type = <1>; | |
}; | |
}; | |
&int_codec { | |
qcom,msm-mbhc-hphl-swh = <1>; | |
}; | |
&qpnp_smbcharger { | |
qcom,charging-disabled; | |
}; | |
&sdc2_cd_on { | |
mux { | |
pins = "gpio77"; | |
}; | |
config { | |
pins = "gpio77"; | |
}; | |
}; | |
&sdc2_cd_off { | |
mux { | |
pins = "gpio77"; | |
}; | |
config { | |
pins = "gpio77"; | |
}; | |
}; | |
&pri_tlmm_lines_act { | |
mux { | |
pins = "gpio88", "gpio91", "gpio93"; | |
}; | |
config { | |
pins = "gpio88", "gpio91", "gpio93"; | |
}; | |
}; | |
&pri_tlmm_lines_sus { | |
mux { | |
pins = "gpio88", "gpio91", "gpio93"; | |
}; | |
config { | |
pins = "gpio88", "gpio91", "gpio93"; | |
}; | |
}; | |
&ext_codec { | |
reg = <0xc051000 0x4>, | |
<0xc051004 0x4>, | |
<0xc055000 0x4>, | |
<0xc056000 0x4>, | |
<0xc052000 0x4>; | |
reg-names = "csr_gp_io_mux_mic_ctl", | |
"csr_gp_io_mux_spkr_ctl", | |
"csr_gp_io_lpaif_pri_pcm_pri_mode_muxsel", | |
"csr_gp_io_lpaif_pri_pcm_sec_mode_muxsel", | |
"csr_gp_io_mux_quin_ctl"; | |
asoc-cpu = <&dai_pri_auxpcm>, <&dai_sec_auxpcm>, | |
<&dai_mi2s2>, <&dai_mi2s3>, <&dai_mi2s5>, | |
<&sb_0_rx>, <&sb_0_tx>, <&sb_1_rx>, <&sb_1_tx>, | |
<&sb_2_rx>, <&sb_2_tx>, <&sb_3_rx>, <&sb_3_tx>, | |
<&sb_4_rx>, <&sb_4_tx>, <&sb_5_tx>, | |
<&afe_pcm_rx>, <&afe_pcm_tx>, | |
<&afe_proxy_rx>, <&afe_proxy_tx>, | |
<&incall_record_rx>, <&incall_record_tx>, | |
<&incall_music_rx>, <&incall_music_2_rx>, | |
<&sb_5_rx>, <&bt_sco_rx>, <&bt_sco_tx>, | |
<&int_fm_rx>, <&int_fm_tx>, <&sb_6_rx>, | |
<&proxy_rx>, <&proxy_tx>; | |
asoc-cpu-names = "msm-dai-q6-auxpcm.1", "msm-dai-q6-auxpcm.2", | |
"msm-dai-q6-mi2s.2", "msm-dai-q6-mi2s.3", | |
"msm-dai-q6-mi2s.5", "msm-dai-q6-dev.16384", | |
"msm-dai-q6-dev.16385", "msm-dai-q6-dev.16386", | |
"msm-dai-q6-dev.16387", "msm-dai-q6-dev.16388", | |
"msm-dai-q6-dev.16389", "msm-dai-q6-dev.16390", | |
"msm-dai-q6-dev.16391", "msm-dai-q6-dev.16392", | |
"msm-dai-q6-dev.16393", "msm-dai-q6-dev.16395", | |
"msm-dai-q6-dev.224", "msm-dai-q6-dev.225", | |
"msm-dai-q6-dev.241", "msm-dai-q6-dev.240", | |
"msm-dai-q6-dev.32771", "msm-dai-q6-dev.32772", | |
"msm-dai-q6-dev.32773", "msm-dai-q6-dev.32770", | |
"msm-dai-q6-dev.16394", "msm-dai-q6-dev.12288", | |
"msm-dai-q6-dev.12289", "msm-dai-q6-dev.12292", | |
"msm-dai-q6-dev.12293", "msm-dai-q6-dev.16396", | |
"msm-dai-q6-dev.8194", "msm-dai-q6-dev.8195"; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment