From 43891e796ad515726792ecb05a4625ff98e84294 Mon Sep 17 00:00:00 2001 From: PRANAY BHARGAV BHAVARAJU Date: Fri, 12 Apr 2024 14:25:02 +0530 Subject: [PATCH] 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>; +};