Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4631448rwb; Mon, 21 Nov 2022 09:50:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf6NhnIEpxu6yUGMl8AY5EOtWeUITgAwVWyyxGfDj/3g3pu6sbNKJRQkmslOoAUh5fbo2Vpa X-Received: by 2002:a17:906:844c:b0:781:aff3:c68d with SMTP id e12-20020a170906844c00b00781aff3c68dmr16946731ejy.36.1669053013715; Mon, 21 Nov 2022 09:50:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669053013; cv=none; d=google.com; s=arc-20160816; b=z1CZbtL3it+++cy+ALxw8AHXIg6rGbfzgrprCtfUAWfnor8vej9tyUi5HA7WaAWcjQ pp0LId0/Jzhd24KSGCbVdQFJIbZyZrMNFkfhdOKQnJ0A1GQEu3fhv4zYIV/wJIq8U6PI SsKqdyvT58Ps0SPkC4K/gTat1jPqxFYYsAYV9yr2ZjAyTi0aNf0R0EDzCAJ49nnazn0m w4AcS7kfptKb/pX1DxgXxvu7W7j2uCBL9QvlFiV/hsyzYpM3tZteBZ4MOxbTaTxMlYfG 7RUM6PNd7N0LhC1JRctdsLXMDyWHDqJdefO5cyhecM95zmqTIMlHTCuJkNYyM318GO2f HF3Q== 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=wQ34R1ClvRJ30zGsVGp2RiEaSuUp9nthQZpzgznhpr8=; b=BxHY4e08BRWMBM2u3TbOXxOjsgMnhoJ2j6D/B7KX7yLsrZwqyPDFva7cIKFStqcrH9 TwrK3PyquYPZ7yNX7L+gHNq50k344HJ+h0V6hI6EmAqJLZAOYb7osz1UQmpjDMrN4n4P a4B0sT8J4xAPg9hmIiN8dRfN7vfZ9pmChR+jHEx1262fEwVc9Vx6LPsj74aDPOKQbd+a 62Pt50ylFcP3azPCrnztoNtF+m8onBgVrXk473A/dEHMX/rX0TpKYS30fBksIZ/iXA1h op/iDjH7Gqwp6cTsM+CFm986Nw7ueUSLIHo2IfCcOSybLRI08hZe5yBaMvoaVIg17+l7 T4Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aMKwG0ne; 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 xf9-20020a17090731c900b0078e15c30a6csi11091041ejb.559.2022.11.21.09.49.50; Mon, 21 Nov 2022 09:50:13 -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=aMKwG0ne; 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 S230121AbiKURFs (ORCPT + 91 others); Mon, 21 Nov 2022 12:05:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229947AbiKURFg (ORCPT ); Mon, 21 Nov 2022 12:05:36 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DD25C6D01; Mon, 21 Nov 2022 09:05:35 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id i64-20020a1c3b43000000b003d016c21100so3671367wma.3; Mon, 21 Nov 2022 09:05:35 -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=wQ34R1ClvRJ30zGsVGp2RiEaSuUp9nthQZpzgznhpr8=; b=aMKwG0neuXdoNBJBy55LDxor41lGbfQMps+JlNnHqgoiOxjrPOtxdSE4RsHOecn/zZ UL8K7CG/gfcDLfDwRG2eluolShQ/8EH+mKVLF9yhV+Jd76lhsOyTqeJbI2W5X9IPIxh1 yHRkJ91sF/u07+Rj0pUzoR3KynwVymat66kmdiUHqPs2Xti/MrOj4ll60J/uCVSR4XnX R42niY3I8FM6vWjMH6Wkrj8eqfXqLhk5K0GEyQqhQJVxTKkRONnDELnEBjspckBt68hg 0Ts0diRaHbiI/L+6P9aSduy/8I64EiyzVkMPsay2JUloz4KcNoCs3RphVpBxd18f8h0D xaYw== 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=wQ34R1ClvRJ30zGsVGp2RiEaSuUp9nthQZpzgznhpr8=; b=G/MHEG00U1g2ZeXtVicB8Lgv4+votxpygOOWJAlLjjdUumMucgKlUd5EEWLalykHzo FhI0DBQNorI1bFryhRVKrYk9TEgf344Fr2JLHZx5Wti7FjewHNgYzaNsIzwXK2WX6q6d IYV8h8r1mvZaD/d9dhkt8rMMovHZgVFZD1WMvwauR/YHYFQmsNAt62qzRaGr7Cvv29LL WdbZXlHs4JuoHC60j9YsnvaJvdm98ggZiOF/ItMIEHOW9mWic3aSeDB1xWJ48EdtTkZI sHFQYKidjSCT76EzFLUBoO6ubKVXnjsGrNZ0fLjaYmdP9TNLdsF457A6NRwzG76DIaqF 991g== X-Gm-Message-State: ANoB5pmL8A4HKpRHSglpeggApjecHe9g6FfcuJvMOvYZt+3nX16Grojl UT1TSXJcPJUVRt5fH47E+QQ= X-Received: by 2002:a05:600c:6012:b0:3cf:cb16:f242 with SMTP id az18-20020a05600c601200b003cfcb16f242mr5063589wmb.82.1669050334101; Mon, 21 Nov 2022 09:05:34 -0800 (PST) Received: from [192.168.1.131] ([207.188.167.132]) by smtp.gmail.com with ESMTPSA id w19-20020adfbad3000000b00241c6729c2bsm8621083wrg.26.2022.11.21.09.05.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Nov 2022 09:05:32 -0800 (PST) Message-ID: <53d6f1a2-86c8-409e-6b4a-d4e0f181adde@gmail.com> Date: Mon, 21 Nov 2022 18:05:30 +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 04/11] dt-bindings: PCI: mediatek-gen3: add SoC based clock config 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 , AngeloGioacchino Del Regno References: <20221118190126.100895-1-linux@fw-web.de> <20221118190126.100895-5-linux@fw-web.de> From: Matthias Brugger In-Reply-To: <20221118190126.100895-5-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 > > 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 > Acked-by: Jianjun Wang > Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Matthias Brugger > --- > v2: > - fix typo in mediatek,mt8192-pcie > v3: > - remove contains to match only if compatible is no fallback > tested with series "Add driver nodes for MT8195 SoC" and mt7986 > pcie-nodes, dtbs_check is now clean > --- > .../bindings/pci/mediatek-pcie-gen3.yaml | 47 ++++++++++++++----- > 1 file changed, 35 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..5d7369debff2 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,40 @@ required: > - '#interrupt-cells' > - interrupt-controller > > +allOf: > + - $ref: /schemas/pci/pci-bus.yaml# > + - if: > + properties: > + compatible: > + const: mediatek,mt8192-pcie > + 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: