From patchwork Wed Mar 15 18:37:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 663570 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47CA7C7618D for ; Wed, 15 Mar 2023 18:43:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232642AbjCOSno (ORCPT ); Wed, 15 Mar 2023 14:43:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232216AbjCOSn2 (ORCPT ); Wed, 15 Mar 2023 14:43:28 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A02213D5D; Wed, 15 Mar 2023 11:43:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 81248B81EFE; Wed, 15 Mar 2023 18:37:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF6CEC433A4; Wed, 15 Mar 2023 18:37:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678905455; bh=hFEwMRM75Gh9vFWXQy+p8pjvVTIDQeLRyGLEW21bVp0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nG9+XV+g0cLGaGP512GRzzmUD+Atp4ZSqggcxnqeJIyykyfRIVDK1hYgVdUir5f79 NSqxZFkpvAob1R2OA2Ed1raIYn8OY63gCmkgfzO9gHlkoHZFUSmtWm4D10TzTKk3oC 8wCUR2IXTo79e87UgiFCcmVx09kaVlph5Nb1jpBB5TNUv+HyUnggbmSSY94UBJ7eN1 +zwJtVHa0/lELTnmaKwbN0f4NDum7qRWSSPF+GXMWxUcu19LNSg1iBRGMnJ32ot3Z0 9L5dVTk6T9RtOy/n51FsYWLfCI9Ex05Z0U7Ah4IwnXWFWZl1VMC46V6xF/hsicRVT6 1DjOlGODFSmbg== From: Stephen Boyd To: Michael Turquette , Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, patches@lists.linux.dev, Brendan Higgins , David Gow , Greg Kroah-Hartman , "Rafael J . Wysocki" , Rob Herring , Frank Rowand , Christian Marangi , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, Maxime Ripard Subject: [PATCH v2 07/11] dt-bindings: kunit: Add fixed rate clk consumer test Date: Wed, 15 Mar 2023 11:37:24 -0700 Message-Id: <20230315183729.2376178-8-sboyd@kernel.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230315183729.2376178-1-sboyd@kernel.org> References: <20230315183729.2376178-1-sboyd@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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. Cc: Rob Herring Cc: Krzysztof Kozlowski Cc: Brendan Higgins Cc: David Gow Signed-off-by: Stephen Boyd --- .../kunit/test,clk-kunit-fixed-rate.yaml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/kunit/test,clk-kunit-fixed-rate.yaml diff --git a/Documentation/devicetree/bindings/kunit/test,clk-kunit-fixed-rate.yaml b/Documentation/devicetree/bindings/kunit/test,clk-kunit-fixed-rate.yaml new file mode 100644 index 000000000000..58d7826d9c14 --- /dev/null +++ b/Documentation/devicetree/bindings/kunit/test,clk-kunit-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/kunit/test,clk-kunit-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 in the Linux kernel. + +properties: + compatible: + const: test,clk-kunit-fixed-rate + + clocks: + maxItems: 1 + +required: + - compatible + - clocks + +additionalProperties: false + +examples: + - | + clock-consumer { + compatible = "test,clk-kunit-fixed-rate"; + clocks = <&fixed_clk>; + }; +...