From patchwork Mon May 22 17:34:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13250905 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7D019C7EE2D for ; Mon, 22 May 2023 17:34:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6CfmLUpM3J0JD4ubQTcX7zIJZz55goZDRrdhNyuV+tY=; b=rvMF/0fZ+PJVOG EuS0Fs0Glphn4UfQ42lCQYScFo9IYZxpq6hni2m/UIT47DAYiwstrbzz+pJ1Cbn6E7eXHd0uNfxBo 9Y4BV/2tdGLXRbB2zKVmA8evKLnFDWLjHBbfEZ32zV55PQxBS3Hgj38izFQRE/HEz5C2jfv+YneZk SRT4mo5XAlLoCXEB7ajlnGRNs8qdy4/u4leHncXXEhAXksU1OMWRoisDzByVJKWVCApcX13pwmXDo UgUuBj8q28HAJ6kKFDxTxWIVUnw2mWv9uzvQpCWXnTlDr3K7KWPYKHWwUzSsEypb8JrZyu5BjrC2J TbcYfr9MGSWkRKwRoLlA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q19Qc-007Nql-1C; Mon, 22 May 2023 17:34:38 +0000 Received: from madras.collabora.co.uk ([46.235.227.172]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q19QX-007Nn7-2i; Mon, 22 May 2023 17:34:35 +0000 Received: from jupiter.universe (dyndsl-091-248-208-162.ewe-ip-backbone.de [91.248.208.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id 2D67E6606E69; Mon, 22 May 2023 18:34:31 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1684776871; bh=+glCV8Ppsmj02ojEvctTLkB95+84CeD8o7UpyPzMpZw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=buQ74jR50Xcc078VNGALUSjE8Gw1t+fRfNqk/WS5gLq/6jxmLRcE9jIFwxZaSbaoB 4izemo4LJVVw55481x+MsP/lWbPLhBmfkAvKMbY/d8k0a3QXxwPocChBoa4ImS/EyM vpoAQo667LDW33XF5xnovwDQuJI0Yz6aYnwQXqaI89a8kim+8KxheE3iSpYjww+Gd0 q7TG7smhZrhPKZWSLIFMX+jlTQy7fy3g9kq1jhg+sWrhaDxVMty0luLer2mLQYloPm JtqsHrY10zLxAWE8t3wY9njfC4Monks1mGOrtSDF1/c9nLHLfigTF/RT0h7lPU57OV Y8yO7jmy5SyGw== Received: by jupiter.universe (Postfix, from userid 1000) id 8DF3B4807E2; Mon, 22 May 2023 19:34:29 +0200 (CEST) From: Sebastian Reichel To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Damien Le Moal , Serge Semin , Vinod Koul , Kishon Vijay Abraham I , linux-ide@vger.kernel.org, linux-phy@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH v2 3/6] dt-bindings: ata: ahci: dwc: enforce rockchip clocks Date: Mon, 22 May 2023 19:34:20 +0200 Message-Id: <20230522173423.64691-4-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230522173423.64691-1-sebastian.reichel@collabora.com> References: <20230522173423.64691-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230522_103434_059759_CFCA7E3F X-CRM114-Status: UNSURE ( 9.09 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Provide a specific list of clocks allowed for RK3568 and RK3588 based DWC AHCI controllers. Signed-off-by: Sebastian Reichel --- .../bindings/ata/snps,dwc-ahci.yaml | 34 +++++++++++++++++-- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/ata/snps,dwc-ahci.yaml b/Documentation/devicetree/bindings/ata/snps,dwc-ahci.yaml index c6a0d6c8b62c..37830185b9b5 100644 --- a/Documentation/devicetree/bindings/ata/snps,dwc-ahci.yaml +++ b/Documentation/devicetree/bindings/ata/snps,dwc-ahci.yaml @@ -13,9 +13,6 @@ description: This document defines device tree bindings for the generic Synopsys DWC implementation of the AHCI SATA controller. -allOf: - - $ref: snps,dwc-ahci-common.yaml# - properties: compatible: oneOf: @@ -41,6 +38,37 @@ required: - reg - interrupts +allOf: + - $ref: snps,dwc-ahci-common.yaml# + - if: + properties: + compatible: + contains: + enum: + - rockchip,rk3588-dwc-ahci + then: + properties: + clock-names: + items: + - const: sata + - const: pmalive + - const: rxoob + - const: ref + - const: asic + - if: + properties: + compatible: + contains: + enum: + - rockchip,rk3568-dwc-ahci + then: + properties: + clock-names: + items: + - const: sata + - const: pmalive + - const: rxoob + unevaluatedProperties: false examples: