arm64: dts: Add uart for mt6797 EVB
authorMatthias Brugger <mbrugger@suse.com>
Fri, 16 Nov 2018 18:30:40 +0000 (19:30 +0100)
committerMatthias Brugger <matthias.bgg@gmail.com>
Wed, 9 Jan 2019 17:16:06 +0000 (18:16 +0100)
This patch adds the pinctrl configuration for the mt6797 EVB.

Signed-off-by: Matthias Brugger <mbrugger@suse.com>
arch/arm64/boot/dts/mediatek/mt6797-evb.dts
arch/arm64/boot/dts/mediatek/mt6797.dtsi

index c79109c..237e869 100644 (file)
@@ -33,4 +33,6 @@
 
 &uart0 {
        status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&uart0_pins_a>;
 };
index a64bb84..2b2a69c 100644 (file)
                gpio-controller;
                #gpio-cells = <2>;
 
+               uart0_pins_a: uart0 {
+                       pins0 {
+                               pinmux = <MT6797_GPIO234__FUNC_UTXD0>,
+                                        <MT6797_GPIO235__FUNC_URXD0>;
+                       };
+               };
+
                uart1_pins_a: uart1 {
                        pins1 {
                                pinmux = <MT6797_GPIO232__FUNC_URXD1>,