Message ID | 20221112091518.7846-6-linux@fw-web.de |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1187487wru; Sat, 12 Nov 2022 01:17:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf50EfvPZEza9iKtr5QZrYBJhYNW5HN6dH0vTI8+/A7MKZ1lsR+9fkiaQJ4Jbud5bUZQGp1Q X-Received: by 2002:a62:838f:0:b0:56c:8b7:f2dc with SMTP id h137-20020a62838f000000b0056c08b7f2dcmr6345208pfe.16.1668244647781; Sat, 12 Nov 2022 01:17:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668244647; cv=none; d=google.com; s=arc-20160816; b=jzCHY8sRt7SD9uo9N7wDccRFVGKLRW0+O7zgUiz192VeYNZmLqJ+y3zeqaKZsvuLs1 423kOE1Y1juKjzBso1Ibiz6/6GjMVGyx2BNCUp7DY5yTEaXtjD87jZT+bsQHorpPiCf3 FTNwuyV2L7SDQGovXXZUzRkKdoRWYeM/EV3aA//O8yiC6OWwIBXBW8zRCPK6MPYcuGt/ C5Gyx+Gf+fP9Bl6zfHru0O6qWQ17EjCsLEtwRnE2XtySYLE0abcyrImaEUFHP1itLns8 Wcg1eC6z3DDB+ru/9qZfXWrKD7Yy5lLvgCUzub01flHSTxXZbZAVhS+L09e2NkkHP85m EXxg== 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=NeLnuvum3jUmZEq04v6lfVUx02YHsRA5xFbxWTDqAZw=; b=Ip0Y+WKkrkM0iFGZJJRffPYCVHG8bZ18kbYb7d04kZKnUbYheueq8kTvN3Ftv+xE9/ HN/kOhlZ2s8eVLe3rGEeadMgTKz3KOYqDMbCHMD3T+s4LB+l+JEFZFmC2h5kjXEUsYY4 25UYW+VvPuitaUU7xTm4iaJtfeh2oOUvRK7paYU03vkuCvypHz/+tWKt7fZbbb5k7ZvG j4eOPSmug9nXNrCimVCRRiiQbSBS3ph+syVExkUTE1IiWRgQjuRT6msgreoObb1oioqb 9eyPntXIKmf8BsL9TLYEtPclzmVi9jwNA+wH6IR43DduQYOmd7GMobbiW7ZAfhboXKCq +cRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=kph56Its; 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 h3-20020a17090acf0300b0021305bbcb6bsi4687711pju.90.2022.11.12.01.17.14; Sat, 12 Nov 2022 01:17:27 -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=kph56Its; 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 S234839AbiKLJQG (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Sat, 12 Nov 2022 04:16:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234683AbiKLJPm (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 12 Nov 2022 04:15:42 -0500 Received: from mxout2.routing.net (mxout2.routing.net [IPv6:2a03:2900:1:a::b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2CF217042; Sat, 12 Nov 2022 01:15:40 -0800 (PST) Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout2.routing.net (Postfix) with ESMTP id F188360449; Sat, 12 Nov 2022 09:15:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1668244539; 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=NeLnuvum3jUmZEq04v6lfVUx02YHsRA5xFbxWTDqAZw=; b=kph56ItsEfXV5GUvtEk8fPOJQJb9wm9QxyCs4Yqh/lnyMdLCLI1wkokY03WCY0Gb3P+ejb x+uovfnH9VydaKKQCpIBIYrw9grjskfwSspJ9T6aPv6V3y4h4T3UuV3UNFLvQC7fCeGUfi U0uT94cec8PxziVbPWuhNvTqfjlbLBk= Received: from frank-G5.. (fttx-pool-157.180.227.41.bambit.de [157.180.227.41]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id DBF3E36065F; Sat, 12 Nov 2022 09:15: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 v4 05/11] dt-bindings: PCI: mediatek-gen3: add support for mt7986 Date: Sat, 12 Nov 2022 10:15:12 +0100 Message-Id: <20221112091518.7846-6-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221112091518.7846-1-linux@fw-web.de> References: <20221112091518.7846-1-linux@fw-web.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mail-ID: 0c30f0d1-0b1f-48d0-afa9-4e610343be72 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?1749281299814160158?= X-GMAIL-MSGID: =?utf-8?q?1749281299814160158?= |
Series |
Add BananaPi R3
|
|
Commit Message
Frank Wunderlich
Nov. 12, 2022, 9:15 a.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> --- v2: - squashed patch 2+3 (compatible and clock definition) --- .../bindings/pci/mediatek-pcie-gen3.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
Comments
Am 12. November 2022 10:15:12 MEZ schrieb Frank Wunderlich <linux@fw-web.de>: >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> >--- >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 > Missed ack i got here: https://patchwork.kernel.org/project/linux-mediatek/patch/20221029175806.14899-3-frank-w@public-files.de/ Acked-by: Jianjun Wang <jianjun.wang@mediatek.com> regards Frank
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