diff options
author | Sander Vanheule <sander@svanheule.net> | 2021-11-26 22:16:02 +0100 |
---|---|---|
committer | Sander Vanheule <sander@svanheule.net> | 2022-07-10 09:54:35 +0200 |
commit | cd7a225d28494478c2d588d23b0021167bba1bad (patch) | |
tree | ce5d92cf519bd1a6bb17566496b776d4135b9a5a /target/linux | |
parent | f4065485d3d9c6efa06c323fd5f61099a390c4c3 (diff) | |
download | upstream-cd7a225d28494478c2d588d23b0021167bba1bad.tar.gz upstream-cd7a225d28494478c2d588d23b0021167bba1bad.tar.bz2 upstream-cd7a225d28494478c2d588d23b0021167bba1bad.zip |
realtek: add sys-led disable pinctrl for rtl930x
Like for RTL838x devices, add a pinctrl-single node to manage the
sys-led/gpio0 mux, and allow using the pin as GPIO.
Co-developed-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Signed-off-by: Sander Vanheule <sander@svanheule.net>
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/realtek/dts-5.10/rtl930x.dtsi | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/target/linux/realtek/dts-5.10/rtl930x.dtsi b/target/linux/realtek/dts-5.10/rtl930x.dtsi index bfde5e6ff6..c2a992a174 100644 --- a/target/linux/realtek/dts-5.10/rtl930x.dtsi +++ b/target/linux/realtek/dts-5.10/rtl930x.dtsi @@ -135,6 +135,21 @@ }; + pinmux_led: pinmux@1b00cc00 { + compatible = "pinctrl-single"; + reg = <0x1b00cc00 0x4>; + + pinctrl-single,bit-per-mux; + pinctrl-single,register-width = <32>; + pinctrl-single,function-mask = <0x1>; + #pinctrl-cells = <2>; + + /* enable GPIO 0 */ + pinmux_disable_sys_led: disable_sys_led { + pinctrl-single,bits = <0x0 0x0 0x1000>; + }; + }; + ethernet0: ethernet@1b00a300 { compatible = "realtek,rtl838x-eth"; reg = <0x1b00a300 0x100>; |