Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp300263lqh; Mon, 6 May 2024 22:02:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVX7ndCqjENeLeI6wHdklHMO1OFA+sxjIvcymlLswgeg19zLRn3NG133VoEhivZHFLukivflkEXA7Ytr/dw81NyhQVJU9T5M5r7E9Urxw== X-Google-Smtp-Source: AGHT+IG1vOdG2gt0E+H/AxUDnfRf6JK5D+bJZ3bLbTrOVQQBrDqjwhe2r3nSgttLXLKC7tdaGIhI X-Received: by 2002:a17:902:b495:b0:1ea:f7d4:cf2b with SMTP id y21-20020a170902b49500b001eaf7d4cf2bmr10552521plr.17.1715058156727; Mon, 06 May 2024 22:02:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715058156; cv=pass; d=google.com; s=arc-20160816; b=D8hWTbkTAH18/IONVWTi5NaKJ2lO2tbOiBXDF7EsUhxQ5ssa/Wv+yhusz/KXTkYTum Gc1condI3kOR7nL1O3rAmRcD+pW+M7h91aU22fUryrrec+QyjY7pYZUV6n/5MF8MzoXz RhsNS/rixzEh25tF2Aef044PBuPIZIm4Vxyjp2EUVXQBHRNY9xIkJzWhKbgaeI6QMjPK 6jOhy2hPB5LRfCeFo7ENClOg4bLJ0Sjx+Cw+RsPUsbjTM8WtTjlwjsKSOgcpC9TOMnG5 v9lJtafqqaFfMNJrF0qJRqBUJ1d7RP9QzxdI41YDjB+Saabq6EVNWFS58ZUkObulk2M/ SL2w== 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=NlABhhrgRN0kCKTe4nIKDePb7LoVOzv5TW57AJaUw7o=; fh=SaXBG8oTqZbY8pqY8FQJhDfCwOBsOSOWI8rqynSE/9g=; b=ahf/ep734By+h3ByWtBt9yao4sJ23duyVD+pmXIp8GWrWeYRGMm9hGRnzccMOHXKom P2MVm4xvNMjC7YchsIAtsSoPkie9d27auV1r/6LL6oURBFb0bOvRQe2RHTeS3MPpAR43 TCbHOjP43tI32O0os7PddQizugHdBu07knN6A/WiSvLATgcW2QoOLL7DwQ6FKwqbLNg6 O5oLeXK17rvvs1SKwvJB6q8vqAXmLMHHhQ9+hVhTFb6MOYaJOGInkdYyv/Z2577wGelA P3vVNAK/kWKfCubB+ilORKkIce0FTmxYS6vL4iGmBw9wp4vLNx2QFop5kPDZ9Ym4QnHz KBPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tenstorrent.com header.s=google header.b=Wq3Zd5i5; 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-170668-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170668-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tenstorrent.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id p14-20020a170902780e00b001e549d0b2c8si9344381pll.230.2024.05.06.22.02.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 22:02:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170668-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@tenstorrent.com header.s=google header.b=Wq3Zd5i5; 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-170668-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170668-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE 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 779C5B246CF for ; Tue, 7 May 2024 04:58:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 070286F08B; Tue, 7 May 2024 04:57:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tenstorrent.com header.i=@tenstorrent.com header.b="Wq3Zd5i5" Received: from mail-oo1-f52.google.com (mail-oo1-f52.google.com [209.85.161.52]) (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 754206CDA6 for ; Tue, 7 May 2024 04:57:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715057856; cv=none; b=SDy5gRNAELB/7MGMmTcsZyceT0GiSw2s0Jau/0vV5tKT+eTus8xHNYuWe5R3BgC06QgkExvVKQBX3reeLi6bBOxdqxFUMJfm4HjNHJvZIu2sMXik2CjmYK8HCiIdBNyIKTELs7f1q75rd7/WGO+an4tYic6c0wD2NWwV6OPdmzk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715057856; c=relaxed/simple; bh=6PV2bpf3dXOpJag32DfU7y2Gi0ru2guu8y2sRZs5RmA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=juhuqfWRJqv5kQkB8VwZ8Ih/UvJpazQdFroTFa1SkehdCzs0CYV6/4lMbwcdNKpZ7KDrqpQmUu+H0vE7iIunDDX8m126dwiFSLcGDPa9oWl1X27X6bPdFYLmF+Yz98VJ+HLE1R/ekDmXRWb1OUfGDKeFjKZiU6bXH4sspP2D220= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none 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=Wq3Zd5i5; arc=none smtp.client-ip=209.85.161.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=tenstorrent.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tenstorrent.com Received: by mail-oo1-f52.google.com with SMTP id 006d021491bc7-5aa1bf6cb40so1920136eaf.1 for ; Mon, 06 May 2024 21:57:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenstorrent.com; s=google; t=1715057854; x=1715662654; 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=NlABhhrgRN0kCKTe4nIKDePb7LoVOzv5TW57AJaUw7o=; b=Wq3Zd5i5cI2WBMdetZ5dqNdvq0uA/lj2i5XhSOgwGvs2cwM0QcDXgy8KJRyud/PJog gJdjsS2NzEu7j4o4hLnLyodazwC11vbzuzGrWQQMxQhv4lbJk9ALHVOqTwoxW7krdluB 7DTXxClhREH2+NgfWrNUwfd2xfpUrpFwj4DW/fT/AVX/6ta5GxUCFd9Xn8rfBsTgEN0u anBGMKn3U/sAKZ55dN7ojTLcw6EO3gMdVuPim+CHOHSgbVzkObMwUQUiNu/FRVTpDiT+ soy8Fymq5LHWy1KjJIoX42wmPowvW2EqATdji8nNF2BcfJSfbkn83uReHrLcVhNMyazA cN0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715057854; x=1715662654; 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=NlABhhrgRN0kCKTe4nIKDePb7LoVOzv5TW57AJaUw7o=; b=hPb3Q12V9aUn7w6gqaX7kjN2oHhWp9Iw13ugAFwet23OzDD+nermEMx8YhRZDxBmZm l0LupMxrZXNmbaXVN01EaI5h3fhD5uw56D19j4Qrj3r7jAU3suhN9U8vBRTUrypUalQt sBs4Ik1q5gK2RpEFHnZg6r7IHuyN2ODHaLrG+IYWbAoZ5gWgEGaR2nfN+oz63u0Vp/wT b1LHrUJEX3i1VX3kmw15C8Bnd1qP1VWgqb5QMLupwl1TYJc0Y3dm8MNRQGdaXsg8uxFf KqbTaWVVHPf3lryKtvSr+L79o6n9xbBUmyTK91yfdJB4daMzR3bErPxsM2ykoMbDQEAl UKnA== X-Forwarded-Encrypted: i=1; AJvYcCVXAzyEOixZZYdmroBRVXAkmorMHMtqAZkXUWyP/u/bG6gqDx5zkzZwdqHyUY1Hxms3KlzlgXVncumy8gFX3VXPN7Ljv0dchagi3OlV X-Gm-Message-State: AOJu0YwIV76ES91ZulW4cXnK9cAg/f9kq4J2Q9id489PFLYQty6pDc4J JzLVZL/u3upRnWOslY2d/Ek8KSkD4PWrPRSjHHkwIHRjVU2xW6lFmoUx67IlJvk= X-Received: by 2002:a05:6359:a399:b0:17f:87fb:5326 with SMTP id ky25-20020a056359a39900b0017f87fb5326mr13927155rwc.24.1715057854502; Mon, 06 May 2024 21:57:34 -0700 (PDT) Received: from [127.0.1.1] ([2601:1c2:1802:170:6870:7119:e255:c3a0]) by smtp.gmail.com with ESMTPSA id o14-20020a637e4e000000b005f80aced5f3sm8987249pgn.0.2024.05.06.21.57.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 21:57:34 -0700 (PDT) From: Drew Fustini Date: Mon, 06 May 2024 21:55:17 -0700 Subject: [PATCH RFC v3 4/7] 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: <20240506-th1520-clk-v3-4-085a18a23a7f@tenstorrent.com> References: <20240506-th1520-clk-v3-0-085a18a23a7f@tenstorrent.com> In-Reply-To: <20240506-th1520-clk-v3-0-085a18a23a7f@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.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1715057849; l=1160; i=dfustini@tenstorrent.com; s=20230430; h=from:subject:message-id; bh=6PV2bpf3dXOpJag32DfU7y2Gi0ru2guu8y2sRZs5RmA=; b=4exMVJ4xzbDXC65KXMLDO8sJeX/DSsbUp2hf1w0Dv6pU91zrS6Osgwql3mmUi6my0DL13QSh7 VXf/l+EKB0oDAgK0QRc6WSqWYrnUbsMoyXBAkkUFB+hNy9WFwuZt+Y5 X-Developer-Key: i=dfustini@tenstorrent.com; a=ed25519; pk=p3GKE9XFmjhwAayAHG4U108yag7V8xQVd4zJLdW0g7g= 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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi index d2fa25839012..e193f8d9ab8a 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,14 @@ soc { dma-noncoherent; ranges; + clk: clock-controller@ffef010000 { + compatible = "thead,th1520-clk-ap"; + reg = <0xff 0xef010000 0x0 0x1000>; + clocks = <&osc>; + clock-names = "osc"; + #clock-cells = <1>; + }; + plic: interrupt-controller@ffd8000000 { compatible = "thead,th1520-plic", "thead,c900-plic"; reg = <0xff 0xd8000000 0x0 0x01000000>; -- 2.34.1