Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp13332672rwb; Sun, 27 Nov 2022 04:09:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf4pxnyV+U/XEAJ/5TK5LhaGpV/wP66ZZ6o7l2yWErLgRBEaRoO6nu0epfz7HF29y54K8luU X-Received: by 2002:a05:6402:5388:b0:46a:f4b0:2d23 with SMTP id ew8-20020a056402538800b0046af4b02d23mr5082860edb.78.1669550958708; Sun, 27 Nov 2022 04:09:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669550958; cv=none; d=google.com; s=arc-20160816; b=QPotsk+1yLHNGPC0DBEA97B27GH/e2I7BSRdZKS/HAnRs+6+/iT1Smfpo7F+JGZ3Yc avtAnEOHQTGTvcitKCXWsTzMHN+/PLJMYS6gLv0KysF5+SIlFrrW5pRce+kp9NAiSuW+ TG2xyxA4/ZaFm2OB4KgyF0Wl0icA4G1UX2H7wZuju8fg00f2Xv52Nsye0ZbWF/WSp+un WOOmifo8Ojoa9hciuOp5tS6E1SmXqPsRa9hl+ZiLbdXqgerAWgEJmk31uBQOYWfBCtAR fZylQXC8lsj3Tu1e31rR7AQWr0PFbW/T8M3CSpbLJvwWjOW24tm2d1Zi0LCwF6hALRIC yYOA== 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=EJOqtkf4M1ebGM5Xi7j4/YDkzCfTWa8PiFMyLTAYIew=; b=Ahx5/d2anwhdrh2+sMJbs8uJOkzIuSYuaQD6X2AcAPS0DqW0pWQlwajlP2543n24ZI LZ2WK3FasR+bBO1M48zNk3pR7DJE8LEjxTRrKUij92jkwmUhUOkK6TWywuS4ZXSkYp5c o4Mv7+0wSxb9T1OPQnj0bNydc4/7B2VjITxyQMs3WlTgM8vwv6Sm6uCWWjj6jG91NQYy kq8RDRkHRMgMLAzB7oyiMrNP5+7XVWf3cT/vW2tFvDqXrD/9hnlT4cWdAVWbS0Qkx2xJ 371GZBssTNJ0ZmPplAlXPt8UAEzVJLb8CN20SW4GeThvsBcLs1Ibd+BKMZt0JW6nbEbk degw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=ahuA7yrm; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg12-20020a170907970c00b007827639faffsi8738559ejc.760.2022.11.27.04.08.58; Sun, 27 Nov 2022 04:09:18 -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=ahuA7yrm; 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 S229706AbiK0LmE (ORCPT + 85 others); Sun, 27 Nov 2022 06:42:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbiK0Ll6 (ORCPT ); Sun, 27 Nov 2022 06:41:58 -0500 Received: from mxout1.routing.net (mxout1.routing.net [IPv6:2a03:2900:1:a::a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 622FEA472; Sun, 27 Nov 2022 03:41:56 -0800 (PST) Received: from mxbulk.masterlogin.de (unknown [192.168.10.85]) by mxout1.routing.net (Postfix) with ESMTP id B41F740326; Sun, 27 Nov 2022 11:41:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1669549314; 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=EJOqtkf4M1ebGM5Xi7j4/YDkzCfTWa8PiFMyLTAYIew=; b=ahuA7yrmJH1HHkreu0Ufkrj5D8c6Ynz9xbRtaFDdRLWb2BzBrR4xm19J7dxn80bEvhVwDI A5KoJ6qneOSuVlu1saIKNKn43FOs85H2Yy1YR9bYfdU7JbssZ9TVuWuNrjcOcPquIsOHLM 8Rl1e8KwVHmT0prbYVHdpN/7drxZVr8= Received: from frank-G5.. (fttx-pool-217.61.157.144.bambit.de [217.61.157.144]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id 6D0301226D4; Sun, 27 Nov 2022 11:41:54 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Ryder Lee , Jianjun Wang , Lorenzo Pieralisi , Rob Herring , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Bjorn Helgaas , Krzysztof Kozlowski , Chunfeng Yun , Vinod Koul , Kishon Vijay Abraham I , Greg Kroah-Hartman , Matthias Brugger , 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 Subject: [next v7 4/8] dt-bindings: PCI: mediatek-gen3: add support for mt7986 Date: Sun, 27 Nov 2022 12:41:38 +0100 Message-Id: <20221127114142.156573-5-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221127114142.156573-1-linux@fw-web.de> References: <20221127114142.156573-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: X-Mailing-List: linux-kernel@vger.kernel.org From: Frank Wunderlich 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 Reviewed-by: Matthias Brugger --- 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 ef5cc1fc4d10..7e8c7a2a5f9b 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 @@ -84,9 +85,11 @@ properties: enum: [ phy, mac ] clocks: + minItems: 4 maxItems: 6 clock-names: + minItems: 4 maxItems: 6 assigned-clocks: @@ -169,6 +172,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 -- 2.34.1