From patchwork Sun Oct 23 17:02:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13016351 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 8B732C3A59D for ; Sun, 23 Oct 2022 17:04:18 +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=4n1A1b1gjlKeQnseN25feLxmdPsU0w4k76nKANPe3ks=; b=injNc0LLdMOZdr 3oInm91XjOLaRvfqxQB7QYUT2HfKFZ4vrBiP1Gq2JVsVksJTS45AiZvcw0ekDUGEpOOkdNtrbCVHk xliDYa7vlF5Sm4U176AGSVETkJXJlXiq4pbF3f1xEmc+gJ3vDfvIlRc9Gg5qCp+qX5cVkloJfwAnF W3LrXMlI5ZiijFut2wQ8wqk5bFEPQaaZBJ528vYnyrTK/qGrM0y+tuvzC3OZcBth5d2jTyc2iZB3b /2wZX4niPZiG4WGJ4MhU3cZ9CKP6Im5k9yT7rpK2zKW7kx+LxIlTnmxzrjjTDmWA2x8EN/VxMvxbr 97hpUvqE6ae35eF+wmfA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1omeNe-00FmR0-SV; Sun, 23 Oct 2022 17:03:22 +0000 Received: from mxout1.routing.net ([2a03:2900:1:a::a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1omeND-00FmJI-Ek; Sun, 23 Oct 2022 17:02:56 +0000 Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout1.routing.net (Postfix) with ESMTP id 5DE374026F; Sun, 23 Oct 2022 17:02:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1666544569; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eWQAyMiyLzRjICRckdk9i8etw2ozKINbfjBDA1F++Do=; b=YpLBExZbOZiWWo4PCJib0wv7vZGXwRFeIvhqjrwDGbwI20KyvCqWOs+7KALnjuMK8YkkVf 0K2TX4DNbVQcNOevXi0BPkkYjbpfUZAc4kiuVklwwRuUsHVxPFJXYTEEUvBEj5k9Oxpbdi /QvL4Rx4b0p4KFzX+b+8sCOpI2Mazc8= Received: from frank-G5.. (fttx-pool-80.245.79.234.bambit.de [80.245.79.234]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id 803AB100671; Sun, 23 Oct 2022 17:02:48 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Ryder Lee , Sam Shih , Steven Liu , Jianjun Wang , Bjorn Helgaas , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/3] dt-bindings: PCI: mediatek-gen3: add mt7986 clock config Date: Sun, 23 Oct 2022 19:02:34 +0200 Message-Id: <20221023170234.83621-4-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221023170234.83621-1-linux@fw-web.de> References: <20221023170234.83621-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 4dd0b3e8-60f4-4111-8ab6-3e4dc2df3d56 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221023_100255_654801_0CAA3279 X-CRM114-Status: UNSURE ( 7.20 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich MT7986 needs 4 clocks for PCIe, define them in binding. Signed-off-by: Frank Wunderlich --- .../bindings/pci/mediatek-pcie-gen3.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml index 3662422b38ea..e6020e684c00 100644 --- a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml +++ b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml @@ -79,9 +79,11 @@ properties: - const: mac clocks: + minItems: 4 maxItems: 6 clock-names: + minItems: 4 maxItems: 6 assigned-clocks: @@ -162,6 +164,20 @@ allOf: - const: tl_32k - const: peri_26m - const: peri_mem + - if: + properties: + compatible: + contains: + enum: + - mediatek,mt7986-pcie + then: + properties: + clock-names: + items: + - const: pl_250m + - const: tl_26m + - const: peri_26m + - const: top_133m unevaluatedProperties: false