Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp133764lqo; Thu, 9 May 2024 15:13:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVXLFezx/vbmp+4PbTmeYi3FSBQfNRJF3K09D2rVzQabxBYYH9jV3w3sfdT66biEAKRamFEEISAYiFtyJALRWiaYawwW2Qq6kYInXdzjw== X-Google-Smtp-Source: AGHT+IEoTAG7wnR1qGlFskMjwriklit0pXsfvR1d2sRiZ6L9FoxHRf5NL/sEo5TEqeElygJCp8Xq X-Received: by 2002:a17:906:f346:b0:a59:beb2:62d6 with SMTP id a640c23a62f3a-a5a2d6bc105mr49216166b.74.1715292833178; Thu, 09 May 2024 15:13:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715292833; cv=pass; d=google.com; s=arc-20160816; b=CN7T4yApVWWTWcLLqVlfeol9Jt+xCvFvzhPdGEBxldPuQLVn//eGfbpOfcb399tgsy A2QXldf0WL2f5du53i2vFHYqk1gMpa1ciQ+7BkMU5MxyTySlSOqcUZ4e3ru0covZYBuX s5NvdwKvp3y6UpSw1Xzzs1w9PJUlPV7G3zxdP+JQPVDOHQtsMmo1fQsyk/8/KZ96lbLd LqhkzUUAWyTXPZLS+IDCwCbtoNfA8xHhCb8oOYBLntz0mSBnGfWT+W5LoDZIXrxPvKbA 1+waC/0mh5xWwhCLGM2f0xfR5FgBg2ELdm3OGNiMajxjvIC2gXB7mdky4QSrWnkNvgea y/9Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:date:to:cc:from:subject:references:in-reply-to :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:dkim-signature; bh=aaZwea+SIYfU5pEPxnah8zEu1kiJ66wmZbKEfR7Pj4s=; fh=5k6/ipjJJnh7U/dsF9kRvJCz4MW+A9Yu4F91c0oHwgw=; b=dJyzxIDppyqUekLdBLpoH44RUbcIE+pSSQp6MUWXE3qhFPwxfLL5LzwszZwVfiRB/u CGOGCGaS0A92DZP8Jnj4KqwxpIMoTZ6g/3YQOOC4WJ+/Ea9eKCJGUpYrKvtHrey3rtI2 u6PBjpBdwRwhGktJnJdeFmSJ3reixxbGPXz141UoRDdw6jrR8l/BHCi2wpk37I8SS+iZ ntI5mUUZdJlMb62D4rScWqHUEsadk5S1CloxihxONPhRvlJ5ji3trF1o6zDgSsuIoB6o Qp5oaFpmbchz9NgHckQUh3t1XX/vyohTa54OInZKMDMSUe+MTvJcrM++3rQNUDlMbha6 Z0FA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nMIa1+9V; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-175025-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175025-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17be63basi124374766b.712.2024.05.09.15.13.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 15:13:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175025-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nMIa1+9V; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-175025-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175025-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 E21731F220CE for ; Thu, 9 May 2024 22:13:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F22B129A83; Thu, 9 May 2024 22:13:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nMIa1+9V" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 393ED770E0; Thu, 9 May 2024 22:13:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715292825; cv=none; b=swBGIlQHwNQjMP+iXLWPVGaS+h97X6HYtJ2T/hEjn8eiuC4OFL8P1u10MaPJZLtHHfAYDJK5wDBd5c4Oiqd6FB47G0Pkq/nibClyFD8rYDlg3fGP52pBGNDlfmN7lSL7takEf3Z4nGKbSinwt9do29fsLTNwr8zYV43QFdJvB3I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715292825; c=relaxed/simple; bh=HsXBbYKsnaH2cBNxCbmFsxNH4L35JJ8rnzTl2hLvMCA=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=Amsb1zWaWEl8RIvjxz8LgYlD1IgvY2Xr0dBoEN+Y9fc9frhGNVMf1xq1D0iioiFoiW0gbASTfwuciGI45w0PhwM+drHl/xS7cXUYJpdSshDHvfxW79nCsUJ0ZFoO/GpTPpFb1wpMBDaE89ekluLnBuqGsd7QbaiLun8z9I2jC8g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nMIa1+9V; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9462BC116B1; Thu, 9 May 2024 22:13:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715292824; bh=HsXBbYKsnaH2cBNxCbmFsxNH4L35JJ8rnzTl2hLvMCA=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=nMIa1+9VKO+e1tZRZY1J27ygFKsItAYeEY0WnZ2gS4xAWON9xuiIzp5JHk14e4JVR YCvpBBRmVL+ZcIfLdrAafXSiWdDLkOnVvgL+HKszgvlRpnrrxsJk/Ae+aQLoxI35Xj BlamZ/Mmr/BReIi8DffdEfn+O2LcYk4n1JPTIUgiEZerM3kws7qi2PlOcMCtbcLKHk 3+BGzqu974gMMGcmR1qOnP7jpY/95gkF8jgC266QHH7fkER2qpocZrGJ5iOuj609J+ EHJl0GiO0z+InjRy3cZdNuMBFZck8h4IEv/Z7WF5HztSpzcXe2D87lzqjOC2Ehe7iq P+STj6tLfJYsg== Message-ID: <8dc03fdc36b72888bd1b59cec6feebad.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20240506-th1520-clk-v3-2-085a18a23a7f@tenstorrent.com> References: <20240506-th1520-clk-v3-0-085a18a23a7f@tenstorrent.com> <20240506-th1520-clk-v3-2-085a18a23a7f@tenstorrent.com> Subject: Re: [PATCH RFC v3 2/7] dt-bindings: clock: Document T-Head TH1520 AP_SUBSYS controller From: Stephen Boyd Cc: linux-riscv@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Drew Fustini To: Albert Ou , Conor Dooley , Drew Fustini , Emil Renner Berthing , Fu Wei , Guo Ren , Jisheng Zhang , Krzysztof Kozlowski , Michael Turquette , Palmer Dabbelt , Paul Walmsley , Rob Herring , Thomas Bonnefille , Yangtao Li Date: Thu, 09 May 2024 15:13:42 -0700 User-Agent: alot/0.10 Quoting Drew Fustini (2024-05-06 21:55:15) > 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..d7e665c1534a > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/thead,th1520-clk-ap.yaml > @@ -0,0 +1,64 @@ > +# 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/TH= 1520%20System%20User%20Manual.pdf > + > +maintainers: > + - Jisheng Zhang > + - Wei Fu > + - Drew Fustini > + > +properties: > + compatible: > + const: thead,th1520-clk-ap > + > + reg: > + maxItems: 1 > + > + clocks: > + items: > + - description: main oscillator (24MHz) > + > + clock-names: > + items: > + - const: osc I recommend dropping clock-names so that you don't rely on anything besides the cell index when describing clk_parent_data. > + > + "#clock-cells": > + const: 1 > + description: > + See for valid indices. > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names If you can't drop it at least make it optional.