Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3138134pxb; Mon, 18 Apr 2022 17:01:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzf1yjPAeQ5rp1nkiJnAckz+3UUY6pfbPhMOEe5dhVyxVIHdOIoqFLrx4V/OqkCtJaD5XL/ X-Received: by 2002:a17:907:7f0d:b0:6e8:ecfa:996c with SMTP id qf13-20020a1709077f0d00b006e8ecfa996cmr10806528ejc.7.1650326484754; Mon, 18 Apr 2022 17:01:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650326484; cv=none; d=google.com; s=arc-20160816; b=cuzMq5ov+mEIUb03q5mEzPA0JyFiCnjgn1GbytUxR3iQ5qEjWGT3N9d9xqc1MPu1Eb yHBGpioiyJ+nvVJXkPfNn18zbOKFdZS3Mw8prjZnQ5nBAsms3OQZduc/ZS+QF4eoNmC8 lMjivgXBRWMMotJPozJ3JDS2ktWFEgF5LrBoZL+7dxl9rlJ+oKwEWRXQ9vUyfvju0sD7 s4Oyc0Op7MGV2HwBTjyUdUhZrXcmyMrtKsGT7eVVLgu8lsSWj0H6axHQ7cMqCH1YQuUg 2+0RpiWimPkrHdYe0/IooCLgDoNhjE618wPMLUa4qumK9VP9SBY3v60iRcWkWG969DCW 2Yww== 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=Su46te7HNW++2zKgguxu+adMxrQIv2yQPrMKfptRGag=; b=D/d3ziDmGvqqfMHpIV0+FwsDwl52j9DMfNV8YFPdhaUuMxBmO/bDZyREK7ib+SSBq1 T8PKL9E6nDj/qlcSOo5SlCPZsqNUDoCJYAlAB/eL13RVb3BOOvq3tfeXuIQE2lTUCE8V QXxk8T01wQ+gG6PbyIuNgEHBDdk6C7FndOF5SXSjju8r0oW6InIyVz+RwuRZpqgQ307s 7v/0L/8q7QCVUAd60X7E1+7oSBP2hOfmNAjaOHRDHgykNTyPgf/IRfP+bJUW1yDWUIpM 8FjWPKX+x5zvpLlgYGXrl1JCIgOwxYGuv5sQKHJXPEeza7X4SufAI1jFJwH96trn0+3t fZJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Wow3Xq7c; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b11-20020a05640202cb00b00418c2b5bef0si6916021edx.466.2022.04.18.17.01.00; Mon, 18 Apr 2022 17:01:24 -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=@linaro.org header.s=google header.b=Wow3Xq7c; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233356AbiDRLwL (ORCPT + 99 others); Mon, 18 Apr 2022 07:52:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237907AbiDRLwI (ORCPT ); Mon, 18 Apr 2022 07:52:08 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12FD31929E for ; Mon, 18 Apr 2022 04:49:29 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id c64so17153372edf.11 for ; Mon, 18 Apr 2022 04:49:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=Su46te7HNW++2zKgguxu+adMxrQIv2yQPrMKfptRGag=; b=Wow3Xq7cPhtHQfiCZO1z4xGsOQSgEraNXhtcAJR+p9ahYFh+UIfpwJjb9ewnX9N810 rceUBq35zYdLxYRlbvVGzDAVGaBNZqCA7bMp1VlUs9QZ6WUuiqIgGTvoR8eEb5tutur7 vpdfCjxVi4d6+oN10r4XW/BXHm619ZVAhb2OKaqFhHpDItUc7jJ/87xRjWkMwd3JCg3K +peY2iRIUzoCyGLAc4DXiMeFiV44Xqo1KgQLqu2oa60LUldbHs2aROrHQpSdhm+ChGa4 ags2SP48yGsoglA5lbFxWFP+fqvxKXSxTlkAeJlp0Ipoc7eL32wrkSjftiXeUXauetrB NuKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=Su46te7HNW++2zKgguxu+adMxrQIv2yQPrMKfptRGag=; b=TCfUYSorCYbddDmMvmuCTF+Ynf0YTNISIpbtExiQ36RZeL3iwXca0frzwTQRMTWm63 PippbdUg4h2F1X58jOGB/1/zxXbhb9ym6ouRz1c6rXEzlX4h9lxDNOCAF2BCEbgYR9Ur Gt+d8xdaqfauNtMP661ANkjYPySp6h9wseO6qG/MyL9cfn19k/Kgpl5zqf8mU7iDXD+t EEz6qp/BbS3RZqiL1/hpVz1OXkh2jZ7ugUbkiq3Z0JFkPImGFCBM2BtA+I1Cjy6mzTM2 Ib9lNCmIOR9/sd/X/C89mikdWcTWus8GATXfCoFhaU/JczZ0Yl0uYadQ44b5xv0z2m6D 3/wA== X-Gm-Message-State: AOAM533eKYheeMJNtrMeNculOTF7pdoR1h3gbS0rwwJZG1ZHDrQOwxeb C9FVHDP5a2ivxZ3I4LA3D/ZcZd4td9CuYw== X-Received: by 2002:a05:6402:2689:b0:422:15c4:e17e with SMTP id w9-20020a056402268900b0042215c4e17emr11945878edd.33.1650282567594; Mon, 18 Apr 2022 04:49:27 -0700 (PDT) Received: from [192.168.0.217] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id t4-20020a1709067c0400b006ef810aab6fsm2338044ejo.213.2022.04.18.04.49.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Apr 2022 04:49:27 -0700 (PDT) Message-ID: Date: Mon, 18 Apr 2022 13:49:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH 1/2] dt-bindings: ufs: mediatek,ufs: add compatible for MT8195 SoC Content-Language: en-US To: Fabien Parent , Alim Akhtar , Avri Altman , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Stanley Chu Cc: linux-scsi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20220415165939.1861470-1-fparent@baylibre.com> From: Krzysztof Kozlowski In-Reply-To: <20220415165939.1861470-1-fparent@baylibre.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 15/04/2022 18:59, Fabien Parent wrote: > Add bindings for the MT8195 UFS support. > > The MT8195 SoC requires more clocks to be enabled compared to MT8183 and > MT8192. Document the clocks required for MT8195. > > Signed-off-by: Fabien Parent > --- > .../devicetree/bindings/ufs/mediatek,ufs.yaml | 27 ++++++++++++++----- > 1 file changed, 21 insertions(+), 6 deletions(-) > > diff --git a/Documentation/devicetree/bindings/ufs/mediatek,ufs.yaml b/Documentation/devicetree/bindings/ufs/mediatek,ufs.yaml > index 32fd535a514a..5ed36e95e933 100644 > --- a/Documentation/devicetree/bindings/ufs/mediatek,ufs.yaml > +++ b/Documentation/devicetree/bindings/ufs/mediatek,ufs.yaml > @@ -14,16 +14,31 @@ allOf: > > properties: > compatible: > - enum: > - - mediatek,mt8183-ufshci > - - mediatek,mt8192-ufshci > + oneOf: > + - enum: > + - mediatek,mt8183-ufshci > + - mediatek,mt8192-ufshci > + - items: > + - const: mediatek,mt8195-ufshci > + - const: mediatek,mt8183-ufshci Are you sure that these devices are compatible? Amount of clock differences suggests that not (or original bindings were not complete). > > clocks: > - maxItems: 1 > + minItems: 1 > + maxItems: 8 > > clock-names: > - items: > - - const: ufs > + oneOf: > + - items: > + - const: ufs > + - items: > + - const: ufs > + - const: ufs_aes > + - const: ufs_tick > + - const: unipro_sysclk > + - const: unipro_tick > + - const: unipro_mp_bclk > + - const: ufs_tx_symbol > + - const: ufs_mem_sub Add allOf:if:then: which specifies these clocks per different compatible. Best regards, Krzysztof