Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4595883rwb; Mon, 21 Nov 2022 09:25:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf745Lk6xJLdtOt/bksrQgzfeegbqpgQ1HNsZlkk/j9gaqvMhDarqDVKhatZMZqKDIcWs2gw X-Received: by 2002:a17:903:4284:b0:189:f57:8f60 with SMTP id ju4-20020a170903428400b001890f578f60mr140315plb.65.1669051523865; Mon, 21 Nov 2022 09:25:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669051523; cv=none; d=google.com; s=arc-20160816; b=JaxAnZ7TkKyhBJC2Lh4B//yeMQz0fazgMRVPHqMGyVKtwBVD73vnTihpah65f1NxrM TXe22cwLbmH3a5/WoQrb2RcKCP1SSrP5D8ualMKGDIoMlXEOIlR9PvsC42DVteKlVTWy TqLdsM+cNkmVv/CFpHCFGg/xcqG3VcGTjyPTOOHyVBeQETMVjcY7/p2aFPnzFeecNzfn LskcWKv709vB/Ibt0XmPi7KPTLpTef8baWnr2sKu4ImlooUWFqdQzYNFyEt8K/8GmmP1 +K5qQnPSbohai6O8/sZtUBgOVgDCkDMOoeI3pE8lDGGgSgEzRYVPJ4i2Ym/K60Ygoa75 c9kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=iOdZm+t0ZjNb9E1ZMCmZ/u5jw9aDGTn6ypSEA7WGmII=; b=zDBtRefgGL1Jhp816HDJNiTgbvSfBS0iHEW/2Dxnxxv7X2fEQfhMvW/CmiQXtpbpb8 aD/ZEjIMExk4jahwqMQchdvDEkw2gkzrbVtfoeG4CR6bI/fqquyBKnOhCvRH1Mi68qH6 sItLs73b01ZjPt2re2iv8kdavFbyYRenBc/5ukWzDG0i4E64i9CuzRH+Pdh8WMdonqy1 2v6FogWoRPDuaUX3/ecZfFqjyes3HsOFewGOSKR5W9m4MBf7rNzhGZbL9I1UDQsgO/Z8 Wx3rvE7wzJM61/S0dK33QcU3WiXlsuLNIbbPa5hLnaPe1YxMHsfKjxDTiJ1MxMZBCF0N Rd3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Bri+Yqkx; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f14-20020a170902ce8e00b001853ad3944dsi13578402plg.480.2022.11.21.09.25.12; Mon, 21 Nov 2022 09:25:23 -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=@gmail.com header.s=20210112 header.b=Bri+Yqkx; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230499AbiKURQV (ORCPT + 91 others); Mon, 21 Nov 2022 12:16:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231530AbiKURPt (ORCPT ); Mon, 21 Nov 2022 12:15:49 -0500 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C56CC8C90; Mon, 21 Nov 2022 09:13:53 -0800 (PST) Received: by mail-wr1-x430.google.com with SMTP id n3so4296778wrp.5; Mon, 21 Nov 2022 09:13:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=iOdZm+t0ZjNb9E1ZMCmZ/u5jw9aDGTn6ypSEA7WGmII=; b=Bri+YqkxR9A7oBnDSBN5S+vyOvU73bMGjpOqXuh54mO57W/8vv2dISgFfJOv3GVPOO oprFGOYKvPDkUXBkinoQBz9ugVtWHtbvoxjmtsz8uoKHrn3o4h7g8HzFMT7pZSWm3tQl ClJNBQoFkCPAL0MU349QGlUMLQGqPY86xykMZKCWkbcHBRDAz2s9EzUbcjmMdXrFaeWy KXJLqSv1NIG7+lIf0t23v2cu1b2bFHGZMN8NVVK6CAXLcA04FgEkSIorOTi9/NgTZfPk 2ZWmQ/1KOoaRIrZVUtuN5dcjuJheAkvjOXD8diWI7ljW/v9ofHCjrFQZKA5aY3kxeK6O TpsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=iOdZm+t0ZjNb9E1ZMCmZ/u5jw9aDGTn6ypSEA7WGmII=; b=ZelV5ALgDxQc9l73EThonb7YOuonhjnLD2RrueobYNmgdWxdan8zUueLoojpFY9WNh 6Dkl3YCkizBZrFbVjvHSrp1azrsmsPVgXBC5VLrjngCnCXoGrtwsiCk63dJxZrBxNthJ iPpzrE4Lmvp/sxViL7mrFHa358dlGPQFwaOH2qrWymKpKINQQqk7jcwsyqaGfLoFOuvh Wfmo8aLIB6HN7wzm7/8t42ITi6AY67poy0XJNmAbgB+IMRK5KeccFWKX1nVJj7QM08Ar u9qpgC/S0XBMgOE3p6D1Rdl2QsfrrzwrGTUypNEaMkPTv+WZc+tVC3rUJsHDFQq/FtsV vzcA== X-Gm-Message-State: ANoB5pnGctMdzYfeOgpCpReA0XBSq1As2xs/PZfBGGFiMOHWbfGvZbWv vWkDWEPY9QcySJl7hEGWGYY= X-Received: by 2002:a05:6000:10c6:b0:241:d021:52d3 with SMTP id b6-20020a05600010c600b00241d02152d3mr4812424wrx.540.1669050831503; Mon, 21 Nov 2022 09:13:51 -0800 (PST) Received: from [192.168.1.131] ([207.188.167.132]) by smtp.gmail.com with ESMTPSA id 4-20020a05600c020400b003b492753826sm13911425wmi.43.2022.11.21.09.13.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Nov 2022 09:13:50 -0800 (PST) Message-ID: Date: Mon, 21 Nov 2022 18:13:48 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v6 05/11] dt-bindings: PCI: mediatek-gen3: add support for mt7986 Content-Language: en-US To: Frank Wunderlich , 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 , 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 References: <20221118190126.100895-1-linux@fw-web.de> <20221118190126.100895-6-linux@fw-web.de> From: Matthias Brugger In-Reply-To: <20221118190126.100895-6-linux@fw-web.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, 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 On 18/11/2022 20:01, Frank Wunderlich wrote: > 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 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 >