diff --git a/Kbuild b/Kbuild index 2f34da17..53fab063 100644 --- a/Kbuild +++ b/Kbuild @@ -30,7 +30,8 @@ dtbo-y += sun-audio.dtbo \ sun-audio-hamilton-rcm.dtbo \ sun-audio-hamilton-cdp.dtbo \ sun-audio-hamilton-mtp-v2.dtbo \ - sun-audio-hamilton-mtp.dtbo + sun-audio-hamilton-mtp.dtbo \ + sun-audio-hamilton-mtp-3.5mm.dtbo endif always-y := $(dtb-y) $(dtbo-y) diff --git a/sun-audio-hamilton-mtp-3.5mm.dts b/sun-audio-hamilton-mtp-3.5mm.dts new file mode 100644 index 00000000..6f084758 --- /dev/null +++ b/sun-audio-hamilton-mtp-3.5mm.dts @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; +/plugin/; + +/*This is MTP with Hamilton + V8 + 3.5mm support*/ + +#include "sun-audio-hamilton-mtp-3.5mm.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Sun MTP Hamilton with 3.5mm"; + compatible = "qcom,sun-mtp", "qcom,sun", "qcom,sunp-mtp", "qcom,sunp", + "qcom,mtp"; + qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>, + <0x100026a 0x10000>, <0x100026a 0x20000>, + <0x100027f 0x10000>, <0x100027f 0x20000>; + qcom,board-id = <0x60108 0>; +}; + diff --git a/sun-audio-hamilton-mtp-3.5mm.dtsi b/sun-audio-hamilton-mtp-3.5mm.dtsi new file mode 100644 index 00000000..d1b51c57 --- /dev/null +++ b/sun-audio-hamilton-mtp-3.5mm.dtsi @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; +/plugin/; + +/*This is MTP with Hamilton + V8 +3.5mm*/ +#include "sun-audio-hamilton-mtp.dtsi" + +&sun_snd { + qcom,msm-mbhc-usbc-audio-supported = <0>; + qcom,msm-mbhc-hphl-swh = <1>; + qcom,msm-mbhc-gnd-swh = <1>; +};