From 9f386f6f88c822a9a1f6ea7188c5a14ab6bb609a Mon Sep 17 00:00:00 2001 From: Mike Nicholson Date: Fri, 28 Aug 2020 17:03:45 -0500 Subject: Add support for MTCAP, MTCAP GPS PPS --- .gitignore | 1 + Makefile | 4 ++-- mtcap/MTCAP-0.3-pps.dtso | 20 ++++++++++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 mtcap/MTCAP-0.3-pps.dtso diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fa40dd2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.dtbo diff --git a/Makefile b/Makefile index 5679f26..8cefc6a 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,4 @@ CC?=$(CROSS_COMPILE)gcc -DTC_OPTIONS?=-@ -DTC_OPTIONS += -Wno-unit_address_vs_reg -Wno-graph_child_address -Wno-pwms_property KERNEL_DIR?=../linux KERNEL_BUILD_DIR?=$(KERNEL_DIR) # Need a dtc new enough to handle the DTC options. @@ -8,6 +6,7 @@ DTC?=/usr/bin/dtc 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)) %.pre.dtso: %.dtso $(CC) -E -nostdinc -I$(KERNEL_DIR)/include -I$(KERNEL_DIR)/arch/arm/boot/dts -x assembler-with-cpp -undef -o $@ $^ @@ -20,6 +19,7 @@ MTRV1_DTBO_OBJECTS:= $(patsubst %.dtso,%.dtbo,$(wildcard mtrv1/*.dtso)) mtcdt_dtbos: $(MTCDT_DTBO_OBJECTS) mtrv1_dtbos: $(MTRV1_DTBO_OBJECTS) +mtcap_dtbos: $(MTCAP_DTBO_OBJECTS) .PHONY: clean clean: diff --git a/mtcap/MTCAP-0.3-pps.dtso b/mtcap/MTCAP-0.3-pps.dtso new file mode 100644 index 0000000..6b89e65 --- /dev/null +++ b/mtcap/MTCAP-0.3-pps.dtso @@ -0,0 +1,20 @@ +/* + * DTS file for Multi-Tech Systems MTCAP 0.3 Hardware + * + * Copyright (C) 2019 by Multi-Tech Systems, + * + * Licensed under GPLv2 or later. + */ + +/dts-v1/; + +/ { + model = "Multi-Tech Systems MTCAP-0.3"; + compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; + fragment@0 { + target-path = "/pps-0"; + __overlay__ { + status = "okay"; + }; + }; /* fragment@0 */ +}; -- cgit v1.2.3