Skip to content

Commit 2cdc614

Browse files
committed
Merge tag 'mvebu-dt64-4.15-2' of git://git.infradead.org/linux-mvebu into next/dt
Pull "mvebu dt64 for 4.15 (part 2)" from Gregory CLEMENT: Add the extended UART support on Armada 3700 * tag 'mvebu-dt64-4.15-2' of git://git.infradead.org/linux-mvebu: arm64: dts: marvell: armada-3720-espressobin: fill UART nodes arm64: dts: marvell: armada-3720-db: enable second UART port arm64: dts: marvell: armada-37xx: add second UART port arm64: dts: marvell: armada-37xx: add UART clock
2 parents 0b30cf2 + c3c08c5 commit 2cdc614

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed

arch/arm64/boot/dts/marvell/armada-3720-db.dts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,14 +227,21 @@
227227

228228
/*
229229
* Exported on the micro USB connector CON30(V2.0)/CON32(V1.4) through
230-
* an FTDI
230+
* an FTDI (also on CON24(V2.0)/CON26(V1.4)).
231231
*/
232232
&uart0 {
233233
pinctrl-names = "default";
234234
pinctrl-0 = <&uart1_pins>;
235235
status = "okay";
236236
};
237237

238+
/* CON26(V2.0)/CON28(V1.4) */
239+
&uart1 {
240+
pinctrl-names = "default";
241+
pinctrl-0 = <&uart2_pins>;
242+
status = "okay";
243+
};
244+
238245
/* CON27(V2.0)/CON29(V1.4) */
239246
&usb2 {
240247
status = "okay";

arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,21 @@
9898

9999
/* Exported on the micro USB connector J5 through an FTDI */
100100
&uart0 {
101+
pinctrl-names = "default";
102+
pinctrl-0 = <&uart1_pins>;
101103
status = "okay";
102104
};
103105

106+
/*
107+
* Connector J17 and J18 expose a number of different features. Some pins are
108+
* multiplexed. This is the case for instance for the following features:
109+
* - UART1 (pin 24 = RX, pin 26 = TX). See armada-3720-db.dts for an example of
110+
* how to enable it. Beware that the signals are 1.8V TTL.
111+
* - I2C
112+
* - SPI
113+
* - MMC
114+
*/
115+
104116
/* J7 */
105117
&usb3 {
106118
status = "okay";

arch/arm64/boot/dts/marvell/armada-37xx.dtsi

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555

5656
aliases {
5757
serial0 = &uart0;
58+
serial1 = &uart1;
5859
};
5960

6061
cpus {
@@ -135,7 +136,23 @@
135136
uart0: serial@12000 {
136137
compatible = "marvell,armada-3700-uart";
137138
reg = <0x12000 0x200>;
138-
interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
139+
clocks = <&xtalclk>;
140+
interrupts =
141+
<GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
142+
<GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
143+
<GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
144+
interrupt-names = "uart-sum", "uart-tx", "uart-rx";
145+
status = "disabled";
146+
};
147+
148+
uart1: serial@12200 {
149+
compatible = "marvell,armada-3700-uart-ext";
150+
reg = <0x12200 0x30>;
151+
clocks = <&xtalclk>;
152+
interrupts =
153+
<GIC_SPI 30 IRQ_TYPE_EDGE_RISING>,
154+
<GIC_SPI 31 IRQ_TYPE_EDGE_RISING>;
155+
interrupt-names = "uart-tx", "uart-rx";
139156
status = "disabled";
140157
};
141158

0 commit comments

Comments
 (0)