Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp349838lqb; Tue, 4 Jun 2024 13:19:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWlX57dfcV+cXPrBQSyHwcHOkjUz7XypgmRSYYVaoECHhIk3gz1HJuOZyicdhB3sMF1iuezHi+AmB8nq0Ap0mFwC/m7NpwskQtnv61wOg== X-Google-Smtp-Source: AGHT+IEJPVQzbfbkb6Ph5BJEgBEnTVgchRD/aOa+dtkhf9IQ95TefKjryL1DqOxamYtPahR8/KtW X-Received: by 2002:a05:690c:fd1:b0:627:d0e8:1775 with SMTP id 00721157ae682-62cbb5ab87emr5003027b3.39.1717532384058; Tue, 04 Jun 2024 13:19:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717532384; cv=pass; d=google.com; s=arc-20160816; b=ZcX020JNqsLhP9Tv1WjIhDyrB+n2gj3UUHChHk29M3Xf/9qNgXdhEW5A3OUcgSnd7v 2RfNns7RnAcHpJPogAiOHiceszT5/omZimMBD/fsbrVtyL4PHWprEgDlU8hhd19AI7PS m08qI8mr9RVzv0cB7wAV9+9Y14HAUtr/3BcCKewPeDhqJ6N/EaP3RoTtnHvdxr0tihxw zFQyNU7FzatNZ6wYAmUTkgZkcUJybSwF9OJ0Fntr6X9BY4TS5bd8P+0bLueA/DuftlLP 1cRASMMqPo3nxk10Ggx1MosCOf/mQvvSRCA0yarsbHl5n8q3ft/rAIBG0RRHLE4ieCdt bwIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=5WXqRubUKFUU0w9avJ+xwsCeTu6wJ/864MqHZIBztdM=; fh=QiIS0t0vzpKig5Ubm6frJ4+y8GW+cJFazEw/CrETZwo=; b=ekrEDcnSrmCqZGIaqbY3IwlaNV7vMOZa5bcC5KIeEE+03nKvhNkFV932Tih/OMtfRy Lfdmzbifi76tr+/3rFI9GYbns5hRo3had/Z248w9LhXi/9YzYSShDtqRLto9DElKODjP y+uuuIaA9x0Y+aXyWBeRlRgR8iyHKzUYpSXbnJV+FlR9dhge2bZRm9UvWSsnWqdYYyM/ oEE+wBMBBw5D2jPosl0T/RCYDkpFKw5ryTSeJ9t/Itc+twFm2W6gKOPnSIawscFnvnHz hN4eTT2+NugfiOhzY0vdy25zWAVBrD1p53LLWPg4z33HhK+iBCNg87DXZgyRX2cVdOzO YLJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="rG/dc3M1"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-201340-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201340-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b401ef8si16158446d6.312.2024.06.04.13.19.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 13:19:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201340-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="rG/dc3M1"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-201340-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201340-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C61F71C222D7 for ; Tue, 4 Jun 2024 20:19:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EDAF414B95E; Tue, 4 Jun 2024 20:19:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rG/dc3M1" 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 1232783CD6; Tue, 4 Jun 2024 20:19:32 +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=1717532373; cv=none; b=M4+8Ck5syhW5JjxZo0MD/dMmyokvLD5Ez+flHECTFJWm2OB2DHPAMP1KD/NNEbb+8jhaH5OBqfuby5f8yzCiYvQuE2HryP3DwnTBi1FmvQlLg/fC5Ryn+bKm97W24R85M7e52Et1HdCDnR7o40CetaQf6anbxagPtoepTxXZd0s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717532373; c=relaxed/simple; bh=xfed6Cfrm4TYAkaOK6QS9lthrhaOfXoUEarZpKNCE3o=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=O86/Wz19ukwpeu55oPnYZjjMcfwAhONTxD/b1vIvHyga+9YvbLMdhIsMW1NwnEB47wLfsxkp1qw4pU6pHk158OYhgKAyulkD/rfDQernhPWhh2JdMq4ta9skSQxtggG3QtBqMZt4FTUy7b7PwLUbtrKVUFBecfeTEOt0N8MysLE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rG/dc3M1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B64E7C4AF08; Tue, 4 Jun 2024 20:19:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717532372; bh=xfed6Cfrm4TYAkaOK6QS9lthrhaOfXoUEarZpKNCE3o=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=rG/dc3M1CG5owOIa1XY6ze4o7kfMnD+PsTfmDwTVwgwG9ydgIW+oS5cJAsUNTIpD0 RN+NGNQnSwiE5VCW+UQLk08bqTGnghi4AeIOF8Q0b8M+7mp8FvyyfqQOo8YIPKMhOY p6dd/ECrPIqdLrjz1WedwmuDPjsIrLrOlco6IOWGzpTl0IFeJqJmGTfIigRkL/tmTJ 2InR+eOV2BGWjOEHMD/Fgb+9qI0RdNYz/1a6I8hTVdrAWsb3MfbLqrn13bBBg86w/U P7z70Xzz4dLq/xsowpHr6jQ/PgIp1XqPdmDZRVUGcQb02/1sH8KIk9jXYAWAdchRy5 gBMhcNXprTCXQ== Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-52b8b638437so1700767e87.3; Tue, 04 Jun 2024 13:19:32 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUzZ1HtoTgr3HdcMVxEmfmyshqPZbVPpVOWLMD7btqsYAZKBbee3qAFSP2vDIi2EmnNN7IrZPMn5utccImE+A316zECtx0q4oGUD1/9viOs85iGN0DaeiXzxcXoEBKqAro2IziXwJMibnc3wZbUqC0Ulc0XlNDF8J9CvrDnpYnKXWFG+EImY0PUAKgOfsbMk1GEBbpPFn1xxQUpVXGiG7/e0nBLxQ== X-Gm-Message-State: AOJu0YxRmgDAQ1kLfzhcBfZ94XxrIuId8nZvXMLFyqOaitliYsSIuceg nd+kXONeTqt1B8I+8wk7mse2YE8mhNbLb1I1Rz8anx5dRm+RAsKRV2XUB398tE3qXAf1/F3AW7W 5gtl8+fxaXxbAssgN7k/o5cdaCw== X-Received: by 2002:a05:6512:1597:b0:52b:2031:4b93 with SMTP id 2adb3069b0e04-52bab4ca9d7mr467209e87.4.1717532371055; Tue, 04 Jun 2024 13:19:31 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240603223811.3815762-1-sboyd@kernel.org> <20240603223811.3815762-8-sboyd@kernel.org> <20240604130526.GA12945-robh@kernel.org> In-Reply-To: From: Rob Herring Date: Tue, 4 Jun 2024 15:19:18 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 07/11] dt-bindings: test: Add single clk consumer To: Stephen Boyd Cc: Michael Turquette , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, patches@lists.linux.dev, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, devicetree@vger.kernel.org, Brendan Higgins , David Gow , Rae Moar , Greg Kroah-Hartman , "Rafael J . Wysocki" , Saravana Kannan , Daniel Latypov , Christian Marangi , Krzysztof Kozlowski , Conor Dooley , Maxime Ripard Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jun 4, 2024 at 1:28=E2=80=AFPM Stephen Boyd wrot= e: > > Quoting Rob Herring (2024-06-04 06:05:26) > > On Mon, Jun 03, 2024 at 03:38:04PM -0700, Stephen Boyd wrote: > > > Describe a binding for a device that consumes a single clk in DT. Thi= s > > > will initially be used by a KUnit test to clk_get() the clk registere= d > > > by of_fixed_clk_setup() and test that it is setup properly. > > > > > > Cc: Rob Herring > > > Cc: Krzysztof Kozlowski > > > Cc: Conor Dooley > > > Cc: Brendan Higgins > > > Cc: David Gow > > > Cc: Rae Moar > > > Signed-off-by: Stephen Boyd > > > --- > > > .../test/test,single-clk-consumer.yaml | 34 +++++++++++++++++= ++ > > > 1 file changed, 34 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/test/test,singl= e-clk-consumer.yaml > > > > > > diff --git a/Documentation/devicetree/bindings/test/test,single-clk-c= onsumer.yaml b/Documentation/devicetree/bindings/test/test,single-clk-consu= mer.yaml > > > new file mode 100644 > > > index 000000000000..8c384c48707d > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/test/test,single-clk-consumer= .yaml > > > @@ -0,0 +1,34 @@ > > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/test/test,single-clk-consumer.yam= l# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: Test consumer of a single clock > > > + > > > +maintainers: > > > + - Stephen Boyd > > > + > > > +description: > > > + A consumer of a single clock used in tests. > > > + > > > +properties: > > > + compatible: > > > + const: test,single-clk-consumer > > > > I don't know if there's much value in defining bindings for tests. We > > could alternatively make 'test,' opt out of everything. There's already > > some support in dtschema for this with 'foo,'. > > > > I need something for the DT unittest as well. > > > > Ok. So I should drop this patch and the other one that adds a binding > for the fake clock provider? Yes. > And replace it with something that makes > the test vendor prefix opt out of all checking? How is that done? Some > patch to dtschema directly? Yes, but I just added it for you. Rob