From 2b4b16ef3c15be3f390e2fdd9245f71ed633f20d Mon Sep 17 00:00:00 2001 From: Ravi Kumar Bokka Date: Wed, 2 Oct 2024 03:42:49 +0530 Subject: [PATCH] eSE-devicetree: Added support for eSE on multiple tuna boards As eSE is present in multiple tuna boards, added the board and msm id's for all the revellant tuna boards. Change-Id: Ia04cab5be445331dbd8c79ea3e4edb7566bfd74e --- Kbuild | 11 +++++++++++ tuna-ese-cdp.dts | 18 ++++++++++++++++++ tuna-ese-common.dtsi | 15 +++++++++++++++ tuna-ese-mtp-kiwi-overlay.dts | 17 +++++++++++++++++ tuna-ese-mtp-qmp1000-overlay.dts | 17 +++++++++++++++++ tuna-ese-mtp.dts | 17 +++++++++++++++++ tuna-ese-oemvm-mtp-kiwi.dts | 15 +++++++++++++++ tuna-ese-oemvm-rcm-kiwi.dts | 15 +++++++++++++++ tuna-ese-qrd.dts | 17 +++++++++++++++++ tuna-ese-rcm-kiwi-overlay.dts | 17 +++++++++++++++++ 10 files changed, 159 insertions(+) create mode 100644 tuna-ese-cdp.dts create mode 100644 tuna-ese-common.dtsi create mode 100644 tuna-ese-mtp-kiwi-overlay.dts create mode 100644 tuna-ese-mtp-qmp1000-overlay.dts create mode 100644 tuna-ese-mtp.dts create mode 100644 tuna-ese-oemvm-mtp-kiwi.dts create mode 100644 tuna-ese-oemvm-rcm-kiwi.dts create mode 100644 tuna-ese-qrd.dts create mode 100644 tuna-ese-rcm-kiwi-overlay.dts diff --git a/Kbuild b/Kbuild index 048d86e4..cba6dc19 100644 --- a/Kbuild +++ b/Kbuild @@ -15,6 +15,17 @@ dtbo-y += sun-v2-ese-cdp.dtbo dtbo-y += sun-v2-ese-qrd.dtbo endif +ifeq ($(CONFIG_ARCH_TUNA),y) +dtbo-y += tuna-ese-cdp.dtbo +dtbo-y += tuna-ese-mtp.dtbo +dtbo-y += tuna-ese-qrd.dtbo +dtbo-y += tuna-ese-mtp-kiwi-overlay.dtbo +dtbo-y += tuna-ese-rcm-kiwi-overlay.dtbo +dtbo-y += tuna-ese-mtp-qmp1000-overlay.dtbo +dtbo-y += tuna-ese-oemvm-mtp-kiwi.dtbo +dtbo-y += tuna-ese-oemvm-rcm-kiwi.dtbo +endif + always-y := $(dtb-y) $(dtbo-y) subdir-y := $(dts-dirs) clean-files := *.dtb *.dtbo diff --git a/tuna-ese-cdp.dts b/tuna-ese-cdp.dts new file mode 100644 index 00000000..5a526396 --- /dev/null +++ b/tuna-ese-cdp.dts @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; +/plugin/; + +#include "tuna-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Tuna CDP"; + compatible = "qcom,tuna-cdp", "qcom,tuna", "qcom,tunap-cdp", "qcom,tunap", + "qcom,cdp"; + + qcom,msm-id = <681 0x10000>, <655 0x10000>; + qcom,board-id = <1 0>; +}; diff --git a/tuna-ese-common.dtsi b/tuna-ese-common.dtsi new file mode 100644 index 00000000..b62dfa44 --- /dev/null +++ b/tuna-ese-common.dtsi @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: BSD-3-Clause + +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +&soc { + st54spi_gpio { + status = "ok"; + compatible = "st,st54spi_gpio"; + /* gpio used as SE_nRESET */ + gpio-power_nreset = <&tlmm 111 0x00>; + }; +}; + diff --git a/tuna-ese-mtp-kiwi-overlay.dts b/tuna-ese-mtp-kiwi-overlay.dts new file mode 100644 index 00000000..5739bedf --- /dev/null +++ b/tuna-ese-mtp-kiwi-overlay.dts @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; +/plugin/; + +#include "tuna-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Tuna MTP + kiwi WLAN"; + compatible = "qcom,tuna-mtp", "qcom,tuna", "qcom,tunap-mtp", "qcom,tunap", + "qcom,mtp"; + qcom,msm-id = <681 0x10000>, <655 0x10000>; + qcom,board-id = <8 2>; +}; diff --git a/tuna-ese-mtp-qmp1000-overlay.dts b/tuna-ese-mtp-qmp1000-overlay.dts new file mode 100644 index 00000000..4c77d4a7 --- /dev/null +++ b/tuna-ese-mtp-qmp1000-overlay.dts @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; +/plugin/; + +#include "tuna-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Tuna MTP QMP1000"; + compatible = "qcom,tuna-mtp", "qcom,tuna", "qcom,tunap-mtp", "qcom,tunap", + "qcom,mtp"; + qcom,msm-id = <681 0x10000>, <655 0x10000>; + qcom,board-id = <8 1>; +}; diff --git a/tuna-ese-mtp.dts b/tuna-ese-mtp.dts new file mode 100644 index 00000000..846f1af9 --- /dev/null +++ b/tuna-ese-mtp.dts @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; +/plugin/; + +#include "tuna-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Tuna MTP"; + compatible = "qcom,tuna-mtp", "qcom,tuna", "qcom,tunap-mtp", "qcom,tunap", + "qcom,mtp"; + qcom,msm-id = <681 0x10000>, <655 0x10000>; + qcom,board-id = <8 0>; +}; diff --git a/tuna-ese-oemvm-mtp-kiwi.dts b/tuna-ese-oemvm-mtp-kiwi.dts new file mode 100644 index 00000000..bee3c533 --- /dev/null +++ b/tuna-ese-oemvm-mtp-kiwi.dts @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; + +#include "tuna-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Tuna OEMVM MTP + kiwi WLAN"; + compatible = "qcom,tuna-mtp", "qcom,tuna", "qcom,tunap-mtp", "qcom,tunap", + "qcom,mtp"; + qcom,board-id = <8 2>; +}; diff --git a/tuna-ese-oemvm-rcm-kiwi.dts b/tuna-ese-oemvm-rcm-kiwi.dts new file mode 100644 index 00000000..6e76a031 --- /dev/null +++ b/tuna-ese-oemvm-rcm-kiwi.dts @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; + +#include "tuna-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Tuna OEMVM RCM + kiwi WLAN"; + compatible = "qcom,tuna-rcm", "qcom,tuna", "qcom,tunap-rcm", "qcom,tunap", + "qcom,rcm"; + qcom,board-id = <21 1>; +}; diff --git a/tuna-ese-qrd.dts b/tuna-ese-qrd.dts new file mode 100644 index 00000000..a562ed96 --- /dev/null +++ b/tuna-ese-qrd.dts @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; +/plugin/; + +#include "tuna-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Tuna QRD"; + compatible = "qcom,tuna-qrd", "qcom,tuna", "qcom,tunap-qrd", "qcom,tunap", + "qcom,qrd"; + qcom,msm-id = <681 0x10000>, <655 0x10000>; + qcom,board-id = <11 0>; +}; diff --git a/tuna-ese-rcm-kiwi-overlay.dts b/tuna-ese-rcm-kiwi-overlay.dts new file mode 100644 index 00000000..afe90060 --- /dev/null +++ b/tuna-ese-rcm-kiwi-overlay.dts @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; +/plugin/; + +#include "tuna-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Tuna RCM + kiwi WLAN"; + compatible = "qcom,tuna-rcm", "qcom,tuna", "qcom,tunap-rcm", "qcom,tunap", + "qcom,rcm"; + qcom,msm-id = <681 0x10000>, <655 0x10000>; + qcom,board-id = <21 1>; +};