Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3505437rwl; Mon, 27 Mar 2023 15:23:27 -0700 (PDT) X-Google-Smtp-Source: AK7set+KTE8abYK19WD8tdbTcBqwtJoxtaXBwjUgAVhU2ohdHe6HWDSReaaKRXERC0yaSzgs3Hzx X-Received: by 2002:a05:6a20:7906:b0:d5:9da4:6db7 with SMTP id b6-20020a056a20790600b000d59da46db7mr9903656pzg.7.1679955807100; Mon, 27 Mar 2023 15:23:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679955807; cv=none; d=google.com; s=arc-20160816; b=wZgOYdt4c9aqO8BrdLtDMUMBjGTSvH6R3DDN958LSzIZRWIIYOLHH6TVg5PqGFb+Jw p+gXVhs9VsgB9O2827qguar5E0cs5h5iP9dmjYNGcnC2m1oS4SScaaPf3C8AJNY08orq h3MHhfctZcIMhxRP/jdN/wGI6bJ60IRaZsiGFEM++Wu5tat5hQZRrhsNjgrrhljXQPee r7YNqN/WdnQZE3F/ZZUrlM9A1Up0KEnLGZ/pqYSImkRNQUU1lhJQZJo8jp+YRZFs0HVL Xakv23C/xYjfZ0URYVwrHaE5zmZ5jR4Qsw/o/Byp9lbbKYQ0hR2ZDqVdOlOszb1V4tux 1BQg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b28-20020a056a0002dc00b0062811fe3da7si16209931pft.157.2023.03.27.15.23.15; Mon, 27 Mar 2023 15:23:27 -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 S232291AbjC0WWW (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 Content-Transfer-Encoding: 8bit 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 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 --- .../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