From 661ce792b5cf155098511743772b6ea77d67dcfb Mon Sep 17 00:00:00 2001 From: John Klug Date: Fri, 12 Nov 2021 13:52:40 -0600 Subject: MTCDT-0.2 support -- MTAC-003 removed --- mtcdt/ap1-gpiob-0.0.dtso | 10 ++++++---- mtcdt/ap1-gpiob-0.2.dtso | 49 ++++++++++++++++++++++++++++++++++++++++++++++++ mtcdt/ap1-lora-0.0.dtso | 48 ----------------------------------------------- mtcdt/ap2-gpiob-0.0.dtso | 9 ++++++--- mtcdt/ap2-lora-0.0.dtso | 48 ----------------------------------------------- mtcdt/leds-0.0.dtso | 49 ++++++++++++++++++++++++++++++++++++++++++++++++ mtcdt/leds-0.2.dtso | 49 ++++++++++++++++++++++++++++++++++++++++++++++++ mtcdt/serial-0.2.dtso | 37 ++++++++++++++++++++++++++++++++++++ 8 files changed, 196 insertions(+), 103 deletions(-) create mode 100644 mtcdt/ap1-gpiob-0.2.dtso delete mode 100644 mtcdt/ap1-lora-0.0.dtso delete mode 100644 mtcdt/ap2-lora-0.0.dtso create mode 100644 mtcdt/leds-0.0.dtso create mode 100644 mtcdt/leds-0.2.dtso create mode 100644 mtcdt/serial-0.2.dtso 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 @@ -15,14 +14,17 @@ #include #include #include +#include // 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 = , , , ; 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 +#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-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 -#include -#include -#include -#include - -/ { - 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 @@ -15,14 +16,16 @@ #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"; - /* target = <0x76>; */ __overlay__ { status = "okay"; + cs-gpios = , , , ; 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 -#include -#include -#include -#include - -/ { - 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 +#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 = "/leds"; + __overlay__ { + status = "okay"; + led-a { + label = "led-a"; // LED5 + gpios = ; + }; + led-b { + label = "led-b"; // LED1 + gpios = ; + }; + led-c { + label = "led-c"; // LED4 + gpios = ; + }; + led-d { + label = "led-d"; //LED3 + gpios = ; + }; + + }; + }; /* 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 +#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 = "/leds"; + __overlay__ { + status = "okay"; + led-a { + label = "led-a"; // LED5 + gpios = ; + }; + led-b { + label = "led-b"; // LED1 + gpios = ; + }; + led-c { + label = "led-c"; // LED4 + gpios = ; + }; + led-d { + label = "led-d"; //LED3 + gpios = ; + }; + + }; + }; /* 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 */ +}; -- cgit v1.2.3