[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250816035027.11727-5-ziyao@disroot.org>
Date: Sat, 16 Aug 2025 03:50:28 +0000
From: Yao Zi <ziyao@...root.org>
To: Yinbo Zhu <zhuyinbo@...ngson.cn>,
Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Huacai Chen <chenhuacai@...nel.org>,
WANG Xuerui <kernel@...0n.name>,
Philipp Zabel <p.zabel@...gutronix.de>
Cc: linux-gpio@...r.kernel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
loongarch@...ts.linux.dev,
Mingcong Bai <jeffbai@...c.io>,
Kexy Biscuit <kexybiscuit@...c.io>,
Yao Zi <ziyao@...root.org>
Subject: [PATCH 3/3] LoongArch: dts: Add GPIO controller for Loongson 2K0300
Describe Loongson 2K0300's GPIO controller in devicetree.
Signed-off-by: Yao Zi <ziyao@...root.org>
---
arch/loongarch/boot/dts/loongson-2k0300.dtsi | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/arch/loongarch/boot/dts/loongson-2k0300.dtsi b/arch/loongarch/boot/dts/loongson-2k0300.dtsi
index 835d3c63537b..60a055b05c44 100644
--- a/arch/loongarch/boot/dts/loongson-2k0300.dtsi
+++ b/arch/loongarch/boot/dts/loongson-2k0300.dtsi
@@ -240,6 +240,26 @@ uart9: serial@...02400 {
status = "disabled";
};
+ gpio: gpio@...04000 {
+ compatible = "loongson,ls2k0300-gpio";
+ reg = <0x0 0x16104000 0x0 0x4000>;
+ interrupt-parent = <&liointc1>;
+ interrupts = <21 IRQ_TYPE_LEVEL_HIGH>,
+ <22 IRQ_TYPE_LEVEL_HIGH>,
+ <23 IRQ_TYPE_LEVEL_HIGH>,
+ <24 IRQ_TYPE_LEVEL_HIGH>,
+ <25 IRQ_TYPE_LEVEL_HIGH>,
+ <26 IRQ_TYPE_LEVEL_HIGH>,
+ <27 IRQ_TYPE_LEVEL_HIGH>;
+ ngpios = <106>;
+ gpio-controller;
+ gpio-ranges = <&pinctrl 0 0 106>;
+ #gpio-cells = <2>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ resets = <&rst RST_GPIO>;
+ };
+
isa@...00000 {
compatible = "isa";
#address-cells = <2>;
--
2.50.1
Powered by blists - more mailing lists