Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp88204lqb; Tue, 4 Jun 2024 06:05:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUvT3ykMKX/NWQIPGliPrC9hH5EXP9eNZdr1ekRVnv6J+PL1IrTjiW2e/h3Y3allymb31Tqkx/mB0oOXwFQGkSJyf5MyF7KDysqJ3WKTw== X-Google-Smtp-Source: AGHT+IF/NW2VGj+3XKHdGLcnZjf2v2D/m8ZLabw4JKqOzZ/dnrEW0/bKR8iJYOysxhZqHi5QxEx1 X-Received: by 2002:a17:907:7da1:b0:a68:ec11:4561 with SMTP id a640c23a62f3a-a68ec1145ecmr495572766b.76.1717506338315; Tue, 04 Jun 2024 06:05:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717506338; cv=pass; d=google.com; s=arc-20160816; b=K3jeP2URXyAYIiAmjgq4iUL93QhXGZLzkpxODz6vGpuXBvIeuA5h2Ke/Kc6vJW8/tO V+40mAJzqvstK33sPB0qIAZqmTqJDen583ZFoEMzeCkMYHMLTiCZ4Itv2Ya+d7r7Plbk PScgeRtw7atSp81sd9bsdAamYWhTjVrqhxMOZzx0Ur8lswvRVCaXIdsivIY5HtGiYiu/ dZ700quIow6mgGJmMSgPOsHyxYilasdL7OqKFv2CUWryXe3W91ifJKm4LedkuOq9ACHG xr16z522i9iOODPikTBpLIT0pUykRJ4iZbmSRd6vNc2vjNy9hfctfF6vQogr0Yrk5zT0 9gyQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=pSFub63W3Od8xViFCGzR43S+21KADeMWdR/mS8tEZks=; fh=vSx09oUafSml6CrtnlVXHrQjs+srwnPXRMLUXimkbEc=; b=DLiaeRSIoEW1P+poebC67jZb4dxZOf6FyRrzdEQmR03quiaEs9dhjBgV4s9ha0jkrV SRyGc9/zEYJ7sMHkJ2YiDV+mGIALrriS3HMjbHPuhwwqSAvrHNqL/H9GJY9LniuhXvXo YIjibEU3R/5r0JFa3USDWil6v+hceTjKEeymJQvGAqMQyVPrGru+gCsHJJim3z3Qs78l 5MBg72n+SU5YfbkHlD4oYPXR0OV9qfClvTnOy+8PJEZsiZyac6OcZQwyxy2ferIWBamX S0vKRQR+peUYM/JX8jqx7rXrsSvYCDPycSFH0pjwecJBLXuRITRRIIlU1Lc/6g94E0Mg DU7A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qif0UDwL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-200666-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200666-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-a68fae59ed0si229138366b.963.2024.06.04.06.05.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 06:05:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200666-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=qif0UDwL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-200666-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200666-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 0FEAD1F2434C for ; Tue, 4 Jun 2024 13:05:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2EBE1465A4; Tue, 4 Jun 2024 13:05:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qif0UDwL" 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 EDB08144D2E; Tue, 4 Jun 2024 13:05:29 +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=1717506330; cv=none; b=jtILjBWvKa9cSRVXXLQiqtImDatPeh8k0FwK2MGveWca2GyxC8dWN6nMeCtEPTG0RUm+jzdBiDik/FpGR/n8X1XsXwctlvNCF8iPPJNJJDmpQieNXZBTiwPHXtGmgwTGH0nMLoxDw+AGqDWDvTtx7ofMlmxqpug6cWtEvu2zCAY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717506330; c=relaxed/simple; bh=9EKMSE4WwZwbHhI87SmvVkxv+6q5bsofM8XJUDQ9ajY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=H/c8McqzPtAElAqRW8vXnx2RzUc9KD1U1LGeUC+IflVj5dnzeOEVc5gfASEvc9vSBonK+hc/oDjccslmKIQ2Ak17HWf4L0CCQ8jbfoNieJR3IExrJe2ZoT3GLODjDl7uRQG0xqCZJm0YY27NSsCv++c3Z+vk8l0td4BQ54yytg4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qif0UDwL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 594BAC2BBFC; Tue, 4 Jun 2024 13:05:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717506329; bh=9EKMSE4WwZwbHhI87SmvVkxv+6q5bsofM8XJUDQ9ajY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qif0UDwLifv6BkCrZFJHf9Cga0EV9h0UEzXW4e7t/NLrlVc2YyZA4aDCZbF0JkZ2N ekOvCmlyXm+3Efwig/zKswIc+QfBfwOAsX1DflYCuPijz6wcol6BEmO5LDOF18CjMh PAmKXffV7aWgrx9UkHxJ3E4DldyYCCLMXlp/V5QFQCJpKc9FrWBegt9HpUZ3AXPleV xvbxT06FF2WAp6DAb3VVCQCOm1X3uDgQMTaWpK/QD+9QpNCOHteqgSTD892vn9sCkd +mcb9I/Ad2Jp7XJ6eGe4HsdHW2XaX3nhUDSXLZ6mlxYSawDKpHS04eEIZOgzNOA6F+ 6QFQx+xkg4QyQ== Date: Tue, 4 Jun 2024 08:05:26 -0500 From: Rob Herring 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 Subject: Re: [PATCH v5 07/11] dt-bindings: test: Add single clk consumer Message-ID: <20240604130526.GA12945-robh@kernel.org> References: <20240603223811.3815762-1-sboyd@kernel.org> <20240603223811.3815762-8-sboyd@kernel.org> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240603223811.3815762-8-sboyd@kernel.org> 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. This > will initially be used by a KUnit test to clk_get() the clk registered > 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,single-clk-consumer.yaml > > diff --git a/Documentation/devicetree/bindings/test/test,single-clk-consumer.yaml b/Documentation/devicetree/bindings/test/test,single-clk-consumer.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.yaml# > +$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. Rob