Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4412037rwi; Sat, 22 Oct 2022 09:38:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6CqxpqEVrrEVU7B5hvtS7jhVufUj51wQrIRUercY8GAg2uWE7mFl4LX1BNCDonAXkWsloB X-Received: by 2002:a17:907:70a:b0:750:bf91:caa3 with SMTP id xb10-20020a170907070a00b00750bf91caa3mr20078355ejb.711.1666456733492; Sat, 22 Oct 2022 09:38:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666456733; cv=none; d=google.com; s=arc-20160816; b=e/6xrdlccDyFEFGDD6clG+3jkOoPNtg70JFeTBREgeoaBzK7OW0axnP99gNV3qwzga pLWIV/oRsLY7eH3RjE03IbrzT1R6rhXyjYF+QjDJa8SP3tDi2Cs7HBkkPe4RlMXos588 PJAMUQq/WuNQr+v9+lMkZpKJh3TaIUR1ormaq6tSOa5IV1idXSmS+BfMYgRZNirMAPfE sbicO9GNPscX9cmbRWatYqgaC2KSVacTTEqwjoE1bZbeLE1Al1VjLTqa26DWhBeYh4Ck cty5FWkGhmMvrp/rZOVdvrc3r/3OTr4nCupGOCzKfUtd1hWiInX6fhPtZZxT8i2NGGjF 4mZQ== 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=u7SWOvXweDZtmkeWSuLz6l3o0fM/vaQf8Gw102I5GRQ=; b=ay65te937dxQxKh5noQ2/Ffl7sH/97gVIloapHl3xvglmcF/ZRwAD7JW3GZnhVLWx7 U/ssVKtEaLKlIC0fVVSHZiN1QP2x55TKOuUsT1hC2qdowSE4LsJUZvECmyDXXARhKHMx ag4XrwK/jGSmHr9GXIKuNvoxstXzMheQWnLeypuorf33htUw1iEknAXA/lbEp7e+yocx MtE0+DRFmWV0sAu8bbjzQ78fku1aRVkWzAUf5Mw4ki5qGCmJsH/zYit7cnjd2Wdr6uEM bX/ThIvM0jOCtYFwIBekMPPKPdrj61ACEQWK+oNXgP6KeJFNtD4WUH6jbz6ktkiQUP1D iahQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G2k9jjkJ; 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 t11-20020a1709067c0b00b0078a3ef9f092si20998426ejo.998.2022.10.22.09.38.27; Sat, 22 Oct 2022 09:38:53 -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=G2k9jjkJ; 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 S229711AbiJVQaG (ORCPT + 99 others); Sat, 22 Oct 2022 12:30:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229695AbiJVQaE (ORCPT ); Sat, 22 Oct 2022 12:30:04 -0400 Received: from mail-oa1-x2d.google.com (mail-oa1-x2d.google.com [IPv6:2001:4860:4864:20::2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AD9E50535 for ; Sat, 22 Oct 2022 09:30:02 -0700 (PDT) Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-1322d768ba7so7237967fac.5 for ; Sat, 22 Oct 2022 09:30:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=u7SWOvXweDZtmkeWSuLz6l3o0fM/vaQf8Gw102I5GRQ=; b=G2k9jjkJCEai5xU0b1yIXA4xPlcxeZUesmGr2osHTA4IYYE1IgDDkYsqRAUVIVtdgk GLIIvHgw2c70Ey9XB5CESFoq93sozsyh5IXwS43rGyMW/cohocxhwjsEmwf58/kfF56/ SVDqL53QkervbiVMC8cpiF1QJAMOdItMguNSgl/3CeUHnH8+4SSn7AZYjvmhsiWRRSih sLdN2h931hAUNtB/wWk4l8YptO9JLY31oRbfU8ERFMSh+yn2+PCmH7cinlQ0JCxK4oR8 XmG2g1DuFJoE1me8OZ0ZHWpfQP9FLI7Y9qtdzVX5TvNyY2dJtK6E5XIrwZT2cX7xZ9d4 NN1g== 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=u7SWOvXweDZtmkeWSuLz6l3o0fM/vaQf8Gw102I5GRQ=; b=B/MLofLx/MjHclFaXPPnH8LMvG2iZ2/NuDH8W3Ga+iJb3+8WKotsE1/2krJODaqV3l tjXVokwf033euw061XS9DcAngV+PL3K5BYkfRzpbeznuO8FUCrgMnRTWE4Ua+cW+Za2S u1ViKZnJjl7zHyeSq2TEunmNtLF3iON0PFQVBV/Fgggik8hy+d6QSJix7QjFUrcZVzpn mCoNT/ct2V//+m2G9XL7fRXzxv1WeIgI8FJHWLDL7UTVNLnhMHSf0nawpngZycv1kT3h gBqtDRhetcjz7BFX82m2uH1UouUD71N5Wqk9PiOu97/ik0gfMMZIk8FJI6CvkN3jkUqe hPpg== X-Gm-Message-State: ACrzQf2Cxwm82dz8dBYpqbFhQPPuLIczi6i6nUwUs0Ed+7VSTPk9yYTJ X8rH1NsJjoqN+QVwUIE+60lw3w== X-Received: by 2002:a05:6870:56a7:b0:136:74fb:e6df with SMTP id p39-20020a05687056a700b0013674fbe6dfmr14877673oao.37.1666456201795; Sat, 22 Oct 2022 09:30:01 -0700 (PDT) Received: from [10.203.8.70] ([205.153.95.177]) by smtp.gmail.com with ESMTPSA id y3-20020a056870418300b0011f400edb17sm11796775oac.4.2022.10.22.09.29.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 22 Oct 2022 09:30:00 -0700 (PDT) Message-ID: <0c88ae58-2841-f0f3-f103-f3030c5cf704@linaro.org> Date: Sat, 22 Oct 2022 12:29:58 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH v2 5/5] dt-bindings: mmc: mtk-sd: add mt7986 Content-Language: en-US To: Frank Wunderlich , linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Chaotian Jing , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Wenbin Mei , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20221022090530.16265-1-linux@fw-web.de> <20221022090530.16265-6-linux@fw-web.de> From: Krzysztof Kozlowski In-Reply-To: <20221022090530.16265-6-linux@fw-web.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 22/10/2022 05:05, Frank Wunderlich wrote: > From: Frank Wunderlich > > Add SoC specific section for defining clock configuration. > > Add compatible in "not" section to avoid override the settings again. > > Signed-off-by: Frank Wunderlich > --- > .../devicetree/bindings/mmc/mtk-sd.yaml | 28 +++++++++++++++++++ > 1 file changed, 28 insertions(+) > > diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml > index c7bcf0c3dd5d..9df63c461f1f 100644 > --- a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml > +++ b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml > @@ -229,6 +229,33 @@ allOf: > - const: hclk > - const: source_cg > - const: bus_clk Blank line > + - if: > + properties: > + compatible: > + contains: > + enum: > + - mediatek,mt7986-mmc > + then: > + properties: > + assigned-clock-parents: > + maxItems: 2 > + assigned-clocks: > + maxItems: 2 Define these two only if they are required for the hardware to operate and only such setup (two assigned parents) is allowed. Otherwise you put some constraints on board design. > + clocks: > + minItems: 3 Best regards, Krzysztof