From patchwork Sun Nov 27 11:41:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 26331 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp5072782wrr; Sun, 27 Nov 2022 03:42:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf4QLqEQORgV3V9CSiCx6emjpMgavBCi3VnjjgW2o3GILGIJ/nPNeB0KhhSjpVAVtu/7p6sn X-Received: by 2002:a17:902:c283:b0:189:89e2:540d with SMTP id i3-20020a170902c28300b0018989e2540dmr363028pld.73.1669549378862; Sun, 27 Nov 2022 03:42:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669549378; cv=none; d=google.com; s=arc-20160816; b=mIqmGp+GEeyJ1HJ11wbIvXY0zw4TwnFwfADdTZ0iaCX5LMtsyutd+oOjxBVX7TYhwf EZiEov14CrI1fKm2PVD5lSC6i9iAutYWTC0E2Qc39i8gV4FYwpYq/jh81Ezxhgk+W5op xSKLC22UUT4CDBgVlcSfLqPWQcgWdBkjOptwfRUJXrEGtB/vYmABvsHVnvTXP2j5Zpya AB3FxU9A0OgSmOrRDy6r/ZnetpiJzyQDUVzosKnVFdY35TVdlne9UGm6N0xO2o06WVIx ul8jRbpDC2P2dJfQAAy6ZvYFIo0uX79lXd42yQGtb3spannnY94jODSWCphET8mMXqQ3 Lacw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f2-20020a056a0022c200b005750855ff7dsi2567424pfj.107.2022.11.27.03.42.46; Sun, 27 Nov 2022 03:42:58 -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 + 99 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_Wilczy=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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750649409223057931?= X-GMAIL-MSGID: =?utf-8?q?1750649409223057931?= 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