From patchwork Mon Jul 25 00:02:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanho Park X-Patchwork-Id: 12927666 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C391CC43334 for ; Mon, 25 Jul 2022 00:07:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231303AbiGYAHV (ORCPT ); Sun, 24 Jul 2022 20:07:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbiGYAHU (ORCPT ); Sun, 24 Jul 2022 20:07:20 -0400 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0BF5DEC9 for ; Sun, 24 Jul 2022 17:07:16 -0700 (PDT) Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20220725000715epoutp03210d94aac751b8e93fcec4187db6fb72~E6c5QoFH03258032580epoutp03b for ; Mon, 25 Jul 2022 00:07:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20220725000715epoutp03210d94aac751b8e93fcec4187db6fb72~E6c5QoFH03258032580epoutp03b DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1658707635; bh=uegJKbSHo1ocVWl1bQj+RGC0/44Na/yQZKw7HcG6RI0=; h=From:To:Cc:Subject:Date:References:From; b=U126mo+97kN5AsNSCa/GchqXFa8orlqyVfHMN+L7v0TxddwJx9EEpdCndbqz+lKJy ZtwPhVpnbaC0YgcaME1qMbh6ixyzKH9OeOTtDUt3rMrogYAj6vVZci4ukN28eXlysO 1GjDNX0r5OH/ypXkLOTNotoJSqWt3XqCos9cjI5w= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20220725000714epcas2p3ce51bda12f561c6eed8c654f5434c09b~E6c4rj63F2187821878epcas2p34; Mon, 25 Jul 2022 00:07:14 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.36.68]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4LrgMk0Tcpz4x9Q8; Mon, 25 Jul 2022 00:07:14 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id 44.6B.09662.1BEDDD26; Mon, 25 Jul 2022 09:07:14 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p3.samsung.com (KnoxPortal) with ESMTPA id 20220725000713epcas2p38d5c9d7ccdd06dd50267b72847cadc18~E6c38mSdo1957219572epcas2p3I; Mon, 25 Jul 2022 00:07:13 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220725000713epsmtrp1945a4f67d9c7a62b45b87aad45cd2351~E6c37yoUD2137721377epsmtrp1a; Mon, 25 Jul 2022 00:07:13 +0000 (GMT) X-AuditID: b6c32a48-9f7ff700000025be-da-62dddeb12c32 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 1C.26.08802.1BEDDD26; Mon, 25 Jul 2022 09:07:13 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.51]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220725000713epsmtip2434fe7b72b7009e144b5219f3ec04a2e~E6c3p9AiJ0880108801epsmtip2F; Mon, 25 Jul 2022 00:07:13 +0000 (GMT) From: Chanho Park To: Krzysztof Kozlowski , Rob Herring , Vinod Koul , Kishon Vijay Abraham I Cc: Alim Akhtar , devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org, Chanho Park , Krzysztof Kozlowski Subject: [PATCH RESEND v2] dt-bindings: phy: samsung,ufs-phy: match clock items Date: Mon, 25 Jul 2022 09:02:49 +0900 Message-Id: <20220725000249.30509-1-chanho61.park@samsung.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprKJsWRmVeSWpSXmKPExsWy7bCmue6me3eTDP6fZrR4MG8bm8Xl/doW 84+cY7W48LSHzaLvxUNmi72vt7JbbHp8jdViwqpvLBYzzu9jsmjde4TdYuedE8wO3B6bVnWy edy5tofNY/OSeo++LasYPY7f2M7k8XmTXABbVLZNRmpiSmqRQmpecn5KZl66rZJ3cLxzvKmZ gaGuoaWFuZJCXmJuqq2Si0+ArltmDtB1SgpliTmlQKGAxOJiJX07m6L80pJUhYz84hJbpdSC lJwC8wK94sTc4tK8dL281BIrQwMDI1OgwoTsjPs/njAW3BetmHa6voGxXaCLkZNDQsBE4sjd GcwgtpDADkaJOddVuhi5gOxPjBLL/2xhh3A+M0rcX/SJBaZj4+lHbBCJXYwSl+8eYoJwPgJV bZjKCFLFJqArseX5K0aQhIjACkaJt3NvgTnMApOYJG5euc4OUiUsECgx7/JqMJtFQFXiYi/E Dl4BO4lFPc9YIfbJS1y/2cYMEReUODnzCVgNM1C8eetsZpChEgJf2SV2blnCCNHgIvFiTR9U s7DEq+Nb2CFsKYmX/W1QdrHE0lmfmCCaG4Ce2PaLDSJhLDHrWTvQIA6gDZoS63fpg5gSAsoS R25B7eWT6Dj8lx0izCvR0SYE0agucWD7dGgQyUp0z/nMClHiIXHljBCIKSQQK9HV7ziBUX4W kl9mIfllFsLWBYzMqxjFUguKc9NTi40KTOBxmpyfu4kRnD61PHYwzn77Qe8QIxMH4yFGCQ5m JRHer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D9l/R5jzcq/mzmOVJwBUlZ/vK3UlhO98F8kRVpztnvpbff3vbb1mWI5VnDwp8 ZixplLNKseC8PlPTo/KQ4ZGb3EmXjbW+1Gwv7/C1zfnGa+rs2yAtu+9WvjLv9hBTue6JVipd 6h7zz+3dJZ9gxb/58vZH9hwG58Ke7p28sP3q0g96m85X1UQUMJhVXrv9L6v8/pJNa+O+u+uv m5nLX7VjZtetnb0snHKnbvJNLKlawpjMstfr44lvKZd2cdR75bzccWvTK6fnSalmjUIBzj6T 969SeM7Jlh8fdahWYdqZqlhBZq1zVgd5Jm299WiuRzzXDJdEhR1HylfLLFJiKc5INNRiLipO BADVYeTA2AIAAA== X-CMS-MailID: 20220725000713epcas2p38d5c9d7ccdd06dd50267b72847cadc18 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220725000713epcas2p38d5c9d7ccdd06dd50267b72847cadc18 References: Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Below error is detected from dtbs_check. exynos7-ufs-phy is required symbol clocks otherwise only PLL ref clock is required. clock-names: ['ref_clk'] is too short Reported-by: Krzysztof Kozlowski Suggested-by: Krzysztof Kozlowski Suggested-by: Alim Akhtar Signed-off-by: Chanho Park Reviewed-by: Krzysztof Kozlowski --- Resend for phy maintainer - Add Krzysztof's R-B tag Changes since v1: - Move allOf: block location after required: - Remove unnecessary spaces of clock descriptions .../bindings/phy/samsung,ufs-phy.yaml | 47 +++++++++++++++---- 1 file changed, 37 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml b/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml index 8da99461e817..346eb7cf29a5 100644 --- a/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml +++ b/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml @@ -27,18 +27,12 @@ properties: - const: phy-pma clocks: - items: - - description: PLL reference clock - - description: symbol clock for input symbol ( rx0-ch0 symbol clock) - - description: symbol clock for input symbol ( rx1-ch1 symbol clock) - - description: symbol clock for output symbol ( tx0 symbol clock) + minItems: 1 + maxItems: 4 clock-names: - items: - - const: ref_clk - - const: rx1_symbol_clk - - const: rx0_symbol_clk - - const: tx0_symbol_clk + minItems: 1 + maxItems: 4 samsung,pmu-syscon: $ref: '/schemas/types.yaml#/definitions/phandle-array' @@ -62,6 +56,39 @@ required: - clock-names - samsung,pmu-syscon +allOf: + - if: + properties: + compatible: + contains: + const: samsung,exynos7-ufs-phy + + then: + properties: + clocks: + items: + - description: PLL reference clock + - description: symbol clock for input symbol (rx0-ch0 symbol clock) + - description: symbol clock for input symbol (rx1-ch1 symbol clock) + - description: symbol clock for output symbol (tx0 symbol clock) + + clock-names: + items: + - const: ref_clk + - const: rx1_symbol_clk + - const: rx0_symbol_clk + - const: tx0_symbol_clk + + else: + properties: + clocks: + items: + - description: PLL reference clock + + clock-names: + items: + - const: ref_clk + additionalProperties: false examples: