[openwrt/openwrt] realtek: add mux pinctrl for rtl931x
LEDE Commits
lede-commits at lists.infradead.org
Sun Jul 10 01:05:53 PDT 2022
svanheule pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/b03109c094e63911ee913afc91f715895c5917d8
commit b03109c094e63911ee913afc91f715895c5917d8
Author: Sander Vanheule <sander at svanheule.net>
AuthorDate: Tue Jun 7 08:42:05 2022 +0200
realtek: add mux pinctrl for rtl931x
Add a pinctrl-single node to manage the sys-led mux and JTAG mux.
This allows using the associated pins as GPIOs:
- sys-led: GPIO0
- JTAG: GPIO6, GPIO7, others unknown (TDO, TDI, TMS, TCK /TRST)
Suggested-by: Birger Koblitz <mail at birger-koblitz.de>
Signed-off-by: Sander Vanheule <sander at svanheule.net>
---
target/linux/realtek/dts-5.10/rtl931x.dtsi | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/target/linux/realtek/dts-5.10/rtl931x.dtsi b/target/linux/realtek/dts-5.10/rtl931x.dtsi
index 29aee1f7b2..a5166141e6 100644
--- a/target/linux/realtek/dts-5.10/rtl931x.dtsi
+++ b/target/linux/realtek/dts-5.10/rtl931x.dtsi
@@ -155,6 +155,25 @@
};
};
+ pinmux: pinmux at 1b001358 {
+ compatible = "pinctrl-single";
+ reg = <0x1b001358 0x4>;
+
+ pinctrl-single,bit-per-mux;
+ pinctrl-single,register-width = <32>;
+ pinctrl-single,function-mask = <0x1>;
+ #pinctrl-cells = <2>;
+
+ /* Enable GPIO6 and GPIO7, possibly unknown others */
+ pinmux_disable_jtag: disable_jtag {
+ pinctrl-single,bits = <0x0 0x0 0x8000>;
+ };
+
+ /* Controls GPIO0 */
+ pinmux_disable_sys_led: disable_sys_led {
+ pinctrl-single,bits = <0x0 0x0 0x100>;
+ };
+ };
ethernet0: ethernet at 1b00a300 {
status = "okay";
More information about the lede-commits
mailing list