Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2606476lqt; Mon, 22 Apr 2024 16:26:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWIrZR1XEWtt/twBK3eLUL87kK2tesJ5cMhAWUDm+M9ZzoNXJuIaIfzLrXqLwzacvnnsvOIKdMDskwXcMb5Vhp7idb1eiekqj1gB3VLSw== X-Google-Smtp-Source: AGHT+IEyWKHJsxoChTkhvwK/UvOj8JdBWTxJZoJ4Vn7bXcZLbjNrCupM/ANEkFBqxnVwSEO2mDfC X-Received: by 2002:a17:906:68b:b0:a55:b9eb:7215 with SMTP id u11-20020a170906068b00b00a55b9eb7215mr2668510ejb.35.1713828383493; Mon, 22 Apr 2024 16:26:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713828383; cv=pass; d=google.com; s=arc-20160816; b=TSplZAtkCjno6mhpPUlS4uf0UlNsPvxvHAGYFEkL5rbkTeZfy7QHrOCf9DJ+WsWF8a clsRKAlkOYXQ4txniFMFU0YYg17L24HuqF6EG5SwxUMpgbpE+T1ojaOUM00Lbma40ATt vRDnPtEZjP0eFwjhNPXS052NiCLeedvR7Fj67OQLZ0h3dgC0Ttb0jqgo3xXFM2zhEnNF OWHLarPlKoX7DmFgXoWql2zP+FbZq83zUJFUIO+a1JZI1jUvhH7cBUqI0IUtAH+WPPDZ 9xAJ/E16ZiCTTcxVy7QsuIMrSMaga9TL4QuJA74zBE2nPioX5KEs2jBYZFI1h29TiuE/ AIRQ== 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=T4xq0l02+/RJvWBUm5fYxHXr4vXhHgmwpf22i4WBeOI=; fh=V3q660E7jJuFePuHUOWKHHu4ulEp8NjGRgFgZbQSOmw=; b=r8Q3gu+VENCiS/fmewoiXHpwhVYh2mypqmIQ3bm0CE0R+gxR4/Wt4GZyk2l6jZb6/n uBgLXybV9QiAIB2JpIeEvKxguXAnsw6u3szQhlXQlJC8At2Jov1YmOwra5cJQ0X/l1jF 7Z5li25VBbCh9ZeTf1yAMlyeEKF+5xVc5qUUjm2MO3GzWG0QaX2/pFPMByTtq+ffQR4M NpZ/dr07bcpa16AZmU2Cb+ANh+t5rQ4Gi5SLb1ibNa3jV22q/SL0auPGe6kbggdk/E4m lVm1r+ZBpyr1thj4he4KfSNozdYobcbaw6zfFkDVpWU215CPfgVoKLJ4pF8twSf5ipbA 4OVQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RaLYkfPa; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-154198-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154198-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u3-20020a170906b10300b00a4e9a14552asi6516436ejy.674.2024.04.22.16.26.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 16:26:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154198-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RaLYkfPa; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-154198-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154198-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 147981F235D3 for ; Mon, 22 Apr 2024 23:26:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 92037155A50; Mon, 22 Apr 2024 23:24:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RaLYkfPa" 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 AC1FE156227; Mon, 22 Apr 2024 23:24:17 +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=1713828257; cv=none; b=bPvg8ayT8GuKb3HBCBD1Xo6eyuD0T1zd1KgXFdIbUkiLEp7cZ7Ln+fDe5WcrpbEhIvvotl0FN42X7RkHl1WkkcTnrVhU64ISPwpjq2WbDuY/8TVqN9+qYKRxgGIwKimGYPVmWhk/etKW6RNIIZ+j1tQRuUVvXdtPGDxJK1f0m6g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713828257; c=relaxed/simple; bh=ZO5XbRoqkj4vulnlMKiEJRQ6DiRvmkJpDOISJAX5cTI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JURUih3ZF1ltebeNpxfO1uASnec6D2baOhMp3Wjn0OyBeSfrHb3eFWZI5sn6ro8xuQkH3ZPnpKxzZ0XXVwdg/vw3cxuz1hsDJn4repyob+WIhJ/tvID1E13NPwlnJmMdGi8ZL0LGEVr09elAN2ro3Clfs8WcetkcZIZ4hIpSC+E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RaLYkfPa; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48749C4AF0A; Mon, 22 Apr 2024 23:24:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713828257; bh=ZO5XbRoqkj4vulnlMKiEJRQ6DiRvmkJpDOISJAX5cTI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RaLYkfPa7tFJo8AdXWnY9vD2AD8xZf+zSs+YSx2mBdgVz+F2o3sUxUVP8NoSF14ka 5f9rAEnvERZxr+DgXL+lhklPh+Wtl/VSZ3voqxRmsRKVaBLkmQxKwe/LmuqarV49xp knuDJWxCV4zEOeyNy3vM/8WuPAD23w2zkMvvRFMUqekLopqa39lfTFFeO7Shmx4ETI +8dN/woVpwdrDTk5txMfWhsPxd+Qnys3seqs0TxaIKLl3hLIERcaxPEptQv5+7vxXc GEeVAUREra84/zSg9cNDKI/wCxWkKq/RisEh1bMIPtiV0VpPoILAmIpQKXBxavZTOU svyLsYmBhKn9Q== 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 v4 09/10] dt-bindings: clk: Add KUnit clk_parent_data test Date: Mon, 22 Apr 2024 16:24:02 -0700 Message-ID: <20240422232404.213174-10-sboyd@kernel.org> X-Mailer: git-send-email 2.44.0.769.g3c40516874-goog In-Reply-To: <20240422232404.213174-1-sboyd@kernel.org> References: <20240422232404.213174-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 provides and consumes clks in DT so that a KUnit test can register clks based on the device node and test clk_hw_register() with clk_parent_data. Reviewed-by: Rob Herring Cc: Krzysztof Kozlowski Cc: Conor Dooley Cc: Brendan Higgins Cc: David Gow Cc: Rae Moar Signed-off-by: Stephen Boyd --- .../bindings/clock/test,clk-parent-data.yaml | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/test,clk-parent-data.yaml diff --git a/Documentation/devicetree/bindings/clock/test,clk-parent-data.yaml b/Documentation/devicetree/bindings/clock/test,clk-parent-data.yaml new file mode 100644 index 000000000000..a2f927526405 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/test,clk-parent-data.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/test,clk-parent-data.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Fake clk provider for clk_parent_data unit tests + +maintainers: + - Stephen Boyd + +description: + A clk provider to test the struct clk_parent_data implementation in the Linux + kernel. + +properties: + compatible: + const: test,clk-parent-data + + clocks: + items: + - description: Fixed parent + - description: 50 MHz fixed parent + + clock-names: + items: + - const: parent_fwname + - const: "50" + + "#clock-cells": + const: 1 + +required: + - compatible + - "#clock-cells" + +additionalProperties: false + +examples: + - | + clock-controller { + compatible = "test,clk-parent-data"; + #clock-cells = <1>; + clocks = <&fixed_parent>, <&fixed_50MHz>; + clock-names = "parent_fwname", "50"; + }; +... -- https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git/ https://git.kernel.org/pub/scm/linux/kernel/git/sboyd/spmi.git