Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2606177lqt; Mon, 22 Apr 2024 16:25:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUY82/Oya6lmvbFVYK/DSaeqY18oHeUZlW+BtPUML6tt2o8kQCdWP4VVE/YmAuDX0R8UcDrpGUbjKU8450LxAINEk3DGkXeNLXsF5vjmQ== X-Google-Smtp-Source: AGHT+IH8ctUq99ORZRdudLA6tu1axaLWtXO7eWLvRAloNamey9QsiSSnN8IPVggrakRuQlhcPSiZ X-Received: by 2002:a17:906:1c5b:b0:a51:d204:d69e with SMTP id l27-20020a1709061c5b00b00a51d204d69emr8209071ejg.7.1713828338150; Mon, 22 Apr 2024 16:25:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713828338; cv=pass; d=google.com; s=arc-20160816; b=toU1dngfe9E4mRyjcZM/euBot7OKhhKyfMp1MYhTiIQ5azp93Jf+i1Ez6dE/MtfnOY JOq3bIyLPQexebK7RHTrFcwWi7xwbbhZUa7/AsvjmwTGc4JM37o9MjKxTBUkvNX5Fshb +2W0YX6NYyZqeE39YBRPxKD4+6l22eg4pYChthFPXl5+9Zowztd+kyTTQDF71DzxLg+9 RYQIgC2wQR+ZQSjGa7gl1GFr8mnxiCuRo6DOkwUGMg/8enDH/rm3w+5woJLhEKW00l9+ s1YHcQFmRejPw0/QZg996H9nMyQihyKxzcCFxppiA5Vte+Zasmdk+Dt+7MIhj3dYPqJM 9HzQ== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=+TX3L6c7bboJkTigSkyczcpIp8t/KAsLMIZUfs3VLhE=; fh=V3q660E7jJuFePuHUOWKHHu4ulEp8NjGRgFgZbQSOmw=; b=cf57Xi8g1gBB4SmpBnLXdYwHy4DDyvz3wzeWSxEQf7oqn1qoJNEIsLiymXXkVAcj3E +HGBgbYOzKRM2wHjLx1VJnI2iDoQ72I5QZLxK/NiHuvj+rZNRKCuuVYF3yfrHDuvdjrs 7rTuqEIxyUO/RwKPDDhsp5dtuUdz3U1lrjcu3GNLnAfC4XCztkvEUACbU1iwptQQh+// fHCxTzJ1pkjUptYotGC3nz+rlQU42ZYqISRgGpX5Oayjhk3rEyUXXMuGaz7ZftUYOvOy 4Onvhr9oaE2XGEIgxerniKcU0hBWt8DAaNye1JMXWIHWsNZOtA2YCuKj5CQSluS/nd4f ctXg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nj4L0KBI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-154195-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154195-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 qw18-20020a170906fcb200b00a4748cefff3si5989998ejb.268.2024.04.22.16.25.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 16:25:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154195-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=nj4L0KBI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-154195-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154195-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 DDF8D1F23589 for ; Mon, 22 Apr 2024 23:25:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 96F5E153BC7; Mon, 22 Apr 2024 23:24:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nj4L0KBI" 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 B1C4C13FD71; Mon, 22 Apr 2024 23:24:13 +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=1713828253; cv=none; b=CaI5s5BwFkR97dZiqBDNRaaI2E14x2YngUoCZdAhyQcMeMYaaW7o5fWp8SrG25BAhk1VRCmQ7IucKiwOJ7vxMKlsApsLazHbQ11m0ecwwuHjWstFyzVhXA0F7FTfCJDqaQHEqBXCNTBF+gN/nnHF2a2U/OYSJkKTwuU9yLxRgoE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713828253; c=relaxed/simple; bh=O0SBhxpsnp1Sc1JQzxFViruQQyQ4DAJXXTgts6Jan3c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cWniSI8RuW9HkCJWbOvC/aiZzat3U4zOfYtvEMJG9UHpLGkq2DxyhnwBN9EPCihcpx7SDsG8/SMPszVF9u87RtC6fDWdh5axkxGEQgTyugoiPtX7AbrKYxWtmkJO4MZo8Z8b1T4jMfbPWa+PJFSgpa58hxuHQJnwpoNzX+rIegc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nj4L0KBI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80706C32782; Mon, 22 Apr 2024 23:24:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713828253; bh=O0SBhxpsnp1Sc1JQzxFViruQQyQ4DAJXXTgts6Jan3c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nj4L0KBIFk48fxasEv2sz7zSWzTUt6WT286UXH6snR3i0Q/EaTQ4zSCT4AW5V7vfQ +exGkGYqzwi8XjL/txcHd27esnX/SK7YKUwPk93Txf/PMB/kEiYCFlLIvh+AQ5C/HD Z2AMYFRnplIS3p+EgyOjxDbz1q0hhYYkNIaibf5ir886+0/3QTWIT+hGs5zOUeoqkm 30xZPOFARX5WtG8AxSm2oaaj+Rwj9EE/RcmZyDeyPoXpmWhrDUoyU5v4X8jZtXASLF S/2OfLpNxLlgbJVfjPM1MlIQJYnZaSnfalOzs3jFqv68qgXgbbXGQ8YPsuiI5y5qXx JzpaeOTiAWZag== From: Stephen Boyd To: Michael Turquette , Stephen Boyd Cc: 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" , Rob Herring , Saravana Kannan , Daniel Latypov , Christian Marangi , Krzysztof Kozlowski , Conor Dooley , Maxime Ripard Subject: [PATCH v4 06/10] dt-bindings: kunit: Add fixed rate clk consumer test Date: Mon, 22 Apr 2024 16:23:59 -0700 Message-ID: <20240422232404.213174-7-sboyd@kernel.org> X-Mailer: git-send-email 2.44.0.769.g3c40516874-goog In-Reply-To: <20240422232404.213174-1-sboyd@kernel.org> References: <20240422232404.213174-1-sboyd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Describe a binding for a device that consumes a fixed rate clk in DT so that a KUnit test can get the clk registered by of_fixed_clk_setup() and test that it is setup properly. Reviewed-by: Rob Herring Cc: Krzysztof Kozlowski Cc: Conor Dooley Cc: Brendan Higgins Cc: David Gow Cc: Rae Moar Signed-off-by: Stephen Boyd --- .../bindings/test/test,clk-fixed-rate.yaml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/test/test,clk-fixed-rate.yaml diff --git a/Documentation/devicetree/bindings/test/test,clk-fixed-rate.yaml b/Documentation/devicetree/bindings/test/test,clk-fixed-rate.yaml new file mode 100644 index 000000000000..b9f58cba944c --- /dev/null +++ b/Documentation/devicetree/bindings/test/test,clk-fixed-rate.yaml @@ -0,0 +1,35 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/test/test,clk-fixed-rate.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: KUnit clk fixed rate test clk consumer + +maintainers: + - Stephen Boyd + +description: + A clk consumer of a fixed rate clk used to test the fixed rate clk + implementation. + +properties: + compatible: + const: test,clk-fixed-rate + + clocks: + maxItems: 1 + +required: + - compatible + - clocks + +additionalProperties: false + +examples: + - | + clock-consumer { + compatible = "test,clk-fixed-rate"; + clocks = <&fixed_clk>; + }; +... -- https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git/ https://git.kernel.org/pub/scm/linux/kernel/git/sboyd/spmi.git