From nobody Fri Dec 26 03:24:48 2025 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tenstorrent.com header.i=@tenstorrent.com header.b="Ipsgq+d+" 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-Google-Smtp-Source: AGHT+IFr2FFXH1tHkcmvts5zPq5Xs6NJU6JAKAieMzlBbWvjuk3lHw4ghOJ3q0yGDq0qMDjrW9Zlzg== 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: quoted-printable 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.ya= ml 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/TH15= 20%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 =3D <2>; + #size-cells =3D <2>; + + clk: clock-controller@ffef010000 { + compatible =3D "thead,th1520-clk-ap"; + reg =3D <0xff 0xef010000 0x0 0x1000>; + clocks =3D <&osc>; + clock-names =3D "osc"; + #clock-cells =3D <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 =20 --=20 2.34.1