From patchwork Mon Mar 27 22:21:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 13190181 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 744C5C77B60 for ; Mon, 27 Mar 2023 22:22:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232127AbjC0WWQ (ORCPT ); Mon, 27 Mar 2023 18:22:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231820AbjC0WWH (ORCPT ); Mon, 27 Mar 2023 18:22:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5E6C3A82; Mon, 27 Mar 2023 15:22: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 dfw.source.kernel.org (Postfix) with ESMTPS id 61CE56153A; Mon, 27 Mar 2023 22:22:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 561C4C433D2; Mon, 27 Mar 2023 22:22:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679955725; bh=RvlyhYbptvBg73D2OHECbEteP6t+nqh7GcOpf9v1aEY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uTkAg0rxKzfKqWsxy/FOCMxmUQg3ulNMN7su2LSfBwnIWJH+cY+IuBsNdb48eKH+l klaU/1veZvXiRMRmE8Wo2gbKiR08CX0mwFF+xGTdTH/2R7z6Nwex+/fQLrp6x1mBck mllrbD5qEcHyiol48C94pNBlNwrvEV5PdsUo+ffPxQWH/7aTZyg6meW3ur4grkxVMD TUiW+jZCQWc/E1/KjsusQ/mmmlckkZYge9uAY1zVDnNStZKgOebs6KL8GNOsimVfEj NO4Vv9NhUBdneNnCZ2wYMxGxn1qleA9zlERC0S0dNKwdTrSoVRw6TzTdvmhDqXiAok BbWvzTPU2+fLQ== 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 v3 07/11] dt-bindings: kunit: Add fixed rate clk consumer test Date: Mon, 27 Mar 2023 15:21:55 -0700 Message-Id: <20230327222159.3509818-8-sboyd@kernel.org> X-Mailer: git-send-email 2.40.0.348.gf938b09366-goog In-Reply-To: <20230327222159.3509818-1-sboyd@kernel.org> References: <20230327222159.3509818-1-sboyd@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@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 Reviewed-by: Rob Herring --- .../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>; + }; +...