From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8F5CCC83F05 for ; Sun, 6 Jul 2025 14:25:04 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4bZqQ7142vz30VR; Mon, 7 Jul 2025 00:24:47 +1000 (AEST) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=212.199.177.27 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1751811886; cv=none; b=dHraf8VNRX6U6VkrvfLtTmvX4yptVqs5GYpzoFpzUw/POf39DaapU67YjoUOZfgfxVasrV86HKNDdZUeprfd+hWKwRQfCQufLicWP/HTv0uPYNMSbJuEwow7l0InRlRzblh14OSdOZY3q6AJ/Kf3vVmF7E9KNKo5z7Z+Z9ng57pzMcC+99Jxn9MHnNcaL091oAf6SUYlp8oMxkCzDjk64E2UGAt1tQAsMhV98NyEvMMAZn6c4VkypeXoWx2mx6wePWLGgWdr4ScCt48S+gLivNmVZdAGvlaX4QkSMQXMCe+CVhB1vQyt2OSjHf35UYoae41w7hamo9suSft+e+iAiQ== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1751811886; c=relaxed/relaxed; bh=DHVP6Jxn9qePOmfBPh2lMaoICnHmKhheR/oyM5OYcms=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=KVwbxKtmYxwG8HD2KncBVYUOzVkC3YHSIyplxZLPumHFIPYVcMn5/N5rJ08R9tKHjiOKu2Y6VrVwYZNqfSTV643q6lu7dWZiK3NkHJfIQMO9J5qLvhywTSa63NFn7srhysQsrXaeFHpYzkBROU+OGboNSfRkUihIAeSfR17F7ez9JrOGgaxty+IN3u1xGWcW9UWGxI7P/zvNVQQmGyP+HTdqXeLPpLsOj0W5wRg2esa7nmLny0PuzngTHNgo9gEM//SQV6RPOUgn9V0bliKTAWaSl3e4/TMfmuOkFVz+3wBnMsNJQlnVg50pi8EV7H2QCuVYb4+q7eyhCYAxzBV1yg== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=none (client-ip=212.199.177.27; helo=herzl.nuvoton.co.il; envelope-from=tmaimon@taln60.nuvoton.co.il; receiver=lists.ozlabs.org) smtp.mailfrom=taln60.nuvoton.co.il Authentication-Results: lists.ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=taln60.nuvoton.co.il (client-ip=212.199.177.27; helo=herzl.nuvoton.co.il; envelope-from=tmaimon@taln60.nuvoton.co.il; receiver=lists.ozlabs.org) Received: from herzl.nuvoton.co.il (unknown [212.199.177.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4bZqQ13RHDz2xtt for ; Mon, 7 Jul 2025 00:24:41 +1000 (AEST) Received: from NTILML01.nuvoton.com (212.199.177.18.static.012.net.il [212.199.177.18]) by herzl.nuvoton.co.il (8.13.8/8.13.8) with ESMTP id 566DgIbA031525 for ; Sun, 6 Jul 2025 16:42:18 +0300 Received: from NTHCML01A.nuvoton.com (10.1.8.177) by NTILML01.nuvoton.com (10.190.1.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.57; Sun, 6 Jul 2025 16:42:17 +0300 Received: from NTHCCAS01.nuvoton.com (10.1.8.28) by NTHCML01A.nuvoton.com (10.1.8.177) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.44; Sun, 6 Jul 2025 21:42:15 +0800 Received: from taln58.nuvoton.co.il (10.191.1.178) by NTHCCAS01.nuvoton.com (10.1.8.28) with Microsoft SMTP Server id 15.1.2507.44 via Frontend Transport; Sun, 6 Jul 2025 21:42:14 +0800 Received: from taln60.nuvoton.co.il (taln60 [10.191.1.180]) by taln58.nuvoton.co.il (Postfix) with ESMTP id 4BA8F5F5DA; Sun, 6 Jul 2025 16:42:14 +0300 (IDT) Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id 48D2ADC3163; Sun, 6 Jul 2025 16:42:14 +0300 (IDT) From: Tomer Maimon To: , , , , , , , , CC: , , , Tomer Maimon Subject: [PATCH v1 1/2] arm64: dts: nuvoton: combine NPCM845 reset and clk nodes Date: Sun, 6 Jul 2025 16:42:06 +0300 Message-ID: <20250706134207.2168184-2-tmaimon77@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250706134207.2168184-1-tmaimon77@gmail.com> References: <20250706134207.2168184-1-tmaimon77@gmail.com> X-Mailing-List: openbmc@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-NotSetDelaration: True Combine the NPCM845 reset and clock controller nodes into a single node with compatible "nuvoton,npcm845-reset" in nuvoton-common-npcm8xx.dtsi, using the auxiliary device framework to provide clock functionality. Update the register range to 0xC4 to cover the shared reset and clock registers at 0xf0801000. Remove the separate nuvoton,npcm845-clk node, as the reset driver now handles clocks via an auxiliary device. Signed-off-by: Tomer Maimon --- .../boot/dts/nuvoton/nuvoton-common-npcm8xx.dtsi | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/nuvoton/nuvoton-common-npcm8xx.dtsi b/arch/arm64/boot/dts/nuvoton/nuvoton-common-npcm8xx.dtsi index fead4dde590d..2a36d0b2824e 100644 --- a/arch/arm64/boot/dts/nuvoton/nuvoton-common-npcm8xx.dtsi +++ b/arch/arm64/boot/dts/nuvoton/nuvoton-common-npcm8xx.dtsi @@ -47,17 +47,12 @@ ahb { interrupt-parent = <&gic>; ranges; - rstc: reset-controller@f0801000 { + clk: rstc: reset-controller@f0801000 { compatible = "nuvoton,npcm845-reset"; - reg = <0x0 0xf0801000 0x0 0x78>; - #reset-cells = <2>; + reg = <0x0 0xf0801000 0x0 0xC4>; nuvoton,sysgcr = <&gcr>; - }; - - clk: clock-controller@f0801000 { - compatible = "nuvoton,npcm845-clk"; + #reset-cells = <2>; #clock-cells = <1>; - reg = <0x0 0xf0801000 0x0 0x1000>; }; apb { -- 2.34.1