Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp32084497rwd; Fri, 7 Jul 2023 08:28:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlEPqCs+CohKGf8zDmXqW9jR/oajRk6elYZFkwtSDaljm0YF1EkXLH0fuBZVi9gfMv8AC/VV X-Received: by 2002:a2e:a487:0:b0:2b6:9b02:cf1c with SMTP id h7-20020a2ea487000000b002b69b02cf1cmr2929424lji.2.1688743683291; Fri, 07 Jul 2023 08:28:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688743683; cv=none; d=google.com; s=arc-20160816; b=eD3ueR/FbfkBfDvNA1WJ47zUhvYKQHiB7CVzGsrRCbHzhVrCKGlWGCG4qLTjcogBcC HFDVwcCfSqgmlOZ72BlAQgmmOHV4XgyWSEUwF+cBysLactPxvMxKYEf09KHs6vnLu53t LPtg7kW5LvofBdKegG7h8xIvprdLYuQBRc5YPzRCywNdYKr4+rnpf7ir3C+r8azPonJ4 V6n13upEBdhUjPFrM5Deqsw4XQhO3pWOy0uz14KTFCWIddISFxVBK6NxE+ftQu+jTCe5 DTz73LMTu8WM8JhyPQKp3Lnler9fhCXzOpvaPcSr+N/ss+EpM5nxRvNaPppOh7wPPAOl zImQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=rL/IqSliQWE/k5qHxsNvvh1YZrhQdGRZyr99h97/eUY=; fh=i4E4/UDRlgxCyPd504x+Z8hhcS2lLjvPOxX0jR3FULA=; b=YngcAnup08MuLHQnCQ2puDrWYAAdL4R8sXGc0IiJbDMpn3Srjz196ONv5qEHsFDhE0 G3+bmq3CZBWXKcbTvXznPBe8+ucTQP5xPxY3kfl0JaUh9nKbfpgNAv1QhPd6n1yAdzlc a8qi64xzqVF2m0nvdQ0NyQenfNPjtVH/j1TtDyZSTh/39ClT9Fpc4rzw8XOohalr9alx vWKhSG6keFmiLqpD0+P7vzWaK44a6+Sl6OKEo5M4WaJDZBbThzD+GhX9sCQJ6w0Bah2C LijdSIjLpZQhmMNV7+WS6PWmHkc2fQHElAZn55F/Tcie+qiQIMmlU/uKBjNdUlmEjtqQ dnAw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rh25-20020a17090720f900b009937e7c4e4fsi1584534ejb.80.2023.07.07.08.27.37; Fri, 07 Jul 2023 08:28:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232896AbjGGPVF (ORCPT + 99 others); Fri, 7 Jul 2023 11:21:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229618AbjGGPVE (ORCPT ); Fri, 7 Jul 2023 11:21:04 -0400 Received: from mail-il1-f178.google.com (mail-il1-f178.google.com [209.85.166.178]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A919210C; Fri, 7 Jul 2023 08:21:03 -0700 (PDT) Received: by mail-il1-f178.google.com with SMTP id e9e14a558f8ab-345df4e68afso7703565ab.0; Fri, 07 Jul 2023 08:21:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688743263; x=1691335263; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rL/IqSliQWE/k5qHxsNvvh1YZrhQdGRZyr99h97/eUY=; b=E2nSI/axcs0M60YqqOxVH8oRkVpkVwbT+5hjzMehkLKHrK+bZ+p23K9gM7+1bZIMf3 rBXIGR6m23cyd1eQ2D0sByKEdj5uN+HczqjaNcSQm5wdcbMmKgUXkDBelzcEhpCuCwbn AHMe0NdruynllpxclexBLbZKxBYJAndUjWf65GnUelZ9ftEKJTaaGufgHWhsDGbjc4mU +3gag5AvYc9Q5IPmHHiKJZzM8+/KteQCKNPH83wTjy+AI26qRGac4K6e6Zr+46iwhnms xyXP1EiQG8RgkvD1V+c8Ci0XzkGDKN3E1nd/HQPsSt0/rS+JVyY1KvodF3qRyEDKIQeT 4Jyw== X-Gm-Message-State: ABy/qLbzd1Q2WovAocVSZRxxGm0i3kgW2OPgnExyul2Q1WXwLKZzthpy eOoIjGUlxR7bjCxyQ60tcw== X-Received: by 2002:a92:de12:0:b0:346:b85:5f2 with SMTP id x18-20020a92de12000000b003460b8505f2mr5198421ilm.23.1688743262706; Fri, 07 Jul 2023 08:21:02 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id b11-20020a92dccb000000b00325e56c1cdcsm1386377ilr.49.2023.07.07.08.20.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jul 2023 08:21:01 -0700 (PDT) Received: (nullmailer pid 327561 invoked by uid 1000); Fri, 07 Jul 2023 15:20:56 -0000 Date: Fri, 7 Jul 2023 09:20:56 -0600 From: Rob Herring To: Gatien CHEVALLIER Cc: Oleksii_Moisieiev@epam.com, gregkh@linuxfoundation.org, herbert@gondor.apana.org.au, davem@davemloft.net, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, alexandre.torgue@foss.st.com, vkoul@kernel.org, jic23@kernel.org, olivier.moysan@foss.st.com, arnaud.pouliquen@foss.st.com, mchehab@kernel.org, fabrice.gasnier@foss.st.com, andi.shyti@kernel.org, ulf.hansson@linaro.org, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, hugues.fruchet@foss.st.com, lee@kernel.org, will@kernel.org, catalin.marinas@arm.com, arnd@kernel.org, richardcochran@gmail.com, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-i2c@vger.kernel.org, linux-iio@vger.kernel.org, alsa-devel@alsa-project.org, linux-media@vger.kernel.org, linux-mmc@vger.kernel.org, netdev@vger.kernel.org, linux-phy@lists.infradead.org, linux-serial@vger.kernel.org, linux-spi@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH 04/10] dt-bindings: treewide: add feature-domains description in binding files Message-ID: <20230707152056.GA317056-robh@kernel.org> References: <20230705172759.1610753-1-gatien.chevallier@foss.st.com> <20230705172759.1610753-5-gatien.chevallier@foss.st.com> <20230706145108.GA3858320-robh@kernel.org> <0aaace47-1bb4-82c5-57a5-6f5d27eb4d45@foss.st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0aaace47-1bb4-82c5-57a5-6f5d27eb4d45@foss.st.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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-crypto@vger.kernel.org On Fri, Jul 07, 2023 at 02:28:28PM +0200, Gatien CHEVALLIER wrote: > Hello Rob, > > On 7/6/23 16:51, Rob Herring wrote: > > On Wed, Jul 05, 2023 at 07:27:53PM +0200, Gatien Chevallier wrote: > > > feature-domains is an optional property that allows a peripheral to > > > refer to one or more feature domain controller(s). > > > > > > Description of this property is added to all peripheral binding files of > > > the peripheral under the STM32 firewall controllers. It allows an accurate > > > representation of the hardware, where various peripherals are connected > > > to this firewall bus. The firewall can then check the peripheral accesses > > > before allowing it to probe. > > > > > > Signed-off-by: Gatien Chevallier > > > --- > > > > > > Disclaimer: Some error with dtbs_check will be observed as I've > > > considered the property to be generic, as Rob asked > > > > > > Documentation/devicetree/bindings/crypto/st,stm32-hash.yaml | 4 ++++ > > > Documentation/devicetree/bindings/dma/st,stm32-dma.yaml | 4 ++++ > > > Documentation/devicetree/bindings/dma/st,stm32-dmamux.yaml | 4 ++++ > > > Documentation/devicetree/bindings/i2c/st,stm32-i2c.yaml | 4 ++++ > > > Documentation/devicetree/bindings/iio/adc/st,stm32-adc.yaml | 4 ++++ > > > .../devicetree/bindings/iio/adc/st,stm32-dfsdm-adc.yaml | 4 ++++ > > > Documentation/devicetree/bindings/iio/dac/st,stm32-dac.yaml | 4 ++++ > > > .../devicetree/bindings/media/cec/st,stm32-cec.yaml | 4 ++++ > > > Documentation/devicetree/bindings/media/st,stm32-dcmi.yaml | 4 ++++ > > > .../bindings/memory-controllers/st,stm32-fmc2-ebi.yaml | 4 ++++ > > > Documentation/devicetree/bindings/mfd/st,stm32-lptimer.yaml | 4 ++++ > > > Documentation/devicetree/bindings/mfd/st,stm32-timers.yaml | 5 +++++ > > > Documentation/devicetree/bindings/mmc/arm,pl18x.yaml | 4 ++++ > > > Documentation/devicetree/bindings/net/stm32-dwmac.yaml | 4 ++++ > > > Documentation/devicetree/bindings/phy/phy-stm32-usbphyc.yaml | 4 ++++ > > > .../devicetree/bindings/regulator/st,stm32-vrefbuf.yaml | 4 ++++ > > > Documentation/devicetree/bindings/rng/st,stm32-rng.yaml | 4 ++++ > > > Documentation/devicetree/bindings/serial/st,stm32-uart.yaml | 4 ++++ > > > Documentation/devicetree/bindings/sound/st,stm32-i2s.yaml | 4 ++++ > > > Documentation/devicetree/bindings/sound/st,stm32-sai.yaml | 4 ++++ > > > .../devicetree/bindings/sound/st,stm32-spdifrx.yaml | 4 ++++ > > > Documentation/devicetree/bindings/spi/st,stm32-qspi.yaml | 4 ++++ > > > Documentation/devicetree/bindings/spi/st,stm32-spi.yaml | 4 ++++ > > > Documentation/devicetree/bindings/usb/dwc2.yaml | 4 ++++ > > > 24 files changed, 97 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/crypto/st,stm32-hash.yaml b/Documentation/devicetree/bindings/crypto/st,stm32-hash.yaml > > > index b767ec72a999..daf8dcaef627 100644 > > > --- a/Documentation/devicetree/bindings/crypto/st,stm32-hash.yaml > > > +++ b/Documentation/devicetree/bindings/crypto/st,stm32-hash.yaml > > > @@ -50,6 +50,10 @@ properties: > > > power-domains: > > > maxItems: 1 > > > + feature-domains: > > > + minItems: 1 > > > + maxItems: 3 > > > > What are the 3 entries? > > > > Rob > > I thought I was benefiting from the description of the pattern-property in > the RIFSC YAML file. But yes anyway, it seems like it needs some description > here as the dependency does not appear in this file. Humm, that should limit the maximum entries to 2, so 3 would never work (if RIFSC is the parent). > I picked 3 as a maxItems for our ST needs, I'll give it some more thought > when coming back with something clearer. I'd expect you have 1 entry for register bus and 1 entry for DMA bus if there is one. It's block specific for how many entries, so the RIFSC schema should not be setting that. You could possibly say that 'feature-domains' is required for all the child nodes though. Rob