summaryrefslogtreecommitdiff
path: root/mtcdt/mtcdt-0.0.dtso
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2019-05-10 17:10:10 -0500
committerJohn Klug <john.klug@multitech.com>2019-05-10 17:10:10 -0500
commit4f5efcb39b25a2a9c24c36c467e7f14ce6e818a5 (patch)
treed3e4c704b655ca16f2686c7696d3dac070131a3a /mtcdt/mtcdt-0.0.dtso
downloadmt-dt-overlay-4f5efcb39b25a2a9c24c36c467e7f14ce6e818a5.tar.gz
mt-dt-overlay-4f5efcb39b25a2a9c24c36c467e7f14ce6e818a5.tar.bz2
mt-dt-overlay-4f5efcb39b25a2a9c24c36c467e7f14ce6e818a5.zip
Device Tree Overlay Example1.0.0
Diffstat (limited to 'mtcdt/mtcdt-0.0.dtso')
-rw-r--r--mtcdt/mtcdt-0.0.dtso60
1 files changed, 60 insertions, 0 deletions
diff --git a/mtcdt/mtcdt-0.0.dtso b/mtcdt/mtcdt-0.0.dtso
new file mode 100644
index 0000000..4d98fa4
--- /dev/null
+++ b/mtcdt/mtcdt-0.0.dtso
@@ -0,0 +1,60 @@
+/*
+ * DTS overlay for MTCDT 0.0 hardware version.
+ */
+/dts-v1/;
+/plugin/;
+
+#include <dt-bindings/dma/at91.h>
+#include <dt-bindings/pinctrl/at91.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/clock/at91.h>
+#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 = <AT91_PIOC 3 AT91_PERIPH_GPIO AT91_PINCTRL_OUT_INIT_1>;
+ label = "radio-reset";
+ alias = "radio-power";
+ }; /* radio */
+ device_reset {
+ atmel,pins = <AT91_PIOC 2 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
+ label = "reset";
+ active-low;
+ };
+ eth_reset {
+ atmel,pins = <AT91_PIOC 4 AT91_PERIPH_GPIO AT91_PINCTRL_OUT_INIT_1>;
+ label = "eth-reset";
+ }; /* eth */
+ ls_led {
+ atmel,pins = <AT91_PIOA 14 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
+ label = "led-ls";
+ active_low;
+ };
+ status_led {
+ atmel,pins = <AT91_PIOA 24 AT91_PERIPH_GPIO AT91_PINCTRL_OUT_INIT_0>;
+ label = "led-status";
+ active_low;
+ };
+ led5 {
+ atmel,pins = <AT91_PIOA 25 AT91_PERIPH_GPIO AT91_PINCTRL_OUT_INIT_1>;
+ label = "led-cd";
+ alias = "led-a";
+ active_low;
+ };
+ led1 {
+ atmel,pins = <AT91_PIOA 26 AT91_PERIPH_GPIO AT91_PINCTRL_OUT_INIT_1>;
+ label = "led-sig1";
+ alias = "led-b";
+ active_low;
+ };
+ }; /* mtsio */
+ }; /* overlay */
+ }; /* fragment@0 */
+};