[openwrt/openwrt] realtek: rtl93xx: Add GPIO access register definitions

LEDE Commits lede-commits at lists.infradead.org
Thu Aug 7 09:42:05 PDT 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/4c4cecab2fdbd26a72cfb91269143842bdeff6ee

commit 4c4cecab2fdbd26a72cfb91269143842bdeff6ee
Author: Harshal Gohel <hg at simonwunderlich.de>
AuthorDate: Mon Jul 7 15:58:19 2025 +0000

    realtek: rtl93xx: Add GPIO access register definitions
    
    mach-rtl83xx.h contained the required register definitions for older SoC
    families but was missing it for RTL930x and RTL931x.
    
    Signed-off-by: Harshal Gohel <hg at simonwunderlich.de>
    Signed-off-by: Sharadanand Karanjkar <sk at simonwunderlich.de>
    Link: https://github.com/openwrt/openwrt/pull/19574
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 .../arch/mips/include/asm/mach-rtl838x/mach-rtl83xx.h          | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/target/linux/realtek/files-6.12/arch/mips/include/asm/mach-rtl838x/mach-rtl83xx.h b/target/linux/realtek/files-6.12/arch/mips/include/asm/mach-rtl838x/mach-rtl83xx.h
index 263f246275..2946674036 100644
--- a/target/linux/realtek/files-6.12/arch/mips/include/asm/mach-rtl838x/mach-rtl83xx.h
+++ b/target/linux/realtek/files-6.12/arch/mips/include/asm/mach-rtl838x/mach-rtl83xx.h
@@ -236,12 +236,22 @@
 #define RTL930X_LED_GLB_CTRL		(0xCC00)
 #define RTL931X_LED_GLB_CTRL		(0x0600)
 
+#define RTL930X_EXT_GPIO_GLB_CTRL	(0xC600)
+#define RTL931X_EXT_GPIO_GLB_CTRL	(0x07D4)
+
 #define RTL838X_EXT_GPIO_DIR		(0xA08C)
 #define RTL839X_EXT_GPIO_DIR		(0x0214)
+#define RTL930X_EXT_GPIO_DIR		(0xC608)
+#define RTL931X_EXT_GPIO_DIR		(0x07DC)
 #define RTL838X_EXT_GPIO_DATA		(0xA094)
 #define RTL839X_EXT_GPIO_DATA		(0x021c)
+#define RTL930X_EXT_GPIO_DATA		(0xC614)
+#define RTL931X_EXT_GPIO_DATA		(0x07E8)
 #define RTL838X_EXT_GPIO_INDRT_ACCESS	(0xA09C)
 #define RTL839X_EXT_GPIO_INDRT_ACCESS	(0x0224)
+#define RTL930X_EXT_GPIO_INDRT_ACCESS	(0xC620)
+#define RTL931X_EXT_GPIO_INDRT_ACCESS	(0x07F4)
+
 #define RTL838X_EXTRA_GPIO_CTRL		(0xA0E0)
 #define RTL838X_DMY_REG5		(0x0144)
 #define RTL838X_EXTRA_GPIO_CTRL		(0xA0E0)




More information about the lede-commits mailing list