From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from naesa05.arrow.com (naesa05.arrow.com [216.150.161.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 44FF838B7BC; Mon, 6 Jul 2026 08:12:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=216.150.161.26 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783325549; cv=none; b=DbBJLcFuL+mraRJU/rxSduTKhfB35fyF0JkBtVqQnCQGpqMIPoglHXpAk8GQES2KGfk+62voOA+AE+It6kY2ICOv0OU6LF1tQpEZAKDEqUKyGtmMIt7Ogw8mqCnAuJnjl/xW2yxykdtG3Rm45IFi9N7kb4jCtdua1LscMnMJU4E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783325549; c=relaxed/simple; bh=pWZliKCxC6/6PGDIQgM60geniJPJRaoK5I1vQjYOt5M=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=l9OxRTdfjrAKoaQhW/FuTBjGGWwm8MEGCILIjA5A7OpUTCEhBc0nfIa5eNJQO6Ex6YNcXrfn7shNslhtm7cmCx/1ci2t7DMGEUtNHYe16XCr6hvGpT4MSqM4QNP+8eU+sHpuGtDx4WxRXGUtbAb5V05aI3/V1147de9pI+NZi2U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=einfochips.com; spf=pass smtp.mailfrom=einfochips.com; dkim=pass (2048-bit key) header.d=einfochips.com header.i=@einfochips.com header.b=pHmtuqco; arc=none smtp.client-ip=216.150.161.26 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.b="pHmtuqco" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=einfochips.com; i=@einfochips.com; l=1906; q=dns/txt; s=NAESA-Selector1; t=1783325545; x=1814861545; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=R5xklhqISih2SzU4VfviMo3Vox+xr0oG4tU6SqgB6RQ=; b=pHmtuqcorLJnOCd2UtrkrWPXBZtI+zt7JXooWZ7LKTToSgeRlIBJ1mm5 nV0HkyEppb16Q2aR+ym3MuyLufdhSWVIeeHH0iXAtTGG5s8BRAPoAHBfJ oi+5apsaoQlG1ScXLkWOZjKIpbkpTwyKTf+eLOnq/DIBmGBZZFM7QNGG9 ocW/16L6GzHHUk2aykjAcdyAgHRjSjpt99nxA/nPVBXPqMJPCkI6nZ+1z FwkOTHXHUxZDbmN7ktLdN4EJl/G3004HrlK1AQ+SZRMx2M0X2igOmKHBH 8nT2Q4KoXyJaTGzxM9D9Bu+iv1lDmXGmYwLVspYGv8H9O5NLBKoR85L6U Q==; X-CSE-ConnectionGUID: YYBQRJBUTA2fZUlsMut68A== X-CSE-MsgGUID: KVx2l84HRtKz2u3ZQ9qRUg== X-IronPort-AV: E=Sophos;i="6.25,149,1779170400"; d="scan'208";a="57540297" Received: from unknown (HELO eicahmirelay01.einfochips.com) ([10.100.49.50]) by naesa05out.arrow.com with ESMTP; 06 Jul 2026 02:11:00 -0600 Received: from AHMCPU1888.localdomain ([172.25.5.100]) by eicahmirelay01.einfochips.com with Microsoft SMTPSVC(10.0.20348.1); Mon, 6 Jul 2026 13:40:55 +0530 From: Pinkesh Vaghela To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Andi Shyti , Mika Westerberg , 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 v2 2/8] riscv: dts: eswin: add clock generator for EIC7700 SoC Date: Mon, 6 Jul 2026 13:40:49 +0530 Message-Id: <20260706081055.1126275-3-pinkesh.vaghela@einfochips.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20260706081055.1126275-1-pinkesh.vaghela@einfochips.com> References: <20260706081055.1126275-1-pinkesh.vaghela@einfochips.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 06 Jul 2026 08:10:55.0907 (UTC) FILETIME=[F86D3730:01DD0D1E] 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 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..1266762dfcd8 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 { }; }; +&clock_24m { + clock-frequency = <24000000>; + clock-output-names = "clock_24m"; +}; + &uart0 { status = "okay"; }; diff --git a/arch/riscv/boot/dts/eswin/eic7700.dtsi b/arch/riscv/boot/dts/eswin/eic7700.dtsi index 430a210f01e6..af9e40d8739a 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>; }; + clock_24m: clock-24m { + 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 = <&clock_24m>; + #clock-cells = <1>; + }; + reset: reset-controller@51828300 { compatible = "eswin,eic7700-reset"; reg = <0x0 0x51828300 0x0 0x200>; -- 2.34.1