aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Wang <sean.wang@mediatek.com>2018-02-23 05:16:28 -0500
committerMatthias Brugger <matthias.bgg@gmail.com>2018-03-18 17:39:10 -0400
commitcc2f65242eec8a552fb6b6e1e411198e8401299c (patch)
tree8e6d880637df90579915bea6a912ce3d60fa6590
parent528a97e9b6c0e3657df179822fef386f895b3c58 (diff)
arm: dts: mt7623: enable three available UARTs on bananapi-r2
On bpi-r2 board, totally there're four UARTs which we usually called uart[0-3] helpful to extend slow-I/O devices. Among those ones, uart2 has dedicated pin slot which is used to console log. uart[0-1] appear at the 40-pins connector and uart3 has no pinout, but just has test points (TP47 for TX and TP48 for RX, respectively) nearby uart2, but we don't enable uart3 in the patch. The missing pinctrl is also being supplemented for those newly added devices. Signed-off-by: Sean Wang <sean.wang@mediatek.com> Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
-rw-r--r--arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts13
1 files changed, 11 insertions, 2 deletions
diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
index 12da146cf3a5..4198f03aeee8 100644
--- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
+++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
@@ -436,6 +436,13 @@
436 <MT7623_PIN_82_UTXD1_FUNC_UTXD1>; 436 <MT7623_PIN_82_UTXD1_FUNC_UTXD1>;
437 }; 437 };
438 }; 438 };
439
440 uart2_pins_a: uart@2 {
441 pins_dat {
442 pinmux = <MT7623_PIN_14_GPIO14_FUNC_URXD2>,
443 <MT7623_PIN_15_GPIO15_FUNC_UTXD2>;
444 };
445 };
439}; 446};
440 447
441&pwm { 448&pwm {
@@ -481,16 +488,18 @@
481&uart0 { 488&uart0 {
482 pinctrl-names = "default"; 489 pinctrl-names = "default";
483 pinctrl-0 = <&uart0_pins_a>; 490 pinctrl-0 = <&uart0_pins_a>;
484 status = "disabled"; 491 status = "okay";
485}; 492};
486 493
487&uart1 { 494&uart1 {
488 pinctrl-names = "default"; 495 pinctrl-names = "default";
489 pinctrl-0 = <&uart1_pins_a>; 496 pinctrl-0 = <&uart1_pins_a>;
490 status = "disabled"; 497 status = "okay";
491}; 498};
492 499
493&uart2 { 500&uart2 {
501 pinctrl-names = "default";
502 pinctrl-0 = <&uart2_pins_a>;
494 status = "okay"; 503 status = "okay";
495}; 504};
496 505