Skip to content

Commit d3d6f0c

Browse files
noglitchehristev
authored andcommitted
ARM: dts: at91: sama5d27_wlsom1: add Bluetooth usart
Add the Flexcom USART1 used for access to wilc3000 bluetooth interface. Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
1 parent ef4c5c2 commit d3d6f0c

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

arch/arm/boot/dts/at91-sama5d27_wlsom1.dtsi

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "sama5d2.dtsi"
1111
#include "sama5d2-pinfunc.h"
1212
#include <dt-bindings/gpio/gpio.h>
13+
#include <dt-bindings/mfd/atmel-flexcom.h>
1314
#include <dt-bindings/pinctrl/at91.h>
1415

1516
/ {
@@ -96,6 +97,14 @@
9697
};
9798
};
9899

100+
pinctrl_flx1_default: flx1_usart_default {
101+
pinmux = <PIN_PA24__FLEXCOM1_IO0>,
102+
<PIN_PA23__FLEXCOM1_IO1>,
103+
<PIN_PA25__FLEXCOM1_IO3>,
104+
<PIN_PA26__FLEXCOM1_IO4>;
105+
bias-disable;
106+
};
107+
99108
pinctrl_wilc_default: wilc_default {
100109
conf-irq {
101110
pinmux = <PIN_PB25__GPIO>;
@@ -116,6 +125,27 @@
116125
};
117126
};
118127

128+
&flx1 {
129+
atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
130+
131+
uart6: serial@200 {
132+
compatible = "atmel,at91sam9260-usart";
133+
reg = <0x200 0x200>;
134+
interrupts = <20 IRQ_TYPE_LEVEL_HIGH 7>;
135+
dmas = <&dma0
136+
(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
137+
AT91_XDMAC_DT_PERID(13))>,
138+
<&dma0
139+
(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
140+
AT91_XDMAC_DT_PERID(14))>;
141+
dma-names = "tx", "rx";
142+
clocks = <&flx1_clk>;
143+
clock-names = "usart";
144+
pinctrl-0 = <&pinctrl_flx1_default>;
145+
pinctrl-names = "default";
146+
};
147+
};
148+
119149
&sdmmc1 {
120150
#address-cells = <1>;
121151
#size-cells = <0>;

arch/arm/boot/dts/at91-sama5d27_wlsom1_ek.dts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
aliases {
1717
serial0 = &uart0; /* DBGU */
18+
serial1 = &uart6; /* BT */
1819
serial2 = &uart5; /* mikro BUS 2 */
1920
i2c1 = &i2c1;
2021
};
@@ -81,7 +82,16 @@
8182
clock-names = "usart";
8283
pinctrl-0 = <&pinctrl_flx0_default>;
8384
pinctrl-names = "default";
85+
atmel,use-dma-rx;
86+
atmel,use-dma-tx;
87+
status = "okay";
88+
};
89+
};
90+
91+
&flx1 {
92+
status = "okay";
8493

94+
uart6: serial@200 {
8595
atmel,use-dma-rx;
8696
atmel,use-dma-tx;
8797
status = "okay";

0 commit comments

Comments
 (0)