Skip to contentSkip to conversation

dts: mt7629: enable JTAG pins by default

PATCH New Weijie Gao 2 participants 2 messages Mar 5, 2021 – Mar 20, 2021

Subsystems (2)
lore
Share & tools
lore

Weijie Gao

author
#0 lore raw

PATCH 1/1 dts: mt7629: enable JTAG pins by default

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.

---
 arch/arm/dts/mt7629-rfb.dts | 10 ++++++++++
 arch/arm/dts/mt7629.dtsi    |  6 ++++++
 2 files changed, 16 insertions(+)
arch/arm/dts/mt7629-rfb.dts +10 -0
index df43cc49c5..f2e4e9548b 100644
@@ -36,6 +36,16 @@
 };
 
 &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";
arch/arm/dts/mt7629.dtsi +6 -0
index 05394266e0..7dea7809c7 100644
@@ -152,6 +152,12 @@
 		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>;
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 dts: mt7629: enable JTAG pins by default

Quoted 6 lines · Weijie Gao

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.

Applied to u-boot/next, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210320/3fc29762/attachment.sig>