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 --- mtcpmhs/ap1-gpiob-0.0.dtso | 39 +++++++++++++++++++++++++++++++++++++++ mtcpmhs/ap2-gpiob-0.0.dtso | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 mtcpmhs/ap1-gpiob-0.0.dtso create mode 100644 mtcpmhs/ap2-gpiob-0.0.dtso (limited to 'mtcpmhs') 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 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 --- mtcpmhs/ap1-gpiob-0.0.dtso | 5 +++++ mtcpmhs/ap2-gpiob-0.0.dtso | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'mtcpmhs') 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 --- mtcpmhs/ap1-lora-0.0.dtso | 29 +++++++++++++++++++++++++++++ mtcpmhs/ap2-lora-0.0.dtso | 29 +++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 mtcpmhs/ap1-lora-0.0.dtso create mode 100644 mtcpmhs/ap2-lora-0.0.dtso (limited to 'mtcpmhs') 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 (limited to 'mtcpmhs') 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(-) (limited to 'mtcpmhs') 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 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 --- 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(-) 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 (limited to 'mtcpmhs') 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 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 (limited to 'mtcpmhs') 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