diff mbox series

dts: mt7629: enable JTAG pins by default

Message ID 1614911266-27121-1-git-send-email-weijie.gao@mediatek.com
State Accepted
Commit e8b98f02708c23fe32e7e26fac56acf9e12a5b8d
Delegated to: Tom Rini
Headers show
Series dts: mt7629: enable JTAG pins by default | expand

Commit Message

Weijie Gao March 5, 2021, 2:27 a.m. UTC
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 | 10 ++++++++++
 arch/arm/dts/mt7629.dtsi    |  6 ++++++
 2 files changed, 16 insertions(+)

Comments

Tom Rini March 20, 2021, 11:37 p.m. UTC | #1
On Fri, Mar 05, 2021 at 10:27:46AM +0800, Weijie Gao wrote:

> 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>

Applied to u-boot/next, thanks!
diff mbox series

Patch

diff --git a/arch/arm/dts/mt7629-rfb.dts b/arch/arm/dts/mt7629-rfb.dts
index df43cc49c5..f2e4e9548b 100644
--- a/arch/arm/dts/mt7629-rfb.dts
+++ b/arch/arm/dts/mt7629-rfb.dts
@@ -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";
diff --git a/arch/arm/dts/mt7629.dtsi b/arch/arm/dts/mt7629.dtsi
index 05394266e0..7dea7809c7 100644
--- a/arch/arm/dts/mt7629.dtsi
+++ b/arch/arm/dts/mt7629.dtsi
@@ -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>;