public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Enable LPC interrupt controller on MIPS LS7A systems
@ 2026-04-11 10:17 Icenowy Zheng
  2026-04-11 10:17 ` [PATCH 1/2] MIPS: Loongson64: dts: Sort nodes Icenowy Zheng
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Icenowy Zheng @ 2026-04-11 10:17 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Thomas Bogendoerfer, Jiaxun Yang
  Cc: devicetree, linux-mips, linux-kernel, Icenowy Zheng

This patchset tries to enable support for LPC interrupts on MIPS-based
Loongson systems with Loongson 7A1000 PCH chip.

The corresponding irqchip support (along with the DT binding) is already
added to the tip tree.

Tested on a Haier Boyue G51 system with legacy i8042 keyboard/mouse as
integrated ones.

This patchset is splitted from the original patchset that contains both
driver part and DT part.

Icenowy Zheng (2):
  MIPS: Loongson64: dts: Sort nodes
  MIPS: Loongson64: dts: Add node for LS7A PCH LPC

 arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

-- 
2.52.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] MIPS: Loongson64: dts: Sort nodes
  2026-04-11 10:17 [PATCH 0/2] Enable LPC interrupt controller on MIPS LS7A systems Icenowy Zheng
@ 2026-04-11 10:17 ` Icenowy Zheng
  2026-04-11 10:17 ` [PATCH 2/2] MIPS: Loongson64: dts: Add node for LS7A PCH LPC Icenowy Zheng
  2026-04-29  9:35 ` [PATCH 0/2] Enable LPC interrupt controller on MIPS LS7A systems Jiaxun Yang
  2 siblings, 0 replies; 4+ messages in thread
From: Icenowy Zheng @ 2026-04-11 10:17 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Thomas Bogendoerfer, Jiaxun Yang
  Cc: devicetree, linux-mips, linux-kernel, Icenowy Zheng

The RTC's address is after UARTs, however the node is currently before
them.

Re-order the node to match address sequence.

Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
---
 arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi b/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
index 6dee85909f5a6..59ca1ef0a7b64 100644
--- a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
+++ b/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
@@ -19,13 +19,6 @@ pic: interrupt-controller@10000000 {
 			#interrupt-cells = <2>;
 		};
 
-		rtc0: rtc@100d0100 {
-			compatible = "loongson,ls7a-rtc";
-			reg = <0 0x100d0100 0 0x78>;
-			interrupt-parent = <&pic>;
-			interrupts = <52 IRQ_TYPE_LEVEL_HIGH>;
-		};
-
 		ls7a_uart0: serial@10080000 {
 			compatible = "ns16550a";
 			reg = <0 0x10080000 0 0x100>;
@@ -65,6 +58,13 @@ ls7a_uart3: serial@10080300 {
 			no-loopback-test;
 		};
 
+		rtc0: rtc@100d0100 {
+			compatible = "loongson,ls7a-rtc";
+			reg = <0 0x100d0100 0 0x78>;
+			interrupt-parent = <&pic>;
+			interrupts = <52 IRQ_TYPE_LEVEL_HIGH>;
+		};
+
 		pci@1a000000 {
 			compatible = "loongson,ls7a-pci";
 			device_type = "pci";
-- 
2.52.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] MIPS: Loongson64: dts: Add node for LS7A PCH LPC
  2026-04-11 10:17 [PATCH 0/2] Enable LPC interrupt controller on MIPS LS7A systems Icenowy Zheng
  2026-04-11 10:17 ` [PATCH 1/2] MIPS: Loongson64: dts: Sort nodes Icenowy Zheng
@ 2026-04-11 10:17 ` Icenowy Zheng
  2026-04-29  9:35 ` [PATCH 0/2] Enable LPC interrupt controller on MIPS LS7A systems Jiaxun Yang
  2 siblings, 0 replies; 4+ messages in thread
From: Icenowy Zheng @ 2026-04-11 10:17 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Thomas Bogendoerfer, Jiaxun Yang
  Cc: devicetree, linux-mips, linux-kernel, Icenowy Zheng

Loongson 7A series PCH contain a LPC IRQ controller.

Add the device tree node of it.

Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
---
 arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi b/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
index 59ca1ef0a7b64..f304f99946f16 100644
--- a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
+++ b/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
@@ -19,6 +19,15 @@ pic: interrupt-controller@10000000 {
 			#interrupt-cells = <2>;
 		};
 
+		lpc: interrupt-controller@10002000 {
+			compatible = "loongson,ls7a-lpc";
+			reg = <0 0x10002000 0 0x1000>;
+			interrupt-controller;
+			interrupt-parent = <&pic>;
+			interrupts = <19 IRQ_TYPE_LEVEL_HIGH>;
+			#interrupt-cells = <2>;
+		};
+
 		ls7a_uart0: serial@10080000 {
 			compatible = "ns16550a";
 			reg = <0 0x10080000 0 0x100>;
-- 
2.52.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] Enable LPC interrupt controller on MIPS LS7A systems
  2026-04-11 10:17 [PATCH 0/2] Enable LPC interrupt controller on MIPS LS7A systems Icenowy Zheng
  2026-04-11 10:17 ` [PATCH 1/2] MIPS: Loongson64: dts: Sort nodes Icenowy Zheng
  2026-04-11 10:17 ` [PATCH 2/2] MIPS: Loongson64: dts: Add node for LS7A PCH LPC Icenowy Zheng
@ 2026-04-29  9:35 ` Jiaxun Yang
  2 siblings, 0 replies; 4+ messages in thread
From: Jiaxun Yang @ 2026-04-29  9:35 UTC (permalink / raw)
  To: Icenowy Zheng, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Thomas Bogendoerfer
  Cc: devicetree, linux-mips@vger.kernel.org, linux-kernel



On Sat, 11 Apr 2026, at 11:17 AM, Icenowy Zheng wrote:
> This patchset tries to enable support for LPC interrupts on MIPS-based
> Loongson systems with Loongson 7A1000 PCH chip.
>
> The corresponding irqchip support (along with the DT binding) is already
> added to the tip tree.
>
> Tested on a Haier Boyue G51 system with legacy i8042 keyboard/mouse as
> integrated ones.
>
> This patchset is splitted from the original patchset that contains both
> driver part and DT part.

For the series:

Acked-by: Jiaxun Yang <jiaxun.yang@flygoat.com>

>
> Icenowy Zheng (2):
>   MIPS: Loongson64: dts: Sort nodes
>   MIPS: Loongson64: dts: Add node for LS7A PCH LPC
>
>  arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 17 +++++++++++++----
>  1 file changed, 13 insertions(+), 4 deletions(-)
>
> -- 
> 2.52.0

-- 
- Jiaxun

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-04-29  9:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-11 10:17 [PATCH 0/2] Enable LPC interrupt controller on MIPS LS7A systems Icenowy Zheng
2026-04-11 10:17 ` [PATCH 1/2] MIPS: Loongson64: dts: Sort nodes Icenowy Zheng
2026-04-11 10:17 ` [PATCH 2/2] MIPS: Loongson64: dts: Add node for LS7A PCH LPC Icenowy Zheng
2026-04-29  9:35 ` [PATCH 0/2] Enable LPC interrupt controller on MIPS LS7A systems Jiaxun Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox