From patchwork Sat Oct 29 17:58:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 12765 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1455053wru; Sat, 29 Oct 2022 11:12:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6R/k5L8JSrp1c1UGs9N9Bt0w+ZNO1cUpY2VvVwcCYfIsCsN5PrDF2xHakWBnmFCbvF0WK+ X-Received: by 2002:a17:90a:e297:b0:212:dc30:7fed with SMTP id d23-20020a17090ae29700b00212dc307fedmr23572344pjz.90.1667067162887; Sat, 29 Oct 2022 11:12:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667067162; cv=none; d=google.com; s=arc-20160816; b=CQIHfmK1mXXEafXm0/E/zgRdPA54Nv6SrO23cpEpqXuKRKxhpqfjud+Dg9a5kjCZrA wUO3TdHzKI1jeyvEQvkPNwLy2jIoHZtAH1rtUIltyw0ZXbbJYF6KmlT8B1kYY+lBEuqp rMNblnsykbVHkFLoqibMAmzItpwbyC0mS+C7jhyOJjy11FZ/wIU9z2LBsdicJ16E8l1Z Y7zTYKUQJju9kGC86zAmj51Lq7Y3lH/LcOS4En0jRfAAsCDAmrJK1Go1Z0gHFQ0usiMi 12+r8HXw3k0s0OTG/zovPR91sEftfIZffPsFDd5xUvW0wnBVMpQd0q7W3CJ6C4PO1MjZ YtEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zJ8GRq7a4mB9jHUs3YggqSdwXFnG4JioJUT0UDXyP14=; b=sbxV0bkef04rjEXJbxdqppKJOtYuc9WjrgwhOAs4qO+raIikFcLSVIeGGivWjhy/KX DkWXfr79Az78jn7EEBxFSZz0MyOq3Jy+E/9CQ3SrIW3sW4sP9go6LUcw00VQ+JtO9s19 XuX8xCSh5dwO+yQcqwIrjtENRg6EWOsjfTm6YObV18CuFwz1sHW+mKLnsk6nM7jTdm1M DDUt0QpdQlrjUW/WcJj+acUufDPA4qVPslM+nidnPqBqX6ufx/lDxh627k2G3AlobXm4 bfNFHKAkuUfgzHyK72BbIbMx63vbNIuyFSn8+mCYtgXt1R2VFqfbXLca8Nw1cypb0ygJ 9x4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@public-files.de header.s=s31663417 header.b=J05y90sH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k4-20020aa788c4000000b0056ce934bea2si2851079pff.353.2022.10.29.11.12.25; Sat, 29 Oct 2022 11:12:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@public-files.de header.s=s31663417 header.b=J05y90sH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229750AbiJ2R6c (ORCPT + 99 others); Sat, 29 Oct 2022 13:58:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229711AbiJ2R60 (ORCPT ); Sat, 29 Oct 2022 13:58:26 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9308459EB9; Sat, 29 Oct 2022 10:58:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=public-files.de; s=s31663417; t=1667066289; bh=gbLUknNhYDzToI8QX7zIFAAM+RoOhWqq4U9N2tWYqrY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=J05y90sHfOuBW1dagMH1QWKbygXKo3NM4skXufIWKzOJ50SGhdfo0k3Qvs99hOT9N Ig0ftYRsTbhyrnlOI0x/6JsqTxYqbAVGdZ7XeE6pq+Cyh5fC19AgDDbevyRcyitnFg aOpdgdFJzazkN3qB8tmRb0pE7zLiPVYA3WE8zdImrOn+uxMZqRRqMzEEQWLUQc+Dss zaZ0tXiLE15RohZqms/Kj7p0vOVQlA4HJETmLIYrp3wE/CJyIWtWc22uuQ1V10fpD5 5YdTGBi9fDRX7kCCDYirdRn1eCAgb46eTW3v1wclgy0YmczgTg0rq1vq6C8XAQN70w 3COzWQo/bgSPQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from frank-G5 ([217.61.156.178]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MDywu-1owVan1VqO-009zKI; Sat, 29 Oct 2022 19:58:09 +0200 From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Ryder Lee , 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 v3 2/2] dt-bindings: PCI: mediatek-gen3: add support for mt7986 Date: Sat, 29 Oct 2022 19:58:06 +0200 Message-Id: <20221029175806.14899-3-frank-w@public-files.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221029175806.14899-1-frank-w@public-files.de> References: <20221029175806.14899-1-frank-w@public-files.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:M/8pyPHZeBy0oSZJMA11WuM41/YmWM8SAUTdo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4p9RXF+kimQ4knSSItoayZrCV7xj3b9t48Dm DV6tIHcdMYAovyj78trKZglcgWVqYTOmwz9oXoQ+PUpcc+WFd4jAuBjr5Ma0ZBtL1kG0lp83E ndS3I6yjgflfUOjGWeEjSnk927w= X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748046617211225660?= X-GMAIL-MSGID: =?utf-8?q?1748046617211225660?= Add compatible string and clock-definition for mt7986. It needs 4 clocks for PCIe, define them in binding. Signed-off-by: Frank Wunderlich Reviewed-by: Rob Herring Acked-by: Jianjun Wang --- v2: - squashed patch 2+3 (compatible and clock definition) --- .../bindings/pci/mediatek-pcie-gen3.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) -- 2.34.1 diff --git a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml index 5d7369debff2..f7a02019daea 100644 --- a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml +++ b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml @@ -48,6 +48,7 @@ properties: oneOf: - items: - enum: + - mediatek,mt7986-pcie - mediatek,mt8188-pcie - mediatek,mt8195-pcie - const: mediatek,mt8192-pcie @@ -78,9 +79,11 @@ properties: - const: mac clocks: + minItems: 4 maxItems: 6 clock-names: + minItems: 4 maxItems: 6 assigned-clocks: @@ -160,6 +163,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