Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp291207rwj; Thu, 22 Dec 2022 02:58:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXsKJ4qHv/4rbOVPuaug0B4oFWJmiWsFG+vhdQUGi13ch4C0yYqu/NJ2zTDFKkSBssoRMYEq X-Received: by 2002:a05:6a20:138b:b0:a0:462f:8e3e with SMTP id w11-20020a056a20138b00b000a0462f8e3emr8251079pzh.55.1671706719592; Thu, 22 Dec 2022 02:58:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671706719; cv=none; d=google.com; s=arc-20160816; b=k8KxLBrRhsiTyfcm+l2NnmSJ9aLVnzav7jHu2heJOIKBv5/EeameTAUwjPCFajPnPA GQjTewvWXg57E8Q2iuRUpPMuZC+iJxIVuEe5n0AmV+S4S6A+BdhwfPRUnN4qSOVHqcRI 8dRg2xWFoBmbE0lAVut16ySK/nPFLVHXipiRyzxMs5StVPANiQrKDOgr9EGNAoahdLg+ jePjCAkmxE1UuVDkXB1EH7/eLFp5W5FumchcDBSMXoPHK9Jfxl8tKUkw5pVEaT/8VoIN ZAak8ZcixpEwZDo+fucSVR9EO2OnCSgZIdTC7GDm+LFLLh0+WCAUCewkLx5RW6fB52YZ 579w== 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=vzX3lLh2ncczkjeIfC9S5+Ru4cHV6nH3w/aPTG/vfb4=; b=P09mmu0waDLYwU/iX+IPVAuquiGOQSa5fulUFHQ9bhH5rKzHypc29gWtzpHL463t/O uF+9LWqwXd7uM/Xqd9YOvKqXdNd1yPt2etIhgA2HPjHQWZ98Z/tS5Nq42VYvGTVmRHZA rNsNQEO/EWUe70hBar0sGfLCX7J2Fl4D+R9ExMBSt5RcVkGXDPdUeweYDEQoXn7+XtjW kwq8y01QyOJPt4xeo/2DOsSCW7wFw65QnWT6hl5/pIhkMZ90+CuMCA/Q4g3eoGVeUm+w zBxi1dV8GPXJMBlCIThtymvvqEdUQTqhHSx8v+y6RGC8XSmrf/kxIaowsHArk72c+hkq /glg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EVwCaOLS; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s37-20020a634525000000b00478d8bd0906si447564pga.737.2022.12.22.02.58.05; Thu, 22 Dec 2022 02:58:39 -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=@kernel.org header.s=k20201202 header.b=EVwCaOLS; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235104AbiLVKZI (ORCPT + 67 others); Thu, 22 Dec 2022 05:25:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229817AbiLVKZF (ORCPT ); Thu, 22 Dec 2022 05:25:05 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83D7A17E18; Thu, 22 Dec 2022 02:25:04 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2022361A4D; Thu, 22 Dec 2022 10:25:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84004C433D2; Thu, 22 Dec 2022 10:25:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671704703; bh=HjWsEui9j49BqsSquLS1N64hkFZnyG+wvor5Mw3io4g=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=EVwCaOLSGrczB2AB53z9KEZJGsQGAIMS367LMi+ZJrwt4o7mwRmZZrs+CWzeN78xr XU9zTTrX/hiZyCXJjOx9aUMfEn5G7mi7xQ/IG05UXQq/2c3jyal8W1cBtn6g+zjbLS NDi9ENra7WjrcnSQsEw6dZLRJJGnaxwFJDKKMEk90UG4TVB2mm34Bm7PUsxv8luurI WN/ATociYxOM3L9OAVuR16WzbVgR5PBkV8v5fBNDCkUU+DG5nArGGaF+6B7/hpNL+9 pu/TgZzwVfKAOfc+7S2VUdkdYmvVUkYWYwcUoo2fT1/CAW9rMFXUZ/xHeINezqPS22 Q/ZU+m4hDl3iA== Message-ID: Date: Thu, 22 Dec 2022 11:24:58 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [RFC PATCH 2/7] dt-bindings: bus: add STM32 System Bus Content-Language: en-US To: Gatien Chevallier , alexandre.torgue@foss.st.com, robh+dt@kernel.org, Oleksii_Moisieiev@epam.com, linus.walleij@linaro.org, gregkh@linuxfoundation.org Cc: linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, loic.pallardy@st.com, devicetree@vger.kernel.org, mark.rutland@arm.com, arnd@arndb.de References: <20221221173055.11719-1-gatien.chevallier@foss.st.com> <20221221173055.11719-3-gatien.chevallier@foss.st.com> From: Krzysztof Kozlowski In-Reply-To: <20221221173055.11719-3-gatien.chevallier@foss.st.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,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 21/12/2022 18:30, Gatien Chevallier wrote: > Document STM32 System Bus. This bus is intended to control firewall > access for the peripherals connected to it. > > Signed-off-by: Loic PALLARDY > Signed-off-by: Gatien Chevallier Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel. > --- > .../devicetree/bindings/bus/st,sys-bus.yaml | 88 +++++++++++++++++++ > 1 file changed, 88 insertions(+) > create mode 100644 Documentation/devicetree/bindings/bus/st,sys-bus.yaml > > diff --git a/Documentation/devicetree/bindings/bus/st,sys-bus.yaml b/Documentation/devicetree/bindings/bus/st,sys-bus.yaml > new file mode 100644 > index 000000000000..9c0e86612695 > --- /dev/null > +++ b/Documentation/devicetree/bindings/bus/st,sys-bus.yaml > @@ -0,0 +1,88 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/bus/stm32,sys-bus.yaml > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: STM32 System Bus Only one space. > + > +description: | > + The STM32 System Bus is an internal bus to which some internal peripherals > + are connected. STM32 System Bus integrates a firewall controlling access to each > + device. This bus prevents non-accessible devices to be probed. > + > + To see which peripherals are securable, please check the SoC reference manual. > + > +maintainers: > + - Gatien Chevallier > + > +allOf: > + - $ref: /schemas/feature-controllers/feature-domain-controller.yaml# > + > +properties: > + compatible: > + enum: > + - st,stm32mp13-sys-bus > + - st,stm32mp15-sys-bus > + > + reg: > + maxItems: 1 > + > + "#address-cells": > + const: 1 > + > + "#size-cells": > + const: 1 > + > + '#feature-domain-cells': Use consistent quotes, either ' or " > + minItems: 1 No. Cells must be const. This does not match cells at all... > + > + ranges: true > + > + feature-domain-controller: true > + > +patternProperties: > + "^.*@[0-9a-f]+$": > + description: Devices attached to system bus > + type: object > + properties: > + feature-domains: > + $ref: /schemas/feature-controllers/feature-domain-controller.yaml#/properties/feature-domains maxItems > + > +required: > + - compatible > + - reg > + - "#address-cells" > + - "#size-cells" > + - feature-domain-controller > + - '#feature-domain-cells' > + - ranges > + > +additionalProperties: false > + > +examples: > + - | > + // In this example, > + // - the foo1 device refers to etzpc as his domain controller. > + // - same goes for foo2. > + // Access rights are verified before creating devices. > + > + etzpc: etzpc@5c007000 { Node names should be generic. https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > + compatible = "st,stm32mp15-sys-bus"; > + reg = <0x5c007000 0x400>; > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + feature-domain-controller; > + #feature-domain-cells = <1>; > + > + foo1: foo@1000000 { Node names should be generic. https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > + reg = <0x0 0x1000000>; Missing compatible, missing proper device name. Don't use fake names, but describe real case. > + feature-domains = <&etzpc 0>; > + }; > + > + foo2: foo@2000000 { > + reg = <0x0 0x2000000>; > + feature-domains = <&etzpc 0>; > + }; > + }; Best regards, Krzysztof