summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2021-10-05 15:43:02 -0500
committerJohn Klug <john.klug@multitech.com>2021-10-05 15:43:02 -0500
commitcf55044d78d9c9c12c1e51e56ac127fc9131f0a3 (patch)
tree7c81075d55507e6c83404e8477f40f3a68a0ce93
parent13f9f481382a913c8ffd3a2c8f2c279725831829 (diff)
downloadmeta-multitech-atmel-cf55044d78d9c9c12c1e51e56ac127fc9131f0a3.tar.gz
meta-multitech-atmel-cf55044d78d9c9c12c1e51e56ac127fc9131f0a3.tar.bz2
meta-multitech-atmel-cf55044d78d9c9c12c1e51e56ac127fc9131f0a3.zip
Disable usart3 by default, enable with overlay
-rw-r--r--recipes-kernel/linux/linux-at91-5.4.81/mts-dts/mtrv1.dts44
1 files changed, 10 insertions, 34 deletions
diff --git a/recipes-kernel/linux/linux-at91-5.4.81/mts-dts/mtrv1.dts b/recipes-kernel/linux/linux-at91-5.4.81/mts-dts/mtrv1.dts
index 82cc588..b215760 100644
--- a/recipes-kernel/linux/linux-at91-5.4.81/mts-dts/mtrv1.dts
+++ b/recipes-kernel/linux/linux-at91-5.4.81/mts-dts/mtrv1.dts
@@ -15,6 +15,7 @@
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/clock/at91.h>
+#include "at91sam9x5_usart3.dtsi"
/ {
@@ -29,6 +30,7 @@
serial1 = &uart0;
serial2 = &usart1;
serial3 = &usart2;
+ serial4 = &usart3;
gpio0 = &pioA;
gpio1 = &pioB;
gpio2 = &pioC;
@@ -396,29 +398,6 @@
};
};
- usart3 {
- pinctrl_usart3: usart3-0 {
- atmel,pins =
- <AT91_PIOC 22 AT91_PERIPH_B AT91_PINCTRL_NONE
- AT91_PIOC 23 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>;
- };
-
- pinctrl_usart3_rts: usart3_rts-0 {
- atmel,pins =
- <AT91_PIOC 24 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC24 periph B */
- };
-
- pinctrl_usart3_cts: usart3_cts-0 {
- atmel,pins =
- <AT91_PIOC 25 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC25 periph B */
- };
-
- pinctrl_usart3_sck: usart3_sck-0 {
- atmel,pins =
- <AT91_PIOC 26 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC26 periph B */
- };
- };
-
uart0 {
pinctrl_uart0: uart0-0 {
atmel,pins =
@@ -453,6 +432,10 @@
};
};
+ usart3 {
+ /delete-node/ usart3_sck-0;
+ };
+
mts-io {
pinctrl_mts_io_out: mts_io-0 {
atmel,pins =
@@ -952,17 +935,10 @@
};
usart3: serial@f8028000 {
- compatible = "atmel,at91sam9260-usart";
- reg = <0xf8028000 0x200>;
- interrupts = <8 IRQ_TYPE_LEVEL_HIGH 5>;
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_usart3>;
- dmas = <&dma1 1 AT91_DMA_CFG_PER_ID(14)>,
- <&dma1 1 (AT91_DMA_CFG_PER_ID(15) | AT91_DMA_CFG_FIFOCFG_ASAP)>;
- dma-names = "tx", "rx";
- clocks = <&pmc PMC_TYPE_PERIPHERAL 8>;
- clock-names = "usart";
- status = "okay";
+ atmel,use-dma-rx;
+ atmel,use-dma-tx;
+ pinctrl-0 = <&pinctrl_usart3 &pinctrl_usart3_rts &pinctrl_usart3_cts>;
+ status = "disabled";
};
uart0: serial@f8040000 {