Message ID | 20221118190126.100895-6-linux@fw-web.de |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp360518wrr; Fri, 18 Nov 2022 11:03:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf4klWytD7OH0cKbwn0Rt/uZlMHVzKElHXqKYTdaGWKARJXB7gV15CQ90Qv80A1Gnzjx4qhp X-Received: by 2002:a05:6402:1f85:b0:462:2410:9720 with SMTP id c5-20020a0564021f8500b0046224109720mr7314897edc.84.1668798224597; Fri, 18 Nov 2022 11:03:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668798224; cv=none; d=google.com; s=arc-20160816; b=Q65i+lany6oEjnPYHKPJXWLiI8wu2gqvDfBz4MOrIefKshXQ2clV7ERAx95n6U5QFE jTlipAPPMwe7jZEjYRW8UJkmF9FxzpOGf8IeDmQEaPvafoJsem1/dkXfk2DdSNPFMd1K Kvk2g+eORLEJjlPWPxSvCCeBfETg3TWlk/z4NuJYcYIdvKL87/dQ/J2mWlpGmRDPh609 4mQavyxOcg4pkk7mFlAvUJZYOmghQbhsWZz1/ja1N+Ihj5vn7itScBHPttu5lEBktv2L gP2HPbP1XNZ48CpzH95p7UXQmrSmvZ4TkcBGcCZPIMi5+0ZfKP4/6NpjcKWqYrNRtePT YJfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HCq6Ar2PkhD4OoGWAuL/w2DeeuE2Tk+RaLJ97BRtlww=; b=cJXIvGTTHN7Xjs44oCTCSIJZXvBXPOTYNvJUs5R2ENcK3rOLLyPgvGv0dr2nio/bq2 aTqF/tEwPmNo5rlz4etOKNhhRe9Nj7q1qxArPbn3KxKnLJ1R/QBsIE2BhtBBT7PhkmAD 5mPLfnBeo7+6qGvz5OU+j9UciAwGGQ3COfoJQUhudpkcDkevrnQV8BDVG6P2K6T3VSyl lP88rV+0ZW04M6jzL3r/F8sv77DcmSSLN6P9ioEmXPZMA+drwpp1FeAgNAzX6SyM9haB 22QotqQAmyMP0LTYGxjO8kPfB4YrLUUSyndUzNaVgo2plKHAls/U3PKU0Zcvbhmu9yB+ 9/vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=dLbEK6Oq; 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 z2-20020a1709063ac200b007ae0fe6198fsi2902131ejd.132.2022.11.18.11.03.16; Fri, 18 Nov 2022 11:03:44 -0800 (PST) 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=@mailerdienst.de header.s=20200217 header.b=dLbEK6Oq; 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 S243006AbiKRTCc (ORCPT <rfc822;kkmonlee@gmail.com> + 99 others); Fri, 18 Nov 2022 14:02:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242960AbiKRTBx (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 18 Nov 2022 14:01:53 -0500 Received: from mxout2.routing.net (mxout2.routing.net [IPv6:2a03:2900:1:a::b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBB59233A2; Fri, 18 Nov 2022 11:01:39 -0800 (PST) Received: from mxbulk.masterlogin.de (unknown [192.168.10.85]) by mxout2.routing.net (Postfix) with ESMTP id DF7D2604EB; Fri, 18 Nov 2022 19:01:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1668798098; 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=HCq6Ar2PkhD4OoGWAuL/w2DeeuE2Tk+RaLJ97BRtlww=; b=dLbEK6OqXg4Y29VGLlzXLdLUH0vx5bhiykL7giT8Qpi4c26CS+xjB+UgQ0p3F1Fq5x9MNH Rkv9anDKeIBvGeq6dRSAYGkwLMlcaiw+gjQWeBPmwY88S9FSVYLwdzhTdniZe8ZvhYsYnJ UV81cKeBFe15ZH0GZ88c0YAvwI5HnmY= Received: from frank-G5.. (fttx-pool-80.245.77.125.bambit.de [80.245.77.125]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id 900D612271E; Fri, 18 Nov 2022 19:01:37 +0000 (UTC) From: Frank Wunderlich <linux@fw-web.de> To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich <frank-w@public-files.de>, Ryder Lee <ryder.lee@mediatek.com>, Jianjun Wang <jianjun.wang@mediatek.com>, Bjorn Helgaas <bhelgaas@google.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Chunfeng Yun <chunfeng.yun@mediatek.com>, Kishon Vijay Abraham I <kishon@ti.com>, Vinod Koul <vkoul@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Matthias Brugger <matthias.bgg@gmail.com>, Paolo Abeni <pabeni@redhat.com>, Lorenzo Bianconi <lorenzo@kernel.org>, Bo Jiao <Bo.Jiao@mediatek.com>, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org, linux-usb@vger.kernel.org, Rob Herring <robh@kernel.org> Subject: [PATCH v6 05/11] dt-bindings: PCI: mediatek-gen3: add support for mt7986 Date: Fri, 18 Nov 2022 20:01:20 +0100 Message-Id: <20221118190126.100895-6-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221118190126.100895-1-linux@fw-web.de> References: <20221118190126.100895-1-linux@fw-web.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749861767408063842?= X-GMAIL-MSGID: =?utf-8?q?1749861767408063842?= |
Series |
Add BananaPi R3
|
|
Commit Message
Frank Wunderlich
Nov. 18, 2022, 7:01 p.m. UTC
From: Frank Wunderlich <frank-w@public-files.de> Add compatible string and clock-definition for mt7986. It needs 4 clocks for PCIe, define them in binding. Signed-off-by: Frank Wunderlich <frank-w@public-files.de> Reviewed-by: Rob Herring <robh@kernel.org> Acked-by: Jianjun Wang <jianjun.wang@mediatek.com> --- v2: - squashed patch 2+3 (compatible and clock definition) --- .../bindings/pci/mediatek-pcie-gen3.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
Comments
On 18/11/2022 20:01, Frank Wunderlich wrote: > From: Frank Wunderlich <frank-w@public-files.de> > > Add compatible string and clock-definition for mt7986. It needs 4 clocks > for PCIe, define them in binding. > > Signed-off-by: Frank Wunderlich <frank-w@public-files.de> > Reviewed-by: Rob Herring <robh@kernel.org> > Acked-by: Jianjun Wang <jianjun.wang@mediatek.com> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com> > --- > v2: > - squashed patch 2+3 (compatible and clock definition) > --- > .../bindings/pci/mediatek-pcie-gen3.yaml | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > 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 >
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