From 547f4b3b06a2d312ae4c4916ed511d19f16f6b67 Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Thu, 13 May 2021 02:22:54 -0500 Subject: added mtac-003 overlay support for mtcdt and mtcdt3ac platforms --- Makefile | 3 ++- mtcdt/alt-mtcdt-0.0.dtso | 66 ---------------------------------------------- mtcdt/ap1-gpiob-0.0.dtso | 43 ++++++++++++++++++++++++++++++ mtcdt/ap1-xdot-0.0.dtso | 35 ------------------------ mtcdt/ap2-gpiob-0.0.dtso | 43 ++++++++++++++++++++++++++++++ mtcdt/ap2-xdot-0.0.dtso | 36 ------------------------- mtcdt/mtcdt-0.0.dtso | 66 ---------------------------------------------- mtcdt/mtcdt-gpios.0.0.dtso | 66 ---------------------------------------------- mtcpmhs/ap1-gpiob-0.0.dtso | 39 +++++++++++++++++++++++++++ mtcpmhs/ap2-gpiob-0.0.dtso | 39 +++++++++++++++++++++++++++ 10 files changed, 166 insertions(+), 270 deletions(-) delete mode 100644 mtcdt/alt-mtcdt-0.0.dtso create mode 100644 mtcdt/ap1-gpiob-0.0.dtso delete mode 100644 mtcdt/ap1-xdot-0.0.dtso create mode 100644 mtcdt/ap2-gpiob-0.0.dtso delete mode 100644 mtcdt/ap2-xdot-0.0.dtso delete mode 100644 mtcdt/mtcdt-0.0.dtso delete mode 100644 mtcdt/mtcdt-gpios.0.0.dtso create mode 100644 mtcpmhs/ap1-gpiob-0.0.dtso create mode 100644 mtcpmhs/ap2-gpiob-0.0.dtso 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 -#include -#include -#include -#include -#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 = ; - label = "radio-reset"; - alias = "radio-power"; - }; /* radio */ - device_reset { - atmel,pins = ; - label = "reset"; - active-low; - }; - eth_reset { - atmel,pins = ; - label = "eth-reset"; - }; /* eth */ - ls_led { - atmel,pins = ; - label = "led-ls"; - active_low; - }; - status_led { - atmel,pins = ; - label = "led-status"; - active_low; - }; - led5 { - atmel,pins = ; - label = "led-cd"; - alias = "led-a"; - active_low; - }; - led1 { - atmel,pins = ; - label = "led-sig1"; - alias = "led-b"; - active_low; - }; - }; /* mtsio */ - }; /* 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..3820acc --- /dev/null +++ b/mtcdt/ap1-gpiob-0.0.dtso @@ -0,0 +1,43 @@ +/* + * DTS overlay for MTCDT 0.0 hardware version. + */ + +/dts-v1/; + +/* + * Location(s): + * Put: MTCDT/0.0/ap1-gpiob.dtbo + */ + +#include +#include +#include +#include +#include +#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 = "ti,am437x-gp-evm", "ti,am4372", "ti,am43"; + fragment@0 { + target-path = "/apb/spi@f0000000 "; + __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*/ + }; /*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 -#include -#include -#include -#include -#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 = ; - label = "ap1-reset"; - }; /* Reset */ - }; /* ap1 */ - }; /* mtac_xdot */ - }; /* 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..57e2ef9 --- /dev/null +++ b/mtcdt/ap2-gpiob-0.0.dtso @@ -0,0 +1,43 @@ +/* + * DTS overlay for MTCDT 0.0 hardware version. + */ + +/dts-v1/; + +/* + * Location(s): + * Put: MTCDT/0.0/ap2-gpiob.dtbo + */ + +#include +#include +#include +#include +#include +#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 = "ti,am437x-gp-evm", "ti,am4372", "ti,am43"; + fragment@0 { + target-path = "/apb/spi@f0004000"; + __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*/ + }; /*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 -#include -#include -#include -#include -#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 = ; - 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 -#include -#include -#include -#include -#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 = ; - label = "radio-reset"; - alias = "radio-power"; - }; /* radio */ - device_reset { - atmel,pins = ; - label = "reset"; - active-low; - }; - eth_reset { - atmel,pins = ; - label = "eth-reset"; - }; /* eth */ - ls_led { - atmel,pins = ; - label = "led-ls"; - active_low; - }; - status_led { - atmel,pins = ; - label = "led-status"; - active_low; - }; - led5 { - atmel,pins = ; - label = "led-cd"; - alias = "led-a"; - active_low; - }; - led1 { - atmel,pins = ; - 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-gpiob-0.0.dtso b/mtcpmhs/ap1-gpiob-0.0.dtso new file mode 100644 index 0000000..faf9f09 --- /dev/null +++ b/mtcpmhs/ap1-gpiob-0.0.dtso @@ -0,0 +1,39 @@ +/* + * DTS overlay for MTCPM 0.0 hardware version. + */ + +/dts-v1/; + +/* + * Location(s): + * Put: MTCDT3/0.0/ap1-gpiob.dtbo + */ + +#include "am4372.dtsi" +#include +#include +#include + +/ { + 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*/ + }; /*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..e1fdef2 --- /dev/null +++ b/mtcpmhs/ap2-gpiob-0.0.dtso @@ -0,0 +1,39 @@ +/* + * DTS overlay for MTCPM 0.0 hardware version. + */ + +/dts-v1/; + +/* + * Location(s): + * Put: MTCDT3/0.0/ap2-gpiob.dtbo + */ + +#include "am4372.dtsi" +#include +#include +#include + +/ { + 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*/ + }; /*overlay*/ + }; /*fragment@0*/ +}; -- cgit v1.2.3 From b68283be6a4f5b69200a4b2c0dc3a93a65708d2c Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Fri, 14 May 2021 06:44:24 -0500 Subject: fixed an error in overlay path --- mtcdt/ap1-gpiob-0.0.dtso | 2 +- mtcdt/ap2-gpiob-0.0.dtso | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mtcdt/ap1-gpiob-0.0.dtso b/mtcdt/ap1-gpiob-0.0.dtso index 3820acc..dd6c1e1 100644 --- a/mtcdt/ap1-gpiob-0.0.dtso +++ b/mtcdt/ap1-gpiob-0.0.dtso @@ -21,7 +21,7 @@ / { compatible = "ti,am437x-gp-evm", "ti,am4372", "ti,am43"; fragment@0 { - target-path = "/apb/spi@f0000000 "; + target-path = "ahb/apb/spi@f0000000 "; __overlay__ { ap1-adc@0 { compatible = "mts-io-ap1-adc"; diff --git a/mtcdt/ap2-gpiob-0.0.dtso b/mtcdt/ap2-gpiob-0.0.dtso index 57e2ef9..a30da44 100644 --- a/mtcdt/ap2-gpiob-0.0.dtso +++ b/mtcdt/ap2-gpiob-0.0.dtso @@ -21,7 +21,7 @@ / { compatible = "ti,am437x-gp-evm", "ti,am4372", "ti,am43"; fragment@0 { - target-path = "/apb/spi@f0004000"; + target-path = "ahb/apb/spi@f0004000"; __overlay__ { ap2-adc@0 { compatible = "mts-io-ap2-adc"; -- cgit v1.2.3 From af13a8292f187945bc5874f941784eea6ff7f2a0 Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Mon, 17 May 2021 04:23:38 -0500 Subject: added missing 4th node. repaired mtcdt device tree paths --- mtcdt/ap1-gpiob-0.0.dtso | 11 +++++++---- mtcdt/ap2-gpiob-0.0.dtso | 12 +++++++----- mtcpmhs/ap1-gpiob-0.0.dtso | 5 +++++ mtcpmhs/ap2-gpiob-0.0.dtso | 5 +++++ 4 files changed, 24 insertions(+), 9 deletions(-) diff --git a/mtcdt/ap1-gpiob-0.0.dtso b/mtcdt/ap1-gpiob-0.0.dtso index dd6c1e1..17b3e78 100644 --- a/mtcdt/ap1-gpiob-0.0.dtso +++ b/mtcdt/ap1-gpiob-0.0.dtso @@ -14,14 +14,12 @@ #include #include #include -#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 = "ti,am437x-gp-evm", "ti,am4372", "ti,am43"; + compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; fragment@0 { - target-path = "ahb/apb/spi@f0000000 "; + target-path = "/ahb/apb/spi@f0000000 "; __overlay__ { ap1-adc@0 { compatible = "mts-io-ap1-adc"; @@ -38,6 +36,11 @@ 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/ap2-gpiob-0.0.dtso b/mtcdt/ap2-gpiob-0.0.dtso index a30da44..724047c 100644 --- a/mtcdt/ap2-gpiob-0.0.dtso +++ b/mtcdt/ap2-gpiob-0.0.dtso @@ -14,14 +14,11 @@ #include #include #include -#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 = "ti,am437x-gp-evm", "ti,am4372", "ti,am43"; + compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; fragment@0 { - target-path = "ahb/apb/spi@f0004000"; + target-path = "/ahb/apb/spi@f0004000"; __overlay__ { ap2-adc@0 { compatible = "mts-io-ap2-adc"; @@ -38,6 +35,11 @@ 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/mtcpmhs/ap1-gpiob-0.0.dtso b/mtcpmhs/ap1-gpiob-0.0.dtso index faf9f09..aeea8c4 100644 --- a/mtcpmhs/ap1-gpiob-0.0.dtso +++ b/mtcpmhs/ap1-gpiob-0.0.dtso @@ -34,6 +34,11 @@ 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/ap2-gpiob-0.0.dtso b/mtcpmhs/ap2-gpiob-0.0.dtso index e1fdef2..47089af 100644 --- a/mtcpmhs/ap2-gpiob-0.0.dtso +++ b/mtcpmhs/ap2-gpiob-0.0.dtso @@ -34,6 +34,11 @@ 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*/ }; -- cgit v1.2.3 From 37da698f503961a95ee0e09a5f4da371e7b81f46 Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Thu, 17 Jun 2021 08:46:04 -0500 Subject: added 4 overlays to restore lora packet forwarder behavior --- mtcdt/ap1-lora-0.0.dtso | 31 +++++++++++++++++++++++++++++++ mtcdt/ap2-lora-0.0.dtso | 30 ++++++++++++++++++++++++++++++ mtcpmhs/ap1-lora-0.0.dtso | 29 +++++++++++++++++++++++++++++ mtcpmhs/ap2-lora-0.0.dtso | 29 +++++++++++++++++++++++++++++ 4 files changed, 119 insertions(+) create mode 100644 mtcdt/ap1-lora-0.0.dtso create mode 100644 mtcdt/ap2-lora-0.0.dtso create mode 100644 mtcpmhs/ap1-lora-0.0.dtso create mode 100644 mtcpmhs/ap2-lora-0.0.dtso diff --git a/mtcdt/ap1-lora-0.0.dtso b/mtcdt/ap1-lora-0.0.dtso new file mode 100644 index 0000000..1412cee --- /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 +#include +#include +#include +#include + + +/ { + 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/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 +#include +#include +#include +#include + +/ { + 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/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 +#include +#include + +/ { + 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-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 +#include +#include + +/ { + 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*/ +}; -- cgit v1.2.3 From beec888d361e40124ab6d1a7d3f0009cf9d3a7e7 Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Thu, 17 Jun 2021 10:12:02 -0500 Subject: test code for mtac-003 overlay support --- mtcpmhs/ap1-003-0.0.dtso | 34 ++++++++++++++++++++++++++++++++++ mtcpmhs/ap2-003-0.0.dtso | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 mtcpmhs/ap1-003-0.0.dtso create mode 100644 mtcpmhs/ap2-003-0.0.dtso diff --git a/mtcpmhs/ap1-003-0.0.dtso b/mtcpmhs/ap1-003-0.0.dtso new file mode 100644 index 0000000..c4c8cbc --- /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 +#include +#include + +/ { + 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/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 +#include +#include + +/ { + 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*/ +}; -- cgit v1.2.3 From 507501e89b26c42ff3345c3d2a07c4750c5d0840 Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Thu, 17 Jun 2021 10:35:39 -0500 Subject: added missing semicolon --- mtcpmhs/ap1-003-0.0.dtso | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtcpmhs/ap1-003-0.0.dtso b/mtcpmhs/ap1-003-0.0.dtso index c4c8cbc..7ceb4ee 100644 --- a/mtcpmhs/ap1-003-0.0.dtso +++ b/mtcpmhs/ap1-003-0.0.dtso @@ -21,7 +21,7 @@ __overlay__ { ap1-spi@0 { compatible = "mts,mtac"; - spi-max-frequency = <0x1e8480> + spi-max-frequency = <0x1e8480>; reg = <0x0>; };/*ap1-spi0*/ ap1-spi@1 { -- cgit v1.2.3 From 26b61db6c8a08da2ceaeea1a635c1651936adfd6 Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Fri, 18 Jun 2021 01:47:30 -0500 Subject: added mtac-003 overlays for the mtcdt environment --- mtcdt/ap1-003-0.0.dtso | 36 ++++++++++++++++++++++++++++++++++++ mtcdt/ap2-003-0.0.dtso | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 mtcdt/ap1-003-0.0.dtso create mode 100644 mtcdt/ap2-003-0.0.dtso diff --git a/mtcdt/ap1-003-0.0.dtso b/mtcdt/ap1-003-0.0.dtso new file mode 100644 index 0000000..2c9ada9 --- /dev/null +++ b/mtcdt/ap1-003-0.0.dtso @@ -0,0 +1,36 @@ +/* + * DTS overlay for MTCDT 0.0 hardware version. + */ + +/dts-v1/; + +/* + * Location(s): + * Put: MTCDT/0.0/ap1-lora.dtbo + */ + +#include +#include +#include +#include +#include + + +/ { + compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; + fragment@0 { + target-path = "/ahb/apb/spi@f0000000 "; + __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/mtcdt/ap2-003-0.0.dtso b/mtcdt/ap2-003-0.0.dtso new file mode 100644 index 0000000..509eb9d --- /dev/null +++ b/mtcdt/ap2-003-0.0.dtso @@ -0,0 +1,35 @@ +/* + * DTS overlay for MTCDT 0.0 hardware version. + */ + +/dts-v1/; + +/* + * Location(s): + * Put: MTCDT/0.0/ap2-lora.dtbo + */ + +#include +#include +#include +#include +#include + +/ { + compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; + fragment@0 { + target-path = "/ahb/apb/spi@f0004000"; + __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*/ +}; -- cgit v1.2.3 From 0a65565e960ed81404d0069bba1aa8f3419807a5 Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Fri, 9 Jul 2021 08:36:45 -0500 Subject: switched targetting format to phandle from path on MTCDT images --- mtcdt/ap1-003-0.0.dtso | 3 ++- mtcdt/ap1-gpiob-0.0.dtso | 3 ++- mtcdt/ap1-lora-0.0.dtso | 3 ++- mtcdt/ap2-003-0.0.dtso | 3 ++- mtcdt/ap2-gpiob-0.0.dtso | 3 ++- mtcdt/ap2-lora-0.0.dtso | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/mtcdt/ap1-003-0.0.dtso b/mtcdt/ap1-003-0.0.dtso index 2c9ada9..a539e73 100644 --- a/mtcdt/ap1-003-0.0.dtso +++ b/mtcdt/ap1-003-0.0.dtso @@ -19,7 +19,8 @@ / { compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; fragment@0 { - target-path = "/ahb/apb/spi@f0000000 "; + /* target-path = "/ahb/apb/spi@f0000000 "; */ + target = <0x75>; __overlay__ { ap1-spi@0 { compatible = "mts,mtac"; diff --git a/mtcdt/ap1-gpiob-0.0.dtso b/mtcdt/ap1-gpiob-0.0.dtso index 17b3e78..56dfcb1 100644 --- a/mtcdt/ap1-gpiob-0.0.dtso +++ b/mtcdt/ap1-gpiob-0.0.dtso @@ -19,7 +19,8 @@ / { compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; fragment@0 { - target-path = "/ahb/apb/spi@f0000000 "; +/* target-path = "/ahb/apb/spi@f0000000 ";*/ + target = <0x75>; __overlay__ { ap1-adc@0 { compatible = "mts-io-ap1-adc"; diff --git a/mtcdt/ap1-lora-0.0.dtso b/mtcdt/ap1-lora-0.0.dtso index 1412cee..ccb8f64 100644 --- a/mtcdt/ap1-lora-0.0.dtso +++ b/mtcdt/ap1-lora-0.0.dtso @@ -19,7 +19,8 @@ / { compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; fragment@0 { - target-path = "/ahb/apb/spi@f0000000 "; + /* target-path = "/ahb/apb/spi@f0000000 ";*/ + target = <0x75>; __overlay__ { ap1-spi@2 { compatible = "mts,mtac"; diff --git a/mtcdt/ap2-003-0.0.dtso b/mtcdt/ap2-003-0.0.dtso index 509eb9d..14493e8 100644 --- a/mtcdt/ap2-003-0.0.dtso +++ b/mtcdt/ap2-003-0.0.dtso @@ -18,7 +18,8 @@ / { compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; fragment@0 { - target-path = "/ahb/apb/spi@f0004000"; +/* target-path = "/ahb/apb/spi@f0004000";*/ + target = <0x76>; __overlay__ { ap1-spi@0 { compatible = "mts,mtac"; diff --git a/mtcdt/ap2-gpiob-0.0.dtso b/mtcdt/ap2-gpiob-0.0.dtso index 724047c..e8a3332 100644 --- a/mtcdt/ap2-gpiob-0.0.dtso +++ b/mtcdt/ap2-gpiob-0.0.dtso @@ -18,7 +18,8 @@ / { compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; fragment@0 { - target-path = "/ahb/apb/spi@f0004000"; +/* target-path = "/ahb/apb/spi@f0004000";*/ + target = <0x76>; __overlay__ { ap2-adc@0 { compatible = "mts-io-ap2-adc"; diff --git a/mtcdt/ap2-lora-0.0.dtso b/mtcdt/ap2-lora-0.0.dtso index 68a0c79..0c04c97 100644 --- a/mtcdt/ap2-lora-0.0.dtso +++ b/mtcdt/ap2-lora-0.0.dtso @@ -18,7 +18,8 @@ / { compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; fragment@0 { - target-path = "/ahb/apb/spi@f0004000"; +/* target-path = "/ahb/apb/spi@f0004000";*/ + target = <0x76>; __overlay__ { ap2-spi@2 { compatible = "mts,mtac"; -- cgit v1.2.3 From 4dfede285a783af3f690c265c570cc50df3cff3f Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Mon, 12 Jul 2021 02:22:38 -0500 Subject: renamed ap*-003 to ap*-mtac-003 --- mtcdt/ap1-003-0.0.dtso | 37 ------------------------------------- mtcdt/ap1-mtac-003-0.0.dtso | 37 +++++++++++++++++++++++++++++++++++++ mtcdt/ap2-003-0.0.dtso | 36 ------------------------------------ mtcdt/ap2-mtac-003-0.0.dtso | 36 ++++++++++++++++++++++++++++++++++++ mtcpmhs/ap1-003-0.0.dtso | 34 ---------------------------------- mtcpmhs/ap1-mtac-003-0.0.dtso | 34 ++++++++++++++++++++++++++++++++++ mtcpmhs/ap2-003-0.0.dtso | 34 ---------------------------------- mtcpmhs/ap2-mtac-003-0.0.dtso | 34 ++++++++++++++++++++++++++++++++++ 8 files changed, 141 insertions(+), 141 deletions(-) delete mode 100644 mtcdt/ap1-003-0.0.dtso create mode 100644 mtcdt/ap1-mtac-003-0.0.dtso delete mode 100644 mtcdt/ap2-003-0.0.dtso create mode 100644 mtcdt/ap2-mtac-003-0.0.dtso delete mode 100644 mtcpmhs/ap1-003-0.0.dtso create mode 100644 mtcpmhs/ap1-mtac-003-0.0.dtso delete mode 100644 mtcpmhs/ap2-003-0.0.dtso create mode 100644 mtcpmhs/ap2-mtac-003-0.0.dtso diff --git a/mtcdt/ap1-003-0.0.dtso b/mtcdt/ap1-003-0.0.dtso deleted file mode 100644 index a539e73..0000000 --- a/mtcdt/ap1-003-0.0.dtso +++ /dev/null @@ -1,37 +0,0 @@ -/* - * DTS overlay for MTCDT 0.0 hardware version. - */ - -/dts-v1/; - -/* - * Location(s): - * Put: MTCDT/0.0/ap1-lora.dtbo - */ - -#include -#include -#include -#include -#include - - -/ { - compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; - fragment@0 { - /* target-path = "/ahb/apb/spi@f0000000 "; */ - target = <0x75>; - __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/mtcdt/ap1-mtac-003-0.0.dtso b/mtcdt/ap1-mtac-003-0.0.dtso new file mode 100644 index 0000000..a539e73 --- /dev/null +++ b/mtcdt/ap1-mtac-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-lora.dtbo + */ + +#include +#include +#include +#include +#include + + +/ { + compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; + fragment@0 { + /* target-path = "/ahb/apb/spi@f0000000 "; */ + target = <0x75>; + __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/mtcdt/ap2-003-0.0.dtso b/mtcdt/ap2-003-0.0.dtso deleted file mode 100644 index 14493e8..0000000 --- a/mtcdt/ap2-003-0.0.dtso +++ /dev/null @@ -1,36 +0,0 @@ -/* - * DTS overlay for MTCDT 0.0 hardware version. - */ - -/dts-v1/; - -/* - * Location(s): - * Put: MTCDT/0.0/ap2-lora.dtbo - */ - -#include -#include -#include -#include -#include - -/ { - compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; - fragment@0 { -/* target-path = "/ahb/apb/spi@f0004000";*/ - target = <0x76>; - __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/mtcdt/ap2-mtac-003-0.0.dtso b/mtcdt/ap2-mtac-003-0.0.dtso new file mode 100644 index 0000000..14493e8 --- /dev/null +++ b/mtcdt/ap2-mtac-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-lora.dtbo + */ + +#include +#include +#include +#include +#include + +/ { + compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; + fragment@0 { +/* target-path = "/ahb/apb/spi@f0004000";*/ + target = <0x76>; + __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-003-0.0.dtso b/mtcpmhs/ap1-003-0.0.dtso deleted file mode 100644 index 7ceb4ee..0000000 --- a/mtcpmhs/ap1-003-0.0.dtso +++ /dev/null @@ -1,34 +0,0 @@ -/* - * DTS overlay for MTCPM 0.0 hardware version. - */ - -/dts-v1/; - -/* - * Location(s): - * Put: MTCDT3/0.0/ap1-003.dtbo - */ - -#include "am4372.dtsi" -#include -#include -#include - -/ { - 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-mtac-003-0.0.dtso b/mtcpmhs/ap1-mtac-003-0.0.dtso new file mode 100644 index 0000000..7ceb4ee --- /dev/null +++ b/mtcpmhs/ap1-mtac-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 +#include +#include + +/ { + 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/ap2-003-0.0.dtso b/mtcpmhs/ap2-003-0.0.dtso deleted file mode 100644 index 93f7de4..0000000 --- a/mtcpmhs/ap2-003-0.0.dtso +++ /dev/null @@ -1,34 +0,0 @@ -/* - * DTS overlay for MTCPM 0.0 hardware version. - */ - -/dts-v1/; - -/* - * Location(s): - * Put: MTCDT3/0.0/ap2-003.dtbo - */ - -#include "am4372.dtsi" -#include -#include -#include - -/ { - 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-mtac-003-0.0.dtso b/mtcpmhs/ap2-mtac-003-0.0.dtso new file mode 100644 index 0000000..93f7de4 --- /dev/null +++ b/mtcpmhs/ap2-mtac-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 +#include +#include + +/ { + 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*/ +}; -- cgit v1.2.3 From ddb753639acefa817e1d7f131639cc044dda26f2 Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Mon, 12 Jul 2021 04:05:54 -0500 Subject: repaired erronous locations in mtac-003 ap1 and ap2. changed names back --- mtcdt/ap1-003-0.0.dtso | 37 +++++++++++++++++++++++++++++++++++++ mtcdt/ap1-mtac-003-0.0.dtso | 37 ------------------------------------- mtcdt/ap2-003-0.0.dtso | 36 ++++++++++++++++++++++++++++++++++++ mtcdt/ap2-mtac-003-0.0.dtso | 36 ------------------------------------ 4 files changed, 73 insertions(+), 73 deletions(-) create mode 100644 mtcdt/ap1-003-0.0.dtso delete mode 100644 mtcdt/ap1-mtac-003-0.0.dtso create mode 100644 mtcdt/ap2-003-0.0.dtso delete mode 100644 mtcdt/ap2-mtac-003-0.0.dtso diff --git a/mtcdt/ap1-003-0.0.dtso b/mtcdt/ap1-003-0.0.dtso new file mode 100644 index 0000000..0a3b046 --- /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 +#include +#include +#include +#include + + +/ { + compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; + fragment@0 { + /* target-path = "/ahb/apb/spi@f0000000 "; */ + target = <0x75>; + __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/mtcdt/ap1-mtac-003-0.0.dtso b/mtcdt/ap1-mtac-003-0.0.dtso deleted file mode 100644 index a539e73..0000000 --- a/mtcdt/ap1-mtac-003-0.0.dtso +++ /dev/null @@ -1,37 +0,0 @@ -/* - * DTS overlay for MTCDT 0.0 hardware version. - */ - -/dts-v1/; - -/* - * Location(s): - * Put: MTCDT/0.0/ap1-lora.dtbo - */ - -#include -#include -#include -#include -#include - - -/ { - compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; - fragment@0 { - /* target-path = "/ahb/apb/spi@f0000000 "; */ - target = <0x75>; - __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/mtcdt/ap2-003-0.0.dtso b/mtcdt/ap2-003-0.0.dtso new file mode 100644 index 0000000..65b666c --- /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 +#include +#include +#include +#include + +/ { + compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; + fragment@0 { +/* target-path = "/ahb/apb/spi@f0004000";*/ + target = <0x76>; + __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/mtcdt/ap2-mtac-003-0.0.dtso b/mtcdt/ap2-mtac-003-0.0.dtso deleted file mode 100644 index 14493e8..0000000 --- a/mtcdt/ap2-mtac-003-0.0.dtso +++ /dev/null @@ -1,36 +0,0 @@ -/* - * DTS overlay for MTCDT 0.0 hardware version. - */ - -/dts-v1/; - -/* - * Location(s): - * Put: MTCDT/0.0/ap2-lora.dtbo - */ - -#include -#include -#include -#include -#include - -/ { - compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; - fragment@0 { -/* target-path = "/ahb/apb/spi@f0004000";*/ - target = <0x76>; - __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*/ -}; -- cgit v1.2.3 From 4894755acf1d6666f9d8e587aca5f051416ea812 Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Mon, 12 Jul 2021 06:40:12 -0500 Subject: changed names in mtcpmhs back to ap*-003 --- mtcpmhs/ap1-003-0.0.dtso | 34 ++++++++++++++++++++++++++++++++++ mtcpmhs/ap1-mtac-003-0.0.dtso | 34 ---------------------------------- mtcpmhs/ap2-003-0.0.dtso | 34 ++++++++++++++++++++++++++++++++++ mtcpmhs/ap2-mtac-003-0.0.dtso | 34 ---------------------------------- 4 files changed, 68 insertions(+), 68 deletions(-) create mode 100644 mtcpmhs/ap1-003-0.0.dtso delete mode 100644 mtcpmhs/ap1-mtac-003-0.0.dtso create mode 100644 mtcpmhs/ap2-003-0.0.dtso delete mode 100644 mtcpmhs/ap2-mtac-003-0.0.dtso 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 +#include +#include + +/ { + 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-mtac-003-0.0.dtso b/mtcpmhs/ap1-mtac-003-0.0.dtso deleted file mode 100644 index 7ceb4ee..0000000 --- a/mtcpmhs/ap1-mtac-003-0.0.dtso +++ /dev/null @@ -1,34 +0,0 @@ -/* - * DTS overlay for MTCPM 0.0 hardware version. - */ - -/dts-v1/; - -/* - * Location(s): - * Put: MTCDT3/0.0/ap1-003.dtbo - */ - -#include "am4372.dtsi" -#include -#include -#include - -/ { - 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/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 +#include +#include + +/ { + 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-mtac-003-0.0.dtso b/mtcpmhs/ap2-mtac-003-0.0.dtso deleted file mode 100644 index 93f7de4..0000000 --- a/mtcpmhs/ap2-mtac-003-0.0.dtso +++ /dev/null @@ -1,34 +0,0 @@ -/* - * DTS overlay for MTCPM 0.0 hardware version. - */ - -/dts-v1/; - -/* - * Location(s): - * Put: MTCDT3/0.0/ap2-003.dtbo - */ - -#include "am4372.dtsi" -#include -#include -#include - -/ { - 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*/ -}; -- cgit v1.2.3 From 374fb36d15f2614e4af01f0b93559660d372a429 Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Mon, 12 Jul 2021 06:45:01 -0500 Subject: removed floating whitespace in some layer paths for MTCDT --- mtcdt/ap1-003-0.0.dtso | 4 ++-- mtcdt/ap1-gpiob-0.0.dtso | 4 ++-- mtcdt/ap1-lora-0.0.dtso | 3 +-- mtcdt/ap2-003-0.0.dtso | 4 ++-- mtcdt/ap2-gpiob-0.0.dtso | 4 ++-- mtcdt/ap2-lora-0.0.dtso | 3 +-- 6 files changed, 10 insertions(+), 12 deletions(-) diff --git a/mtcdt/ap1-003-0.0.dtso b/mtcdt/ap1-003-0.0.dtso index 0a3b046..25f5bb5 100644 --- a/mtcdt/ap1-003-0.0.dtso +++ b/mtcdt/ap1-003-0.0.dtso @@ -19,8 +19,8 @@ / { compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; fragment@0 { - /* target-path = "/ahb/apb/spi@f0000000 "; */ - target = <0x75>; + target-path = "/ahb/apb/spi@f0000000"; +/* target = <0x75>;*/ __overlay__ { ap1-spi@0 { compatible = "mts,mtac"; diff --git a/mtcdt/ap1-gpiob-0.0.dtso b/mtcdt/ap1-gpiob-0.0.dtso index 56dfcb1..263b79e 100644 --- a/mtcdt/ap1-gpiob-0.0.dtso +++ b/mtcdt/ap1-gpiob-0.0.dtso @@ -19,8 +19,8 @@ / { compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; fragment@0 { -/* target-path = "/ahb/apb/spi@f0000000 ";*/ - target = <0x75>; + target-path = "/ahb/apb/spi@f0000000"; +/* target = <0x75>;*/ __overlay__ { ap1-adc@0 { compatible = "mts-io-ap1-adc"; diff --git a/mtcdt/ap1-lora-0.0.dtso b/mtcdt/ap1-lora-0.0.dtso index ccb8f64..a05b725 100644 --- a/mtcdt/ap1-lora-0.0.dtso +++ b/mtcdt/ap1-lora-0.0.dtso @@ -19,8 +19,7 @@ / { compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; fragment@0 { - /* target-path = "/ahb/apb/spi@f0000000 ";*/ - target = <0x75>; + target-path = "/ahb/apb/spi@f0000000"; __overlay__ { ap1-spi@2 { compatible = "mts,mtac"; diff --git a/mtcdt/ap2-003-0.0.dtso b/mtcdt/ap2-003-0.0.dtso index 65b666c..8b20bd5 100644 --- a/mtcdt/ap2-003-0.0.dtso +++ b/mtcdt/ap2-003-0.0.dtso @@ -18,8 +18,8 @@ / { compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; fragment@0 { -/* target-path = "/ahb/apb/spi@f0004000";*/ - target = <0x76>; + target-path = "/ahb/apb/spi@f0004000"; + /*target = <0x76>; */ __overlay__ { ap1-spi@0 { compatible = "mts,mtac"; diff --git a/mtcdt/ap2-gpiob-0.0.dtso b/mtcdt/ap2-gpiob-0.0.dtso index e8a3332..4bf8ad0 100644 --- a/mtcdt/ap2-gpiob-0.0.dtso +++ b/mtcdt/ap2-gpiob-0.0.dtso @@ -18,8 +18,8 @@ / { compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; fragment@0 { -/* target-path = "/ahb/apb/spi@f0004000";*/ - target = <0x76>; + target-path = "/ahb/apb/spi@f0004000"; + /* target = <0x76>; */ __overlay__ { ap2-adc@0 { compatible = "mts-io-ap2-adc"; diff --git a/mtcdt/ap2-lora-0.0.dtso b/mtcdt/ap2-lora-0.0.dtso index 0c04c97..68a0c79 100644 --- a/mtcdt/ap2-lora-0.0.dtso +++ b/mtcdt/ap2-lora-0.0.dtso @@ -18,8 +18,7 @@ / { compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; fragment@0 { -/* target-path = "/ahb/apb/spi@f0004000";*/ - target = <0x76>; + target-path = "/ahb/apb/spi@f0004000"; __overlay__ { ap2-spi@2 { compatible = "mts,mtac"; -- cgit v1.2.3 From cc63c01d076cdde00a41f38035029c1c80956e79 Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Mon, 19 Jul 2021 08:15:18 -0500 Subject: added explicit spidev compatibility to MTCDT --- mtcdt/ap1-003-0.0.dtso | 4 ++-- mtcdt/ap2-003-0.0.dtso | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mtcdt/ap1-003-0.0.dtso b/mtcdt/ap1-003-0.0.dtso index 25f5bb5..afbdca0 100644 --- a/mtcdt/ap1-003-0.0.dtso +++ b/mtcdt/ap1-003-0.0.dtso @@ -23,12 +23,12 @@ /* target = <0x75>;*/ __overlay__ { ap1-spi@0 { - compatible = "mts,mtac"; + compatible = "spidev,mts,mtac"; spi-max-frequency = <0x1e8480>; reg = <0x0>; };/*ap1-spi0*/ ap1-spi@1 { - compatible = "mts,mtac"; + compatible = "spidev,mts,mtac"; spi-max-frequency = <0x1e8480>; reg = <0x1>; }; /*ap1-spi1*/ diff --git a/mtcdt/ap2-003-0.0.dtso b/mtcdt/ap2-003-0.0.dtso index 8b20bd5..804591d 100644 --- a/mtcdt/ap2-003-0.0.dtso +++ b/mtcdt/ap2-003-0.0.dtso @@ -22,12 +22,12 @@ /*target = <0x76>; */ __overlay__ { ap1-spi@0 { - compatible = "mts,mtac"; + compatible = "spidev,mts,mtac"; spi-max-frequency = <0x1e8480>; reg = <0x0>; };/*ap1-spi0*/ ap1-spi@1 { - compatible = "mts,mtac"; + compatible = "spidev,mts,mtac"; spi-max-frequency = <0x1e8480>; reg = <0x1>; }; /*ap1-spi1*/ -- cgit v1.2.3 From 7a9230d78939e4a3c1540f3c7fbc0e3c94fc43f6 Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Mon, 19 Jul 2021 08:29:26 -0500 Subject: Revert "added explicit spidev compatibility to MTCDT" This reverts commit cc63c01d076cdde00a41f38035029c1c80956e79. --- mtcdt/ap1-003-0.0.dtso | 4 ++-- mtcdt/ap2-003-0.0.dtso | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mtcdt/ap1-003-0.0.dtso b/mtcdt/ap1-003-0.0.dtso index afbdca0..25f5bb5 100644 --- a/mtcdt/ap1-003-0.0.dtso +++ b/mtcdt/ap1-003-0.0.dtso @@ -23,12 +23,12 @@ /* target = <0x75>;*/ __overlay__ { ap1-spi@0 { - compatible = "spidev,mts,mtac"; + compatible = "mts,mtac"; spi-max-frequency = <0x1e8480>; reg = <0x0>; };/*ap1-spi0*/ ap1-spi@1 { - compatible = "spidev,mts,mtac"; + compatible = "mts,mtac"; spi-max-frequency = <0x1e8480>; reg = <0x1>; }; /*ap1-spi1*/ diff --git a/mtcdt/ap2-003-0.0.dtso b/mtcdt/ap2-003-0.0.dtso index 804591d..8b20bd5 100644 --- a/mtcdt/ap2-003-0.0.dtso +++ b/mtcdt/ap2-003-0.0.dtso @@ -22,12 +22,12 @@ /*target = <0x76>; */ __overlay__ { ap1-spi@0 { - compatible = "spidev,mts,mtac"; + compatible = "mts,mtac"; spi-max-frequency = <0x1e8480>; reg = <0x0>; };/*ap1-spi0*/ ap1-spi@1 { - compatible = "spidev,mts,mtac"; + compatible = "mts,mtac"; spi-max-frequency = <0x1e8480>; reg = <0x1>; }; /*ap1-spi1*/ -- cgit v1.2.3 From 4e2047a23dac36dc56f65abd6d819a81befe2c4f Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Tue, 20 Jul 2021 04:13:17 -0500 Subject: modified the compatible argument to target atmel,at91rm9200-spi --- mtcdt/ap1-003-0.0.dtso | 4 ++-- mtcdt/ap2-003-0.0.dtso | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mtcdt/ap1-003-0.0.dtso b/mtcdt/ap1-003-0.0.dtso index 25f5bb5..590333f 100644 --- a/mtcdt/ap1-003-0.0.dtso +++ b/mtcdt/ap1-003-0.0.dtso @@ -23,12 +23,12 @@ /* target = <0x75>;*/ __overlay__ { ap1-spi@0 { - compatible = "mts,mtac"; + compatible = "atmel,at91rm9200-spi"; spi-max-frequency = <0x1e8480>; reg = <0x0>; };/*ap1-spi0*/ ap1-spi@1 { - compatible = "mts,mtac"; + compatible = "atmel,at91rm9200-spi"; spi-max-frequency = <0x1e8480>; reg = <0x1>; }; /*ap1-spi1*/ diff --git a/mtcdt/ap2-003-0.0.dtso b/mtcdt/ap2-003-0.0.dtso index 8b20bd5..9b472d6 100644 --- a/mtcdt/ap2-003-0.0.dtso +++ b/mtcdt/ap2-003-0.0.dtso @@ -22,12 +22,12 @@ /*target = <0x76>; */ __overlay__ { ap1-spi@0 { - compatible = "mts,mtac"; + compatible = "atmel,at91rm9200-spi"; spi-max-frequency = <0x1e8480>; reg = <0x0>; };/*ap1-spi0*/ ap1-spi@1 { - compatible = "mts,mtac"; + compatible = "atmel,at91rm9200-spi"; spi-max-frequency = <0x1e8480>; reg = <0x1>; }; /*ap1-spi1*/ -- cgit v1.2.3 From 9e0c889bf171cb67dd5fae0475716c02af733216 Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Tue, 20 Jul 2021 04:40:42 -0500 Subject: includeded the mts,mtac to compatibility --- mtcdt/ap1-003-0.0.dtso | 4 ++-- mtcdt/ap2-003-0.0.dtso | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mtcdt/ap1-003-0.0.dtso b/mtcdt/ap1-003-0.0.dtso index 590333f..9eb202a 100644 --- a/mtcdt/ap1-003-0.0.dtso +++ b/mtcdt/ap1-003-0.0.dtso @@ -23,12 +23,12 @@ /* target = <0x75>;*/ __overlay__ { ap1-spi@0 { - compatible = "atmel,at91rm9200-spi"; + compatible = "mts,mtac,atmel,at91rm9200-spi"; spi-max-frequency = <0x1e8480>; reg = <0x0>; };/*ap1-spi0*/ ap1-spi@1 { - compatible = "atmel,at91rm9200-spi"; + compatible = "mts,mtac,atmel,at91rm9200-spi"; spi-max-frequency = <0x1e8480>; reg = <0x1>; }; /*ap1-spi1*/ diff --git a/mtcdt/ap2-003-0.0.dtso b/mtcdt/ap2-003-0.0.dtso index 9b472d6..b6e1570 100644 --- a/mtcdt/ap2-003-0.0.dtso +++ b/mtcdt/ap2-003-0.0.dtso @@ -22,12 +22,12 @@ /*target = <0x76>; */ __overlay__ { ap1-spi@0 { - compatible = "atmel,at91rm9200-spi"; + compatible = "mts,mtac,atmel,at91rm9200-spi"; spi-max-frequency = <0x1e8480>; reg = <0x0>; };/*ap1-spi0*/ ap1-spi@1 { - compatible = "atmel,at91rm9200-spi"; + compatible = "mts,mtac,atmel,at91rm9200-spi"; spi-max-frequency = <0x1e8480>; reg = <0x1>; }; /*ap1-spi1*/ -- cgit v1.2.3 From 240041729155f18f4da53f45e58f9b62668a526b Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Tue, 20 Jul 2021 05:27:58 -0500 Subject: simplified compatibility due to definitions present in spi0/spi1 parents --- mtcdt/ap1-003-0.0.dtso | 4 ++-- mtcdt/ap2-003-0.0.dtso | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mtcdt/ap1-003-0.0.dtso b/mtcdt/ap1-003-0.0.dtso index 9eb202a..d0cb5c6 100644 --- a/mtcdt/ap1-003-0.0.dtso +++ b/mtcdt/ap1-003-0.0.dtso @@ -23,12 +23,12 @@ /* target = <0x75>;*/ __overlay__ { ap1-spi@0 { - compatible = "mts,mtac,atmel,at91rm9200-spi"; + /* compatible = "mts,mtac,atmel,at91rm9200-spi";*/ spi-max-frequency = <0x1e8480>; reg = <0x0>; };/*ap1-spi0*/ ap1-spi@1 { - compatible = "mts,mtac,atmel,at91rm9200-spi"; + /* compatible = "mts,mtac,atmel,at91rm9200-spi";*/ spi-max-frequency = <0x1e8480>; reg = <0x1>; }; /*ap1-spi1*/ diff --git a/mtcdt/ap2-003-0.0.dtso b/mtcdt/ap2-003-0.0.dtso index b6e1570..2b613d5 100644 --- a/mtcdt/ap2-003-0.0.dtso +++ b/mtcdt/ap2-003-0.0.dtso @@ -22,12 +22,12 @@ /*target = <0x76>; */ __overlay__ { ap1-spi@0 { - compatible = "mts,mtac,atmel,at91rm9200-spi"; + /* compatible = "mts,mtac,atmel,at91rm9200-spi"; */ spi-max-frequency = <0x1e8480>; reg = <0x0>; };/*ap1-spi0*/ ap1-spi@1 { - compatible = "mts,mtac,atmel,at91rm9200-spi"; + /* compatible = "mts,mtac,atmel,at91rm9200-spi"; */ spi-max-frequency = <0x1e8480>; reg = <0x1>; }; /*ap1-spi1*/ -- cgit v1.2.3 From 7e2edce4d5219a82fe4061775b69386d3be0df67 Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Tue, 20 Jul 2021 08:34:59 -0500 Subject: changed register and frequency values to decimal to match dts file --- mtcdt/ap1-003-0.0.dtso | 12 ++++++------ mtcdt/ap2-003-0.0.dtso | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/mtcdt/ap1-003-0.0.dtso b/mtcdt/ap1-003-0.0.dtso index d0cb5c6..dcf57ed 100644 --- a/mtcdt/ap1-003-0.0.dtso +++ b/mtcdt/ap1-003-0.0.dtso @@ -23,14 +23,14 @@ /* target = <0x75>;*/ __overlay__ { ap1-spi@0 { - /* compatible = "mts,mtac,atmel,at91rm9200-spi";*/ - spi-max-frequency = <0x1e8480>; - reg = <0x0>; + compatible = "mts,mtac"; + spi-max-frequency = <2000000>; + reg = <0>; };/*ap1-spi0*/ ap1-spi@1 { - /* compatible = "mts,mtac,atmel,at91rm9200-spi";*/ - spi-max-frequency = <0x1e8480>; - reg = <0x1>; + compatible = "mts,mtac"; + spi-max-frequency = <2000000>; + reg = <1>; }; /*ap1-spi1*/ }; /*overlay*/ }; /*fragment@0*/ diff --git a/mtcdt/ap2-003-0.0.dtso b/mtcdt/ap2-003-0.0.dtso index 2b613d5..6033065 100644 --- a/mtcdt/ap2-003-0.0.dtso +++ b/mtcdt/ap2-003-0.0.dtso @@ -22,14 +22,14 @@ /*target = <0x76>; */ __overlay__ { ap1-spi@0 { - /* compatible = "mts,mtac,atmel,at91rm9200-spi"; */ - spi-max-frequency = <0x1e8480>; - reg = <0x0>; + compatible = "mts,mtac"; + spi-max-frequency = <2000000>; + reg = <0>; };/*ap1-spi0*/ ap1-spi@1 { - /* compatible = "mts,mtac,atmel,at91rm9200-spi"; */ - spi-max-frequency = <0x1e8480>; - reg = <0x1>; + compatible = "mts,mtac"; + spi-max-frequency = <2000000>; + reg = <1>; }; /*ap1-spi1*/ }; /*overlay*/ }; /*fragment@0*/ -- cgit v1.2.3 From fc61da28f5fd72c5183e3ccc1755dac3f5b0a8b2 Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Thu, 22 Jul 2021 10:30:28 -0500 Subject: corrected error in referenced compatibility driver --- mtcdt/ap1-003-0.0.dtso | 2 +- mtcdt/ap2-003-0.0.dtso | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mtcdt/ap1-003-0.0.dtso b/mtcdt/ap1-003-0.0.dtso index dcf57ed..f005945 100644 --- a/mtcdt/ap1-003-0.0.dtso +++ b/mtcdt/ap1-003-0.0.dtso @@ -17,7 +17,7 @@ / { - compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; + compatible = "atmel,at91rm9200-spi"; fragment@0 { target-path = "/ahb/apb/spi@f0000000"; /* target = <0x75>;*/ diff --git a/mtcdt/ap2-003-0.0.dtso b/mtcdt/ap2-003-0.0.dtso index 6033065..7aff7f3 100644 --- a/mtcdt/ap2-003-0.0.dtso +++ b/mtcdt/ap2-003-0.0.dtso @@ -16,7 +16,7 @@ #include / { - compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; + compatible = "atmel,at91rm9200-spi"; fragment@0 { target-path = "/ahb/apb/spi@f0004000"; /*target = <0x76>; */ -- cgit v1.2.3 From b86c4863bf98dd1cc97249df7d399bdb5da84cc8 Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Fri, 23 Jul 2021 08:44:47 -0500 Subject: pointed drivers to amtel spi bus driver --- mtcdt/ap1-003-0.0.dtso | 4 ++-- mtcdt/ap2-003-0.0.dtso | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mtcdt/ap1-003-0.0.dtso b/mtcdt/ap1-003-0.0.dtso index f005945..bb7448b 100644 --- a/mtcdt/ap1-003-0.0.dtso +++ b/mtcdt/ap1-003-0.0.dtso @@ -23,12 +23,12 @@ /* target = <0x75>;*/ __overlay__ { ap1-spi@0 { - compatible = "mts,mtac"; + compatible = "atmel,at91rm9200-spi"; spi-max-frequency = <2000000>; reg = <0>; };/*ap1-spi0*/ ap1-spi@1 { - compatible = "mts,mtac"; + compatible = "atmel,at91rm9200-spi"; spi-max-frequency = <2000000>; reg = <1>; }; /*ap1-spi1*/ diff --git a/mtcdt/ap2-003-0.0.dtso b/mtcdt/ap2-003-0.0.dtso index 7aff7f3..5416dc7 100644 --- a/mtcdt/ap2-003-0.0.dtso +++ b/mtcdt/ap2-003-0.0.dtso @@ -22,12 +22,12 @@ /*target = <0x76>; */ __overlay__ { ap1-spi@0 { - compatible = "mts,mtac"; + compatible = "atmel,at91rm9200-spi"; spi-max-frequency = <2000000>; reg = <0>; };/*ap1-spi0*/ ap1-spi@1 { - compatible = "mts,mtac"; + compatible = "atmel,at91rm9200-spi"; spi-max-frequency = <2000000>; reg = <1>; }; /*ap1-spi1*/ -- cgit v1.2.3 From d56aa3a3f6d1311fa3c701f2dda5231815b90ddc Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Fri, 23 Jul 2021 09:29:49 -0500 Subject: spidev support --- mtcdt/ap1-003-0.0.dtso | 4 ++-- mtcdt/ap2-003-0.0.dtso | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mtcdt/ap1-003-0.0.dtso b/mtcdt/ap1-003-0.0.dtso index bb7448b..b97ff8d 100644 --- a/mtcdt/ap1-003-0.0.dtso +++ b/mtcdt/ap1-003-0.0.dtso @@ -23,12 +23,12 @@ /* target = <0x75>;*/ __overlay__ { ap1-spi@0 { - compatible = "atmel,at91rm9200-spi"; + compatible = "spidev"; spi-max-frequency = <2000000>; reg = <0>; };/*ap1-spi0*/ ap1-spi@1 { - compatible = "atmel,at91rm9200-spi"; + compatible = "spidev"; spi-max-frequency = <2000000>; reg = <1>; }; /*ap1-spi1*/ diff --git a/mtcdt/ap2-003-0.0.dtso b/mtcdt/ap2-003-0.0.dtso index 5416dc7..71c6daa 100644 --- a/mtcdt/ap2-003-0.0.dtso +++ b/mtcdt/ap2-003-0.0.dtso @@ -22,12 +22,12 @@ /*target = <0x76>; */ __overlay__ { ap1-spi@0 { - compatible = "atmel,at91rm9200-spi"; + compatible = "spidev"; spi-max-frequency = <2000000>; reg = <0>; };/*ap1-spi0*/ ap1-spi@1 { - compatible = "atmel,at91rm9200-spi"; + compatible = "spidev"; spi-max-frequency = <2000000>; reg = <1>; }; /*ap1-spi1*/ -- cgit v1.2.3 From 873d2732d6ebe25e587b333c8e630a980a81aeae Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Tue, 27 Jul 2021 03:51:43 -0500 Subject: attempt to match spi clock to specs --- mtcdt/ap1-003-0.0.dtso | 4 ++-- mtcdt/ap2-003-0.0.dtso | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mtcdt/ap1-003-0.0.dtso b/mtcdt/ap1-003-0.0.dtso index b97ff8d..c409c5b 100644 --- a/mtcdt/ap1-003-0.0.dtso +++ b/mtcdt/ap1-003-0.0.dtso @@ -24,12 +24,12 @@ __overlay__ { ap1-spi@0 { compatible = "spidev"; - spi-max-frequency = <2000000>; + spi-max-frequency = <1000000>; reg = <0>; };/*ap1-spi0*/ ap1-spi@1 { compatible = "spidev"; - spi-max-frequency = <2000000>; + spi-max-frequency = <1000000>; reg = <1>; }; /*ap1-spi1*/ }; /*overlay*/ diff --git a/mtcdt/ap2-003-0.0.dtso b/mtcdt/ap2-003-0.0.dtso index 71c6daa..21dc92e 100644 --- a/mtcdt/ap2-003-0.0.dtso +++ b/mtcdt/ap2-003-0.0.dtso @@ -23,12 +23,12 @@ __overlay__ { ap1-spi@0 { compatible = "spidev"; - spi-max-frequency = <2000000>; + spi-max-frequency = <1000000>; reg = <0>; };/*ap1-spi0*/ ap1-spi@1 { compatible = "spidev"; - spi-max-frequency = <2000000>; + spi-max-frequency = <1000000>; reg = <1>; }; /*ap1-spi1*/ }; /*overlay*/ -- cgit v1.2.3 From 23dc2b06e3631c83cb4bdadd81a69fff8ced3910 Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Tue, 27 Jul 2021 04:18:10 -0500 Subject: clock time 2000000 --- mtcdt/ap1-003-0.0.dtso | 4 ++-- mtcdt/ap2-003-0.0.dtso | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mtcdt/ap1-003-0.0.dtso b/mtcdt/ap1-003-0.0.dtso index c409c5b..b97ff8d 100644 --- a/mtcdt/ap1-003-0.0.dtso +++ b/mtcdt/ap1-003-0.0.dtso @@ -24,12 +24,12 @@ __overlay__ { ap1-spi@0 { compatible = "spidev"; - spi-max-frequency = <1000000>; + spi-max-frequency = <2000000>; reg = <0>; };/*ap1-spi0*/ ap1-spi@1 { compatible = "spidev"; - spi-max-frequency = <1000000>; + spi-max-frequency = <2000000>; reg = <1>; }; /*ap1-spi1*/ }; /*overlay*/ diff --git a/mtcdt/ap2-003-0.0.dtso b/mtcdt/ap2-003-0.0.dtso index 21dc92e..71c6daa 100644 --- a/mtcdt/ap2-003-0.0.dtso +++ b/mtcdt/ap2-003-0.0.dtso @@ -23,12 +23,12 @@ __overlay__ { ap1-spi@0 { compatible = "spidev"; - spi-max-frequency = <1000000>; + spi-max-frequency = <2000000>; reg = <0>; };/*ap1-spi0*/ ap1-spi@1 { compatible = "spidev"; - spi-max-frequency = <1000000>; + spi-max-frequency = <2000000>; reg = <1>; }; /*ap1-spi1*/ }; /*overlay*/ -- cgit v1.2.3 From f8e4a573c6217db98cbfc831acc9f3080bc577ec Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Tue, 27 Jul 2021 07:36:08 -0500 Subject: changed compatibility. max freq now matches schematic --- mtcdt/ap1-003-0.0.dtso | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mtcdt/ap1-003-0.0.dtso b/mtcdt/ap1-003-0.0.dtso index b97ff8d..2d530cf 100644 --- a/mtcdt/ap1-003-0.0.dtso +++ b/mtcdt/ap1-003-0.0.dtso @@ -23,13 +23,13 @@ /* target = <0x75>;*/ __overlay__ { ap1-spi@0 { - compatible = "spidev"; - spi-max-frequency = <2000000>; + compatible = "mts,mtac"; + spi-max-frequency = <1000000>; reg = <0>; };/*ap1-spi0*/ ap1-spi@1 { - compatible = "spidev"; - spi-max-frequency = <2000000>; + compatible = "mts,mtac"; + spi-max-frequency = <1000000>; reg = <1>; }; /*ap1-spi1*/ }; /*overlay*/ -- cgit v1.2.3 From c7a4995d9b309ec2ffc630f05792f794845a6ccd Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Wed, 11 Aug 2021 09:04:02 -0500 Subject: modified clock rate and compatibility for mtac-003 overlays --- mtcdt/ap1-003-0.0.dtso | 4 ++-- mtcdt/ap2-003-0.0.dtso | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mtcdt/ap1-003-0.0.dtso b/mtcdt/ap1-003-0.0.dtso index 2d530cf..f005945 100644 --- a/mtcdt/ap1-003-0.0.dtso +++ b/mtcdt/ap1-003-0.0.dtso @@ -24,12 +24,12 @@ __overlay__ { ap1-spi@0 { compatible = "mts,mtac"; - spi-max-frequency = <1000000>; + spi-max-frequency = <2000000>; reg = <0>; };/*ap1-spi0*/ ap1-spi@1 { compatible = "mts,mtac"; - spi-max-frequency = <1000000>; + spi-max-frequency = <2000000>; reg = <1>; }; /*ap1-spi1*/ }; /*overlay*/ diff --git a/mtcdt/ap2-003-0.0.dtso b/mtcdt/ap2-003-0.0.dtso index 71c6daa..7aff7f3 100644 --- a/mtcdt/ap2-003-0.0.dtso +++ b/mtcdt/ap2-003-0.0.dtso @@ -22,12 +22,12 @@ /*target = <0x76>; */ __overlay__ { ap1-spi@0 { - compatible = "spidev"; + compatible = "mts,mtac"; spi-max-frequency = <2000000>; reg = <0>; };/*ap1-spi0*/ ap1-spi@1 { - compatible = "spidev"; + compatible = "mts,mtac"; spi-max-frequency = <2000000>; reg = <1>; }; /*ap1-spi1*/ -- cgit v1.2.3