summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarsh Sharma <harsh.sharma@multitech.com>2021-09-22 15:41:49 -0500
committerHarsh Sharma <harsh.sharma@multitech.com>2021-09-22 15:41:49 -0500
commit9f0277daa4e21225fac8dcfb7156ca83bb637055 (patch)
tree43f6dded0c91ec6a595e289dedae48877adf2f50
parenta2a5a3dfa69c8e70ec155abf8a0971a689108ffd (diff)
parentc7a4995d9b309ec2ffc630f05792f794845a6ccd (diff)
downloadmt-dt-overlay-1.0.3.tar.gz
mt-dt-overlay-1.0.3.tar.bz2
mt-dt-overlay-1.0.3.zip
Merge branch 'mtac-003-overlay' into 'master' 1.0.3
Mtac 003 overlay See merge request !1
-rw-r--r--Makefile3
-rw-r--r--mtcdt/alt-mtcdt-0.0.dtso66
-rw-r--r--mtcdt/ap1-003-0.0.dtso37
-rw-r--r--mtcdt/ap1-gpiob-0.0.dtso47
-rw-r--r--mtcdt/ap1-lora-0.0.dtso31
-rw-r--r--mtcdt/ap1-xdot-0.0.dtso35
-rw-r--r--mtcdt/ap2-003-0.0.dtso36
-rw-r--r--mtcdt/ap2-gpiob-0.0.dtso46
-rw-r--r--mtcdt/ap2-lora-0.0.dtso30
-rw-r--r--mtcdt/ap2-xdot-0.0.dtso36
-rw-r--r--mtcdt/mtcdt-0.0.dtso66
-rw-r--r--mtcdt/mtcdt-gpios.0.0.dtso66
-rw-r--r--mtcpmhs/ap1-003-0.0.dtso34
-rw-r--r--mtcpmhs/ap1-gpiob-0.0.dtso44
-rw-r--r--mtcpmhs/ap1-lora-0.0.dtso29
-rw-r--r--mtcpmhs/ap2-003-0.0.dtso34
-rw-r--r--mtcpmhs/ap2-gpiob-0.0.dtso44
-rw-r--r--mtcpmhs/ap2-lora-0.0.dtso29
18 files changed, 443 insertions, 270 deletions
diff --git a/Makefile b/Makefile
index 8cefc6a..a9fcdd1 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@ KERNEL_BUILD_DIR?=$(KERNEL_DIR)
# Need a dtc new enough to handle the DTC options.
DTC?=/usr/bin/dtc
+MTCPMHS_DTBO_OBJECTS:= $(patsubst %.dtso,%.dtbo,$(wildcard mtcpmhs/*.dtso))
MTCDT_DTBO_OBJECTS:= $(patsubst %.dtso,%.dtbo,$(wildcard mtcdt/*.dtso))
MTRV1_DTBO_OBJECTS:= $(patsubst %.dtso,%.dtbo,$(wildcard mtrv1/*.dtso))
MTCAP_DTBO_OBJECTS:= $(patsubst %.dtso,%.dtbo,$(wildcard mtcap/*.dtso))
@@ -20,7 +21,7 @@ MTCAP_DTBO_OBJECTS:= $(patsubst %.dtso,%.dtbo,$(wildcard mtcap/*.dtso))
mtcdt_dtbos: $(MTCDT_DTBO_OBJECTS)
mtrv1_dtbos: $(MTRV1_DTBO_OBJECTS)
mtcap_dtbos: $(MTCAP_DTBO_OBJECTS)
-
+mtcpmhs_dtbos: $(MTCPMHS_DTBO_OBJECTS)
.PHONY: clean
clean:
rm -f */*.dtbo *.itb
diff --git a/mtcdt/alt-mtcdt-0.0.dtso b/mtcdt/alt-mtcdt-0.0.dtso
deleted file mode 100644
index 3f51855..0000000
--- a/mtcdt/alt-mtcdt-0.0.dtso
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * DTS overlay for MTCDT 0.0 hardware version.
- */
-
-/*
- * Location(s):
- * Put: MTCDT/0.0/alt-mtcdt.dtbo
- */
-
-/dts-v1/;
-/plugin/;
-
-#include <dt-bindings/dma/at91.h>
-#include <dt-bindings/pinctrl/at91.h>
-#include <dt-bindings/interrupt-controller/irq.h>
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/clock/at91.h>
-#define AT91_PINCTRL_OUT_INIT_0 (AT91_PINCTRL_OUTPUT|AT91_PINCTRL_OUTPUT_VAL(0))
-#define AT91_PINCTRL_OUT_INIT_1 (AT91_PINCTRL_OUTPUT|AT91_PINCTRL_OUTPUT_VAL(1))
-
-/ {
- compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
- fragment@0 {
- target-path = "/ahb/apb/pinctrl@fffff400";
- __overlay__ {
- mts_io {
- radio_reset {
- atmel,pins = <AT91_PIOC 3 AT91_PERIPH_GPIO AT91_PINCTRL_OUT_INIT_1>;
- label = "radio-reset";
- alias = "radio-power";
- }; /* radio */
- device_reset {
- atmel,pins = <AT91_PIOC 2 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
- label = "reset";
- active-low;
- };
- eth_reset {
- atmel,pins = <AT91_PIOC 4 AT91_PERIPH_GPIO AT91_PINCTRL_OUT_INIT_1>;
- label = "eth-reset";
- }; /* eth */
- ls_led {
- atmel,pins = <AT91_PIOA 14 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
- label = "led-ls";
- active_low;
- };
- status_led {
- atmel,pins = <AT91_PIOA 24 AT91_PERIPH_GPIO AT91_PINCTRL_OUT_INIT_0>;
- label = "led-status";
- active_low;
- };
- led5 {
- atmel,pins = <AT91_PIOA 25 AT91_PERIPH_GPIO AT91_PINCTRL_OUT_INIT_0>;
- label = "led-cd";
- alias = "led-a";
- active_low;
- };
- led1 {
- atmel,pins = <AT91_PIOA 26 AT91_PERIPH_GPIO AT91_PINCTRL_OUT_INIT_0>;
- label = "led-sig1";
- alias = "led-b";
- active_low;
- };
- }; /* mtsio */
- }; /* overlay */
- }; /* fragment@0 */
-};
diff --git a/mtcdt/ap1-003-0.0.dtso b/mtcdt/ap1-003-0.0.dtso
new file mode 100644
index 0000000..f005945
--- /dev/null
+++ b/mtcdt/ap1-003-0.0.dtso
@@ -0,0 +1,37 @@
+/*
+ * DTS overlay for MTCDT 0.0 hardware version.
+ */
+
+/dts-v1/;
+
+/*
+ * Location(s):
+ * Put: MTCDT/0.0/ap1-003.dtbo
+ */
+
+#include <dt-bindings/dma/at91.h>
+#include <dt-bindings/pinctrl/at91.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/clock/at91.h>
+
+
+/ {
+ compatible = "atmel,at91rm9200-spi";
+ fragment@0 {
+ target-path = "/ahb/apb/spi@f0000000";
+/* target = <0x75>;*/
+ __overlay__ {
+ ap1-spi@0 {
+ compatible = "mts,mtac";
+ spi-max-frequency = <2000000>;
+ reg = <0>;
+ };/*ap1-spi0*/
+ ap1-spi@1 {
+ compatible = "mts,mtac";
+ spi-max-frequency = <2000000>;
+ reg = <1>;
+ }; /*ap1-spi1*/
+ }; /*overlay*/
+ }; /*fragment@0*/
+};
diff --git a/mtcdt/ap1-gpiob-0.0.dtso b/mtcdt/ap1-gpiob-0.0.dtso
new file mode 100644
index 0000000..263b79e
--- /dev/null
+++ b/mtcdt/ap1-gpiob-0.0.dtso
@@ -0,0 +1,47 @@
+/*
+ * DTS overlay for MTCDT 0.0 hardware version.
+ */
+
+/dts-v1/;
+
+/*
+ * Location(s):
+ * Put: MTCDT/0.0/ap1-gpiob.dtbo
+ */
+
+#include <dt-bindings/dma/at91.h>
+#include <dt-bindings/pinctrl/at91.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/clock/at91.h>
+
+
+/ {
+ compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
+ fragment@0 {
+ target-path = "/ahb/apb/spi@f0000000";
+/* target = <0x75>;*/
+ __overlay__ {
+ ap1-adc@0 {
+ compatible = "mts-io-ap1-adc";
+ spi-max-frequency = <0x1312d00>;
+ reg = <0x0>;
+ }; /*ap1-adc*/
+ ap1-dout@1 {
+ compatible = "mts-io-ap1-dout";
+ spi-max-frequency = <0xf4240>;
+ reg = <0x1>;
+ }; /*ap1-dout*/
+ ap1-spi@2 {
+ compatible = "mts,mtac";
+ spi-max-frequency = <0x1e8480>;
+ reg = <0x2>;
+ }; /*ap1-spi*/
+ ap1-din@3 {
+ compatible = "mts-io-ap1-din";
+ spi-max-frequency = <0xf4240>;
+ reg = <0x3>;
+ }; /*ap1-din*/
+ }; /*overlay*/
+ }; /*fragment@0*/
+};
diff --git a/mtcdt/ap1-lora-0.0.dtso b/mtcdt/ap1-lora-0.0.dtso
new file mode 100644
index 0000000..a05b725
--- /dev/null
+++ b/mtcdt/ap1-lora-0.0.dtso
@@ -0,0 +1,31 @@
+/*
+ * DTS overlay for MTCDT 0.0 hardware version.
+ */
+
+/dts-v1/;
+
+/*
+ * Location(s):
+ * Put: MTCDT/0.0/ap1-lora.dtbo
+ */
+
+#include <dt-bindings/dma/at91.h>
+#include <dt-bindings/pinctrl/at91.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/clock/at91.h>
+
+
+/ {
+ compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
+ fragment@0 {
+ target-path = "/ahb/apb/spi@f0000000";
+ __overlay__ {
+ ap1-spi@2 {
+ compatible = "mts,mtac";
+ spi-max-frequency = <0x1e8480>;
+ reg = <0x2>;
+ }; /*ap1-spi*/
+ }; /*overlay*/
+ }; /*fragment@0*/
+};
diff --git a/mtcdt/ap1-xdot-0.0.dtso b/mtcdt/ap1-xdot-0.0.dtso
deleted file mode 100644
index d127e60..0000000
--- a/mtcdt/ap1-xdot-0.0.dtso
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * DTS overlay for MTCDT 0.0 hardware version.
- */
-/dts-v1/;
-/plugin/;
-
-/*
- * Location(s):
- * Put: MTCDT/0.0/ap1-xdot.dtbo
- */
-
-#include <dt-bindings/dma/at91.h>
-#include <dt-bindings/pinctrl/at91.h>
-#include <dt-bindings/interrupt-controller/irq.h>
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/clock/at91.h>
-#define AT91_PINCTRL_OUT_INIT_0 (AT91_PINCTRL_OUTPUT|AT91_PINCTRL_OUTPUT_VAL(0))
-#define AT91_PINCTRL_OUT_INIT_1 (AT91_PINCTRL_OUTPUT|AT91_PINCTRL_OUTPUT_VAL(1))
-
-/ {
- compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
- fragment@0 {
- target-path = "/ahb/apb/pinctrl@fffff400";
- __overlay__ {
- mtac_xdot {
- ap1 {
- reset {
- atmel,pins = <AT91_PIOB 12 AT91_PERIPH_GPIO AT91_PINCTRL_OUT_INIT_1>;
- label = "ap1-reset";
- }; /* Reset */
- }; /* ap1 */
- }; /* mtac_xdot */
- }; /* overlay */
- }; /* fragment@0 */
-};
diff --git a/mtcdt/ap2-003-0.0.dtso b/mtcdt/ap2-003-0.0.dtso
new file mode 100644
index 0000000..7aff7f3
--- /dev/null
+++ b/mtcdt/ap2-003-0.0.dtso
@@ -0,0 +1,36 @@
+/*
+ * DTS overlay for MTCDT 0.0 hardware version.
+ */
+
+/dts-v1/;
+
+/*
+ * Location(s):
+ * Put: MTCDT/0.0/ap2-003.dtbo
+ */
+
+#include <dt-bindings/dma/at91.h>
+#include <dt-bindings/pinctrl/at91.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/clock/at91.h>
+
+/ {
+ compatible = "atmel,at91rm9200-spi";
+ fragment@0 {
+ target-path = "/ahb/apb/spi@f0004000";
+ /*target = <0x76>; */
+ __overlay__ {
+ ap1-spi@0 {
+ compatible = "mts,mtac";
+ spi-max-frequency = <2000000>;
+ reg = <0>;
+ };/*ap1-spi0*/
+ ap1-spi@1 {
+ compatible = "mts,mtac";
+ spi-max-frequency = <2000000>;
+ reg = <1>;
+ }; /*ap1-spi1*/
+ }; /*overlay*/
+ }; /*fragment@0*/
+};
diff --git a/mtcdt/ap2-gpiob-0.0.dtso b/mtcdt/ap2-gpiob-0.0.dtso
new file mode 100644
index 0000000..4bf8ad0
--- /dev/null
+++ b/mtcdt/ap2-gpiob-0.0.dtso
@@ -0,0 +1,46 @@
+/*
+ * DTS overlay for MTCDT 0.0 hardware version.
+ */
+
+/dts-v1/;
+
+/*
+ * Location(s):
+ * Put: MTCDT/0.0/ap2-gpiob.dtbo
+ */
+
+#include <dt-bindings/dma/at91.h>
+#include <dt-bindings/pinctrl/at91.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/clock/at91.h>
+
+/ {
+ compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
+ fragment@0 {
+ target-path = "/ahb/apb/spi@f0004000";
+ /* target = <0x76>; */
+ __overlay__ {
+ ap2-adc@0 {
+ compatible = "mts-io-ap2-adc";
+ spi-max-frequency = <0x1312d00>;
+ reg = <0x0>;
+ }; /*ap1-adc*/
+ ap2-dout@1 {
+ compatible = "mts-io-ap2-dout";
+ spi-max-frequency = <0xf4240>;
+ reg = <0x1>;
+ }; /*ap1-dout*/
+ ap2-spi@2 {
+ compatible = "mts,mtac";
+ spi-max-frequency = <0x1e8480>;
+ reg = <0x2>;
+ }; /*ap2-spi*/
+ ap2-din@3 {
+ compatible = "mts-io-ap2-din";
+ spi-max-frequency = <0xf4240>;
+ reg = <0x3>;
+ }; /*ap2-din*/
+ }; /*overlay*/
+ }; /*fragment@0*/
+};
diff --git a/mtcdt/ap2-lora-0.0.dtso b/mtcdt/ap2-lora-0.0.dtso
new file mode 100644
index 0000000..68a0c79
--- /dev/null
+++ b/mtcdt/ap2-lora-0.0.dtso
@@ -0,0 +1,30 @@
+/*
+ * DTS overlay for MTCDT 0.0 hardware version.
+ */
+
+/dts-v1/;
+
+/*
+ * Location(s):
+ * Put: MTCDT/0.0/ap2-lora.dtbo
+ */
+
+#include <dt-bindings/dma/at91.h>
+#include <dt-bindings/pinctrl/at91.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/clock/at91.h>
+
+/ {
+ compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
+ fragment@0 {
+ target-path = "/ahb/apb/spi@f0004000";
+ __overlay__ {
+ ap2-spi@2 {
+ compatible = "mts,mtac";
+ spi-max-frequency = <0x1e8480>;
+ reg = <0x2>;
+ }; /*ap2-spi*/
+ }; /*overlay*/
+ }; /*fragment@0*/
+};
diff --git a/mtcdt/ap2-xdot-0.0.dtso b/mtcdt/ap2-xdot-0.0.dtso
deleted file mode 100644
index 0e53309..0000000
--- a/mtcdt/ap2-xdot-0.0.dtso
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * DTS overlay for MTCDT 0.0 hardware version.
- */
-
-/*
- * Location(s):
- * Put: MTCDT/0.0/ap2-xdot.dtbo
- */
-
-/dts-v1/;
-/plugin/;
-
-#include <dt-bindings/dma/at91.h>
-#include <dt-bindings/pinctrl/at91.h>
-#include <dt-bindings/interrupt-controller/irq.h>
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/clock/at91.h>
-#define AT91_PINCTRL_OUT_INIT_0 (AT91_PINCTRL_OUTPUT|AT91_PINCTRL_OUTPUT_VAL(0))
-#define AT91_PINCTRL_OUT_INIT_1 (AT91_PINCTRL_OUTPUT|AT91_PINCTRL_OUTPUT_VAL(1))
-
-/ {
- compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
- fragment@0 {
- target-path = "/ahb/apb/pinctrl@fffff400";
- __overlay__ {
- mtac_xdot {
- ap2 {
- reset {
- atmel,pins = <AT91_PIOB 13 AT91_PERIPH_GPIO AT91_PINCTRL_OUT_INIT_1>;
- label = "ap2-reset";
- }; /* Reset */
- }; /* ap2 */
- }; /* mtac_xdot */
- }; /* overlay */
- }; /* fragment@0 */
-};
diff --git a/mtcdt/mtcdt-0.0.dtso b/mtcdt/mtcdt-0.0.dtso
deleted file mode 100644
index e88d0d2..0000000
--- a/mtcdt/mtcdt-0.0.dtso
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * DTS overlay for MTCDT 0.0 hardware version.
- */
-
-/*
- * Location(s):
- * Put: MTCDT/0.0/mtcdt.dtbo
- */
-
-/dts-v1/;
-/plugin/;
-
-#include <dt-bindings/dma/at91.h>
-#include <dt-bindings/pinctrl/at91.h>
-#include <dt-bindings/interrupt-controller/irq.h>
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/clock/at91.h>
-#define AT91_PINCTRL_OUT_INIT_0 (AT91_PINCTRL_OUTPUT|AT91_PINCTRL_OUTPUT_VAL(0))
-#define AT91_PINCTRL_OUT_INIT_1 (AT91_PINCTRL_OUTPUT|AT91_PINCTRL_OUTPUT_VAL(1))
-
-/ {
- compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
- fragment@0 {
- target-path = "/ahb/apb/pinctrl@fffff400";
- __overlay__ {
- mts_io {
- radio_reset {
- atmel,pins = <AT91_PIOC 3 AT91_PERIPH_GPIO AT91_PINCTRL_OUT_INIT_1>;
- label = "radio-reset";
- alias = "radio-power";
- }; /* radio */
- device_reset {
- atmel,pins = <AT91_PIOC 2 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
- label = "reset";
- active-low;
- };
- eth_reset {
- atmel,pins = <AT91_PIOC 4 AT91_PERIPH_GPIO AT91_PINCTRL_OUT_INIT_1>;
- label = "eth-reset";
- }; /* eth */
- ls_led {
- atmel,pins = <AT91_PIOA 14 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
- label = "led-ls";
- active_low;
- };
- status_led {
- atmel,pins = <AT91_PIOA 24 AT91_PERIPH_GPIO AT91_PINCTRL_OUT_INIT_0>;
- label = "led-status";
- active_low;
- };
- led5 {
- atmel,pins = <AT91_PIOA 25 AT91_PERIPH_GPIO AT91_PINCTRL_OUT_INIT_1>;
- label = "led-cd";
- alias = "led-a";
- active_low;
- };
- led1 {
- atmel,pins = <AT91_PIOA 26 AT91_PERIPH_GPIO AT91_PINCTRL_OUT_INIT_1>;
- label = "led-sig1";
- alias = "led-b";
- active_low;
- };
- }; /* mtsio */
- }; /* overlay */
- }; /* fragment@0 */
-};
diff --git a/mtcdt/mtcdt-gpios.0.0.dtso b/mtcdt/mtcdt-gpios.0.0.dtso
deleted file mode 100644
index 6234b30..0000000
--- a/mtcdt/mtcdt-gpios.0.0.dtso
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * DTS overlay for MTCDT 0.0 hardware version.
- * Uses [name]-gpios from:
- * https://www.kernel.org/doc/Documentation/devicetree/bindings/gpio/gpio.txt
- */
-
-/*
- * Location(s):
- * Put: MTCDT/0.0/gpios.dtbo
- */
-
-/dts-v1/;
-/plugin/;
-
-#include "at91sam9g25.dtsi"
-#include "at91sam9x5ek.dtsi"
-
-/ {
- compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
- fragment@0 {
- target-path = "/";
- __overlay__ {
- mts-io {
- compatible = "mts,mts-io";
- radio-reset {
- radio-reset-gpios = <&pioC 3 GPIO_ACTIVE_HIGH>;
- gpiof_out_init_high;
- line-name = "radio-reset";
- alias = "radio-power";
- }; /* radio */
- reset {
- reset-gpios = <&pioC 2 GPIO_ACTIVE_LOW>;
- gpiof_in;
- line-name = "reset";
- };
- eth-reset {
- eth-reset-gpios = <&pioC 4 GPIO_ACTIVE_HIGH>;
- gpiof_out_init_high;
- line-name = "eth-reset";
- }; /* eth */
- ls-led {
- ls-led-gpios = <&pioA 14 GPIO_ACTIVE_LOW>;
- gpiof_out_init_high;
- line-name = "led-ls";
- };
- status-led {
- status-led-gpios = <&pioA 24 GPIO_ACTIVE_LOW>;
- gpiof_out_init_high;
- line-name = "led-status";
- };
- led5 {
- led5-gpios = <&pioA 25 GPIO_ACTIVE_LOW>;
- gpiof_out_init_high;
- line-name = "led-cd";
- alias = "led-a";
- };
- led1 {
- led1-gpios = <&pioA 26 GPIO_ACTIVE_LOW>;
- gpiof_out_init_high;
- line-name = "led-sig1";
- alias = "led-b";
- };
- }; /* mtsio */
- }; /* overlay */
- }; /* fragment@0 */
-};
diff --git a/mtcpmhs/ap1-003-0.0.dtso b/mtcpmhs/ap1-003-0.0.dtso
new file mode 100644
index 0000000..7ceb4ee
--- /dev/null
+++ b/mtcpmhs/ap1-003-0.0.dtso
@@ -0,0 +1,34 @@
+/*
+ * DTS overlay for MTCPM 0.0 hardware version.
+ */
+
+/dts-v1/;
+
+/*
+ * Location(s):
+ * Put: MTCDT3/0.0/ap1-003.dtbo
+ */
+
+#include "am4372.dtsi"
+#include <dt-bindings/pinctrl/am43xx.h>
+#include <dt-bindings/pwm/pwm.h>
+#include <dt-bindings/gpio/gpio.h>
+
+/ {
+ compatible = "ti,am437x-gp-evm", "ti,am4372", "ti,am43";
+ fragment@0 {
+ target-path = "/ocp@44000000/spi@48030000";
+ __overlay__ {
+ ap1-spi@0 {
+ compatible = "mts,mtac";
+ spi-max-frequency = <0x1e8480>;
+ reg = <0x0>;
+ };/*ap1-spi0*/
+ ap1-spi@1 {
+ compatible = "mts,mtac";
+ spi-max-frequency = <0x1e8480>;
+ reg = <0x1>;
+ }; /*ap1-spi1*/
+ }; /*overlay*/
+ }; /*fragment@0*/
+};
diff --git a/mtcpmhs/ap1-gpiob-0.0.dtso b/mtcpmhs/ap1-gpiob-0.0.dtso
new file mode 100644
index 0000000..aeea8c4
--- /dev/null
+++ b/mtcpmhs/ap1-gpiob-0.0.dtso
@@ -0,0 +1,44 @@
+/*
+ * DTS overlay for MTCPM 0.0 hardware version.
+ */
+
+/dts-v1/;
+
+/*
+ * Location(s):
+ * Put: MTCDT3/0.0/ap1-gpiob.dtbo
+ */
+
+#include "am4372.dtsi"
+#include <dt-bindings/pinctrl/am43xx.h>
+#include <dt-bindings/pwm/pwm.h>
+#include <dt-bindings/gpio/gpio.h>
+
+/ {
+ compatible = "ti,am437x-gp-evm", "ti,am4372", "ti,am43";
+ fragment@0 {
+ target-path = "/ocp@44000000/spi@48030000";
+ __overlay__ {
+ ap1-adc@0 {
+ compatible = "mts-io-ap1-adc";
+ spi-max-frequency = <0x1312d00>;
+ reg = <0x0>;
+ }; /*ap1-adc*/
+ ap1-dout@1 {
+ compatible = "mts-io-ap1-dout";
+ spi-max-frequency = <0xf4240>;
+ reg = <0x1>;
+ }; /*ap1-dout*/
+ ap1-spi@2 {
+ compatible = "mts,mtac";
+ spi-max-frequency = <0x1e8480>;
+ reg = <0x2>;
+ }; /*ap1-spi*/
+ ap1-din@3 {
+ compatible = "mts-io-ap1-din";
+ spi-max-frequency = <0xf4240>;
+ reg = <0x3>;
+ }; /*ap1-din*/
+ }; /*overlay*/
+ }; /*fragment@0*/
+};
diff --git a/mtcpmhs/ap1-lora-0.0.dtso b/mtcpmhs/ap1-lora-0.0.dtso
new file mode 100644
index 0000000..157e545
--- /dev/null
+++ b/mtcpmhs/ap1-lora-0.0.dtso
@@ -0,0 +1,29 @@
+/*
+ * DTS overlay for MTCPM 0.0 hardware version.
+ */
+
+/dts-v1/;
+
+/*
+ * Location(s):
+ * Put: MTCDT3/0.0/ap1-lora.dtbo
+ */
+
+#include "am4372.dtsi"
+#include <dt-bindings/pinctrl/am43xx.h>
+#include <dt-bindings/pwm/pwm.h>
+#include <dt-bindings/gpio/gpio.h>
+
+/ {
+ compatible = "ti,am437x-gp-evm", "ti,am4372", "ti,am43";
+ fragment@0 {
+ target-path = "/ocp@44000000/spi@48030000";
+ __overlay__ {
+ ap1-spi@2 {
+ compatible = "mts,mtac";
+ spi-max-frequency = <0x1e8480>;
+ reg = <0x2>;
+ }; /*ap1-spi*/
+ }; /*overlay*/
+ }; /*fragment@0*/
+};
diff --git a/mtcpmhs/ap2-003-0.0.dtso b/mtcpmhs/ap2-003-0.0.dtso
new file mode 100644
index 0000000..93f7de4
--- /dev/null
+++ b/mtcpmhs/ap2-003-0.0.dtso
@@ -0,0 +1,34 @@
+/*
+ * DTS overlay for MTCPM 0.0 hardware version.
+ */
+
+/dts-v1/;
+
+/*
+ * Location(s):
+ * Put: MTCDT3/0.0/ap2-003.dtbo
+ */
+
+#include "am4372.dtsi"
+#include <dt-bindings/pinctrl/am43xx.h>
+#include <dt-bindings/pwm/pwm.h>
+#include <dt-bindings/gpio/gpio.h>
+
+/ {
+ compatible = "ti,am437x-gp-evm", "ti,am4372", "ti,am43";
+ fragment@0 {
+ target-path = "/ocp@44000000/spi@481a2000";
+ __overlay__ {
+ ap2-spi@0 {
+ compatible = "mts,mtac";
+ spi-max-frequency = <0x1e8480>;
+ reg = <0x0>;
+ }; /*ap2-spi0*/
+ ap2-spi@1 {
+ compatible = "mts,mtac";
+ spi-max-frequency = <0x1e8480>;
+ reg = <0x1>;
+ }; /*ap2-spi1*/
+ }; /*overlay*/
+ }; /*fragment@0*/
+};
diff --git a/mtcpmhs/ap2-gpiob-0.0.dtso b/mtcpmhs/ap2-gpiob-0.0.dtso
new file mode 100644
index 0000000..47089af
--- /dev/null
+++ b/mtcpmhs/ap2-gpiob-0.0.dtso
@@ -0,0 +1,44 @@
+/*
+ * DTS overlay for MTCPM 0.0 hardware version.
+ */
+
+/dts-v1/;
+
+/*
+ * Location(s):
+ * Put: MTCDT3/0.0/ap2-gpiob.dtbo
+ */
+
+#include "am4372.dtsi"
+#include <dt-bindings/pinctrl/am43xx.h>
+#include <dt-bindings/pwm/pwm.h>
+#include <dt-bindings/gpio/gpio.h>
+
+/ {
+ compatible = "ti,am437x-gp-evm", "ti,am4372", "ti,am43";
+ fragment@0 {
+ target-path = "/ocp@44000000/spi@481a2000";
+ __overlay__ {
+ ap2-adc@0 {
+ compatible = "mts-io-ap2-adc";
+ spi-max-frequency = <0x1312d00>;
+ reg = <0x0>;
+ }; /*ap1-adc*/
+ ap2-dout@1 {
+ compatible = "mts-io-ap2-dout";
+ spi-max-frequency = <0xf4240>;
+ reg = <0x1>;
+ }; /*ap1-dout*/
+ ap2-spi@2 {
+ compatible = "mts,mtac";
+ spi-max-frequency = <0x1e8480>;
+ reg = <0x2>;
+ }; /*ap2-spi*/
+ ap2-din@3 {
+ compatible = "mts-io-ap2-din";
+ spi-max-frequency = <0xf4240>;
+ reg = <0x3>;
+ };
+ }; /*overlay*/
+ }; /*fragment@0*/
+};
diff --git a/mtcpmhs/ap2-lora-0.0.dtso b/mtcpmhs/ap2-lora-0.0.dtso
new file mode 100644
index 0000000..babae50
--- /dev/null
+++ b/mtcpmhs/ap2-lora-0.0.dtso
@@ -0,0 +1,29 @@
+/*
+ * DTS overlay for MTCPM 0.0 hardware version.
+ */
+
+/dts-v1/;
+
+/*
+ * Location(s):
+ * Put: MTCDT3/0.0/ap2-lora.dtbo
+ */
+
+#include "am4372.dtsi"
+#include <dt-bindings/pinctrl/am43xx.h>
+#include <dt-bindings/pwm/pwm.h>
+#include <dt-bindings/gpio/gpio.h>
+
+/ {
+ compatible = "ti,am437x-gp-evm", "ti,am4372", "ti,am43";
+ fragment@0 {
+ target-path = "/ocp@44000000/spi@481a2000";
+ __overlay__ {
+ ap2-spi@2 {
+ compatible = "mts,mtac";
+ spi-max-frequency = <0x1e8480>;
+ reg = <0x2>;
+ }; /*ap2-spi*/
+ }; /*overlay*/
+ }; /*fragment@0*/
+};