From f1e2e0a548052f4e829959a6b9b98f1dfab01fb2 Mon Sep 17 00:00:00 2001 From: Nikita Travkin Date: Wed, 5 May 2021 17:58:34 +0500 Subject: [PATCH] arm64: dts: qcom: Add modem for gt510lte Signed-off-by: Nikita Travkin --- arch/arm64/boot/dts/qcom/Makefile | 2 +- .../dts/qcom/msm8916-samsung-gt5-common.dtsi | 25 ++++++++ .../qcom/msm8916-samsung-gt510lte-modem.dts | 61 +++++++++++++++++++ 3 files changed, 87 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/qcom/msm8916-samsung-gt510lte-modem.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index d223210e7e85e0..eeb3c30ff2fb59 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -25,7 +25,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-oppo-a51f.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-a3u-eur.dtb msm8916-samsung-a3u-eur-modem.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-a5u-eur.dtb msm8916-samsung-a5u-eur-modem.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-gprimeltecan.dtb -dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-gt510.dtb +dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-gt510.dtb msm8916-samsung-gt510lte-modem.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-gt58.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-j3ltespr.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-j5nlte.dtb diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-gt5-common.dtsi b/arch/arm64/boot/dts/qcom/msm8916-samsung-gt5-common.dtsi index 0f23ce5cd3a3aa..80e92f8db3d63a 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-gt5-common.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-gt5-common.dtsi @@ -24,6 +24,31 @@ reg = <0x0 0x85500000 0x0 0xb00000>; no-map; }; + + /delete-node/ wcnss@89300000; + /delete-node/ venus@89900000; + + mpss_mem: mpss@86800000 { + status = "disabled"; + reg = <0x0 0x86800000 0x0 0x5400000>; + no-map; + }; + + gps_mem: gps@8bc00000 { + status = "disabled"; + reg = <0x0 0x8bc00000 0x0 0x200000>; + no-map; + }; + + wcnss_mem: wcnss@8be00000 { + reg = <0x0 0x8be00000 0x0 0x600000>; + no-map; + }; + + venus_mem: venus@8c400000 { + reg = <0x0 0x8c400000 0x0 0x600000>; + no-map; + }; }; gpio-keys { diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-gt510lte-modem.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-gt510lte-modem.dts new file mode 100644 index 00000000000000..ccdb7590b8c670 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-gt510lte-modem.dts @@ -0,0 +1,61 @@ +// SPDX-License-Identifier: GPL-2.0-only + +#include "msm8916-samsung-gt510.dts" +#include "msm8916-modem.dtsi" + +/ { + model = "Samsung Galaxy Tab A 9.7 LTE (2015) (SM-T555)"; + compatible = "samsung,gt510lte", "samsung.gt510", "qcom,msm8916"; +}; + +&q6afedai { + dai@22 { + reg = ; + qcom,sd-lines = <1>; + }; +}; + +&sound { + /delete-node/ dai-link-primary; + /delete-node/ dai-link-tertiary; + /delete-node/ dai-link-quaternary; + + dai-link-primary-qdsp6 { + link-name = "Primary MI2S"; + cpu { + sound-dai = <&q6afedai PRIMARY_MI2S_RX>; + }; + platform { + sound-dai = <&q6routing>; + }; + codec { + sound-dai = <&lpass_codec 0>, <&wcd_codec 0>; + }; + }; + + dai-link-tertiary-qdsp6 { + link-name = "Tertiary MI2S"; + cpu { + sound-dai = <&q6afedai TERTIARY_MI2S_TX>; + }; + platform { + sound-dai = <&q6routing>; + }; + codec { + sound-dai = <&lpass_codec 1>, <&wcd_codec 1>; + }; + }; + + dai-link-quaternary-qdsp6 { + link-name = "Quaternary MI2S"; + cpu { + sound-dai = <&q6afedai QUATERNARY_MI2S_RX>; + }; + platform { + sound-dai = <&q6routing>; + }; + codec { + sound-dai = <&speaker_codec>; + }; + }; +};