From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 814D2C04A95 for ; Wed, 28 Sep 2022 18:09:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=lUEUVEorCLL1aEiDCLgOw9gzsWKy6H0q+MJoJ2iMEJo=; b=aUHlRP9+tmnnwQ xQ+xo8WJjPRuG+MqnHsEzpbIELvPAjo+W3CHsC6RHdRa7uoY0GNr9UI/L72fwgOapguuS+q1PuZSc NM/206UAPkh8ZBjYOPjUxDJnj4P2bPCLWwXequpfRMFoRNZw3ibztdujFSZvA/uiJOktqdG5E7L5F Ra3Jeizau72CyM7xh7B8BEt4imeC//tjGdaSF0AvOn42W9pBCgO8A8ZTR4csf2BDxtDdQ9sUE4Bqc pFCsw4J2+UvCVv3GKHCNl1G9h25nioXEnkF+Firro0x+KbTQXynYw2yScj+n96ZX6nR0yb5ZzNe/g qh/EQ1wmXQMx+TZkg+yg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1odbU2-00HW2w-1c; Wed, 28 Sep 2022 18:08:34 +0000 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1odbTy-00HW12-2m for linux-arm-kernel@lists.infradead.org; Wed, 28 Sep 2022 18:08:31 +0000 Received: by mail-lj1-x22e.google.com with SMTP id g20so15211713ljg.7 for ; Wed, 28 Sep 2022 11:08:16 -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; bh=dz47N9d43oVIDQOrhiG/PtfjNHz7S7woh4wQVpU2xwE=; b=oDc3AIyuYdhxjFfYM7g87t9+40ZKmtqXS04ytcQNYm06KN0ZCEhDZtz0wu9a2iLxU0 tTBTY5BZcZNhUVZzGGSAgUCz3EfiJA9yssljOwkL5g+pFw1eKp5CRVrY54J4ThiO+Z6N AD6J4qpLMh4W65tiDTSrl6hqa2fwYEd1hqmsQbJnGz/3Dl/zhpjhM0ORLochuSOBXoNO nM89jDy0TJPTwzygSDE9brfnSeEr2ccUnZv9LijIm+8d4AiD9VDa6lUvVxZPvlTc6Ary PGmwezJ7qGOZEfbGOuloU6dr/wGjfvlRB+iS9zrmRWGbB3PglD+wE6yuseYfTGba0Ow2 DjGA== 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; bh=dz47N9d43oVIDQOrhiG/PtfjNHz7S7woh4wQVpU2xwE=; b=b7mNYM4Fs/EnGiTvir3KCEQXXkg8BSyQxO/wJJFJGj41mmmXbj16yuWX9A6H44fFUZ J/l7BkFt/fqrvXe5qhdYEDyhMy6jCfk9iPjCQbJeivsFrThPE5RaWjbSOzj8jkWd9iPK jFhhpcjq7q8jOvCPUCcE7+5YfTOVFQJqMqpWBDE81C0ay0k0NwyHu8VFD7aHeerpy9bX K1kl0Ousq8/cn04qqspYaISrgzRo0tZhXOzwEzUtJJFLDZxXL6tHGWOeqe9pv7K6R+4M gPeefJRn/ux1yr2UK2TwKwg6paiGp1ABCVx30W8CJAGpvceskBit20sRv1fLp9KUn+Ml J53Q== X-Gm-Message-State: ACrzQf1tG4/I2EZe+8bE1LUNLo5R3fpCm4SItDZqeoFBS/cg/WcXijPe JL/RSe4CiCdxPNupNf8fcJcubA== X-Google-Smtp-Source: AMsMyM50qlpmjWeaPPeYAEU0LVKsZs3urOezw0hiFOvIYvc2SiLCI3y2ptVXbtWEbEUan4bQKmLVVg== X-Received: by 2002:a2e:bd84:0:b0:261:e43c:bac3 with SMTP id o4-20020a2ebd84000000b00261e43cbac3mr12670372ljq.198.1664388494581; Wed, 28 Sep 2022 11:08:14 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id t12-20020a2e954c000000b00268335eaa8asm508314ljh.51.2022.09.28.11.08.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Sep 2022 11:08:14 -0700 (PDT) Message-ID: <9cdb0eb8-db72-a77b-e377-1103e12c2c85@linaro.org> Date: Wed, 28 Sep 2022 20:08:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH v2] dt-bindings: memory-controller: st,stm32: Split off MC properties Content-Language: en-US To: Marek Vasut , linux-arm-kernel@lists.infradead.org Cc: Rob Herring , Alexandre Torgue , Christophe Kerello , Linus Walleij , Maxime Coquelin , Rob Herring , devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com References: <20220926225536.548139-1-marex@denx.de> <846bc515-bdda-6022-0611-daaa9a632e64@linaro.org> <393eb833-0dcd-bf6c-49f3-ab8d60e3a8e5@linaro.org> <7adc3299-5dd6-fd43-fd5e-c22d150a328a@denx.de> From: Krzysztof Kozlowski In-Reply-To: <7adc3299-5dd6-fd43-fd5e-c22d150a328a@denx.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220928_110830_149388_35FAC871 X-CRM114-Status: GOOD ( 18.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 28/09/2022 19:44, Marek Vasut wrote: > On 9/28/22 19:24, Krzysztof Kozlowski wrote: >> On 28/09/2022 19:01, Marek Vasut wrote: >>> On 9/28/22 09:10, Krzysztof Kozlowski wrote: >>> >>> Hi, >>> >>> [...] >>> >>>>> diff --git a/Documentation/devicetree/bindings/memory-controllers/st,stm32-fmc2-ebi.yaml b/Documentation/devicetree/bindings/memory-controllers/st,stm32-fmc2-ebi.yaml >>>>> index a1f535cececcc..49243f447eb90 100644 >>>>> --- a/Documentation/devicetree/bindings/memory-controllers/st,stm32-fmc2-ebi.yaml >>>>> +++ b/Documentation/devicetree/bindings/memory-controllers/st,stm32-fmc2-ebi.yaml >>>>> @@ -49,143 +49,6 @@ patternProperties: >>>>> "^.*@[0-4],[a-f0-9]+$": >>>>> type: object >>>>> >>>>> - properties: >>>>> - reg: >>>>> - description: Bank number, base address and size of the device. >>>>> - >>>> >>>> To be equivalent (and similar to SPI peripherals and controllers) this >>>> should reference st,stm32-fmc2-ebi-props.yaml as well. >>>> >>>> After such reference, you can add here unevaluatedProperties:false >>>> (could be same or new patch as it is not related to actual split). >>> >>> I don't think I understand. I don't see any ref from the controller node >>> to its props in various SPI controllers (even if that would make sense): >> >> Because they reference spi peripheral props... >> >>> >>> next$ git grep qspi-nor-peripheral-props.yaml >>> Documentation/devicetree/bindings/spi/cdns,qspi-nor-peripheral-props.yaml:$id: >>> http://devicetree.org/schemas/spi/cdns,qspi-nor-peripheral-props.yaml# >>> Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml: - >>> $ref: cdns,qspi-nor-peripheral-props.yaml# >>> >>> No ref to cdns,qspi-nor-peripheral-props.yaml in >>> Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml >>> >>> next$ git grep tegra210-quad-peripheral-props >>> Documentation/devicetree/bindings/spi/nvidia,tegra210-quad-peripheral-props.yaml:$id: >>> http://devicetree.org/schemas/spi/nvidia,tegra210-quad-peripheral-props.yaml# >>> Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml: - >>> $ref: nvidia,tegra210-quad-peripheral-props.yaml# >>> >>> No ref to nvidia,tegra210-quad-peripheral-props.yaml in >>> Documentation/devicetree/bindings/spi/nvidia,tegra210-quad.yaml >> >> All your examples do it - reference spi peripheral props. >> >> As I said, your change is now not equivalent. If any other device >> appears in st,stm32-fmc2-ebi, the schema won't be applied. >> >> Let me put it that way: you must have there additionalProperties:false >> or unevaluatedProperties:false. Once you add it, you start seeing errors >> leading to missing ref. > > Is what you are trying to convey that > Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml does ref > spi-controller.yaml# and that one does patternProperties: ref: > spi-peripheral-props.yaml ? Yes. > > So the fix for V3 should be the following ? patternProperties: "^.*@[0-4],[a-f0-9]+$": type: object $ref: st,stm32-fmc2-ebi-props.yaml unevaluatedProperties: false Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel