From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=216.150.161.27 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796124412; b=mpAUvGhqkHnYOvbE0RcI/oXLNpvCocpXdxyOmTnkkSEcLLCX90ooCaUUZarjc3QjQ8wr wwKNV0SNp5ItDxbwhInLWYIiu1R3+EY8MNS9aXK4BdODZ71yGdhVPz+XOZ5o+5ZUlrhPM +SyLO+wH2ZPYfUXJWeLd8bf8IQi8aneK4c6dRYFUcK9Q2uedrWa/G37z8fDgJivlBniRj m+YmxqvR9ec1bYl1Oyk7WEEwVyDFhCu6PNvMOO4G/PLIXAkvnPLVM97URp+WB2nzWbCaU xd8ygAmcxJgWPlzrysx47otI9n6i61oYPnzMAB8uEhqwOYJbzKJPda0v54jXmTx5dtw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796124412; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:Received:Received:From:To:Cc:Subject:Date:Message-Id: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-OriginalArrivalTime; bh=dDHF0t6ybaGOxS0UQ9/VLcKytRSaPeBfszamnyx5YFE=; b=5GubE3poX0bpLmJ+jcD/5ebx0++7LJFM+qH/IZHgFe4b4bSjA4CgAVuHavVBWTG9i+xu oCM6J6eMNI5tNFiWNh29uG89BhOoN9362Uik8CqTo6c/F9Gk9pDH4lGNk7uGa6huE62cV kt+IOEYCnVo/IrTEUSq4L7jGSbGXAm/RJ5R2tZMYmMgvZSFBom2Zniq7qfG7QiCB/nI9U dRv7EdYhgLSizqnp7XW0e8wo2BYihdm+aWBG4vcXPP1MYeXl3b7NjD3cjtVxWzURA2wQF wXp3q9GTvFUEodE2GPmmwEQqOqCzQo92YEd3KiKRnCIiQoaypd5K+v1VxwEiy0iuf/g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=einfochips.com; spf=pass smtp.mailfrom=einfochips.com; dkim=pass header.d=einfochips.com header.i=@einfochips.com header.a=rsa-sha256 header.s=NAESA-Selector1 header.b=gbTzTr5G; arc=none smtp.remote-ip=216.150.161.27 Received: from naesa06.arrow.com (naesa06.arrow.com [216.150.161.27]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E8F8606A32E; Tue, 1 Dec 2026 11:26:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8E8F8606A32E Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=einfochips.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=einfochips.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=einfochips.com header.i=@einfochips.com header.a=rsa-sha256 header.s=NAESA-Selector1 header.b=gbTzTr5G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=einfochips.com; i=@einfochips.com; l=1948; q=dns/txt; s=NAESA-Selector1; t=1796124412; x=1827660412; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=dDHF0t6ybaGOxS0UQ9/VLcKytRSaPeBfszamnyx5YFE=; b=gbTzTr5GxVHlW1TkQj/IgUUSeYnGJ+/DhUNu3cbyYba++Rz/yi1win41 c1j0aUL2Gm280wpVnY295Umromy9qK69H4aF4nxTbFirhAwqItJKF1Uk/ 6m6ofennDJwVR9Ix7Mg4a/8bhcsRYSBwKqxJPqBWb1Sg8gbvS3SXfQc4h TdrJDnUqrEjNXJoxyJoItR+VGTqf6EtJ46ak1vuRDIiRQWI2UEcESo9co xX6ktvi3yD/uIAcGw8tborShEFKRlyP2iHBorWHaXEH0CfTpnL27prVbI SUv5MxspTUp37Hscx5jTysdfZbAmDFTBS+KcTcGSA8evR4SGTP1VeBOM1 w==; X-CSE-ConnectionGUID: FnaTbT2YTB++5cP3oTYX7Q== X-CSE-MsgGUID: JQNd6TgxRauX4/5UA1Wq3w== X-IronPort-AV: E=Sophos;i="6.27,244,1787032800"; d="scan'208";a="70283495" Received: from unknown (HELO eicahmirelay01.einfochips.com) ([10.100.49.50]) by naesa06out.arrow.com with ESMTP; 01 Dec 2026 04:26:46 -0700 Received: from AHMCPU1888.localdomain ([172.25.5.100]) by eicahmirelay01.einfochips.com with Microsoft SMTPSVC(10.0.20348.1); Tue, 1 Dec 2026 16:56:41 +0530 From: Pinkesh Vaghela To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Andi Shyti , Mika Westerberg , Mervyn Pretorius , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Min Lin Cc: Yulin Lu , Samuel Holland , Darshan Prajapati , Pinkesh Vaghela , Pritesh Patel Subject: [PATCH v6 2/7] riscv: dts: eswin: add clock generator for EIC7700 SoC Date: Tue, 1 Dec 2026 16:56:36 +0530 Message-Id: <20261201112641.493136-3-pinkesh.vaghela@einfochips.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20261201112641.493136-1-pinkesh.vaghela@einfochips.com> References: <20261201112641.493136-1-pinkesh.vaghela@einfochips.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 01 Dec 2026 11:26:41.0531 (UTC) FILETIME=[D68034B0:01DD8186] From: Pritesh Patel Add clock generator node for EIC7700 SoC. HiFive Premier P550 boards have 24MHz crystal oscillator to provide the input clock. Signed-off-by: Pritesh Patel Tested-by: Mervyn Pretorius Signed-off-by: Pinkesh Vaghela --- .../boot/dts/eswin/eic7700-hifive-premier-p550.dts | 5 +++++ arch/riscv/boot/dts/eswin/eic7700.dtsi | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/arch/riscv/boot/dts/eswin/eic7700-hifive-premier-p550.dts b/arch/riscv/boot/dts/eswin/eic7700-hifive-premier-p550.dts index 131ed1fc6b2e..a5c76b14a38f 100644 --- a/arch/riscv/boot/dts/eswin/eic7700-hifive-premier-p550.dts +++ b/arch/riscv/boot/dts/eswin/eic7700-hifive-premier-p550.dts @@ -20,6 +20,11 @@ chosen { }; }; +&osc { + clock-frequency = <24000000>; + clock-output-names = "osc_24m"; +}; + &uart0 { status = "okay"; }; diff --git a/arch/riscv/boot/dts/eswin/eic7700.dtsi b/arch/riscv/boot/dts/eswin/eic7700.dtsi index 430a210f01e6..b3a230870315 100644 --- a/arch/riscv/boot/dts/eswin/eic7700.dtsi +++ b/arch/riscv/boot/dts/eswin/eic7700.dtsi @@ -4,6 +4,7 @@ */ /dts-v1/; +#include #include / { @@ -203,6 +204,11 @@ pmu { <0x00000000 0x0000000f 0xfffffffc 0x000000ff 0x00000078>; }; + osc: oscillator { + compatible = "fixed-clock"; + #clock-cells = <0>; + }; + soc { compatible = "simple-bus"; ranges; @@ -343,6 +349,13 @@ gpioD: gpio-port@3 { }; }; + clk: clock-controller@51828000 { + compatible = "eswin,eic7700-clock"; + reg = <0x0 0x51828000 0x0 0x300>; + clocks = <&osc>; + #clock-cells = <1>; + }; + reset: reset-controller@51828300 { compatible = "eswin,eic7700-reset"; reg = <0x0 0x51828300 0x0 0x200>; -- 2.34.1