From nobody Sat Oct 4 14:12:47 2025 Received: from layka.disroot.org (layka.disroot.org [178.21.23.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E145217A2F6; Sat, 16 Aug 2025 03:35:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.21.23.139 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755315312; cv=none; b=du/jdU86CglugtUpCPFLo+Dk/xYZqTtbwNL97ZD+1RN0pni7UpbJ5/++B+ehUydsr0lQr4AZdQGQgir67ffDOb6qW6tM+TeFPbORmQZf+UFj3O2wYq+2KraeK8xsUihxvgN2X6PWJCjddHplp8hPQ2RZr0L+mPJHcNWoDGKMGEg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755315312; c=relaxed/simple; bh=qzW26gUbpt8hihAYOY+dEBe3bjTSLZipdIoCfTbRj4I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XSCwWxJJy0h4gtP/nDYadCG14xS7tRnKBj4Sq8tWxFCD7N1gRqKeO04YQsCGEMzPfVz7KmKV6q8B6krulLClRAVPnIJ/eeNNJmU2r83eKR8JiHptBV2s2PQEy8AwhWdJFhWnqabE8uzCT1Lxpo/l6HwG/8eIZH3somzlcuQK7EY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=disroot.org; spf=pass smtp.mailfrom=disroot.org; dkim=pass (2048-bit key) header.d=disroot.org header.i=@disroot.org header.b=ehjCBe2A; arc=none smtp.client-ip=178.21.23.139 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=disroot.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=disroot.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=disroot.org header.i=@disroot.org header.b="ehjCBe2A" Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 9022125CA7; Sat, 16 Aug 2025 05:35:09 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 3FdLN3DQp297; Sat, 16 Aug 2025 05:35:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1755315308; bh=qzW26gUbpt8hihAYOY+dEBe3bjTSLZipdIoCfTbRj4I=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ehjCBe2A71we6h81TUE0nQ/FzDT1K+2g6AKiJPDsPkm8CmvpVAv3VMrnI5i+kbqvT FgSQCmTjyzXlXXng6xby2ooQHDhhmBUrhxUF5Fd0rYWyt6uhHocK0IgSBBlJkHI99U j8AYqiUZWOYyvR5bI9f+bov+EMmsLtPpfly8CPJUqjEnEtG5FXhM9JU/f7PzAQdHiv zLfNka7XDYbxkyTtTOXmrPXZP9Zq0I27VGRH+pbvPWIWthF5s+q9xurStAIpHipIjM XUPF1SLKnOeSzEyPtR/YRyzBFsyHihV3zyQGtXfxKgFRkOHW5TYgS0qDbw5l+bBpkX HOhV+6iLwM4Cw== From: Yao Zi To: Philipp Zabel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Huacai Chen , WANG Xuerui Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, Mingcong Bai , Kexy Biscuit , Yao Zi Subject: [PATCH 3/3] LoongArch: dts: Add reset controller for Loongson 2K0300 Date: Sat, 16 Aug 2025 03:33:28 +0000 Message-ID: <20250816033327.11359-5-ziyao@disroot.org> In-Reply-To: <20250816033327.11359-2-ziyao@disroot.org> References: <20250816033327.11359-2-ziyao@disroot.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Describe the reset controller and add resets for UART nodes. Signed-off-by: Yao Zi --- arch/loongarch/boot/dts/loongson-2k0300.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/loongarch/boot/dts/loongson-2k0300.dtsi b/arch/loongarch/= boot/dts/loongson-2k0300.dtsi index a8ad8bd43f5d..835d3c63537b 100644 --- a/arch/loongarch/boot/dts/loongson-2k0300.dtsi +++ b/arch/loongarch/boot/dts/loongson-2k0300.dtsi @@ -7,6 +7,7 @@ /dts-v1/; =20 #include +#include #include =20 #define PINMUX(pin, func) (((pin) << 8) | func) @@ -50,6 +51,12 @@ soc@10000000 { <0x00 0x02000000 0x00 0x02000000 0x0 0x04000000>, <0x00 0x40000000 0x00 0x40000000 0x0 0x40000000>; =20 + rst: reset-controller@1600011c { + compatible =3D "loongson,ls2k0300-reset"; + reg =3D <0x0 0x1600011c 0x0 0x8>; + #reset-cells =3D <1>; + }; + clk: clock-controller@16000400 { compatible =3D "loongson,ls2k0300-clk"; reg =3D <0x0 0x16000400 0x0 0x30>; @@ -128,6 +135,7 @@ uart0: serial@16100000 { compatible =3D "ns16550a"; reg =3D <0 0x16100000 0 0x10>; clocks =3D <&clk LS2K0300_CLK_APB_GATE>; + resets =3D <&rst RST_UART0>; interrupt-parent =3D <&liointc0>; interrupts =3D <0 IRQ_TYPE_LEVEL_HIGH>; no-loopback-test; @@ -141,6 +149,7 @@ uart1: serial@16100400 { reg =3D <0 0x16100400 0 0x10>; interrupt-parent =3D <&liointc0>; interrupts =3D <1 IRQ_TYPE_LEVEL_HIGH>; + resets =3D <&rst RST_UART1>; no-loopback-test; pinctrl-names =3D "default"; pinctrl-0 =3D <&uart1_pins>; @@ -152,6 +161,7 @@ uart2: serial@16100800 { reg =3D <0 0x16100800 0 0x10>; interrupt-parent =3D <&liointc0>; interrupts =3D <2 IRQ_TYPE_LEVEL_HIGH>; + resets =3D <&rst RST_UART2>; no-loopback-test; pinctrl-names =3D "default"; pinctrl-0 =3D <&uart2_pins>; @@ -163,6 +173,7 @@ uart3: serial@16100c00 { reg =3D <0 0x16100c00 0 0x10>; interrupt-parent =3D <&liointc0>; interrupts =3D <2 IRQ_TYPE_LEVEL_HIGH>; + resets =3D <&rst RST_UART3>; no-loopback-test; pinctrl-names =3D "default"; pinctrl-0 =3D <&uart3_pins>; @@ -174,6 +185,7 @@ uart4: serial@16101000 { reg =3D <0 0x16101000 0 0x10>; interrupt-parent =3D <&liointc0>; interrupts =3D <2 IRQ_TYPE_LEVEL_HIGH>; + resets =3D <&rst RST_UART4>; no-loopback-test; status =3D "disabled"; }; @@ -183,6 +195,7 @@ uart5: serial@16101400 { reg =3D <0 0x16101400 0 0x10>; interrupt-parent =3D <&liointc0>; interrupts =3D <2 IRQ_TYPE_LEVEL_HIGH>; + resets =3D <&rst RST_UART5>; no-loopback-test; status =3D "disabled"; }; @@ -192,6 +205,7 @@ uart6: serial@16101800 { reg =3D <0 0x16101800 0 0x10>; interrupt-parent =3D <&liointc0>; interrupts =3D <3 IRQ_TYPE_LEVEL_HIGH>; + resets =3D <&rst RST_UART6>; no-loopback-test; status =3D "disabled"; }; @@ -201,6 +215,7 @@ uart7: serial@16101c00 { reg =3D <0 0x16101c00 0 0x10>; interrupt-parent =3D <&liointc0>; interrupts =3D <3 IRQ_TYPE_LEVEL_HIGH>; + resets =3D <&rst RST_UART7>; no-loopback-test; status =3D "disabled"; }; @@ -210,6 +225,7 @@ uart8: serial@16102000 { reg =3D <0 0x16102000 0 0x10>; interrupt-parent =3D <&liointc0>; interrupts =3D <3 IRQ_TYPE_LEVEL_HIGH>; + resets =3D <&rst RST_UART8>; no-loopback-test; status =3D "disabled"; }; @@ -219,6 +235,7 @@ uart9: serial@16102400 { reg =3D <0 0x16102400 0 0x10>; interrupt-parent =3D <&liointc0>; interrupts =3D <3 IRQ_TYPE_LEVEL_HIGH>; + resets =3D <&rst RST_UART9>; no-loopback-test; status =3D "disabled"; }; --=20 2.50.1