eSE_devicetree: Add initial version of OSS DT

Added initial version of eSE_devicetree into OSS.

Change-Id: If248f850b599cd0a276b402e8d6179d0cf9af5fe
This commit is contained in:
PRANAY BHARGAV BHAVARAJU
2024-04-12 14:25:02 +05:30
parent 64388175e8
commit 43891e796a
10 changed files with 120 additions and 0 deletions

12
Kbuild Normal file
View File

@@ -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

9
Makefile Normal file
View File

@@ -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)

13
sun-ese-cdp.dts Normal file
View File

@@ -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>;
};

9
sun-ese-common.dtsi Normal file
View File

@@ -0,0 +1,9 @@
&soc {
st54spi_gpio {
status = "ok";
compatible = "st,st54spi_gpio";
/* gpio used as SE_nRESET */
gpio-power_nreset = <&tlmm 46 0x00>;
};
};

13
sun-ese-mtp.dts Normal file
View File

@@ -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>;
};

13
sun-ese-qrd.dts Normal file
View File

@@ -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>;
};

13
sun-v2-ese-cdp.dts Normal file
View File

@@ -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>;
};

8
sun-v2-ese-common.dtsi Normal file
View File

@@ -0,0 +1,8 @@
&soc {
st54spi_gpio {
status = "ok";
compatible = "st,st54spi_gpio";
/* gpio used as SE_nRESET */
gpio-power_nreset = <&tlmm 46 0x00>;
};
};

15
sun-v2-ese-mtp.dts Normal file
View File

@@ -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>;
};

15
sun-v2-ese-qrd.dts Normal file
View File

@@ -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>;
};