From 01121a51ea3cbc92485cdba8f05b714effe6ac9e Mon Sep 17 00:00:00 2001 From: sharma-mts <86847754+sharma-mts@users.noreply.github.com> Date: Fri, 14 Jan 2022 13:16:49 -0600 Subject: MTAC-LORA overlay --- mtcdt/ap1-gpiob-0.0.dtso | 4 ++-- mtcdt/ap1-gpiob-0.2.dtso | 4 ++-- mtcdt/ap1-lora-0.0.dtso | 49 ++++++++++++++++++++++++++++++++++++++++++++ mtcdt/ap2-gpiob-0.0.dtso | 8 ++++---- mtcdt/ap2-lora-0.0.dtso | 49 ++++++++++++++++++++++++++++++++++++++++++++ mtcdt/pins-0.0.dtso | 53 ++++++++++++++++++++++++++++++++++++++++++++++++ mtcdt/pins-0.2.dtso | 53 ++++++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 212 insertions(+), 8 deletions(-) create mode 100644 mtcdt/ap1-lora-0.0.dtso create mode 100644 mtcdt/ap2-lora-0.0.dtso create mode 100644 mtcdt/pins-0.0.dtso create mode 100644 mtcdt/pins-0.2.dtso (limited to 'mtcdt') diff --git a/mtcdt/ap1-gpiob-0.0.dtso b/mtcdt/ap1-gpiob-0.0.dtso index 1278314..5454765 100644 --- a/mtcdt/ap1-gpiob-0.0.dtso +++ b/mtcdt/ap1-gpiob-0.0.dtso @@ -6,8 +6,8 @@ /* * Location(s): - * Put: MTCDT/0.0/ap1-gpiob.dtbo - * Link: MTCDTIP/0.0/ap1-gpiob.dtbo + * Put: MTCDT/0.0/gpiob/ap1-gpiob.dtbo + * Link: MTCDTIP/0.0/gpiob/ap1-gpiob.dtbo */ #include diff --git a/mtcdt/ap1-gpiob-0.2.dtso b/mtcdt/ap1-gpiob-0.2.dtso index 0fb7a23..1a6d796 100644 --- a/mtcdt/ap1-gpiob-0.2.dtso +++ b/mtcdt/ap1-gpiob-0.2.dtso @@ -6,8 +6,8 @@ /* * Location(s): - * Put: MTCDT/0.2/ap1-gpiob.dtbo - * Link: MTCDTIP/0.1/ap1-gpiob.dtbo + * Put: MTCDT/0.2/gpiob/ap1-gpiob.dtbo + * Link: MTCDTIP/0.1/gpiob/ap1-gpiob.dtbo */ #include diff --git a/mtcdt/ap1-lora-0.0.dtso b/mtcdt/ap1-lora-0.0.dtso new file mode 100644 index 0000000..c314fe2 --- /dev/null +++ b/mtcdt/ap1-lora-0.0.dtso @@ -0,0 +1,49 @@ +/* + * DTS overlay for MTCDT 0.0/0.1 hardware versions. + */ + +/dts-v1/; + +/* + * Location(s): + * Put: MTCDT/0.0/lora/ap1-lora.dtbo + */ + +#include +#include +#include +#include +#include +#include + +/ { + 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 = , , , ; + 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 225aa72..dce248f 100644 --- a/mtcdt/ap2-gpiob-0.0.dtso +++ b/mtcdt/ap2-gpiob-0.0.dtso @@ -7,10 +7,10 @@ /* * AP2 is the same for MTCDT-0.0 through MTCDT-0.2 * Location(s): - * Put: MTCDT/0.0/ap2-gpiob.dtbo - * Link: MTCDT/0.2/ap2-gpiob.dtbo - * Link: MTCDTIP/0.0/ap2-gpiob.dtbo - * Link: MTCDTIP/0.1/ap2-gpiob.dtbo + * Put: MTCDT/0.0/gpiob/ap2-gpiob.dtbo + * Link: MTCDT/0.2/gpiob/ap2-gpiob.dtbo + * Link: MTCDTIP/0.0/gpiob/ap2-gpiob.dtbo + * Link: MTCDTIP/0.1/gpiob/ap2-gpiob.dtbo */ #include diff --git a/mtcdt/ap2-lora-0.0.dtso b/mtcdt/ap2-lora-0.0.dtso new file mode 100644 index 0000000..d72e47c --- /dev/null +++ b/mtcdt/ap2-lora-0.0.dtso @@ -0,0 +1,49 @@ +/* + * DTS overlay for MTCDT 0.0/0.1 hardware versions. + */ + +/dts-v1/; + +/* + * Location(s): + * Put: MTCDT/0.0/lora/ap2-lora.dtbo + */ + +#include +#include +#include +#include +#include +#include + +/ { + compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; + model = "Multi-Tech Systems MTCDT-0.0"; + fragment@0 { + target-path = "/ahb/apb/spi@f0004000"; + __overlay__ { + status = "okay"; + cs-gpios = , , , ; + 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/pins-0.0.dtso b/mtcdt/pins-0.0.dtso new file mode 100644 index 0000000..0844052 --- /dev/null +++ b/mtcdt/pins-0.0.dtso @@ -0,0 +1,53 @@ +/* + * 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/pins.dtbo + */ + +#include +#include +#include +#include +#include +#include // Explicit PHandles + +/dts-v1/; + +/ { + model = "Multi-Tech Systems MTCDT-0.0"; + compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; + fragment@0 { + target-path = "/mts-io"; + __overlay__ { + status = "okay"; + WIFI_BT_LPWKUP-gpios = ; + CD_LED-gpios = ; + SIG1_LED-gpios = ; + SIG2_LED-gpios = ; + SIG3_LED-gpios = ; + + AP1_GPIO3-gpios = ; + AP1_GPIO4-gpios = ; + AP1_TBD1-gpios = ; + AP1_TBD2-gpios = ; + AP1_TBD3-gpios = ; + AP1_TBD4-gpios = ; + AP1_TBD5-gpios = ; + AP2_GPIO3-gpios = ; + AP2_GPIO4-gpios = ; + AP2_TBD1-gpios = ; + AP2_TBD2-gpios = ; + AP2_TBD3-gpios = ; + AP2_TBD4-gpios = ; + AP2_TBD5-gpios = ; + + }; + }; /* fragment@0 */ +}; diff --git a/mtcdt/pins-0.2.dtso b/mtcdt/pins-0.2.dtso new file mode 100644 index 0000000..0e9ef6a --- /dev/null +++ b/mtcdt/pins-0.2.dtso @@ -0,0 +1,53 @@ +/* + * 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/pins.dtbo + */ + +#include +#include +#include +#include +#include +#include // Explicit PHandles + +/dts-v1/; + +/ { + model = "Multi-Tech Systems MTCDT-0.2"; + compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; + fragment@0 { + target-path = "/mts-io"; + __overlay__ { + AP1_GPIO3-gpios = ; + AP1_GPIO4-gpios = ; + AP2_GPIO4-gpios = ; + AP2_GPIO3-gpios = ; + + SIG3_LED-gpios = ; + WIFI_BT_LPWKUP-gpios = ; + RADIO_STATUS-gpios = ; + AP1_TDB1-gpios = ; + AP1_TDB2-gpios = ; + AP1_TDB3-gpios = ; + AP1_TDB4-gpios = ; + AP1_TDB5-gpios = ; + + CD_LED-gpios = ; + SIG1_LED-gpios = ; + SIG2_LED-gpios = ; + AP2_TDB1-gpios = ; + AP2_TDB2-gpios = ; + AP2_TDB3-gpios = ; + AP2_TDB4-gpios = ; + AP2_TDB5-gpios = ; + }; + }; /* fragment@0 */ +}; -- cgit v1.2.3