summaryrefslogtreecommitdiff
path: root/mtcdt/pins-0.2.dtso
blob: 0e9ef6a9777ceefc54b71aabdb1ed2fe04bd6419 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
 * 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/pins.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 = "/mts-io";
        __overlay__ {
            AP1_GPIO3-gpios = <GPIO2_PH 10 GPIO_ACTIVE_HIGH>;
            AP1_GPIO4-gpios = <GPIO2_PH 11 GPIO_ACTIVE_HIGH>;
            AP2_GPIO4-gpios = <GPIO2_PH 29 GPIO_ACTIVE_HIGH>;
            AP2_GPIO3-gpios = <GPIO2_PH 30 GPIO_ACTIVE_HIGH>;

            SIG3_LED-gpios = <GPIO4_PCA9557_PH 0 GPIO_ACTIVE_HIGH>;
            WIFI_BT_LPWKUP-gpios = <GPIO4_PCA9557_PH 1 GPIO_ACTIVE_HIGH>;
            RADIO_STATUS-gpios = <GPIO4_PCA9557_PH 2 GPIO_ACTIVE_HIGH>;
            AP1_TDB1-gpios = <GPIO4_PCA9557_PH 3 GPIO_ACTIVE_HIGH>;
            AP1_TDB2-gpios = <GPIO4_PCA9557_PH 4 GPIO_ACTIVE_HIGH>;
            AP1_TDB3-gpios = <GPIO4_PCA9557_PH 5 GPIO_ACTIVE_HIGH>;
            AP1_TDB4-gpios = <GPIO4_PCA9557_PH 6 GPIO_ACTIVE_HIGH>;
            AP1_TDB5-gpios = <GPIO4_PCA9557_PH 7 GPIO_ACTIVE_HIGH>;

            CD_LED-gpios = <GPIO5_PCA9557_PH 0 GPIO_ACTIVE_HIGH>;
            SIG1_LED-gpios = <GPIO5_PCA9557_PH 1 GPIO_ACTIVE_HIGH>;
            SIG2_LED-gpios = <GPIO5_PCA9557_PH 2 GPIO_ACTIVE_HIGH>;
            AP2_TDB1-gpios = <GPIO5_PCA9557_PH 3 GPIO_ACTIVE_HIGH>;
            AP2_TDB2-gpios = <GPIO5_PCA9557_PH 4 GPIO_ACTIVE_HIGH>;
            AP2_TDB3-gpios = <GPIO5_PCA9557_PH 5 GPIO_ACTIVE_HIGH>;
            AP2_TDB4-gpios = <GPIO5_PCA9557_PH 6 GPIO_ACTIVE_HIGH>;
            AP2_TDB5-gpios = <GPIO5_PCA9557_PH 7 GPIO_ACTIVE_HIGH>;
        };
    }; /* fragment@0 */
};