]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dts: mt7629: enable JTAG pins by default
authorWeijie Gao <weijie.gao@mediatek.com>
Fri, 5 Mar 2021 02:27:46 +0000 (10:27 +0800)
committerTom Rini <trini@konsulko.com>
Sat, 20 Mar 2021 20:24:27 +0000 (16:24 -0400)
The EPHY LEDs belongs to the built-in FE switch of MT7629, which is barely
used. These LED pins on reference boards are used as JTAG socket. So it's
a good idea to change the default state to JTAG, and this will make it
convenience for debugging.

Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
arch/arm/dts/mt7629-rfb.dts
arch/arm/dts/mt7629.dtsi

index df43cc49c5456b212de753f28cf74cdff025e1de..f2e4e9548b279dd66d6c1026339323c0d40943a6 100644 (file)
 };
 
 &pinctrl {
+       state_default: pinmux_conf {
+               u-boot,dm-pre-reloc;
+
+               mux {
+                       function = "jtag";
+                       groups = "ephy_leds_jtag";
+                       u-boot,dm-pre-reloc;
+               };
+       };
+
        snfi_pins: snfi-pins {
                mux {
                        function = "flash";
index 05394266e069789096509153450f2e37aeea3e55..7dea7809c7082114571af5ed78d476b1464b0a9e 100644 (file)
                compatible = "mediatek,mt7629-pinctrl";
                reg = <0x10217000 0x8000>;
 
+               pinctrl-names = "default";
+               pinctrl-0 = <&state_default>;
+
+               state_default: pinmux_conf {
+               };
+
                gpio: gpio-controller {
                        gpio-controller;
                        #gpio-cells = <2>;