Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1254680lqj; Mon, 3 Jun 2024 15:39:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJ42XlcJFIh/A/i8PyG2W8LxlkNitKa5LBoMWTC+Oy4SGj9WPo+WzxdMnN5X5hEDM2ntf/2SZjAy4KMMxdfqQFS6FOwysEP1ooClPr/w== X-Google-Smtp-Source: AGHT+IG5fEuugnnySwJPghJ/v2VNJtfhbVINMgJv0ivSJmrW193Lc9HiG06WgDNA/AwlvPFdGFkI X-Received: by 2002:a54:4895:0:b0:3d1:d457:64e3 with SMTP id 5614622812f47-3d1e3484221mr9675212b6e.10.1717454381228; Mon, 03 Jun 2024 15:39:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717454381; cv=pass; d=google.com; s=arc-20160816; b=m4i5hgRtrRcbW31svYAyfhyaAIi6KCjHZWlNDGLJntkklU2ql6Wxl1s4BjELNOrOv0 pWtJA+4xL7Am/2K3DPY9trpz/Hk4eSQNt4VHXig8gQUQYjXIjO868x8d0Vr11HRpDHMA 2I90ucHevc+TC2JSPzvgCHEBveCKqQ59lsNsWf5Pdhx729ForVDKoYvo7u8x9Gt+JCCS wTJsr0B12HEbWrTMRbBVXiHPV1IptE6svPOcaiVgC82G5T1DOU9kKqkAMr6ou1YLhQvd kvfGGa6wZH/wBbQMOKNOdLdl2lrZYbz/O36XCGVqa3BWPrhD368z8DyDSlDGvDNDr34c gmQA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=jVmfMOd+DGgoCs2I5jxaDKsGvGn15fM4pgkLe1ZQl94=; fh=V3q660E7jJuFePuHUOWKHHu4ulEp8NjGRgFgZbQSOmw=; b=wX+zFdOb4NbqezfgD3hfSGFptJrKeH8OCzHQxmr1azSRzfmpFD2V5vNpL4IUOsPQkD +tSsiiwfBF8bSPl9XyNcpW41KEka4CorrrhQY3hbRBBGkIXkG3OlWTIIbKG7B+A9u/EB i2muYeTwsBlX6xYBtxX3sZYrpnpeE2x5HyDm92FL84dy4b4l40lG1q0t/swyIhFc8O+5 QIpddsCxH9Xe378bIltizX100w6puEcIpOEj0iuDhNPFvXWDbhJWmlPs/eTPsBXyr1xW 4LK8XjwafDU7iKUZYec2ZKUmToec0Qmt4QLEscWL+K2/6TvJuqpiRcgN0YF7d2l9B62Y iwcw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sJvadQhb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199775-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199775-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b401a2csi4955286d6.217.2024.06.03.15.39.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 15:39:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199775-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sJvadQhb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199775-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199775-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E83861C23117 for ; Mon, 3 Jun 2024 22:39:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 008F713D62C; Mon, 3 Jun 2024 22:38:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sJvadQhb" 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 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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>; + }; +... -- https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git/ https://git.kernel.org/pub/scm/linux/kernel/git/sboyd/spmi.git