From 64388175e896a5ac99deec6d6f687d510bea4bc2 Mon Sep 17 00:00:00 2001 From: Gerrit SelfHelp Service Account Date: Fri, 5 Apr 2024 02:55:14 -0700 Subject: [PATCH 01/14] Initial empty repository From 43891e796ad515726792ecb05a4625ff98e84294 Mon Sep 17 00:00:00 2001 From: PRANAY BHARGAV BHAVARAJU Date: Fri, 12 Apr 2024 14:25:02 +0530 Subject: [PATCH 02/14] eSE_devicetree: Add initial version of OSS DT Added initial version of eSE_devicetree into OSS. Change-Id: If248f850b599cd0a276b402e8d6179d0cf9af5fe --- Kbuild | 12 ++++++++++++ Makefile | 9 +++++++++ sun-ese-cdp.dts | 13 +++++++++++++ sun-ese-common.dtsi | 9 +++++++++ sun-ese-mtp.dts | 13 +++++++++++++ sun-ese-qrd.dts | 13 +++++++++++++ sun-v2-ese-cdp.dts | 13 +++++++++++++ sun-v2-ese-common.dtsi | 8 ++++++++ sun-v2-ese-mtp.dts | 15 +++++++++++++++ sun-v2-ese-qrd.dts | 15 +++++++++++++++ 10 files changed, 120 insertions(+) create mode 100644 Kbuild create mode 100644 Makefile create mode 100644 sun-ese-cdp.dts create mode 100644 sun-ese-common.dtsi create mode 100644 sun-ese-mtp.dts create mode 100644 sun-ese-qrd.dts create mode 100644 sun-v2-ese-cdp.dts create mode 100644 sun-v2-ese-common.dtsi create mode 100644 sun-v2-ese-mtp.dts create mode 100644 sun-v2-ese-qrd.dts diff --git a/Kbuild b/Kbuild new file mode 100644 index 00000000..1a38e81b --- /dev/null +++ b/Kbuild @@ -0,0 +1,12 @@ +ifeq ($(CONFIG_ARCH_SUN),y) +dtbo-y += sun-ese-mtp.dtbo +dtbo-y += sun-ese-cdp.dtbo +dtbo-y += sun-ese-qrd.dtbo +dtbo-y += sun-v2-ese-mtp.dtbo +dtbo-y += sun-v2-ese-cdp.dtbo +dtbo-y += sun-v2-ese-qrd.dtbo +endif + +always-y := $(dtb-y) $(dtbo-y) +subdir-y := $(dts-dirs) +clean-files := *.dtb *.dtbo diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..b1e0dfe9 --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +KBUILD_OPTIONS+=KBUILD_EXTMOD_DTS=. + +all: dtbs + +clean: + $(MAKE) -C $(KERNEL_SRC) M=$(M) clean + +%: + $(MAKE) -C $(KERNEL_SRC) M=$(M) $@ $(KBUILD_OPTIONS) diff --git a/sun-ese-cdp.dts b/sun-ese-cdp.dts new file mode 100644 index 00000000..bdf06fd7 --- /dev/null +++ b/sun-ese-cdp.dts @@ -0,0 +1,13 @@ +/dts-v1/; +/plugin/; + +#include "sun-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Sun CDP"; + compatible = "qcom,sun-cdp", "qcom,sun", "qcom,cdp"; + qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>, + <0x100026a 0x10000>, <0x100026a 0x20000>, + <0x100027f 0x10000>, <0x100027f 0x20000>; + qcom,board-id = <0x1 0>, <0x20001 0>, <0x50001 0>; +}; diff --git a/sun-ese-common.dtsi b/sun-ese-common.dtsi new file mode 100644 index 00000000..d406e2eb --- /dev/null +++ b/sun-ese-common.dtsi @@ -0,0 +1,9 @@ +&soc { + st54spi_gpio { + status = "ok"; + compatible = "st,st54spi_gpio"; + /* gpio used as SE_nRESET */ + gpio-power_nreset = <&tlmm 46 0x00>; + }; +}; + diff --git a/sun-ese-mtp.dts b/sun-ese-mtp.dts new file mode 100644 index 00000000..7463c7dd --- /dev/null +++ b/sun-ese-mtp.dts @@ -0,0 +1,13 @@ +/dts-v1/; +/plugin/; + +#include "sun-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Sun MTP"; + compatible = "qcom,sun-mtp", "qcom,sun", "qcom,mtp"; + qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>, + <0x100026a 0x10000>, <0x100026a 0x20000>, + <0x100027f 0x10000>, <0x100027f 0x20000>; + qcom,board-id = <0x8 0>, <0x20008 0>, <0x40008 0>; +}; diff --git a/sun-ese-qrd.dts b/sun-ese-qrd.dts new file mode 100644 index 00000000..72c49a79 --- /dev/null +++ b/sun-ese-qrd.dts @@ -0,0 +1,13 @@ +/dts-v1/; +/plugin/; + +#include "sun-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Sun QRD"; + compatible = "qcom,sun-qrd", "qcom,sun", "qcom,qrd"; + qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>, + <0x100026a 0x10000>, <0x100026a 0x20000>, + <0x100027f 0x10000>, <0x100027f 0x20000>; + qcom,board-id = <0x1000B 0>, <0x2000B 0>, <0x3000B 0>; +}; diff --git a/sun-v2-ese-cdp.dts b/sun-v2-ese-cdp.dts new file mode 100644 index 00000000..b799b461 --- /dev/null +++ b/sun-v2-ese-cdp.dts @@ -0,0 +1,13 @@ +/dts-v1/; +/plugin/; + +#include "sun-v2-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Sun CDP"; + compatible = "qcom,sun-cdp", "qcom,sun", "qcom,cdp"; + //AS of now for V2 devices, we have mapped the msm-id and board id same as V1. + //We would update this once we receive the specs of V2 devices. + qcom,msm-id = <0x1000B 0>, <0x2000B 0>, <0x3000B 0>; + qcom,board-id = <0x1000B 0>, <0x2000B 0>, <0x3000B 0>; +}; diff --git a/sun-v2-ese-common.dtsi b/sun-v2-ese-common.dtsi new file mode 100644 index 00000000..d49a7a24 --- /dev/null +++ b/sun-v2-ese-common.dtsi @@ -0,0 +1,8 @@ +&soc { + st54spi_gpio { + status = "ok"; + compatible = "st,st54spi_gpio"; + /* gpio used as SE_nRESET */ + gpio-power_nreset = <&tlmm 46 0x00>; + }; +}; diff --git a/sun-v2-ese-mtp.dts b/sun-v2-ese-mtp.dts new file mode 100644 index 00000000..2567ebf3 --- /dev/null +++ b/sun-v2-ese-mtp.dts @@ -0,0 +1,15 @@ +/dts-v1/; +/plugin/; + +#include "sun-v2-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Sun MTP"; + compatible = "qcom, sun-mtp", "qcom,sun", "qcom,mtp"; + //AS of now for V2 devices, we have mapped the msm-id and board id same as V1. + //We would update this once we receive the specs of V2 devices. + qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>, + <0x100026a 0x10000>, <0x100026a 0x20000>, + <0x100027f 0x10000>, <0x100027f 0x20000>; + qcom,board-id = <0x8 0>, <0x20008 0>, <0x40008 0>; +}; diff --git a/sun-v2-ese-qrd.dts b/sun-v2-ese-qrd.dts new file mode 100644 index 00000000..ecc23128 --- /dev/null +++ b/sun-v2-ese-qrd.dts @@ -0,0 +1,15 @@ +/dts-v1/; +/plugin/; + +#include "sun-v2-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Sun QRD"; + compatible = "qcom,sun-qrd", "qcom,sun", "qcom,qrd"; + //AS of now for V2 devices, we have mapped the msm-id and board id same as V1. + //We would update this once we receive the specs of V2 devices. + qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>, + <0x100026a 0x10000>, <0x100026a 0x20000>, + <0x100027f 0x10000>, <0x100027f 0x20000>; + qcom,board-id = <0x1000B 0>, <0x2000B 0>, <0x3000B 0>; +}; From 6140057b567f099d56add4d52644ad793f531b89 Mon Sep 17 00:00:00 2001 From: PRANAY BHARGAV BHAVARAJU Date: Fri, 12 Apr 2024 20:01:10 +0530 Subject: [PATCH 03/14] eSE-devicetree: Updated copyright markings Added copyright marking to all the files in the directory. Change-Id: Iad93cb9e1bc43cab783e8c11d9c171b679dfa518 --- sun-ese-cdp.dts | 6 ++++++ sun-ese-common.dtsi | 6 ++++++ sun-ese-mtp.dts | 6 ++++++ sun-ese-qrd.dts | 6 ++++++ sun-v2-ese-cdp.dts | 6 ++++++ sun-v2-ese-common.dtsi | 6 ++++++ sun-v2-ese-mtp.dts | 6 ++++++ sun-v2-ese-qrd.dts | 6 ++++++ 8 files changed, 48 insertions(+) diff --git a/sun-ese-cdp.dts b/sun-ese-cdp.dts index bdf06fd7..4d4fe24e 100644 --- a/sun-ese-cdp.dts +++ b/sun-ese-cdp.dts @@ -1,3 +1,9 @@ +// SPDX-License-Identifier: BSD-3-Clause + +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + /dts-v1/; /plugin/; diff --git a/sun-ese-common.dtsi b/sun-ese-common.dtsi index d406e2eb..c39cb9a8 100644 --- a/sun-ese-common.dtsi +++ b/sun-ese-common.dtsi @@ -1,3 +1,9 @@ +// SPDX-License-Identifier: BSD-3-Clause + +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + &soc { st54spi_gpio { status = "ok"; diff --git a/sun-ese-mtp.dts b/sun-ese-mtp.dts index 7463c7dd..8e7f74a0 100644 --- a/sun-ese-mtp.dts +++ b/sun-ese-mtp.dts @@ -1,3 +1,9 @@ +// SPDX-License-Identifier: BSD-3-Clause + +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + /dts-v1/; /plugin/; diff --git a/sun-ese-qrd.dts b/sun-ese-qrd.dts index 72c49a79..35d82d9e 100644 --- a/sun-ese-qrd.dts +++ b/sun-ese-qrd.dts @@ -1,3 +1,9 @@ +// SPDX-License-Identifier: BSD-3-Clause + +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + /dts-v1/; /plugin/; diff --git a/sun-v2-ese-cdp.dts b/sun-v2-ese-cdp.dts index b799b461..4dcbb6fc 100644 --- a/sun-v2-ese-cdp.dts +++ b/sun-v2-ese-cdp.dts @@ -1,3 +1,9 @@ +// SPDX-License-Identifier: BSD-3-Clause + +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + /dts-v1/; /plugin/; diff --git a/sun-v2-ese-common.dtsi b/sun-v2-ese-common.dtsi index d49a7a24..c25466e3 100644 --- a/sun-v2-ese-common.dtsi +++ b/sun-v2-ese-common.dtsi @@ -1,3 +1,9 @@ +// SPDX-License-Identifier: BSD-3-Clause + +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + &soc { st54spi_gpio { status = "ok"; diff --git a/sun-v2-ese-mtp.dts b/sun-v2-ese-mtp.dts index 2567ebf3..8628c91c 100644 --- a/sun-v2-ese-mtp.dts +++ b/sun-v2-ese-mtp.dts @@ -1,3 +1,9 @@ +// SPDX-License-Identifier: BSD-3-Clause + +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + /dts-v1/; /plugin/; diff --git a/sun-v2-ese-qrd.dts b/sun-v2-ese-qrd.dts index ecc23128..19737980 100644 --- a/sun-v2-ese-qrd.dts +++ b/sun-v2-ese-qrd.dts @@ -1,3 +1,9 @@ +// SPDX-License-Identifier: BSD-3-Clause + +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + /dts-v1/; /plugin/; From 66028fb4f6a3c0dd3236bfcafcdebca2d53d8588 Mon Sep 17 00:00:00 2001 From: PRANAY BHARGAV BHAVARAJU Date: Thu, 6 Jun 2024 10:12:08 +0530 Subject: [PATCH 04/14] eSE-devicetree: Added support for eSE on multiple boards As eSE is present in multiple boards, added the board and msm id's for all the revellant boards. Change-Id: Iac8c898c447059eaca4229fac65472b48e653584 --- Kbuild | 7 +++++++ sun-ese-atp.dts | 19 +++++++++++++++++++ sun-ese-mtp-kiwi-v8.dts | 18 ++++++++++++++++++ sun-ese-mtp.dts | 2 +- sun-ese-qrd-sku1-v8.dts | 18 ++++++++++++++++++ sun-ese-qrd-sku1.dts | 18 ++++++++++++++++++ sun-ese-qrd-sku2-v8.dts | 19 +++++++++++++++++++ sun-ese-rcm-v8.dts | 17 +++++++++++++++++ sun-ese-rcm.dts | 17 +++++++++++++++++ 9 files changed, 134 insertions(+), 1 deletion(-) create mode 100644 sun-ese-atp.dts create mode 100644 sun-ese-mtp-kiwi-v8.dts create mode 100644 sun-ese-qrd-sku1-v8.dts create mode 100644 sun-ese-qrd-sku1.dts create mode 100644 sun-ese-qrd-sku2-v8.dts create mode 100644 sun-ese-rcm-v8.dts create mode 100644 sun-ese-rcm.dts diff --git a/Kbuild b/Kbuild index 1a38e81b..41a345ae 100644 --- a/Kbuild +++ b/Kbuild @@ -1,5 +1,12 @@ ifeq ($(CONFIG_ARCH_SUN),y) dtbo-y += sun-ese-mtp.dtbo +dtbo-y += sun-ese-rcm-v8.dtbo +dtbo-y += sun-ese-rcm.dtbo +dtbo-y += sun-ese-mtp-kiwi-v8.dtbo +dtbo-y += sun-ese-atp.dtbo +dtbo-y += sun-ese-qrd-sku1.dtbo +dtbo-y += sun-ese-qrd-sku1-v8.dtbo +dtbo-y += sun-ese-qrd-sku2-v8.dtbo dtbo-y += sun-ese-cdp.dtbo dtbo-y += sun-ese-qrd.dtbo dtbo-y += sun-v2-ese-mtp.dtbo diff --git a/sun-ese-atp.dts b/sun-ese-atp.dts new file mode 100644 index 00000000..a36c1ddc --- /dev/null +++ b/sun-ese-atp.dts @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: BSD-3-Clause + +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; +/plugin/; + +#include "sun-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Sun ATP"; + compatible = "qcom,sun-atp", "qcom,sun", "qcom,sunp-atp", "qcom,sunp", + "qcom,atp"; + qcom,msm-id = <618 0x10000>, <618 0x20000>, + <0x100026a 0x10000>, <0x100026a 0x20000>; + qcom,board-id = <0x10021 0>; +}; diff --git a/sun-ese-mtp-kiwi-v8.dts b/sun-ese-mtp-kiwi-v8.dts new file mode 100644 index 00000000..bfa091eb --- /dev/null +++ b/sun-ese-mtp-kiwi-v8.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 "sun-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Sun MTP Kiwi WLAN V8 Power Grid"; + compatible = "qcom,sun-mtp", "qcom,sun", "qcom,sunp-mtp", "qcom,sunp", + "qcom,mtp"; + qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>; + qcom,board-id = <0x50008 0>; +}; diff --git a/sun-ese-mtp.dts b/sun-ese-mtp.dts index 8e7f74a0..58ecf3c7 100644 --- a/sun-ese-mtp.dts +++ b/sun-ese-mtp.dts @@ -15,5 +15,5 @@ qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>, <0x100026a 0x10000>, <0x100026a 0x20000>, <0x100027f 0x10000>, <0x100027f 0x20000>; - qcom,board-id = <0x8 0>, <0x20008 0>, <0x40008 0>; + qcom,board-id = <0x8 0>, <0x20008 0>, <0x40008 0>, <0x50008 0>; }; diff --git a/sun-ese-qrd-sku1-v8.dts b/sun-ese-qrd-sku1-v8.dts new file mode 100644 index 00000000..3e164a53 --- /dev/null +++ b/sun-ese-qrd-sku1-v8.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 "sun-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Sun QRD SKU1 V8 Power Grid"; + compatible = "qcom,sun-qrd", "qcom,sun", "qcom,sunp-qrd", "qcom,sunp", "qcom,qrd"; + qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>, + <0x100026a 0x10000>, <0x100026a 0x20000>; + qcom,board-id = <0x3000B 0>; +}; diff --git a/sun-ese-qrd-sku1.dts b/sun-ese-qrd-sku1.dts new file mode 100644 index 00000000..f316c688 --- /dev/null +++ b/sun-ese-qrd-sku1.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 "sun-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Sun QRD SKU1"; + compatible = "qcom,sun-qrd", "qcom,sun", "qcom,sunp-qrd", "qcom,sunp", "qcom,qrd"; + qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>, + <0x100026a 0x10000>, <0x100026a 0x20000>; + qcom,board-id = <0x1000B 0>; +}; diff --git a/sun-ese-qrd-sku2-v8.dts b/sun-ese-qrd-sku2-v8.dts new file mode 100644 index 00000000..159fc97d --- /dev/null +++ b/sun-ese-qrd-sku2-v8.dts @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: BSD-3-Clause + +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; +/plugin/; + +#include "sun-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Sun QRD SKU2 V8 Power Grid"; + compatible = "qcom,sun-qrd", "qcom,sun", "qcom,sunp-qrd", "qcom,sunp","qcom,qrd"; + qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>, + <0x100026a 0x10000>, <0x100026a 0x20000>, + <0x100027f 0x10000>, <0x100027f 0x20000>; + qcom,board-id = <0x2000B 0>; +}; diff --git a/sun-ese-rcm-v8.dts b/sun-ese-rcm-v8.dts new file mode 100644 index 00000000..7f7eda2a --- /dev/null +++ b/sun-ese-rcm-v8.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 "sun-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Sun RCM V8 Power Grid"; + compatible = "qcom,sun-rcm", "qcom,sun", "qcom,sunp-rcm", "qcom,sunp", "qcom,rcm"; + qcom,msm-id = <618 0x10000>, <618 0x20000>, <0x100026a 0x10000>,<0x100026a 0x20000>; + qcom,board-id = <0x30015 0>; +}; diff --git a/sun-ese-rcm.dts b/sun-ese-rcm.dts new file mode 100644 index 00000000..4927d5f2 --- /dev/null +++ b/sun-ese-rcm.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 "sun-ese-common.dtsi" +/ { + model = "Qualcomm Technologies, Inc. Sun RCM"; + compatible = "qcom,sun-rcm", "qcom,sun", "qcom,sunp", "qcom,rcm"; + qcom,msm-id = <618 0x10000>, <618 0x20000>, + <0x100026a 0x10000>, <0x100026a 0x20000>; + qcom,board-id = <0x15 0>; +}; From 4a7f36c23783b3aa2331fb6ec899debd7d5783d7 Mon Sep 17 00:00:00 2001 From: PRANAY BHARGAV BHAVARAJU Date: Wed, 19 Jun 2024 11:31:25 +0530 Subject: [PATCH 05/14] eSE-devicetree: Added support for eSE on cdp kiwi board As eSE is present in CDP boards, added the board and msm id's for all the relevant boards. Change-Id: I53da774b982a9c0ec18c0a89e9160d0484a80d17 --- Kbuild | 1 + sun-ese-cdp-kiwi-v8.dts | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 sun-ese-cdp-kiwi-v8.dts diff --git a/Kbuild b/Kbuild index 41a345ae..048d86e4 100644 --- a/Kbuild +++ b/Kbuild @@ -3,6 +3,7 @@ dtbo-y += sun-ese-mtp.dtbo dtbo-y += sun-ese-rcm-v8.dtbo dtbo-y += sun-ese-rcm.dtbo dtbo-y += sun-ese-mtp-kiwi-v8.dtbo +dtbo-y += sun-ese-cdp-kiwi-v8.dtbo dtbo-y += sun-ese-atp.dtbo dtbo-y += sun-ese-qrd-sku1.dtbo dtbo-y += sun-ese-qrd-sku1-v8.dtbo diff --git a/sun-ese-cdp-kiwi-v8.dts b/sun-ese-cdp-kiwi-v8.dts new file mode 100644 index 00000000..eb742353 --- /dev/null +++ b/sun-ese-cdp-kiwi-v8.dts @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: BSD-3-Clause + +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; +/plugin/; + +#include "sun-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Sun CDP Kiwi WLAN V8 Power Grid"; + compatible = "qcom,sun-cdp", "qcom,sun", "qcom,sunp-cdp", "qcom,sunp", "qcom,cdp"; + qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>, + <0x100026a 0x10000>, <0x100026a 0x20000>, + <0x100027f 0x10000>, <0x100027f 0x20000>; + qcom,board-id = <0x60001 0>; +}; From e8f520d63beddd2cafdb75b9e3881055edbe6e2c Mon Sep 17 00:00:00 2001 From: PRANAY BHARGAV BHAVARAJU Date: Wed, 19 Jun 2024 11:31:25 +0530 Subject: [PATCH 06/14] eSE-devicetree: Added support for eSE on cdp kiwi board As eSE is present in CDP boards, added the board and msm id's for all the relevant boards. Change-Id: I53da774b982a9c0ec18c0a89e9160d0484a80d17 (cherry picked from commit 4a7f36c23783b3aa2331fb6ec899debd7d5783d7) --- Kbuild | 1 + sun-ese-cdp-kiwi-v8.dts | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 sun-ese-cdp-kiwi-v8.dts diff --git a/Kbuild b/Kbuild index 41a345ae..048d86e4 100644 --- a/Kbuild +++ b/Kbuild @@ -3,6 +3,7 @@ dtbo-y += sun-ese-mtp.dtbo dtbo-y += sun-ese-rcm-v8.dtbo dtbo-y += sun-ese-rcm.dtbo dtbo-y += sun-ese-mtp-kiwi-v8.dtbo +dtbo-y += sun-ese-cdp-kiwi-v8.dtbo dtbo-y += sun-ese-atp.dtbo dtbo-y += sun-ese-qrd-sku1.dtbo dtbo-y += sun-ese-qrd-sku1-v8.dtbo diff --git a/sun-ese-cdp-kiwi-v8.dts b/sun-ese-cdp-kiwi-v8.dts new file mode 100644 index 00000000..eb742353 --- /dev/null +++ b/sun-ese-cdp-kiwi-v8.dts @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: BSD-3-Clause + +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; +/plugin/; + +#include "sun-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Sun CDP Kiwi WLAN V8 Power Grid"; + compatible = "qcom,sun-cdp", "qcom,sun", "qcom,sunp-cdp", "qcom,sunp", "qcom,cdp"; + qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>, + <0x100026a 0x10000>, <0x100026a 0x20000>, + <0x100027f 0x10000>, <0x100027f 0x20000>; + qcom,board-id = <0x60001 0>; +}; From 030bb37e7cdaed01d77c2afaf5ddb0375d519498 Mon Sep 17 00:00:00 2001 From: Linux Image Build Automation Date: Wed, 3 Jul 2024 13:44:05 -0700 Subject: [PATCH 07/14] Revert "eSE-devicetree: Added support for eSE on cdp kiwi board" This reverts commit e8f520d63beddd2cafdb75b9e3881055edbe6e2c. Change-Id: If2a8aabe4561c20c1faf042925a1d40eb308e308 --- Kbuild | 1 - sun-ese-cdp-kiwi-v8.dts | 19 ------------------- 2 files changed, 20 deletions(-) delete mode 100644 sun-ese-cdp-kiwi-v8.dts diff --git a/Kbuild b/Kbuild index 048d86e4..41a345ae 100644 --- a/Kbuild +++ b/Kbuild @@ -3,7 +3,6 @@ dtbo-y += sun-ese-mtp.dtbo dtbo-y += sun-ese-rcm-v8.dtbo dtbo-y += sun-ese-rcm.dtbo dtbo-y += sun-ese-mtp-kiwi-v8.dtbo -dtbo-y += sun-ese-cdp-kiwi-v8.dtbo dtbo-y += sun-ese-atp.dtbo dtbo-y += sun-ese-qrd-sku1.dtbo dtbo-y += sun-ese-qrd-sku1-v8.dtbo diff --git a/sun-ese-cdp-kiwi-v8.dts b/sun-ese-cdp-kiwi-v8.dts deleted file mode 100644 index eb742353..00000000 --- a/sun-ese-cdp-kiwi-v8.dts +++ /dev/null @@ -1,19 +0,0 @@ -// SPDX-License-Identifier: BSD-3-Clause - -/* - * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. - */ - -/dts-v1/; -/plugin/; - -#include "sun-ese-common.dtsi" - -/ { - model = "Qualcomm Technologies, Inc. Sun CDP Kiwi WLAN V8 Power Grid"; - compatible = "qcom,sun-cdp", "qcom,sun", "qcom,sunp-cdp", "qcom,sunp", "qcom,cdp"; - qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>, - <0x100026a 0x10000>, <0x100026a 0x20000>, - <0x100027f 0x10000>, <0x100027f 0x20000>; - qcom,board-id = <0x60001 0>; -}; From 2b4b16ef3c15be3f390e2fdd9245f71ed633f20d Mon Sep 17 00:00:00 2001 From: Ravi Kumar Bokka Date: Wed, 2 Oct 2024 03:42:49 +0530 Subject: [PATCH 08/14] 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>; +}; From 17b4ed6452ab502e097430d70425191457fbe953 Mon Sep 17 00:00:00 2001 From: Ravi Kumar Bokka Date: Tue, 12 Nov 2024 16:59:09 +0530 Subject: [PATCH 09/14] eSE-devicetree: Added support for eSE on multiple kera boards As eSE is present in multiple kera boards, added the board and msm id's for all the revellant kera boards. Change-Id: I9f3e75c4c5570c1471a77f5c38226bd3bc6867c8 --- Kbuild | 25 +++++++++++++++++++++++++ kera-ese-atp.dts | 18 ++++++++++++++++++ kera-ese-cdp-qca6750-ufs2.dts | 18 ++++++++++++++++++ kera-ese-cdp-qca6750-ufs3.dts | 18 ++++++++++++++++++ kera-ese-cdp-qca6750-ufs4.dts | 18 ++++++++++++++++++ kera-ese-cdp.dts | 18 ++++++++++++++++++ kera-ese-common.dtsi | 13 +++++++++++++ kera-ese-mtp-qca6750-qmp1000.dts | 17 +++++++++++++++++ kera-ese-mtp-qca6750.dts | 17 +++++++++++++++++ kera-ese-mtp-wcn7750-qmp1000.dts | 17 +++++++++++++++++ kera-ese-mtp-wcn7750-ufs3.dts | 17 +++++++++++++++++ kera-ese-mtp-wcn7750-ufs4.dts | 18 ++++++++++++++++++ kera-ese-mtp.dts | 17 +++++++++++++++++ kera-ese-oemvm-mtp.dts | 16 ++++++++++++++++ kera-ese-oemvm-rcm.dts | 16 ++++++++++++++++ kera-ese-qrd-wcn7750-ufs2.dts | 17 +++++++++++++++++ kera-ese-qrd-wcn7750-ufs3.dts | 17 +++++++++++++++++ kera-ese-qrd.dts | 17 +++++++++++++++++ kera-ese-rcm-qca6750-ufs2.dts | 17 +++++++++++++++++ kera-ese-rcm-qca6750-ufs3.dts | 17 +++++++++++++++++ kera-ese-rcm-wcn7750-ufs2.dts | 17 +++++++++++++++++ kera-ese-rcm-wcn7750-ufs3.dts | 17 +++++++++++++++++ kera-ese-rcm-wcn7750-ufs4.dts | 17 +++++++++++++++++ kera-ese-rcm.dts | 17 +++++++++++++++++ 24 files changed, 416 insertions(+) create mode 100644 kera-ese-atp.dts create mode 100644 kera-ese-cdp-qca6750-ufs2.dts create mode 100644 kera-ese-cdp-qca6750-ufs3.dts create mode 100644 kera-ese-cdp-qca6750-ufs4.dts create mode 100644 kera-ese-cdp.dts create mode 100644 kera-ese-common.dtsi create mode 100644 kera-ese-mtp-qca6750-qmp1000.dts create mode 100644 kera-ese-mtp-qca6750.dts create mode 100644 kera-ese-mtp-wcn7750-qmp1000.dts create mode 100644 kera-ese-mtp-wcn7750-ufs3.dts create mode 100644 kera-ese-mtp-wcn7750-ufs4.dts create mode 100644 kera-ese-mtp.dts create mode 100644 kera-ese-oemvm-mtp.dts create mode 100644 kera-ese-oemvm-rcm.dts create mode 100644 kera-ese-qrd-wcn7750-ufs2.dts create mode 100644 kera-ese-qrd-wcn7750-ufs3.dts create mode 100644 kera-ese-qrd.dts create mode 100644 kera-ese-rcm-qca6750-ufs2.dts create mode 100644 kera-ese-rcm-qca6750-ufs3.dts create mode 100644 kera-ese-rcm-wcn7750-ufs2.dts create mode 100644 kera-ese-rcm-wcn7750-ufs3.dts create mode 100644 kera-ese-rcm-wcn7750-ufs4.dts create mode 100644 kera-ese-rcm.dts diff --git a/Kbuild b/Kbuild index cba6dc19..351dfbea 100644 --- a/Kbuild +++ b/Kbuild @@ -26,6 +26,31 @@ dtbo-y += tuna-ese-oemvm-mtp-kiwi.dtbo dtbo-y += tuna-ese-oemvm-rcm-kiwi.dtbo endif +ifeq ($(CONFIG_ARCH_KERA),y) +dtbo-y += kera-ese-atp.dtbo +dtbo-y += kera-ese-cdp-qca6750-ufs2.dtbo +dtbo-y += kera-ese-cdp-qca6750-ufs3.dtbo +dtbo-y += kera-ese-cdp-qca6750-ufs4.dtbo +dtbo-y += kera-ese-cdp.dtbo +dtbo-y += kera-ese-mtp-qca6750-qmp1000.dtbo +dtbo-y += kera-ese-mtp-qca6750.dtbo +dtbo-y += kera-ese-mtp-wcn7750-qmp1000.dtbo +dtbo-y += kera-ese-mtp-wcn7750-ufs3.dtbo +dtbo-y += kera-ese-mtp-wcn7750-ufs4.dtbo +dtbo-y += kera-ese-mtp.dtbo +dtbo-y += kera-ese-oemvm-mtp.dtbo +dtbo-y += kera-ese-oemvm-rcm.dtbo +dtbo-y += kera-ese-qrd-wcn7750-ufs2.dtbo +dtbo-y += kera-ese-qrd-wcn7750-ufs3.dtbo +dtbo-y += kera-ese-qrd.dtbo +dtbo-y += kera-ese-rcm-qca6750-ufs2.dtbo +dtbo-y += kera-ese-rcm-qca6750-ufs3.dtbo +dtbo-y += kera-ese-rcm-wcn7750-ufs2.dtbo +dtbo-y += kera-ese-rcm-wcn7750-ufs3.dtbo +dtbo-y += kera-ese-rcm-wcn7750-ufs4.dtbo +dtbo-y += kera-ese-rcm.dtbo +endif + always-y := $(dtb-y) $(dtbo-y) subdir-y := $(dts-dirs) clean-files := *.dtb *.dtbo diff --git a/kera-ese-atp.dts b/kera-ese-atp.dts new file mode 100644 index 00000000..3b10660b --- /dev/null +++ b/kera-ese-atp.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 "kera-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Kera ATP"; + compatible = "qcom,kera-atp", "qcom,kera", "qcom,kerap-atp", "qcom,kerap", + "qcom,atp"; + + qcom,msm-id = <686 0x10000>, <659 0x10000>; + qcom,board-id = <33 0>; +}; diff --git a/kera-ese-cdp-qca6750-ufs2.dts b/kera-ese-cdp-qca6750-ufs2.dts new file mode 100644 index 00000000..901d3649 --- /dev/null +++ b/kera-ese-cdp-qca6750-ufs2.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 "kera-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Kera CDP + QCA6750 + UFS2.0"; + compatible = "qcom,kera-cdp", "qcom,kera", "qcom,kerap-cdp", "qcom,kerap", + "qcom,cdp"; + + qcom,msm-id = <686 0x10000>, <659 0x10000>; + qcom,board-id = <0x30001 0>; +}; diff --git a/kera-ese-cdp-qca6750-ufs3.dts b/kera-ese-cdp-qca6750-ufs3.dts new file mode 100644 index 00000000..3b46b570 --- /dev/null +++ b/kera-ese-cdp-qca6750-ufs3.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 "kera-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Kera CDP + QCA6750 + UFS3.0"; + compatible = "qcom,kera-cdp", "qcom,kera", "qcom,kerap-cdp", "qcom,kerap", + "qcom,cdp"; + + qcom,msm-id = <686 0x10000>, <659 0x10000>; + qcom,board-id = <0x20001 0>; +}; diff --git a/kera-ese-cdp-qca6750-ufs4.dts b/kera-ese-cdp-qca6750-ufs4.dts new file mode 100644 index 00000000..a97cdd99 --- /dev/null +++ b/kera-ese-cdp-qca6750-ufs4.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 "kera-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Kera CDP + QCA6750 + UFS4.0"; + compatible = "qcom,kera-cdp", "qcom,kera", "qcom,kerap-cdp", "qcom,kerap", + "qcom,cdp"; + + qcom,msm-id = <686 0x10000>, <659 0x10000>; + qcom,board-id = <0x40001 0>; +}; diff --git a/kera-ese-cdp.dts b/kera-ese-cdp.dts new file mode 100644 index 00000000..9e4d8148 --- /dev/null +++ b/kera-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 "kera-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Kera CDP"; + compatible = "qcom,kera-cdp", "qcom,kera", "qcom,kerap-cdp", "qcom,kerap", + "qcom,cdp"; + + qcom,msm-id = <686 0x10000>, <659 0x10000>; + qcom,board-id = <0x10001 0>; +}; diff --git a/kera-ese-common.dtsi b/kera-ese-common.dtsi new file mode 100644 index 00000000..d4a12e52 --- /dev/null +++ b/kera-ese-common.dtsi @@ -0,0 +1,13 @@ +// 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 117 0x00>; + }; +}; diff --git a/kera-ese-mtp-qca6750-qmp1000.dts b/kera-ese-mtp-qca6750-qmp1000.dts new file mode 100644 index 00000000..c793ef42 --- /dev/null +++ b/kera-ese-mtp-qca6750-qmp1000.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 "kera-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Kera MTP + QCA6750 + QMP1000"; + compatible = "qcom,kera-mtp", "qcom,kera", "qcom,kerap-mtp", "qcom,kerap", + "qcom,mtp"; + qcom,msm-id = <686 0x10000>, <659 0x10000>; + qcom,board-id = <0x30008 0>; +}; diff --git a/kera-ese-mtp-qca6750.dts b/kera-ese-mtp-qca6750.dts new file mode 100644 index 00000000..3fc83680 --- /dev/null +++ b/kera-ese-mtp-qca6750.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 "kera-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Kera MTP + QCA6750"; + compatible = "qcom,kera-mtp", "qcom,kera", "qcom,kerap-mtp", "qcom,kerap", + "qcom,mtp"; + qcom,msm-id = <686 0x10000>, <659 0x10000>; + qcom,board-id = <0x20008 0>; +}; diff --git a/kera-ese-mtp-wcn7750-qmp1000.dts b/kera-ese-mtp-wcn7750-qmp1000.dts new file mode 100644 index 00000000..066003f5 --- /dev/null +++ b/kera-ese-mtp-wcn7750-qmp1000.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 "kera-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Kera MTP + WCN7750 + QMP1000"; + compatible = "qcom,kera-mtp", "qcom,kera", "qcom,kerap-mtp", "qcom,kerap", + "qcom,mtp"; + qcom,msm-id = <686 0x10000>, <659 0x10000>; + qcom,board-id = <0x30008 1>; +}; diff --git a/kera-ese-mtp-wcn7750-ufs3.dts b/kera-ese-mtp-wcn7750-ufs3.dts new file mode 100644 index 00000000..388a55f2 --- /dev/null +++ b/kera-ese-mtp-wcn7750-ufs3.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 "kera-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Kera MTP + WCN7750 + UFS3.0"; + compatible = "qcom,kera-mtp", "qcom,kera", "qcom,kerap-mtp", "qcom,kerap", + "qcom,mtp"; + qcom,msm-id = <686 0x10000>, <659 0x10000>; + qcom,board-id = <0x20008 1>; +}; diff --git a/kera-ese-mtp-wcn7750-ufs4.dts b/kera-ese-mtp-wcn7750-ufs4.dts new file mode 100644 index 00000000..7187b717 --- /dev/null +++ b/kera-ese-mtp-wcn7750-ufs4.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 "kera-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Kera MTP + WCN7750 + UFS4.0"; + compatible = "qcom,kera-mtp", "qcom,kera", "qcom,kerap-mtp", "qcom,kerap", + "qcom,mtp"; + qcom,msm-id = <686 0x10000>, <659 0x10000>; + qcom,board-id = <0x10008 1>; +}; + diff --git a/kera-ese-mtp.dts b/kera-ese-mtp.dts new file mode 100644 index 00000000..97474ba2 --- /dev/null +++ b/kera-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 "kera-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Kera MTP"; + compatible = "qcom,kera-mtp", "qcom,kera", "qcom,kerap-mtp", "qcom,kerap", + "qcom,mtp"; + qcom,msm-id = <686 0x10000>, <659 0x10000>; + qcom,board-id = <0x10008 0>; +}; diff --git a/kera-ese-oemvm-mtp.dts b/kera-ese-oemvm-mtp.dts new file mode 100644 index 00000000..b090e369 --- /dev/null +++ b/kera-ese-oemvm-mtp.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; +/plugin/; + +#include "kera-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Kera OEMVM MTP"; + compatible = "qcom,kera-mtp", "qcom,kera", "qcom,kerap-mtp", "qcom,kerap", + "qcom,mtp"; + qcom,board-id = <0x10008 0>, <0x10008 1>, <0x20008 0>, <0x20008 1>, <0x30008 0>, <0x30008 1>; +}; diff --git a/kera-ese-oemvm-rcm.dts b/kera-ese-oemvm-rcm.dts new file mode 100644 index 00000000..0f9e5a27 --- /dev/null +++ b/kera-ese-oemvm-rcm.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; +/plugin/; + +#include "kera-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Kera OEMVM RCM"; + compatible = "qcom,kera-rcm", "qcom,kera", "qcom,kerap-rcm", "qcom,kerap", + "qcom,rcm"; + qcom,board-id = <0x10015 0>, <0x10015 1>, <0x20015 0>, <0x20015 1>, <0x30015 0>, <0x30015 1>; +}; diff --git a/kera-ese-qrd-wcn7750-ufs2.dts b/kera-ese-qrd-wcn7750-ufs2.dts new file mode 100644 index 00000000..1ddcde3d --- /dev/null +++ b/kera-ese-qrd-wcn7750-ufs2.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 "kera-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Kera QRD"; + compatible = "qcom,kera-qrd", "qcom,kera", "qcom,kerap-qrd", "qcom,kerap", + "qcom,qrd"; + qcom,msm-id = <686 0x10000>, <659 0x10000>; + qcom,board-id = <0x3000B 0>; +}; diff --git a/kera-ese-qrd-wcn7750-ufs3.dts b/kera-ese-qrd-wcn7750-ufs3.dts new file mode 100644 index 00000000..474e01ea --- /dev/null +++ b/kera-ese-qrd-wcn7750-ufs3.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 "kera-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Kera QRD + WCN7750 + UFS3.0"; + compatible = "qcom,kera-qrd", "qcom,kera", "qcom,kerap-qrd", "qcom,kerap", + "qcom,qrd"; + qcom,msm-id = <686 0x10000>, <659 0x10000>; + qcom,board-id = <0x2000B 0>; +}; diff --git a/kera-ese-qrd.dts b/kera-ese-qrd.dts new file mode 100644 index 00000000..1ba51a68 --- /dev/null +++ b/kera-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 "kera-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Kera QRD"; + compatible = "qcom,kera-qrd", "qcom,kera", "qcom,kerap-qrd", "qcom,kerap", + "qcom,qrd"; + qcom,msm-id = <686 0x10000>, <659 0x10000>; + qcom,board-id = <0x1000B 0>; +}; diff --git a/kera-ese-rcm-qca6750-ufs2.dts b/kera-ese-rcm-qca6750-ufs2.dts new file mode 100644 index 00000000..5c45124e --- /dev/null +++ b/kera-ese-rcm-qca6750-ufs2.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 "kera-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Kera RCM + QCA6750 + UFS2.0"; + compatible = "qcom,kera-rcm", "qcom,kera", "qcom,kerap-rcm", "qcom,kerap", + "qcom,rcm"; + qcom,msm-id = <686 0x10000>, <659 0x10000>; + qcom,board-id = <0x30015 0>; +}; diff --git a/kera-ese-rcm-qca6750-ufs3.dts b/kera-ese-rcm-qca6750-ufs3.dts new file mode 100644 index 00000000..87a1720a --- /dev/null +++ b/kera-ese-rcm-qca6750-ufs3.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 "kera-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Kera RCM + QCA6750 + UFS3.0"; + compatible = "qcom,kera-rcm", "qcom,kera", "qcom,kerap-rcm", "qcom,kerap", + "qcom,rcm"; + qcom,msm-id = <686 0x10000>, <659 0x10000>; + qcom,board-id = <0x20015 0>; +}; diff --git a/kera-ese-rcm-wcn7750-ufs2.dts b/kera-ese-rcm-wcn7750-ufs2.dts new file mode 100644 index 00000000..abec6f9b --- /dev/null +++ b/kera-ese-rcm-wcn7750-ufs2.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 "kera-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Kera RCM + WCN7750 + UFS2.0"; + compatible = "qcom,kera-rcm", "qcom,kera", "qcom,kerap-rcm", "qcom,kerap", + "qcom,rcm"; + qcom,msm-id = <686 0x10000>, <659 0x10000>; + qcom,board-id = <0x30015 1>; +}; diff --git a/kera-ese-rcm-wcn7750-ufs3.dts b/kera-ese-rcm-wcn7750-ufs3.dts new file mode 100644 index 00000000..e96c11bf --- /dev/null +++ b/kera-ese-rcm-wcn7750-ufs3.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 "kera-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. KERA RCM + WCN7750 + UFS3.0"; + compatible = "qcom,kera-rcm", "qcom,kera", "qcom,kerap-rcm", "qcom,kerap", + "qcom,rcm"; + qcom,msm-id = <686 0x10000>, <659 0x10000>; + qcom,board-id = <0x20015 1>; +}; diff --git a/kera-ese-rcm-wcn7750-ufs4.dts b/kera-ese-rcm-wcn7750-ufs4.dts new file mode 100644 index 00000000..befb90e6 --- /dev/null +++ b/kera-ese-rcm-wcn7750-ufs4.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 "kera-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Kera RCM + WCN7750 + UFS4.0"; + compatible = "qcom,kera-rcm", "qcom,kera", "qcom,kerap-rcm", "qcom,kerap", + "qcom,rcm"; + qcom,msm-id = <686 0x10000>, <659 0x10000>; + qcom,board-id = <0x10015 1>; +}; diff --git a/kera-ese-rcm.dts b/kera-ese-rcm.dts new file mode 100644 index 00000000..fd05e13f --- /dev/null +++ b/kera-ese-rcm.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 "kera-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Kera RCM"; + compatible = "qcom,kera-rcm", "qcom,kera", "qcom,kerap-rcm", "qcom,kerap", + "qcom,rcm"; + qcom,msm-id = <686 0x10000>, <659 0x10000>; + qcom,board-id = <0x10015 0>; +}; From 87ac15179856ec5139e84913d34ce9027a4f2345 Mon Sep 17 00:00:00 2001 From: Akhil Budampati Date: Fri, 22 Nov 2024 16:15:21 +0530 Subject: [PATCH 10/14] eSE-devicetree: Resolving compilation failures for tuna As eSE is present in multiple tuna boards, added the board and msm id's for all the revellant tuna boards. Change-Id: I97689ed94861ae890ec23eec1f9a0c6d19ea3dce --- tuna-ese-cdp.dts | 2 +- tuna-ese-mtp-kiwi-overlay.dts | 2 +- tuna-ese-mtp-qmp1000-overlay.dts | 2 +- tuna-ese-mtp.dts | 2 +- tuna-ese-oemvm-mtp-kiwi.dts | 1 + tuna-ese-oemvm-rcm-kiwi.dts | 1 + tuna-ese-qrd.dts | 2 +- tuna-ese-rcm-kiwi-overlay.dts | 2 +- 8 files changed, 8 insertions(+), 6 deletions(-) diff --git a/tuna-ese-cdp.dts b/tuna-ese-cdp.dts index 5a526396..1600660f 100644 --- a/tuna-ese-cdp.dts +++ b/tuna-ese-cdp.dts @@ -13,6 +13,6 @@ compatible = "qcom,tuna-cdp", "qcom,tuna", "qcom,tunap-cdp", "qcom,tunap", "qcom,cdp"; - qcom,msm-id = <681 0x10000>, <655 0x10000>; + qcom,msm-id = <681 0x10000>, <655 0x10000>, <694 0x10000>; qcom,board-id = <1 0>; }; diff --git a/tuna-ese-mtp-kiwi-overlay.dts b/tuna-ese-mtp-kiwi-overlay.dts index 5739bedf..d8049440 100644 --- a/tuna-ese-mtp-kiwi-overlay.dts +++ b/tuna-ese-mtp-kiwi-overlay.dts @@ -12,6 +12,6 @@ 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,msm-id = <681 0x10000>, <655 0x10000>, <694 0x10000>; qcom,board-id = <8 2>; }; diff --git a/tuna-ese-mtp-qmp1000-overlay.dts b/tuna-ese-mtp-qmp1000-overlay.dts index 4c77d4a7..da03ac74 100644 --- a/tuna-ese-mtp-qmp1000-overlay.dts +++ b/tuna-ese-mtp-qmp1000-overlay.dts @@ -12,6 +12,6 @@ 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,msm-id = <681 0x10000>, <655 0x10000>, <694 0x10000>; qcom,board-id = <8 1>; }; diff --git a/tuna-ese-mtp.dts b/tuna-ese-mtp.dts index 846f1af9..eb61fa85 100644 --- a/tuna-ese-mtp.dts +++ b/tuna-ese-mtp.dts @@ -12,6 +12,6 @@ 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,msm-id = <681 0x10000>, <655 0x10000>, <694 0x10000>; qcom,board-id = <8 0>; }; diff --git a/tuna-ese-oemvm-mtp-kiwi.dts b/tuna-ese-oemvm-mtp-kiwi.dts index bee3c533..f93ff046 100644 --- a/tuna-ese-oemvm-mtp-kiwi.dts +++ b/tuna-ese-oemvm-mtp-kiwi.dts @@ -4,6 +4,7 @@ */ /dts-v1/; +/plugin/; #include "tuna-ese-common.dtsi" diff --git a/tuna-ese-oemvm-rcm-kiwi.dts b/tuna-ese-oemvm-rcm-kiwi.dts index 6e76a031..62ba6cd0 100644 --- a/tuna-ese-oemvm-rcm-kiwi.dts +++ b/tuna-ese-oemvm-rcm-kiwi.dts @@ -4,6 +4,7 @@ */ /dts-v1/; +/plugin/; #include "tuna-ese-common.dtsi" diff --git a/tuna-ese-qrd.dts b/tuna-ese-qrd.dts index a562ed96..eed37258 100644 --- a/tuna-ese-qrd.dts +++ b/tuna-ese-qrd.dts @@ -12,6 +12,6 @@ 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,msm-id = <681 0x10000>, <655 0x10000>, <694 0x10000>; qcom,board-id = <11 0>; }; diff --git a/tuna-ese-rcm-kiwi-overlay.dts b/tuna-ese-rcm-kiwi-overlay.dts index afe90060..921f0c48 100644 --- a/tuna-ese-rcm-kiwi-overlay.dts +++ b/tuna-ese-rcm-kiwi-overlay.dts @@ -12,6 +12,6 @@ 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,msm-id = <681 0x10000>, <655 0x10000>, <694 0x10000>; qcom,board-id = <21 1>; }; From c05bfec5929f1c4a94849ef5b74c51875a7754ad Mon Sep 17 00:00:00 2001 From: Ravi Kumar Bokka Date: Wed, 2 Oct 2024 03:42:49 +0530 Subject: [PATCH 11/14] 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: Ia04cab5be445331bdd8c79ea3e4edb7566bfd74e (cherry picked from commit 692ca5a0f9db8f55ee6dd7cd254ba55f067f3320) --- 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>; +}; From 1a78123807c6a08c27e502f57dc7ea0e89ddd610 Mon Sep 17 00:00:00 2001 From: "V S Ganga VaraPrasad (VARA) Adabala" Date: Wed, 18 Dec 2024 13:03:01 +0530 Subject: [PATCH 12/14] eSE-devicetree: Resolving compilation failures for tuna As eSE is present in multiple tuna boards, added the board and msm id's for all the revellant tuna boards. Change-Id: I97689ed94861ae890ec23eec1f9a0c6d19ea3dce (cherry picked from commit 87ac15179856ec5139e84913d34ce9027a4f2345) --- tuna-ese-cdp.dts | 2 +- tuna-ese-mtp-kiwi-overlay.dts | 2 +- tuna-ese-mtp-qmp1000-overlay.dts | 2 +- tuna-ese-mtp.dts | 2 +- tuna-ese-oemvm-mtp-kiwi.dts | 1 + tuna-ese-oemvm-rcm-kiwi.dts | 1 + tuna-ese-qrd.dts | 2 +- tuna-ese-rcm-kiwi-overlay.dts | 2 +- 8 files changed, 8 insertions(+), 6 deletions(-) diff --git a/tuna-ese-cdp.dts b/tuna-ese-cdp.dts index 5a526396..1600660f 100644 --- a/tuna-ese-cdp.dts +++ b/tuna-ese-cdp.dts @@ -13,6 +13,6 @@ compatible = "qcom,tuna-cdp", "qcom,tuna", "qcom,tunap-cdp", "qcom,tunap", "qcom,cdp"; - qcom,msm-id = <681 0x10000>, <655 0x10000>; + qcom,msm-id = <681 0x10000>, <655 0x10000>, <694 0x10000>; qcom,board-id = <1 0>; }; diff --git a/tuna-ese-mtp-kiwi-overlay.dts b/tuna-ese-mtp-kiwi-overlay.dts index 5739bedf..d8049440 100644 --- a/tuna-ese-mtp-kiwi-overlay.dts +++ b/tuna-ese-mtp-kiwi-overlay.dts @@ -12,6 +12,6 @@ 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,msm-id = <681 0x10000>, <655 0x10000>, <694 0x10000>; qcom,board-id = <8 2>; }; diff --git a/tuna-ese-mtp-qmp1000-overlay.dts b/tuna-ese-mtp-qmp1000-overlay.dts index 4c77d4a7..da03ac74 100644 --- a/tuna-ese-mtp-qmp1000-overlay.dts +++ b/tuna-ese-mtp-qmp1000-overlay.dts @@ -12,6 +12,6 @@ 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,msm-id = <681 0x10000>, <655 0x10000>, <694 0x10000>; qcom,board-id = <8 1>; }; diff --git a/tuna-ese-mtp.dts b/tuna-ese-mtp.dts index 846f1af9..eb61fa85 100644 --- a/tuna-ese-mtp.dts +++ b/tuna-ese-mtp.dts @@ -12,6 +12,6 @@ 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,msm-id = <681 0x10000>, <655 0x10000>, <694 0x10000>; qcom,board-id = <8 0>; }; diff --git a/tuna-ese-oemvm-mtp-kiwi.dts b/tuna-ese-oemvm-mtp-kiwi.dts index bee3c533..f93ff046 100644 --- a/tuna-ese-oemvm-mtp-kiwi.dts +++ b/tuna-ese-oemvm-mtp-kiwi.dts @@ -4,6 +4,7 @@ */ /dts-v1/; +/plugin/; #include "tuna-ese-common.dtsi" diff --git a/tuna-ese-oemvm-rcm-kiwi.dts b/tuna-ese-oemvm-rcm-kiwi.dts index 6e76a031..62ba6cd0 100644 --- a/tuna-ese-oemvm-rcm-kiwi.dts +++ b/tuna-ese-oemvm-rcm-kiwi.dts @@ -4,6 +4,7 @@ */ /dts-v1/; +/plugin/; #include "tuna-ese-common.dtsi" diff --git a/tuna-ese-qrd.dts b/tuna-ese-qrd.dts index a562ed96..eed37258 100644 --- a/tuna-ese-qrd.dts +++ b/tuna-ese-qrd.dts @@ -12,6 +12,6 @@ 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,msm-id = <681 0x10000>, <655 0x10000>, <694 0x10000>; qcom,board-id = <11 0>; }; diff --git a/tuna-ese-rcm-kiwi-overlay.dts b/tuna-ese-rcm-kiwi-overlay.dts index afe90060..921f0c48 100644 --- a/tuna-ese-rcm-kiwi-overlay.dts +++ b/tuna-ese-rcm-kiwi-overlay.dts @@ -12,6 +12,6 @@ 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,msm-id = <681 0x10000>, <655 0x10000>, <694 0x10000>; qcom,board-id = <21 1>; }; From 6a08942a8f11809d995a5504d490ec3d52352ee4 Mon Sep 17 00:00:00 2001 From: Akhil Budampati Date: Mon, 3 Feb 2025 15:33:48 +0530 Subject: [PATCH 13/14] eSE-devicetree: Adding support for tuna harmonium devices Added board id for Tuna MTP + kiwi WLAN + Harmonium devices. Change-Id: Ib30994fd1a61d261fcc6e4db3279741292269d11 --- Kbuild | 1 + tuna-ese-mtp-kiwi-harmonium-overlay.dts | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 tuna-ese-mtp-kiwi-harmonium-overlay.dts diff --git a/Kbuild b/Kbuild index 351dfbea..20afae70 100644 --- a/Kbuild +++ b/Kbuild @@ -20,6 +20,7 @@ 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-mtp-kiwi-harmonium-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 diff --git a/tuna-ese-mtp-kiwi-harmonium-overlay.dts b/tuna-ese-mtp-kiwi-harmonium-overlay.dts new file mode 100644 index 00000000..2686cd5d --- /dev/null +++ b/tuna-ese-mtp-kiwi-harmonium-overlay.dts @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2025 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; +/plugin/; + +#include "tuna-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Tuna MTP + kiwi WLAN + Harmonium"; + compatible = "qcom,tuna-mtp", "qcom,tuna", "qcom,tunap-mtp", "qcom,tunap", + "qcom,mtp"; + qcom,msm-id = <681 0x10000>, <655 0x10000>, <694 0x10000>; + qcom,board-id = <8 3>; +}; From 80ab722e8d1dc09763806952a2930e68c5c144e5 Mon Sep 17 00:00:00 2001 From: Akhil Budampati Date: Mon, 3 Feb 2025 15:33:48 +0530 Subject: [PATCH 14/14] eSE-devicetree: Adding support for tuna harmonium devices Added board id for Tuna MTP + kiwi WLAN + Harmonium devices. Change-Id: Ib30994fd1a61d261fcc6e4db3279741292269d11 (cherry picked from commit 6a08942a8f11809d995a5504d490ec3d52352ee4) --- Kbuild | 1 + tuna-ese-mtp-kiwi-harmonium-overlay.dts | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 tuna-ese-mtp-kiwi-harmonium-overlay.dts diff --git a/Kbuild b/Kbuild index 351dfbea..20afae70 100644 --- a/Kbuild +++ b/Kbuild @@ -20,6 +20,7 @@ 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-mtp-kiwi-harmonium-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 diff --git a/tuna-ese-mtp-kiwi-harmonium-overlay.dts b/tuna-ese-mtp-kiwi-harmonium-overlay.dts new file mode 100644 index 00000000..2686cd5d --- /dev/null +++ b/tuna-ese-mtp-kiwi-harmonium-overlay.dts @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2025 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; +/plugin/; + +#include "tuna-ese-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Tuna MTP + kiwi WLAN + Harmonium"; + compatible = "qcom,tuna-mtp", "qcom,tuna", "qcom,tunap-mtp", "qcom,tunap", + "qcom,mtp"; + qcom,msm-id = <681 0x10000>, <655 0x10000>, <694 0x10000>; + qcom,board-id = <8 3>; +};