From patchwork Thu Nov 17 16:27:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 21790 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp497494wrr; Thu, 17 Nov 2022 08:32:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf7UqKChH5nW7h0UYIM7/9J0KJRLTQQS2r3+DDvy0U9rgfuhWLDRR0m4l8OIBXceK8XKdkXl X-Received: by 2002:a65:5782:0:b0:470:3fc1:5ed0 with SMTP id b2-20020a655782000000b004703fc15ed0mr2756376pgr.370.1668702775991; Thu, 17 Nov 2022 08:32:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668702775; cv=none; d=google.com; s=arc-20160816; b=g0FL0sOMPNb1m2XGq1bNBiMnI3KVdovVoOmrzms3QPkbLApLi+5Re0NvGtGmFuuivF RFXSd5/WUdnCVuccEi+2Bo+Tmlgan5Q7j0zVvAtL0no04a65seNw+pqyizWQ9Kq45f6i JvjENoRTgb4tvS6YjNTfvQJFQ5EIwYENj8A2dYvE3cZUjuYIxr/5OOfUT686uVXXkMqp go1ECILYdIsbRxtDq63l4/UzagGZIg9XITnd5iVRl3N6Af1hCrId2ahg8FmQimi1Rej7 dXX0rqeeA4TZf6V3eKFOgfgnAGZaB9pUbyvZGwOvcux5t7/pul48asYVuB4LVQ4KXGby BFJg== 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=HCq6Ar2PkhD4OoGWAuL/w2DeeuE2Tk+RaLJ97BRtlww=; b=MapM2uapWq4AIv3o9ren7mlWFdzBRL6SPrtiYv1Ha6fWMSNmxMczjsFxCjdTIgaRMV BzaO7DwB92zBO8MKMvhgaVf7PleNcH35v5yWqizPbLN4H2o72jeUN8EWTFRlcUd4dRMw DQltUHA/eivMXtiECSXsdC9HrEi4/JtVG0k4oWx07uKRAuLpO0thTFTEkON0JaIroA1X syLZpVlKUfZphu1VgXz0pOpwunb8mv/YouRwzeblrRyYYzdN7YySs8IJNAnC7XLAfKQ1 v9kWxBAAkCU/870IAeDVPUntUZaAWa3XoXmtdhEDYCZLb8l0UPxuQaFRW0f7Asmf7o5E c11Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b="rMV/lodh"; 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 x36-20020a056a0018a400b0056cf72b41cdsi1434963pfh.1.2022.11.17.08.32.42; Thu, 17 Nov 2022 08:32:55 -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="rMV/lodh"; 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 S240683AbiKQQ3f (ORCPT + 99 others); Thu, 17 Nov 2022 11:29:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240595AbiKQQ2d (ORCPT ); Thu, 17 Nov 2022 11:28:33 -0500 Received: from mxout3.routing.net (mxout3.routing.net [IPv6:2a03:2900:1:a::8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 995507CB93; Thu, 17 Nov 2022 08:27:43 -0800 (PST) Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout3.routing.net (Postfix) with ESMTP id 93A2262637; Thu, 17 Nov 2022 16:27:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1668702459; 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=HCq6Ar2PkhD4OoGWAuL/w2DeeuE2Tk+RaLJ97BRtlww=; b=rMV/lodh61k0GdYu4Z5sNNQ+db50GnZUBHLoDv6d/sgNm7gHIY2U8sw121GFPFeDp9GDWw FME9pSpWq4h+Nf5yNyah1xxUvxB4lLpOZYKpVl/J4eOeR7lGDd+oDe2ZuKoTzdTXXe/TBo PYAw5qTQ95FY8SC9E4zuUGjHlCjASNg= Received: from frank-G5.. (fttx-pool-80.245.75.65.bambit.de [80.245.75.65]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id 5C6961003D5; Thu, 17 Nov 2022 16:27:38 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Ryder Lee , Jianjun Wang , Bjorn Helgaas , Rob Herring , Krzysztof Kozlowski , Chunfeng Yun , Kishon Vijay Abraham I , Vinod Koul , Greg Kroah-Hartman , Matthias Brugger , Paolo Abeni , Lorenzo Bianconi , Bo Jiao , 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 Subject: [PATCH v5 05/11] dt-bindings: PCI: mediatek-gen3: add support for mt7986 Date: Thu, 17 Nov 2022 17:27:22 +0100 Message-Id: <20221117162728.20608-6-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221117162728.20608-1-linux@fw-web.de> References: <20221117162728.20608-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 540b6034-3930-4f02-97d2-3d5b3601088a 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?1749761682381053824?= X-GMAIL-MSGID: =?utf-8?q?1749761682381053824?= 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 --- 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