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: 75708 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1823958vqo; Mon, 27 Mar 2023 15:23:12 -0700 (PDT) X-Google-Smtp-Source: AKy350a1wy6+SblyNJFgK8lmCD/E6alrS0QifAd5w64MK4K8W+07KcFG2SK+QR9L9twYSYQax2Mc X-Received: by 2002:a17:90b:3842:b0:23d:a2a:3ae4 with SMTP id nl2-20020a17090b384200b0023d0a2a3ae4mr14834309pjb.44.1679955791992; Mon, 27 Mar 2023 15:23:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679955791; cv=none; d=google.com; s=arc-20160816; b=k3TWSaJHec11cJCIEdDVIFKx1NJBoEfoivEfz/bu0vHW/CrLfT+qpvnNiipOydc0PT gwlI4zouMAbhD4eQZv2gBfjDo/vmbRz77vsRQhHs6rnLd+F+ArY8GxhSw+x0ul/bsNkb yHacQ0ymvg7lgmM3BgsB2TdNGxdjr6MdHfr/R/bPIG0oZPoMgICr/iM3Dt0bfAxwLtLl cx4w6IbKxAAVyc8n7aBYIqNUNckBnphWpi85XVjZawJPO3IDT6RyV0/Xdg6IqqDukWto /Qa/g6VdCPxPiOWUyyt/ghD0p6aVjdQP12pfYpKhwFqGj7LhUG4IcaHHvES/8RScqHrs xlvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=m8vCM9jvs4aAswfGY0CFD4FoD1hGQO8SdHkfDvne4pg=; b=sfboeBGOF15I94NmIxZcOBCesa1P2xM3R+u/u7AfQOato0f7T83piVMKOAMFy6Y6ij RSlxxfwTB6k2gJspNP1y86PMhEoPToGApFdUMl0WFw9RwSiyfDjvRxEptP7yY9oYtTcl 0qUKhAB5ITZZOimxNG8X/5sNDNJ8BCAY7yvVuaKCWJJP0wYVyI4wXwXuXAIcCro0GhKb e8x8BSfeJMyoO/+2JSApVkj3p/cU4vpZJrjtvxAzGIMXUrd7s4GmRGY5omxB1pWMNYY/ AR6ciYmBurSC4D4LUe93k+wjA3DOX0kd61QW0PutKo+Ddt5YfS404FHKjFSIMUVB7ufK QM6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uTkAg0rx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q62-20020a17090a4fc400b00230c717f66esi6756584pjh.172.2023.03.27.15.22.59; Mon, 27 Mar 2023 15:23:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uTkAg0rx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232144AbjC0WWW (ORCPT + 99 others); Mon, 27 Mar 2023 18:22:22 -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 X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761561324699699363?= X-GMAIL-MSGID: =?utf-8?q?1761561324699699363?= 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>; + }; +...