diff options
author | John Klug <john.klug@multitech.com> | 2019-05-10 17:10:10 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2019-05-10 17:10:10 -0500 |
commit | 4f5efcb39b25a2a9c24c36c467e7f14ce6e818a5 (patch) | |
tree | d3e4c704b655ca16f2686c7696d3dac070131a3a /mtcdt | |
download | mt-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')
-rw-r--r-- | mtcdt/alt-mtcdt-0.0.dtso | 60 | ||||
-rw-r--r-- | mtcdt/ap1-xdot-0.0.dtso | 30 | ||||
-rw-r--r-- | mtcdt/ap2-xdot-0.0.dtso | 30 | ||||
-rw-r--r-- | mtcdt/mtcdt-0.0.dtso | 60 | ||||
-rw-r--r-- | mtcdt/mtcdt-gpios.0.0.dtso | 60 |
5 files changed, 240 insertions, 0 deletions
diff --git a/mtcdt/alt-mtcdt-0.0.dtso b/mtcdt/alt-mtcdt-0.0.dtso new file mode 100644 index 0000000..3e585d2 --- /dev/null +++ b/mtcdt/alt-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_0>; + label = "led-cd"; + alias = "led-a"; + active_low; + }; + led1 { + atmel,pins = <AT91_PIOA 26 AT91_PERIPH_GPIO AT91_PINCTRL_OUT_INIT_0>; + label = "led-sig1"; + alias = "led-b"; + active_low; + }; + }; /* mtsio */ + }; /* overlay */ + }; /* fragment@0 */ +}; diff --git a/mtcdt/ap1-xdot-0.0.dtso b/mtcdt/ap1-xdot-0.0.dtso new file mode 100644 index 0000000..969f8b1 --- /dev/null +++ b/mtcdt/ap1-xdot-0.0.dtso @@ -0,0 +1,30 @@ +/* + * 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__ { + mtac_xdot { + ap1 { + reset { + atmel,pins = <AT91_PIOB 12 AT91_PERIPH_GPIO AT91_PINCTRL_OUT_INIT_1>; + label = "ap1-reset"; + }; /* Reset */ + }; /* ap1 */ + }; /* mtac_xdot */ + }; /* overlay */ + }; /* fragment@0 */ +}; diff --git a/mtcdt/ap2-xdot-0.0.dtso b/mtcdt/ap2-xdot-0.0.dtso new file mode 100644 index 0000000..908e6ad --- /dev/null +++ b/mtcdt/ap2-xdot-0.0.dtso @@ -0,0 +1,30 @@ +/* + * 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__ { + mtac_xdot { + ap2 { + reset { + atmel,pins = <AT91_PIOB 13 AT91_PERIPH_GPIO AT91_PINCTRL_OUT_INIT_1>; + label = "ap2-reset"; + }; /* Reset */ + }; /* ap2 */ + }; /* mtac_xdot */ + }; /* overlay */ + }; /* fragment@0 */ +}; 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 */ +}; diff --git a/mtcdt/mtcdt-gpios.0.0.dtso b/mtcdt/mtcdt-gpios.0.0.dtso new file mode 100644 index 0000000..24b1332 --- /dev/null +++ b/mtcdt/mtcdt-gpios.0.0.dtso @@ -0,0 +1,60 @@ +/* + * DTS overlay for MTCDT 0.0 hardware version. + * Uses [name]-gpios from: + * https://www.kernel.org/doc/Documentation/devicetree/bindings/gpio/gpio.txt + */ +/dts-v1/; +/plugin/; + +#include "at91sam9g25.dtsi" +#include "at91sam9x5ek.dtsi" + +/ { + compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; + fragment@0 { + target-path = "/"; + __overlay__ { + mts-io { + compatible = "mts,mts-io"; + radio-reset { + radio-reset-gpios = <&pioC 3 GPIO_ACTIVE_HIGH>; + gpiof_out_init_high; + line-name = "radio-reset"; + alias = "radio-power"; + }; /* radio */ + reset { + reset-gpios = <&pioC 2 GPIO_ACTIVE_LOW>; + gpiof_in; + line-name = "reset"; + }; + eth-reset { + eth-reset-gpios = <&pioC 4 GPIO_ACTIVE_HIGH>; + gpiof_out_init_high; + line-name = "eth-reset"; + }; /* eth */ + ls-led { + ls-led-gpios = <&pioA 14 GPIO_ACTIVE_LOW>; + gpiof_out_init_high; + line-name = "led-ls"; + }; + status-led { + status-led-gpios = <&pioA 24 GPIO_ACTIVE_LOW>; + gpiof_out_init_high; + line-name = "led-status"; + }; + led5 { + led5-gpios = <&pioA 25 GPIO_ACTIVE_LOW>; + gpiof_out_init_high; + line-name = "led-cd"; + alias = "led-a"; + }; + led1 { + led1-gpios = <&pioA 26 GPIO_ACTIVE_LOW>; + gpiof_out_init_high; + line-name = "led-sig1"; + alias = "led-b"; + }; + }; /* mtsio */ + }; /* overlay */ + }; /* fragment@0 */ +}; |