summaryrefslogtreecommitdiff
path: root/mtcdt/leds-0.2.dtso
diff options
context:
space:
mode:
Diffstat (limited to 'mtcdt/leds-0.2.dtso')
-rw-r--r--mtcdt/leds-0.2.dtso49
1 files changed, 49 insertions, 0 deletions
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 <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>
+#include <dt-bindings/gpio/mt-at91.h> // 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 = <GPIO5_PCA9557_PH 0 GPIO_ACTIVE_LOW>;
+ };
+ led-b {
+ label = "led-b"; // LED1
+ gpios = <GPIO4_PCA9557_PH 2 GPIO_ACTIVE_LOW>;
+ };
+ led-c {
+ label = "led-c"; // LED4
+ gpios = <GPIO4_PCA9557_PH 1 GPIO_ACTIVE_LOW>;
+ };
+ led-d {
+ label = "led-d"; //LED3
+ gpios = <GPIO4_PCA9557_PH 0 GPIO_ACTIVE_LOW>;
+ };
+
+ };
+ }; /* fragment@0 */
+};