Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1099980rdd; Wed, 10 Jan 2024 08:36:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IHBPwAGLYB/dEPZ81vwxfM9l0cND6shJUggsi2r9v4GUe5te7yyiTJuN3AFNs3h8pfTykeI X-Received: by 2002:a50:c05d:0:b0:54c:b889:9c11 with SMTP id u29-20020a50c05d000000b0054cb8899c11mr441427edd.98.1704904599449; Wed, 10 Jan 2024 08:36:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704904599; cv=none; d=google.com; s=arc-20160816; b=nMBWsoesfnUtD892aukUUckRih74VQnjqfVxfwRZWDbZAYgmyRD8NkMOJWB7Z6r1E3 N6sZP9Y6IPlHzOIELHtWkIaoPCHHcnWg6UKAY6bt0bqH9UZwU8MYuX1e1FJAUDcuHiwk TJ875+S5qMC+NkQkxpmJC8P/OshSnj/vRG8eM6vGrdEpuQBIWQdBNBkGNvwSw/UelYpK NIWSxVvMjpHCjmW3RXEImzoDK0DGuzPPvtum0SnJERrmPz3UbcjXmyZ0ZqGHBrp1Aw+j 8BV63mMPcLBi9v/2NApzEnOASY8CgPYqeRKD52IoWsDrOhCRjmyxfM4F8jrieCZU9Hqg e82A== ARC-Message-Signature: i=1; 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=rV4VviNybAyJrbJYiFxfyVRSktZd+2itH3SH5tA+DwI=; fh=YskK2z8ZShDQuvC8OLYxtT2WP7n8JfoGruWId0e+TTc=; b=lONm1QPSNIt+H98i7Rl2cU01332ajl+1etrOwoOpBgVBkF+DonmVX/jzW+iO4oa2MS cBv5xRYnGJNDEn0kuNgy9gIAogWnFMmDPtSH1G2PS4KCTs3hgq8U7sX0KRSEZZ4W8jza ExClMvRlFOW3EYeelbcYEXYMHo2uexyMQ9gaESsUYr2pL3s30P3wkdc4mWwkY4YRtuzr DyjMp/bQU6FQd+BG0VmHXmxGscfR1BDhXrCGAg6ColEXFYhHcD5dnju5f8rQohwDCPu5 e5nuWu/w5K99MLC8JaoVS3k4+1lnO2xqiqACjFQ8YRH7bnRfVtNLRSmdOSL4IMLfZ4CQ QnUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tenstorrent.com header.s=google header.b=Ipsgq+d+; spf=pass (google.com: domain of linux-kernel+bounces-22503-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22503-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tenstorrent.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m5-20020a509985000000b0055297dd8703si1818946edb.447.2024.01.10.08.36.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 08:36:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22503-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@tenstorrent.com header.s=google header.b=Ipsgq+d+; spf=pass (google.com: domain of linux-kernel+bounces-22503-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22503-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 368D11F226F0 for ; Wed, 10 Jan 2024 16:36:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E06BA4D12C; Wed, 10 Jan 2024 16:36:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tenstorrent.com header.i=@tenstorrent.com header.b="Ipsgq+d+" Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.194]) (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 974AC4CE07 for ; Wed, 10 Jan 2024 16:36:01 +0000 (UTC) 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-pl1-f194.google.com with SMTP id d9443c01a7336-1d3ef33e68dso30468375ad.1 for ; Wed, 10 Jan 2024 08:36:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenstorrent.com; s=google; t=1704904561; x=1705509361; 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=rV4VviNybAyJrbJYiFxfyVRSktZd+2itH3SH5tA+DwI=; b=Ipsgq+d+0ODCuk6g4o7g+mqAo+9/sUvQRQcG8F3k5e14f/SfU6njkLw0726AK281dc EYdOFgdeGzQXTxXMBOV1278wUCW84bnqRglCGK2+YQ8hqzlkQD2LMzKTa9xIlstEYRze Df7zs1NtoYYjob/RdYDd5lkdZd1aiF7QwoQSGkIDZyjXbVYxc79G7+CQvpa+FxaIMWX0 tjemBdDxQznRrfqUXIN1ya/y6Dv2djak6mjdHY5o6Ry1STuM9CFbyCCbyU48AoxcCDtS fViarSB7ZMAeVLqBnufhot6YimN2fTTCXQgFrV8Wg1rzYXYAZJovKdn2sxzDVUq+taO9 NL4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704904561; x=1705509361; 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=rV4VviNybAyJrbJYiFxfyVRSktZd+2itH3SH5tA+DwI=; b=b35zxuPekCja5l0heS2AY8O+eY7l3Wtn19nmfRLL3TpQaMAj1dB6JYJj5Nv29IUgfQ gFOoim1oOR5U4tcMIZg0Q0qb09n7MVkYWUz6FjbMVOriNU4hnt3SO55GimYhjPSozOkv /By+gcwwrwqRbTsDmQIfAn78IHEvDHDe+GdKEZO0OMYDQkvJ+6pgU4D7V0RwZzgxLvaR TPwyGZeTlW/GOnXV0ySSoM+m/mBigvHI2x9+XVNxI3LiFAm7sp1JT3fZHSLsVl5NezmP kthV7192VSeDh8hK2TG6Uetb68HdbFbqFd15Pqe+RozmcWgnkcyKDD38Ta1XDLAbYt9+ M+GQ== X-Gm-Message-State: AOJu0YxgfkOi1S9lENTuIhc9YIqYm0Sx/K17lo+lkW9RQ6TaraNS8e8s 6whL9zRAO83AmQvpXOZX/3XL3s08gZSJZw== X-Received: by 2002:a17:902:680d:b0:1cf:e9b5:90ee with SMTP id h13-20020a170902680d00b001cfe9b590eemr256182plk.24.1704904560880; Wed, 10 Jan 2024 08:36:00 -0800 (PST) Received: from [127.0.1.1] ([2601:1c2:1800:f680:858a:4f95:cb29:907c]) by smtp.gmail.com with ESMTPSA id p20-20020a170903249400b001d4b5e444d2sm3872265plw.48.2024.01.10.08.35.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 08:35:59 -0800 (PST) From: Drew Fustini Date: Wed, 10 Jan 2024 08:35:16 -0800 Subject: [PATCH RFC 2/3] dt-bindings: clock: Document T-Head TH1520 AP 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: <20240110-clk-th1520-v1-2-8b0682567984@tenstorrent.com> References: <20240110-clk-th1520-v1-0-8b0682567984@tenstorrent.com> In-Reply-To: <20240110-clk-th1520-v1-0-8b0682567984@tenstorrent.com> To: Jisheng Zhang , Guo Ren , Fu Wei , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yangtao Li Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, Emil Renner Berthing , Han Gao , Xi Ruoyao , Robert Nelson , Jason Kridner , Drew Fustini X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1704904555; l=2723; i=dfustini@tenstorrent.com; s=20230430; h=from:subject:message-id; bh=XQC8E91B1tHAiQL1JvSAmvew8theXOsFefzGYD4oHj8=; b=D6T8YeF2X73hPXm6YEdEYCJdL9qgsHM1/jphSVLyFTtebWsFxlb7hFhtvGGEA+22LTR29dZpk 1Trjkwbhx0KBQHXG6RsBS514zrGzG5oT6ciC5gipEXS6/QZwgTLr5pb X-Developer-Key: i=dfustini@tenstorrent.com; a=ed25519; pk=p3GKE9XFmjhwAayAHG4U108yag7V8xQVd4zJLdW0g7g= From: Yangtao Li Document devicetree bindings for the T-HEAD TH1520 AP sub-system clock controller. Signed-off-by: Yangtao Li [add link to reference manual] [fixed dt_binding_check warnings] [revised commit description] Signed-off-by: Drew Fustini --- .../bindings/clock/thead,th1520-clk-ap.yaml | 65 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 66 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/thead,th1520-clk-ap.yaml b/Documentation/devicetree/bindings/clock/thead,th1520-clk-ap.yaml new file mode 100644 index 000000000000..53e7802a4ad7 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/thead,th1520-clk-ap.yaml @@ -0,0 +1,65 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/thead,th1520-clk-ap.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: T-HEAD TH1520 AP sub-system clock controller + +description: | + The T-HEAD TH1520 AP sub-system clock controller configures the + CPU, DPU, GMAC and TEE PLLs. + + SoC reference manual + https://openbeagle.org/beaglev-ahead/beaglev-ahead/-/blob/main/docs/TH1520%20System%20User%20Manual.pdf + +maintainers: + - Jisheng Zhang + - Wei Fu + - Yangtao Li + +properties: + compatible: + const: thead,th1520-clk-ap + + reg: + maxItems: 1 + + clocks: + items: + - description: main oscillator (24MHz) + + clock-names: + items: + - const: osc + + "#clock-cells": + const: 1 + description: + See for valid indices. + +required: + - compatible + - reg + - clocks + - clock-names + - "#clock-cells" + +additionalProperties: false + +examples: + - | + #include + soc { + + #address-cells = <2>; + #size-cells = <2>; + + clk: clock-controller@ffef010000 { + compatible = "thead,th1520-clk-ap"; + reg = <0xff 0xef010000 0x0 0x1000>; + clocks = <&osc>; + clock-names = "osc"; + #clock-cells = <1>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index a52dbf3c5606..dd2398512fc0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -18856,6 +18856,7 @@ M: Guo Ren M: Fu Wei L: linux-riscv@lists.infradead.org S: Maintained +F: Documentation/devicetree/bindings/clock/thead,th1520-clk-ap.yaml F: arch/riscv/boot/dts/thead/ F: include/dt-bindings/clock/thead,th1520-clk.h -- 2.34.1