From patchwork Mon Jun 3 22:38:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 13684428 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 14D1B13D619; Mon, 3 Jun 2024 22:38:20 +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=1717454300; cv=none; b=Yrv66fN3ZLz0s51o+zZlt1vX/rLWS1p8H8YLXv3+Zx9m+a77oVvM4H+WEj1TATec0jIb8NETylkKThTWRn4Asx0tj5rfKAtYgUgIcbb3bPSlPCwiZClVsyux9PkpuYf6byRdv+MvLxjnWfJIMFfKZE+BpGPmPAqL/8hXhFgRmpc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717454300; c=relaxed/simple; bh=469X2JKZ0g03+k9+5uxrzFAjuN3p7Y/r6p3KLMLUt+4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oU1PQgFkkOwfB3gfXbsmDAkiC4Xrc6z3bhZXdmS8hM0wgnhKfXRZ4BgLf+Aijpwln27VxP8Z+zdCPnuW3hpm7EG+2lTYKOwma0o5YKnI1FcReYkpisbj4lJlnVUictroXCVF7h/ZdHhjTwDjrTz6Ccro/EVxv3GhTOppb7dDXhY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sJvadQhb; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sJvadQhb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19C43C4AF08; Mon, 3 Jun 2024 22:38:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717454300; bh=469X2JKZ0g03+k9+5uxrzFAjuN3p7Y/r6p3KLMLUt+4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sJvadQhb/PC0fkbJ8+bgdxh4RQ2bvFoSZ6bjY2N7lE3heiQTVcRA4ErMOvZvB2iTe vUYHhlLL5+7r1Es1t+2RnGYB4HcVe7v5Hz6Ovk2PYJShVcv1vjWoD9ggbn3HPqTrpl AAKCg41etEJCHlrmGWYdCyz1JrF1ds5e6CNeZd5WJ6itP0ZFg3SvtZ8s150vQ03dGM +cDujppM7PeV35g57IcNLIqoV4q4Kwi7m/BcfulRMKtS2oxOoySozK7MiQiA+3bPos 51RVVtJTJfmyO60IryCuj3uJDyj2/KJLNkdn8UT0c/YIR3zQcHb4m2AgDj9E+t2SR3 ljWSUxrIe8nvA== 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 v5 07/11] dt-bindings: test: Add single clk consumer Date: Mon, 3 Jun 2024 15:38:04 -0700 Message-ID: <20240603223811.3815762-8-sboyd@kernel.org> X-Mailer: git-send-email 2.45.1.288.g0e0cd299f1-goog In-Reply-To: <20240603223811.3815762-1-sboyd@kernel.org> References: <20240603223811.3815762-1-sboyd@kernel.org> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Describe a binding for a device that consumes a single clk in DT. This will initially be used by a KUnit test to clk_get() the clk registered by of_fixed_clk_setup() and test that it is setup properly. Cc: Rob Herring Cc: Krzysztof Kozlowski Cc: Conor Dooley Cc: Brendan Higgins Cc: David Gow Cc: Rae Moar Signed-off-by: Stephen Boyd --- .../test/test,single-clk-consumer.yaml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/test/test,single-clk-consumer.yaml diff --git a/Documentation/devicetree/bindings/test/test,single-clk-consumer.yaml b/Documentation/devicetree/bindings/test/test,single-clk-consumer.yaml new file mode 100644 index 000000000000..8c384c48707d --- /dev/null +++ b/Documentation/devicetree/bindings/test/test,single-clk-consumer.yaml @@ -0,0 +1,34 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/test/test,single-clk-consumer.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Test consumer of a single clock + +maintainers: + - Stephen Boyd + +description: + A consumer of a single clock used in tests. + +properties: + compatible: + const: test,single-clk-consumer + + clocks: + maxItems: 1 + +required: + - compatible + - clocks + +additionalProperties: false + +examples: + - | + clock-consumer { + compatible = "test,clk-fixed-rate"; + clocks = <&fixed_clk>; + }; +...