Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp9891lqm; Tue, 30 Apr 2024 11:05:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWvopXACjTqQydq6nsLIgcTDYPZCUUCyRHhqL/w2SdOiAym60oFbVbeSHH/QBuYse6aZzEUZgJAS6rsdEMU/LYnKSDT49onU7XAXXpEhA== X-Google-Smtp-Source: AGHT+IFXXrYVrPyGpkCrHTq5UBvUg0+4fBCkdl4N7PdOHEBctl19LgQaaGDCS4lD4Ee2R4fxhMSz X-Received: by 2002:a50:9b59:0:b0:570:5e7e:474e with SMTP id a25-20020a509b59000000b005705e7e474emr491215edj.22.1714500307093; Tue, 30 Apr 2024 11:05:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714500307; cv=pass; d=google.com; s=arc-20160816; b=MpYdrQjmdX5rc1c3+Q+uEfxXW9S6qTFm9KZNwakbg7jJFTQ8PWR39+yXvNbUfNa4T7 nCW/L+zRNl3oypRRd6IgSp+W89IKrzLcFNvksPwXqm17PgRD9hbprFVz8EiULsydquo5 3jXeLibH5kDw/VzrbXgbP3g8k5ebs7Rprum7g/cqfXNmKrJN87IYMLcG2irCLqGTH4eW HpDNat76wv5zdWlxi50Nmu2b737tmfJoANE0Wo+bYzu7U6xF4eaGi4ekVNl3IBLkbgx1 0YJ+Glk6JpGGok8PQ0N3JKtW8qwROuDvfXhFxHdSD3qsRCIoeQC5iDFuSrs8graBpvMd /bvQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=YpLgn7VXogWxuSXiOwYMqQUjCVrj4PXj2VjIYJ88bGM=; fh=895wXANWRbPmxIRnCamMj/jXPoAvE+y1FMGHtf5L2Lk=; b=eg23CLOdhQFO7yvXKiToHbH//KQ5D5GuRR6J+gI6qKzkNqdiY0wRmn+vnrhooKPvp+ 8oAz7B/5BZdSPsgUfROacJbVKI5yDFcaQRqwp+geoAlRzP6Xe/ftIKMW1L3WzwA9m37T A4aiDlXj3bPY9EntPopS/Mt6rbGN71R1p1izofxULEtiO320VUHz5b4y8e4aT2itprDs HoqCnetzbRZXJ3oHmG1qJ6L3nnmIFVqKUTEKQ95rD7LhzLzuroOffbRDRvXU6gBtI1su mXH41qu91eyiqGdEMw/srDEHoAsPKNv8v8wzk/6Y7/+9XG1W03FsyYEO2P1xZv/9jnfj ARHA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="NSJtY/Qv"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-164567-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164567-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. [147.75.80.249]) by mx.google.com with ESMTPS id c5-20020a50d645000000b0057270344eafsi3959236edj.452.2024.04.30.11.05.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 11:05:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164567-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=@kernel.org header.s=k20201202 header.b="NSJtY/Qv"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-164567-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164567-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 C92671F2349F for ; Tue, 30 Apr 2024 18:05:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A1569181BB6; Tue, 30 Apr 2024 18:04:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NSJtY/Qv" 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 C27D9175560; Tue, 30 Apr 2024 18:04:58 +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=1714500298; cv=none; b=TQgoNaYQEy7aauWLDOmA5D8yqLLWTLteU418XsALvN3k9/6WW1Nhcf2SjCV3SIJfZLoKoaYfVxOeFOEBj9viQtprnq7qI0olrniXr7QvU1GEV2pmTtP2slgcEdd5MLMm5pTS0HSown/+nRc9BfhdDLNxrJZY7JSZXin05WzqmjQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714500298; c=relaxed/simple; bh=jz73RuQd4HFNSDYi2UqJP9KQ4zUfUOQNSb6BLXUEHwg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=imantSBPUTaRX0TAW7OeBq3ResXgmOq099sT99pzRrHOfo7Mypf1B5UeUZoWPmP1SfaAciX6GdYyzhE98ec7BIjt/Qi9hUrmL1QC+INZK+qBDun5yzuLqBJjCN83Nujp5iGiPfouRzXDmoolGAVXZTk+0oWvLS7YaZexVedUDQ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NSJtY/Qv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E61CC2BBFC; Tue, 30 Apr 2024 18:04:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714500298; bh=jz73RuQd4HFNSDYi2UqJP9KQ4zUfUOQNSb6BLXUEHwg=; h=From:To:Cc:Subject:Date:From; b=NSJtY/QvQALgQFXBeHV7rY3KeJCSZ9+AonDpJ2HFpC29toNWlNk+gqsdtxpbebs00 q3tEDlPd8Wts/wDUW1S7Zy/khgJb7aNcLlPi7tsr6T6KpiSNHlH1dLXL/Yxpl+6QDs DmtzORqjy4aN7H49O4GyESjB+3L1I5V7TjMC0kndfCtJ1hwUoiybMzwmvULoK5DQPK QRzbvfyWnhTIZj0PZE48fbcmc/iUyLporwdTSIn3FObt5Ne9pLnWop5hMRdl0v/p8X O6qy8SU4UCRMqKdQqNt3yvcVobX3wdRIlqMuadCVdTA1bKuHu0bIduhrGV19tj81+w f+hm4i6Pf0utQ== From: "Rob Herring (Arm)" To: Michael Turquette , Stephen Boyd , Krzysztof Kozlowski , Conor Dooley Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] dt-bindings: clock: fixed: Define a preferred node name Date: Tue, 30 Apr 2024 13:04:14 -0500 Message-ID: <20240430180415.657067-1-robh@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Define "clock-" as the preferred node name for fixed-clock and fixed-factor-clock where is the output frequency of the clock. There isn't much of an existing pattern for names of these nodes. The most frequent patterns are a prefix or suffix of "clk", but there's a bunch that don't follow any sort of pattern. We could use "clock-controller-.*", but these nodes aren't really a controller in any way. So let's at least align with part of that and use 'clock-'. For now this only serves as documentation as the schema still allows anything to avoid lots of additional warnings for something low priority to fix. Once a "no deprecated" mode is added to the tools, warnings can be enabled selectively. Signed-off-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/clock/fixed-clock.yaml | 9 +++++++++ .../devicetree/bindings/clock/fixed-factor-clock.yaml | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/fixed-clock.yaml b/Documentation/devicetree/bindings/clock/fixed-clock.yaml index b0a4fb8256e2..90fb10660684 100644 --- a/Documentation/devicetree/bindings/clock/fixed-clock.yaml +++ b/Documentation/devicetree/bindings/clock/fixed-clock.yaml @@ -11,6 +11,15 @@ maintainers: - Stephen Boyd properties: + $nodename: + anyOf: + - description: + Preferred name is 'clock-' with being the output + frequency as defined in the 'clock-frequency' property. + pattern: "^clock-([0-9]+|[a-z0-9-]+)$" + - description: Any name allowed + deprecated: true + compatible: const: fixed-clock diff --git a/Documentation/devicetree/bindings/clock/fixed-factor-clock.yaml b/Documentation/devicetree/bindings/clock/fixed-factor-clock.yaml index 8f71ab300470..4afdb1c98f5f 100644 --- a/Documentation/devicetree/bindings/clock/fixed-factor-clock.yaml +++ b/Documentation/devicetree/bindings/clock/fixed-factor-clock.yaml @@ -11,6 +11,15 @@ maintainers: - Stephen Boyd properties: + $nodename: + anyOf: + - description: + If the frequency is fixed, the preferred name is 'clock-' with + being the output frequency. + pattern: "^clock-([0-9]+|[0-9a-z-]+)$" + - description: Any name allowed + deprecated: true + compatible: enum: - fixed-factor-clock -- 2.43.0