From patchwork Sun Oct 23 17:02:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 8063 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp70173wru; Sun, 23 Oct 2022 10:09:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6YVEKmWsIirkGEk1G0xZhjVGhUxS2rvYwACl9wvB9kcyvkUuyvVluWQjpDVc96UdtnuLgR X-Received: by 2002:a17:90b:4f4e:b0:20d:9f5b:abbf with SMTP id pj14-20020a17090b4f4e00b0020d9f5babbfmr35246705pjb.148.1666544958668; Sun, 23 Oct 2022 10:09:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666544958; cv=none; d=google.com; s=arc-20160816; b=kNzdZ1/ZfhIqWH1YBFqNW3ri293rVhnGkUleDz6Rjq+ckeqmIsioMP6ShDVDsjT6T5 0u7X+3PsWdp0ZOpY/6GFMQC499fFA6iMMunwF4VJjzcroQiZXSRJZJhJtHNtzKXHldHW Qm4jZr4akeKVZ3iQeIodmnJHzS/RHC169Bxg/D2ujp4/gb7JK8zTk9Y0ZIvD/vU9t30F SZtHFgkh0Xd4G9OVHb0spOp8Tck79GwuAYdCAe8zAmSXcLWJayCjg+d9ulwtQCF1oAol OT60SvBAercnUJ1u3FdWnG8hLKNql4m5RhbjLRxvEyERYobFMPMllg5MsbYQiE56NuS2 PWDA== 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=eWQAyMiyLzRjICRckdk9i8etw2ozKINbfjBDA1F++Do=; b=vQO6K0tRA8cW6Z0vs2iCovNWUwiECnixzJriEWSeUk1lMAmHufdQegZZR/4ycar5i/ Qu6BqZ1MdY8dUZAr66n5uughe5Ofl/nitGj29jkR8vOKwUKaW1UsclVHHizH810LL4xc hdA/nvz+oreOaG3SE8/Zv8a/UXOTgoRt4/TlOp+5lwppYmN9WXQq8GjP0bFL3E3R/106 oGo4K8vQy2VtbqyxfgnqnD8jjYqantN9A1QtUFrkJBqNeRIi29JRIRhCo/OmWp5476aP aQ2dwADKAmQ1peK3wyQpXyf2+E+4x2t+AycibwhrLj9XwH1jZ/btrnqEiVwWC80fjuuJ wErw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=YpLBExZb; 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 z11-20020a170903018b00b00183243c7a2dsi30975533plg.406.2022.10.23.10.09.05; Sun, 23 Oct 2022 10:09:18 -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=@mailerdienst.de header.s=20200217 header.b=YpLBExZb; 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 S230433AbiJWRC7 (ORCPT + 99 others); Sun, 23 Oct 2022 13:02:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230478AbiJWRCw (ORCPT ); Sun, 23 Oct 2022 13:02:52 -0400 Received: from mxout1.routing.net (mxout1.routing.net [IPv6:2a03:2900:1:a::a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 399965597; Sun, 23 Oct 2022 10:02:51 -0700 (PDT) Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout1.routing.net (Postfix) with ESMTP id 5DE374026F; Sun, 23 Oct 2022 17:02:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1666544569; 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=eWQAyMiyLzRjICRckdk9i8etw2ozKINbfjBDA1F++Do=; b=YpLBExZbOZiWWo4PCJib0wv7vZGXwRFeIvhqjrwDGbwI20KyvCqWOs+7KALnjuMK8YkkVf 0K2TX4DNbVQcNOevXi0BPkkYjbpfUZAc4kiuVklwwRuUsHVxPFJXYTEEUvBEj5k9Oxpbdi /QvL4Rx4b0p4KFzX+b+8sCOpI2Mazc8= Received: from frank-G5.. (fttx-pool-80.245.79.234.bambit.de [80.245.79.234]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id 803AB100671; Sun, 23 Oct 2022 17:02:48 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Ryder Lee , Sam Shih , Steven Liu , 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 3/3] dt-bindings: PCI: mediatek-gen3: add mt7986 clock config Date: Sun, 23 Oct 2022 19:02:34 +0200 Message-Id: <20221023170234.83621-4-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221023170234.83621-1-linux@fw-web.de> References: <20221023170234.83621-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 4dd0b3e8-60f4-4111-8ab6-3e4dc2df3d56 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?1747499046520175202?= X-GMAIL-MSGID: =?utf-8?q?1747499046520175202?= From: Frank Wunderlich MT7986 needs 4 clocks for PCIe, define them in binding. Signed-off-by: Frank Wunderlich --- .../bindings/pci/mediatek-pcie-gen3.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml index 3662422b38ea..e6020e684c00 100644 --- a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml +++ b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml @@ -79,9 +79,11 @@ properties: - const: mac clocks: + minItems: 4 maxItems: 6 clock-names: + minItems: 4 maxItems: 6 assigned-clocks: @@ -162,6 +164,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