From 8a92354ec6baf0b869a765ab3f5f989771084270 Mon Sep 17 00:00:00 2001 From: Shivendra Pratap Date: Wed, 11 Sep 2024 22:27:24 +0530 Subject: [PATCH 1/2] ARM: dts: qcom: Add support for platforms for Tuna Add base device tree support for ATP, CDP, MTP, QRD, RCM platforms for Tuna SoC. Change-Id: I229ea3ba6963c91183c8df9b668e3dfef80f189d Signed-off-by: Shivendra Pratap --- qcom/Makefile | 10 +++++++++- qcom/platform_map.bzl | 8 ++++++++ qcom/tuna-atp-overlay.dts | 18 ++++++++++++++++++ qcom/tuna-atp.dtsi | 6 ++++++ qcom/tuna-cdp-overlay.dts | 18 ++++++++++++++++++ qcom/tuna-cdp.dtsi | 4 ++++ qcom/tuna-mtp-kiwi-overlay.dts | 17 +++++++++++++++++ qcom/tuna-mtp-kiwi.dtsi | 6 ++++++ qcom/tuna-mtp-overlay.dts | 17 +++++++++++++++++ qcom/tuna-mtp-qmp1000-overlay.dts | 17 +++++++++++++++++ qcom/tuna-mtp-qmp1000.dtsi | 6 ++++++ qcom/tuna-mtp.dtsi | 4 ++++ qcom/tuna-qrd-overlay.dts | 17 +++++++++++++++++ qcom/tuna-qrd.dtsi | 4 ++++ qcom/tuna-rcm-kiwi-overlay.dts | 17 +++++++++++++++++ qcom/tuna-rcm-kiwi.dtsi | 6 ++++++ qcom/tuna-rcm-overlay.dts | 17 +++++++++++++++++ qcom/tuna-rcm.dtsi | 6 ++++++ 18 files changed, 197 insertions(+), 1 deletion(-) create mode 100644 qcom/tuna-atp-overlay.dts create mode 100644 qcom/tuna-atp.dtsi create mode 100644 qcom/tuna-cdp-overlay.dts create mode 100644 qcom/tuna-cdp.dtsi create mode 100644 qcom/tuna-mtp-kiwi-overlay.dts create mode 100644 qcom/tuna-mtp-kiwi.dtsi create mode 100644 qcom/tuna-mtp-overlay.dts create mode 100644 qcom/tuna-mtp-qmp1000-overlay.dts create mode 100644 qcom/tuna-mtp-qmp1000.dtsi create mode 100644 qcom/tuna-mtp.dtsi create mode 100644 qcom/tuna-qrd-overlay.dts create mode 100644 qcom/tuna-qrd.dtsi create mode 100644 qcom/tuna-rcm-kiwi-overlay.dts create mode 100644 qcom/tuna-rcm-kiwi.dtsi create mode 100644 qcom/tuna-rcm-overlay.dts create mode 100644 qcom/tuna-rcm.dtsi diff --git a/qcom/Makefile b/qcom/Makefile index 3239df4a..060f3813 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -54,7 +54,15 @@ sun-overlays-dtb-$(CONFIG_ARCH_SUN) += $(SUN_BOARDS) $(NOAPQ_SUN_BOARDS) $(SUN_B TUNA_BASE_DTB += tuna.dtb NOAPQ_TUNA_BOARDS += \ - tuna-rumi-overlay.dtbo + tuna-atp-overlay.dtbo \ + tuna-cdp-overlay.dtbo \ + tuna-mtp-kiwi-overlay.dtbo \ + tuna-mtp-overlay.dtbo \ + tuna-mtp-qmp1000-overlay.dtbo \ + tuna-qrd-overlay.dtbo \ + tuna-rcm-kiwi-overlay.dtbo \ + tuna-rcm-overlay.dtbo \ + tuna-rumi-overlay.dtbo sun-dtb-$(CONFIG_ARCH_TUNA) += \ $(call add-overlays, $(NOAPQ_TUNA_BOARDS),$(TUNA_BASE_DTB)) diff --git a/qcom/platform_map.bzl b/qcom/platform_map.bzl index 19f3ffec..78f8bd5d 100644 --- a/qcom/platform_map.bzl +++ b/qcom/platform_map.bzl @@ -73,6 +73,14 @@ _platform_map = { "name": "tuna-rumi-overlay.dtbo", "apq": False, }, + {"name": "tuna-atp-overlay.dtbo"}, + {"name": "tuna-cdp-overlay.dtbo"}, + {"name": "tuna-mtp-kiwi-overlay.dtbo"}, + {"name": "tuna-mtp-overlay.dtbo"}, + {"name": "tuna-mtp-qmp1000-overlay.dtbo"}, + {"name": "tuna-qrd-overlay.dtbo"}, + {"name": "tuna-rcm-kiwi-overlay.dtbo"}, + {"name": "tuna-rcm-overlay.dtbo"}, ], }, "kera": { diff --git a/qcom/tuna-atp-overlay.dts b/qcom/tuna-atp-overlay.dts new file mode 100644 index 00000000..f11e1579 --- /dev/null +++ b/qcom/tuna-atp-overlay.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-atp.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Tuna ATP"; + compatible = "qcom,tuna-atp", "qcom,tuna", "qcom,tunap-atp", "qcom,tunap", + "qcom,atp"; + + qcom,msm-id = <681 0x10000>, <655 0x10000>; + qcom,board-id = <33 0>; +}; diff --git a/qcom/tuna-atp.dtsi b/qcom/tuna-atp.dtsi new file mode 100644 index 00000000..386415d7 --- /dev/null +++ b/qcom/tuna-atp.dtsi @@ -0,0 +1,6 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +#include "tuna-mtp.dtsi" diff --git a/qcom/tuna-cdp-overlay.dts b/qcom/tuna-cdp-overlay.dts new file mode 100644 index 00000000..82f00661 --- /dev/null +++ b/qcom/tuna-cdp-overlay.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-cdp.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/qcom/tuna-cdp.dtsi b/qcom/tuna-cdp.dtsi new file mode 100644 index 00000000..9df4770a --- /dev/null +++ b/qcom/tuna-cdp.dtsi @@ -0,0 +1,4 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ diff --git a/qcom/tuna-mtp-kiwi-overlay.dts b/qcom/tuna-mtp-kiwi-overlay.dts new file mode 100644 index 00000000..9f8e2b72 --- /dev/null +++ b/qcom/tuna-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-mtp-kiwi.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/qcom/tuna-mtp-kiwi.dtsi b/qcom/tuna-mtp-kiwi.dtsi new file mode 100644 index 00000000..386415d7 --- /dev/null +++ b/qcom/tuna-mtp-kiwi.dtsi @@ -0,0 +1,6 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +#include "tuna-mtp.dtsi" diff --git a/qcom/tuna-mtp-overlay.dts b/qcom/tuna-mtp-overlay.dts new file mode 100644 index 00000000..a9ea196b --- /dev/null +++ b/qcom/tuna-mtp-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-mtp.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/qcom/tuna-mtp-qmp1000-overlay.dts b/qcom/tuna-mtp-qmp1000-overlay.dts new file mode 100644 index 00000000..f366cb86 --- /dev/null +++ b/qcom/tuna-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-mtp-qmp1000.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/qcom/tuna-mtp-qmp1000.dtsi b/qcom/tuna-mtp-qmp1000.dtsi new file mode 100644 index 00000000..386415d7 --- /dev/null +++ b/qcom/tuna-mtp-qmp1000.dtsi @@ -0,0 +1,6 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +#include "tuna-mtp.dtsi" diff --git a/qcom/tuna-mtp.dtsi b/qcom/tuna-mtp.dtsi new file mode 100644 index 00000000..9df4770a --- /dev/null +++ b/qcom/tuna-mtp.dtsi @@ -0,0 +1,4 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ diff --git a/qcom/tuna-qrd-overlay.dts b/qcom/tuna-qrd-overlay.dts new file mode 100644 index 00000000..571501ce --- /dev/null +++ b/qcom/tuna-qrd-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-qrd.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/qcom/tuna-qrd.dtsi b/qcom/tuna-qrd.dtsi new file mode 100644 index 00000000..9df4770a --- /dev/null +++ b/qcom/tuna-qrd.dtsi @@ -0,0 +1,4 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ diff --git a/qcom/tuna-rcm-kiwi-overlay.dts b/qcom/tuna-rcm-kiwi-overlay.dts new file mode 100644 index 00000000..878afb01 --- /dev/null +++ b/qcom/tuna-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-rcm-kiwi.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>; +}; diff --git a/qcom/tuna-rcm-kiwi.dtsi b/qcom/tuna-rcm-kiwi.dtsi new file mode 100644 index 00000000..eb5ff5d3 --- /dev/null +++ b/qcom/tuna-rcm-kiwi.dtsi @@ -0,0 +1,6 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +#include "tuna-cdp.dtsi" diff --git a/qcom/tuna-rcm-overlay.dts b/qcom/tuna-rcm-overlay.dts new file mode 100644 index 00000000..8ca3a067 --- /dev/null +++ b/qcom/tuna-rcm-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-rcm.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Tuna RCM"; + compatible = "qcom,tuna-rcm", "qcom,tuna", "qcom,tunap-rcm", "qcom,tunap", + "qcom,rcm"; + qcom,msm-id = <681 0x10000>, <655 0x10000>; + qcom,board-id = <21 0>; +}; diff --git a/qcom/tuna-rcm.dtsi b/qcom/tuna-rcm.dtsi new file mode 100644 index 00000000..eb5ff5d3 --- /dev/null +++ b/qcom/tuna-rcm.dtsi @@ -0,0 +1,6 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +#include "tuna-cdp.dtsi" From 15f237546980fc614522bbef798120fafca3614a Mon Sep 17 00:00:00 2001 From: Shivendra Pratap Date: Thu, 12 Sep 2024 11:22:29 +0530 Subject: [PATCH 2/2] dt-bindings: Add devicetree binding for Tuna Add devicetree binding for tuna. Change-Id: I094024d3f89e7c594223c3216f5f5af72ea48599 Signed-off-by: Shivendra Pratap --- bindings/arm/msm/msm.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/bindings/arm/msm/msm.yaml b/bindings/arm/msm/msm.yaml index 750ed4a5..30c87d0b 100644 --- a/bindings/arm/msm/msm.yaml +++ b/bindings/arm/msm/msm.yaml @@ -122,10 +122,35 @@ properties: - description: Qualcomm Technologies, Inc. TUNA items: - enum: + - qcom,tuna-atp + - qcom,atp + - qcom,tuna-cdp + - qcom,cdp + - qcom,tuna-mtp + - qcom,mtp + - qcom,tuna-qrd + - qcom,qrd + - qcom,tuna-rcm + - qcom,rcm - qcom,tuna-rumi - qcom,rumi - const: qcom,tuna + - description: Qualcomm Technologies, Inc. TUNAP + items: + - enum: + - qcom,tunap-atp + - qcom,atp + - qcom,tunap-cdp + - qcom,cdp + - qcom,tunap-mtp + - qcom,mtp + - qcom,tunap-qrd + - qcom,qrd + - qcom,tunap-rcm + - qcom,rcm + - const: qcom,tunap + - description: Qualcomm Technologies, Inc. KERA items: - enum: