]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
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 c79109c654098b949eb9def03672efb3f94e5581..237e869a5fa180abfce319ab5095fd8dd24731bf 100644 (file)
@@ -33,4 +33,6 @@ memory@40000000 {
 
 &uart0 {
        status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&uart0_pins_a>;
 };
index a64bb84bdec367353816b8fe02bf8da94c0d6a78..2b2a69c7567fde14e006aa6f659feac766f0e996 100644 (file)
@@ -142,6 +142,13 @@ pio: pinctrl@10005000 {
                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>,