summaryrefslogtreecommitdiff
path: root/mtcdt
diff options
context:
space:
mode:
Diffstat (limited to 'mtcdt')
-rw-r--r--mtcdt/ap1-gpiob-0.0.dtso10
-rw-r--r--mtcdt/ap1-gpiob-0.2.dtso49
-rw-r--r--mtcdt/ap1-lora-0.0.dtso48
-rw-r--r--mtcdt/ap2-gpiob-0.0.dtso9
-rw-r--r--mtcdt/ap2-lora-0.0.dtso48
-rw-r--r--mtcdt/leds-0.0.dtso49
-rw-r--r--mtcdt/leds-0.2.dtso49
-rw-r--r--mtcdt/serial-0.2.dtso37
8 files changed, 196 insertions, 103 deletions
diff --git a/mtcdt/ap1-gpiob-0.0.dtso b/mtcdt/ap1-gpiob-0.0.dtso
index 1b7b021..ce5d79a 100644
--- a/mtcdt/ap1-gpiob-0.0.dtso
+++ b/mtcdt/ap1-gpiob-0.0.dtso
@@ -1,5 +1,5 @@
-/*
- * DTS overlay for MTCDT hardware version.
+/*
+ * DTS overlay for MTCDT 0.0 and 0.1 hardware version.
*/
/dts-v1/;
@@ -7,7 +7,6 @@
/*
* Location(s):
* Put: MTCDT/0.0/ap1-gpiob.dtbo
- * Link: MTCDT/0.1/ap1-gpiob.dtbo
*/
#include <dt-bindings/dma/at91.h>
@@ -15,14 +14,17 @@
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/clock/at91.h>
+#include <dt-bindings/gpio/mt-at91.h> // Explicit PHandles
+
/ {
compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
+ model = "Multi-Tech Systems MTCDT-0.0";
fragment@0 {
target-path = "/ahb/apb/spi@f0000000";
-/* target = <0x75>;*/
__overlay__ {
status = "okay";
+ cs-gpios = <GPIO0_PH 4 0>, <GPIO0_PH 2 0>, <GPIO0_PH 3 0>, <GPIO0_PH 5 0>;
ap1-adc@0 {
compatible = "mts-io-ap1-adc";
spi-max-frequency = <0x1312d00>;
diff --git a/mtcdt/ap1-gpiob-0.2.dtso b/mtcdt/ap1-gpiob-0.2.dtso
new file mode 100644
index 0000000..e92a61d
--- /dev/null
+++ b/mtcdt/ap1-gpiob-0.2.dtso
@@ -0,0 +1,49 @@
+/*
+ * DTS overlay for MTCDT 0.2 hardware version.
+ */
+
+/dts-v1/;
+
+/*
+ * Location(s):
+ * Put: MTCDT/0.2/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>
+#include <dt-bindings/gpio/mt-at91.h>
+
+/ {
+ compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
+ model = "Multi-Tech Systems MTCDT-0.0";
+ fragment@0 {
+ target-path = "/ahb/apb/spi@f0000000";
+ __overlay__ {
+ status = "okay";
+ cs-gpios = <GPIO0_PH 4 0>, <GPIO0_PH 2 0>, <GPIO0_PH 3 0>, <GPIO0_PH 28 0>;
+ 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
deleted file mode 100644
index 72a8fea..0000000
--- a/mtcdt/ap1-lora-0.0.dtso
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * DTS overlay for MTCDT hardware version.
- */
-
-/dts-v1/;
-
-/*
- * Location(s):
- * Put: MTCDT/0.0/ap1-lora.dtbo
- * Link: MTCDT/0.1/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,at91rm9200-spi";
- fragment@0 {
- target-path = "/ahb/apb/spi@f0000000";
-/* target = <0x75>;*/
- __overlay__ {
- status = "okay";
- ap1-spi@0 {
- compatible = "mts,mtac";
- spi-max-frequency = <20000000>;
- reg = <0>;
- };
- ap1-spi@1 {
- compatible = "mts,mtac";
- spi-max-frequency = <2000000>;
- reg = <1>;
- };
- ap1-spi@2 {
- compatible = "mts,mtac";
- spi-max-frequency = <2000000>;
- reg = <2>;
- };
- ap1-din@3 {
- compatible = "mts-io-ap1-din";
- spi-max-frequency = <1000000>;
- reg = <3>;
- };
- }; /*overlay*/
- }; /*fragment@0*/
-};
diff --git a/mtcdt/ap2-gpiob-0.0.dtso b/mtcdt/ap2-gpiob-0.0.dtso
index 63cd435..e5237c1 100644
--- a/mtcdt/ap2-gpiob-0.0.dtso
+++ b/mtcdt/ap2-gpiob-0.0.dtso
@@ -1,13 +1,14 @@
/*
- * DTS overlay for MTCDT hardware version.
+ * DTS overlay for MTCDT 0.0 hardware version.
*/
/dts-v1/;
/*
+ * AP2 is the same for MTCDT-0.0 through MTCDT-0.2
* Location(s):
* Put: MTCDT/0.0/ap2-gpiob.dtbo
- * Link: MTCDT/0.1/ap2-gpiob.dtbo
+ * Link: MTCDT/0.2/ap2-gpiob.dtbo
*/
#include <dt-bindings/dma/at91.h>
@@ -15,14 +16,16 @@
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/clock/at91.h>
+#include <dt-bindings/gpio/mt-at91.h>
/ {
compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
+ model = "Multi-Tech Systems MTCDT-0.0";
fragment@0 {
target-path = "/ahb/apb/spi@f0004000";
- /* target = <0x76>; */
__overlay__ {
status = "okay";
+ cs-gpios = <GPIO2_PH 15 0>, <GPIO2_PH 16 0>, <GPIO2_PH 17 0>, <GPIO2_PH 18 0>;
ap2-adc@0 {
compatible = "mts-io-ap2-adc";
spi-max-frequency = <0x1312d00>;
diff --git a/mtcdt/ap2-lora-0.0.dtso b/mtcdt/ap2-lora-0.0.dtso
deleted file mode 100644
index 4cfe40b..0000000
--- a/mtcdt/ap2-lora-0.0.dtso
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * DTS overlay for MTCDT hardware version.
- */
-
-/dts-v1/;
-
-/*
- * Location(s):
- * Put: MTCDT/0.0/ap2-lora.dtbo
- * Link: MTCDT/0.1/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,at91rm9200-spi";
- fragment@0 {
- target-path = "/ahb/apb/spi@f0004000";
- /*target = <0x76>; */
- __overlay__ {
- status = "okay";
- ap2-spi@0 {
- compatible = "mts,mtac";
- spi-max-frequency = <20000000>;
- reg = <0>;
- };
- ap2-spi@1 {
- compatible = "mts,mtac";
- spi-max-frequency = <1000000>;
- reg = <1>;
- };
- ap2-spi@2 {
- compatible = "mts,mtac";
- spi-max-frequency = <2000000>;
- reg = <2>;
- };
- ap2-din@3 {
- compatible = "mts-io-ap2-din";
- spi-max-frequency = <1000000>;
- reg = <3>;
- };
- }; /*overlay*/
- }; /*fragment@0*/
-};
diff --git a/mtcdt/leds-0.0.dtso b/mtcdt/leds-0.0.dtso
new file mode 100644
index 0000000..57885a9
--- /dev/null
+++ b/mtcdt/leds-0.0.dtso
@@ -0,0 +1,49 @@
+/*
+ * DTS file for Multi-Tech Systems MTCDT 0.0 Hardware
+ *
+ * Copyright (C) 2021 by Multi-Tech Systems,
+ *
+ * Licensed under GPLv2 or later.
+ */
+
+/*
+ * Location(s):
+ * Put: MTCDT/0.0/leds.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>
+#include <dt-bindings/gpio/mt-at91.h> // Explicit PHandles
+
+/dts-v1/;
+
+/ {
+ model = "Multi-Tech Systems MTCDT-0.0";
+ compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
+ fragment@0 {
+ target-path = "/leds";
+ __overlay__ {
+ status = "okay";
+ led-a {
+ label = "led-a"; // LED5
+ gpios = <GPIO0_PH 25 GPIO_ACTIVE_LOW>;
+ };
+ led-b {
+ label = "led-b"; // LED1
+ gpios = <GPIO0_PH 26 GPIO_ACTIVE_LOW>;
+ };
+ led-c {
+ label = "led-c"; // LED4
+ gpios = <GPIO0_PH 27 GPIO_ACTIVE_LOW>;
+ };
+ led-d {
+ label = "led-d"; //LED3
+ gpios = <GPIO0_PH 28 GPIO_ACTIVE_LOW>;
+ };
+
+ };
+ }; /* fragment@0 */
+};
diff --git a/mtcdt/leds-0.2.dtso b/mtcdt/leds-0.2.dtso
new file mode 100644
index 0000000..6543513
--- /dev/null
+++ b/mtcdt/leds-0.2.dtso
@@ -0,0 +1,49 @@
+/*
+ * DTS file for Multi-Tech Systems MTCDT 0.2 Hardware
+ *
+ * Copyright (C) 2021 by Multi-Tech Systems,
+ *
+ * Licensed under GPLv2 or later.
+ */
+
+/*
+ * Location(s):
+ * Put: MTCDT/0.2/leds.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>
+#include <dt-bindings/gpio/mt-at91.h> // Explicit PHandles
+
+/dts-v1/;
+
+/ {
+ model = "Multi-Tech Systems MTCDT-0.2";
+ compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
+ fragment@0 {
+ target-path = "/leds";
+ __overlay__ {
+ status = "okay";
+ led-a {
+ label = "led-a"; // LED5
+ gpios = <GPIO5_PCA9557_PH 0 GPIO_ACTIVE_LOW>;
+ };
+ led-b {
+ label = "led-b"; // LED1
+ gpios = <GPIO4_PCA9557_PH 2 GPIO_ACTIVE_LOW>;
+ };
+ led-c {
+ label = "led-c"; // LED4
+ gpios = <GPIO4_PCA9557_PH 1 GPIO_ACTIVE_LOW>;
+ };
+ led-d {
+ label = "led-d"; //LED3
+ gpios = <GPIO4_PCA9557_PH 0 GPIO_ACTIVE_LOW>;
+ };
+
+ };
+ }; /* fragment@0 */
+};
diff --git a/mtcdt/serial-0.2.dtso b/mtcdt/serial-0.2.dtso
new file mode 100644
index 0000000..0f80daa
--- /dev/null
+++ b/mtcdt/serial-0.2.dtso
@@ -0,0 +1,37 @@
+/*
+ * DTS file for Multi-Tech Systems MTCAP 0.3 Hardware
+ *
+ * Copyright (C) 2019 by Multi-Tech Systems,
+ *
+ * Licensed under GPLv2 or later.
+ */
+
+/*
+ * Location(s):
+ * Put: MTCDT/0.2/serial.dtbo
+ */
+
+/dts-v1/;
+
+/ {
+ model = "Multi-Tech Systems MTCDT-0.2";
+ compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
+ fragment@1 { // uart0
+ target-path = "/ahb/apb/serial@f8040000";
+ __overlay__ {
+ status = "okay";
+ };
+ }; /* fragment@1 */
+ fragment@2 { //usart1
+ target-path = "/ahb/apb/serial@f8020000";
+ __overlay__ {
+ status = "okay";
+ };
+ }; /* fragment@2 */
+ fragment@3 { //usart3
+ target-path = "/ahb/apb/serial@f8028000";
+ __overlay__ {
+ status = "okay";
+ };
+ }; /* fragment@3 */
+};