From patchwork Sun Oct 23 17:02:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 8062 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp69938wru; Sun, 23 Oct 2022 10:08:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6NE4XrX7rHE+RTZmJZdM7KoQU1BJh0Mfor30nOyymjj9RBv+hVveq7oP7MhufPJ1mA3b+b X-Received: by 2002:a63:5d5b:0:b0:46e:f010:d0f7 with SMTP id o27-20020a635d5b000000b0046ef010d0f7mr4971315pgm.585.1666544931633; Sun, 23 Oct 2022 10:08:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666544931; cv=none; d=google.com; s=arc-20160816; b=gdvjpwh/P95KQz4GK+yr9jpxSsZpPVQVHHYpnLkfp5Pdz76l2jLmd367ZuEzU9524q XbK/WIl/ComfsvvWls+czXQgnpGYddeoNiPwEq63amVj7Dp/cM0GmWH9EJtuQ1FcT0K7 ZybQMYVhmBEPgOYmQHrxV2Zx/81SgHCRGmaTpUttHtgZKRS7v1dII5xLNNKx53HqINUd 8WF7ExeVuijmz6C7wRqsjDb10N5LlHns+RJLE9iRSAfpydu+UJqSvRb2e4KGdrL7PM7Z GAjbdhNitkg55QzQouiBEk5erfnLuwiu173SQFZEWDKmCtaTWc5eFuOX64AttnPOnY5J 7yIg== 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=rwFE1JpvVkZhLIb5aKidjKDQSmDh1ZnGM4I9BlBkkQ0=; b=nwLI95r7BbxaNfLTT22q8DTcTt7m3svIpoZFVDDLa7UoTo9v54DgxHFR6si4g+K5xq LLA91soJzRvOxvRUOECaM1PPBr1V0Jh2CpaEImxjqPBmfwTWyXwvs1qsSfMnXn1RSQEa t3CgQ0LK2RsrsUwD3AaX+vYbmdhU3ivzwe7nBt14YgIDThIJZCv8fcnqvNicvmxiOcEM lAqA94QuOJe+uyIui4I19KLti7AKKW23hCSJJ5zbHleJTOF44Xoj5WSxaPmpWaDH5aJp pkv7GTQ0OegFcUOQ2FO6408l0hiT7+Yuk5/EkwMD8UUU4EFoYa5/s5rCjtmMA3wn9nYg sFdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=alwcOCNk; 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 f1-20020a170902860100b001868bdb66cfsi4664019plo.461.2022.10.23.10.08.37; Sun, 23 Oct 2022 10:08:51 -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=alwcOCNk; 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 S230481AbiJWRC4 (ORCPT + 99 others); Sun, 23 Oct 2022 13:02:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230468AbiJWRCv (ORCPT ); Sun, 23 Oct 2022 13:02:51 -0400 Received: from mxout3.routing.net (mxout3.routing.net [IPv6:2a03:2900:1:a::8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C097767C92; Sun, 23 Oct 2022 10:02:49 -0700 (PDT) Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout3.routing.net (Postfix) with ESMTP id BBD56605C3; Sun, 23 Oct 2022 17:02:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1666544567; 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=rwFE1JpvVkZhLIb5aKidjKDQSmDh1ZnGM4I9BlBkkQ0=; b=alwcOCNkQtKqt/7V445bxa60qOfa5UV59BT4a32jeGPRkwkcxDMqzhVGH0TVru4LLcAHAs MaTr24wkkSaITF6YXJ7xBs3Oqn76V6+n+ttD0T/KMEGxAsOID5BZntT9b7sDDY3D/W8kln E2DEQMSIJtv+QXa1uSd9sh17OE0EFL8= Received: from frank-G5.. (fttx-pool-80.245.79.234.bambit.de [80.245.79.234]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id ED33C100671; Sun, 23 Oct 2022 17:02:46 +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 1/3] dt-bindings: PCI: mediatek-gen3: add SoC based clock config Date: Sun, 23 Oct 2022 19:02:32 +0200 Message-Id: <20221023170234.83621-2-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: 7c9c4be7-094d-4990-85c5-a3a195e083f8 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?1747499018340288098?= X-GMAIL-MSGID: =?utf-8?q?1747499018340288098?= From: Frank Wunderlich The PCIe driver covers different SOC which needing different clock configs. Define them based on compatible. Signed-off-by: Frank Wunderlich Reviewed-by: Rob Herring --- .../bindings/pci/mediatek-pcie-gen3.yaml | 48 ++++++++++++++----- 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml index c00be39af64e..af0d2201746d 100644 --- a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml +++ b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml @@ -43,9 +43,6 @@ description: |+ each set has its own address for MSI message, and supports 32 MSI vectors to generate interrupt. -allOf: - - $ref: /schemas/pci/pci-bus.yaml# - properties: compatible: oneOf: @@ -84,15 +81,7 @@ properties: maxItems: 6 clock-names: - items: - - const: pl_250m - - const: tl_26m - - const: tl_96m - - const: tl_32k - - const: peri_26m - - enum: - - top_133m # for MT8192 - - peri_mem # for MT8188/MT8195 + maxItems: 6 assigned-clocks: maxItems: 1 @@ -138,6 +127,41 @@ required: - '#interrupt-cells' - interrupt-controller +allOf: + - $ref: /schemas/pci/pci-bus.yaml# + - if: + properties: + compatible: + contains: + const: mediatek,mt8192-mmc + then: + properties: + clock-names: + items: + - const: pl_250m + - const: tl_26m + - const: tl_96m + - const: tl_32k + - const: peri_26m + - const: top_133m + - if: + properties: + compatible: + contains: + enum: + - mediatek,mt8188-pcie + - mediatek,mt8195-pcie + then: + properties: + clock-names: + items: + - const: pl_250m + - const: tl_26m + - const: tl_96m + - const: tl_32k + - const: peri_26m + - const: peri_mem + unevaluatedProperties: false examples: From patchwork Sun Oct 23 17:02:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 8064 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp70266wru; Sun, 23 Oct 2022 10:09:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6QZ/PsAnBfxKCEEVViLKVz1lC+G2I7gWATMoG0jQjPk72uL9nVftMISnBoxxkincESzG0g X-Received: by 2002:a05:6402:254d:b0:45d:3ed3:8aa9 with SMTP id l13-20020a056402254d00b0045d3ed38aa9mr26508212edb.157.1666544971291; Sun, 23 Oct 2022 10:09:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666544971; cv=none; d=google.com; s=arc-20160816; b=Rc+JkHtE9IuCYQAMAkTjqzb6wHqMZ0N0KUenQxw4Gzl18f0SX3NtyWP60LtqUvp3Wi atMjaSMs24lipoORdHoxxtLLFpOP3eqvovUiFeWeAzSdTinlrofIkx9eG7hHTjP8Wr8F y7h6whP0Xy9Qw9lgwmAjI6wVrT4OFeuTscoS8GwDPFfx+qnl7V9wulS6RNCpW5EIP6lL jvPj5XXrNBxtwvKP3dTaa7FKXWAsLlAo2Q42Tqs3zHQ7xpBLYEJLbhmCbiPjCAQcUP3Y mE2J3VkudA+X1PJA4gp2/gi9dlRiO414ImhDvRuAcE0FzXhR3j7WoxSVPBXzs3CZv/3M G1Sg== 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=+/+qwOcJ+Ykv/tsQAvaNcC2RFDOgqrMsuP9mqjxWRnA=; b=C8o5HnsgO5S+CsvRKsWE9qjodnZKCDMvuJzaENDD0EQ2TIj53d8HbGk0odOm1ANoiF OVrzrdEsWYqSWKUeSnRPskHddmScIB47M2ub46cp5n6k+xpiQxA6EEvOsxnfamCqkT8w wq7KVFsC8LJ54aJZ11E/J3UWM2bpaO7Qz/MqnZ897Mad3Q5XlcIr3FESLLbz94m14FQo S4ODq3wtaXAHb83LFfmNGmWreV0NpBjZP7Dm+fF8M6MRKc3wMGsEDWicaU5A3mTTGReP ZGTSMJkLt3oBkNcxhWrVpS2Zo/I1iSml8QppKkUrW+IVkK0gtHFyinLu3MJJwoyAcHLe HJnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=LVZpdg+q; 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 u12-20020a170906b10c00b00787abcb1ce0si23807099ejy.679.2022.10.23.10.09.07; Sun, 23 Oct 2022 10:09:31 -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=LVZpdg+q; 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 S230495AbiJWRDD (ORCPT + 99 others); Sun, 23 Oct 2022 13:03:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230474AbiJWRCw (ORCPT ); Sun, 23 Oct 2022 13:02:52 -0400 Received: from mxout4.routing.net (mxout4.routing.net [IPv6:2a03:2900:1:a::9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F94067C99; Sun, 23 Oct 2022 10:02:50 -0700 (PDT) Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout4.routing.net (Postfix) with ESMTP id 895A710085C; Sun, 23 Oct 2022 17:02:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1666544568; 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=+/+qwOcJ+Ykv/tsQAvaNcC2RFDOgqrMsuP9mqjxWRnA=; b=LVZpdg+qdJ8mDixU4po/b2W0QM58yN/XDmsrGJHfrBjdiWXN6UFnr/hVnILmrgliAOQ7KC uc1xHy3g40URxyRYBgMtTzX6EZvo5rYzXk1OCBPIwatL2+xtedyt/UNqmzFlsc9RHt6Pzh MQSAy4BKccYrLk2GW1OdKaRjcFqtKxE= Received: from frank-G5.. (fttx-pool-80.245.79.234.bambit.de [80.245.79.234]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id B2C9F100352; Sun, 23 Oct 2022 17:02:47 +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 2/3] dt-bindings: PCI: mediatek-gen3: add support for mt7986 Date: Sun, 23 Oct 2022 19:02:33 +0200 Message-Id: <20221023170234.83621-3-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: faab5a44-dd36-424f-82ff-370abfa0d751 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?1747499059884528249?= X-GMAIL-MSGID: =?utf-8?q?1747499059884528249?= From: Frank Wunderlich Add compatible string for mt7986. Signed-off-by: Frank Wunderlich --- Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml index af0d2201746d..3662422b38ea 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 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