Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1622841lqs; Sat, 15 Jun 2024 18:56:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUALTLGo3B9bfjBDHZJz8P+XvBgHAa0r9Dy/uzMV56yWgZ8UP8mOkIGe8tV3nedaFTFKLKyIFtKAiGK7VVlsI7N+ulEETaPJJKp4haTqw== X-Google-Smtp-Source: AGHT+IGve/cinqZAwY/z2fIaTwTbacub70TeVvk+pf0VB5C1uFBatSLWa2UGp6WI7CUB/kCqso8U X-Received: by 2002:a17:903:1246:b0:1f7:3a5b:2f0 with SMTP id d9443c01a7336-1f862b155d7mr69393465ad.44.1718502961589; Sat, 15 Jun 2024 18:56:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718502961; cv=pass; d=google.com; s=arc-20160816; b=aaL5R1mPU1PUuK6C5T9DPQEhMb8Wdujwp78rZGGib0ca8b/v0eokwhxk+jg+4d070I rKuJ9jq00QWR3yRsqhLpqhus/iYbT0+77CvR8drZVs9johH0d8nbnHd3lfIhaMpNimjs Id4eTnzvsDW2Hpzf2LJUWnvXzYX7MjA3dYehTkwDAeiFoKe4DNdhwtP0lle/I8oJRNw7 0Eix+EeFVLcejI2UbWPmxwoZXQaS1ojK83GIfoK51k34eWs9iFH57NtdXhK80rOfTK4F tX/5s7Zy/g8ZYXJLAL1KPXMZs9T5JYOJPt532OgPU5KnJF/W6UKf99GzKfalhUeGPeAQ QClQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=lNPhbe4CKhTW6lWgdp189/o19T4GZdsybtYcMCrAtjY=; fh=DF8Kp/2gVuynR6VBa4IhhXbtsGRUMzW8dZtbAsipbKc=; b=lLJjHHvZZGZ9R1LmFVO2UiaEA1NUKhv+nE5ZOOlHCC3HriYLA/MIKyaxUXoTy0CyQI H92IQdll5danu3ObxJlCNpvU4+gaYW+asPcBQaGD47OQmWtOvBnxNH8xb09CkxjE9uT4 sxBJh8LPT8KLDxgtM34Y6XkkbisIksEyN9kqtXnA6OMPDbOjVgX5E+AN+C3MwpnLms/7 xpXd5/tVTj1twuRra7BppE5zXOAu6UofAXS8k+7I+g8+i33szfVAWuB+hS3eWS9l85Ub VVmSxbMmLELDkily3pyt1L7AmPl8fUOBKDxG5do9lK8YnP9mj906sGe8abPN0YYOlbO7 M8EQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tenstorrent.com header.s=google header.b=SkdxgZBI; arc=pass (i=1 spf=pass spfdomain=tenstorrent.com dkim=pass dkdomain=tenstorrent.com dmarc=pass fromdomain=tenstorrent.com); spf=pass (google.com: domain of linux-kernel+bounces-216085-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216085-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tenstorrent.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f855f018e2si65877235ad.491.2024.06.15.18.56.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 18:56:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-216085-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@tenstorrent.com header.s=google header.b=SkdxgZBI; arc=pass (i=1 spf=pass spfdomain=tenstorrent.com dkim=pass dkdomain=tenstorrent.com dmarc=pass fromdomain=tenstorrent.com); spf=pass (google.com: domain of linux-kernel+bounces-216085-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216085-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tenstorrent.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 189FDB217EB for ; Sun, 16 Jun 2024 01:55:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C9141667E8; Sun, 16 Jun 2024 01:55:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tenstorrent.com header.i=@tenstorrent.com header.b="SkdxgZBI" Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (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 10670163A9B for ; Sun, 16 Jun 2024 01:55:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718502925; cv=none; b=ObXoUwWNpUhswEshKMBfCVo6FNIDrNpm9LPzTlvjBJYrA3J7WBNhJavQFct9ifzvnK/K0KpiwJ3piojCaZ9AjGUqQh72CreMRtt8MLPgzJdGOcJsC82HelfoFK4OyuF8AZsMbAPxBhNQeFlsMH11uvAgcbij372FD41xM98vkVc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718502925; c=relaxed/simple; bh=jdmR4mbethnmbINzfYelG5bZ/4P0Pr0DSPkP3jxTYBE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LWwrYEj2a4mKgciA36ZvUbARSoGVfMJcinjm8CN6Agm2yAtNEGq2hFJrtyvIWG7XAOickUpZwCTuv0EgVderwZPl2t92X3fI+ewYRxGysTWapkIyngA1QQOqID47bjxK/mqsmoMo0kP+wyQX8zD9IxLaduptqld3MFtp0SNd258= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tenstorrent.com; spf=pass smtp.mailfrom=tenstorrent.com; dkim=pass (2048-bit key) header.d=tenstorrent.com header.i=@tenstorrent.com header.b=SkdxgZBI; arc=none smtp.client-ip=209.85.210.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tenstorrent.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tenstorrent.com Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-705f0c54846so662487b3a.3 for ; Sat, 15 Jun 2024 18:55:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenstorrent.com; s=google; t=1718502923; x=1719107723; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=lNPhbe4CKhTW6lWgdp189/o19T4GZdsybtYcMCrAtjY=; b=SkdxgZBI32XHDadUvsgtL5kEtN0sVi8/KDCk1hyGOK+opUkDOljg/fKCWGTNO5qxwH qvj253Y/gaZ/bie9jA68YXQb6gKxdZDqmaZs7YwNmHGmNBm2PCGAZLwta5f36gD2VoN0 ht3bYxAsar1c/+JtzB2erVY46eWeSMpuVzTBGXlaMrzAcpTd+yNDE+EtP/tSCMGLyxYL M45WLo+0DPqiXMCvXBrTYr/Od2BrM4VM2093cLYgOk6pm+9gwBnoQFRl+m4Qd4PfnUKc XBUoM8MaP8kK8CqZ797UmZmfoO+AaQs+S2PvLtJQEJt+PhmpM2ZAIj5AP1SF7Jd4oRsg tLpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718502923; x=1719107723; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lNPhbe4CKhTW6lWgdp189/o19T4GZdsybtYcMCrAtjY=; b=BbiVMk41iV1GdrRWCVzuqBV3/zyudbzuW0IgCu8BJtHJYMsoisrSAozAW9/72EsWn5 KebPUHk+BCngoY1mz58dDu2xDZV3+qiHULyVlXtpU+ntLu3w6IHoEeEAJt2sCbw7eSdC bJH5jAVG/A/zURU+g81YCHEO/BGXFT5FewDTu+qAFKUd3GAAG8EOxmtu2CzCnzS+ZywT XJoba3/oIo9aBAtFB2+9FFkpvAD3oxRdMru6kcgblKLBN+IsW1VlrB3emozEEUQChSkZ XBURrOO2sREFeksTFkWKTfm6KyM0ocEo2ZFTMoMEXFvo1fXwccbzqfCPb5qo15G9yPsa dq5g== X-Forwarded-Encrypted: i=1; AJvYcCX/K5QXtAsXYZXkODMC27f22DMDW0QTdDZnqKIXNMt+zAhS1sPGzzbncdwMCOWi1cu5ff8yqnvQGE498DjgjHKSqG6wY//CeSvCrCyJ X-Gm-Message-State: AOJu0YwBYEkWwm4zvE0QgiVKvWHWkTDlUI3mVfbK8yDMjOS1OYW5HLBl 7Xr5JqfgVcvPJ2fP3tlJLRUdfXUZQf2ufO5SEgok8gmFP3slmLpK2vsOCs9Cb3K3YU4YHW0s/E7 P X-Received: by 2002:a05:6a20:d80d:b0:1b8:3f6d:3037 with SMTP id adf61e73a8af0-1bae7ea0f63mr7711032637.18.1718502923295; Sat, 15 Jun 2024 18:55:23 -0700 (PDT) Received: from [127.0.1.1] ([2601:1c2:1802:170:1cea:28dd:2ee0:e8e5]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c4a769aedbsm8751201a91.43.2024.06.15.18.55.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 18:55:22 -0700 (PDT) From: Drew Fustini Date: Sat, 15 Jun 2024 18:54:32 -0700 Subject: [PATCH 3/6] riscv: dts: thead: Add TH1520 AP_SUBSYS clock controller Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240615-th1520-clk-v1-3-3ba4978c4d6b@tenstorrent.com> References: <20240615-th1520-clk-v1-0-3ba4978c4d6b@tenstorrent.com> In-Reply-To: <20240615-th1520-clk-v1-0-3ba4978c4d6b@tenstorrent.com> To: Jisheng Zhang , Guo Ren , Fu Wei , Yangtao Li , Thomas Bonnefille , Emil Renner Berthing , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: linux-riscv@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Drew Fustini X-Mailer: b4 0.12.3 Add node for the AP_SUBSYS clock controller on the T-Head TH1520 SoC. Link: https://openbeagle.org/beaglev-ahead/beaglev-ahead/-/blob/main/docs/TH1520%20System%20User%20Manual.pdf Signed-off-by: Drew Fustini --- arch/riscv/boot/dts/thead/th1520.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi index d2fa25839012..10a38ed55658 100644 --- a/arch/riscv/boot/dts/thead/th1520.dtsi +++ b/arch/riscv/boot/dts/thead/th1520.dtsi @@ -5,6 +5,7 @@ */ #include +#include / { compatible = "thead,th1520"; @@ -161,6 +162,13 @@ soc { dma-noncoherent; ranges; + clk: clock-controller@ffef010000 { + compatible = "thead,th1520-clk-ap"; + reg = <0xff 0xef010000 0x0 0x1000>; + clocks = <&osc>; + #clock-cells = <1>; + }; + plic: interrupt-controller@ffd8000000 { compatible = "thead,th1520-plic", "thead,c900-plic"; reg = <0xff 0xd8000000 0x0 0x01000000>; -- 2.40.1