Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2242537pxb; Fri, 5 Feb 2021 12:31:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJyUy1FN0JxpyR1lc0As5CJmA/vYl100W17ePaU6a7XzyhukL4XB3GepSOgIjjV5MqF8dpCU X-Received: by 2002:a17:906:d8b5:: with SMTP id qc21mr5476653ejb.62.1612557088571; Fri, 05 Feb 2021 12:31:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612557088; cv=none; d=google.com; s=arc-20160816; b=tB9LfVDIuiW4AmQMKCaZ85S0sXimnkVqofrcAviy2OdAi+7tQo6yxg+1RB5BsqVVDb A6SfA85/CSA613fnu7DNSeugxDYZ6moJL7NCZu9ALXEDHz3Zn4jAJxvSy+Eax9AjTyGv hPcccs0aqcOztGjbWS121r1Fj2yM54yJ+BVkQcodqtpEECyUYZQCMm639TB48FOrAi9E p0DMrmmLlJpXfUNsSQvB4IXh/ipV8I0ms5ZMNIkOMmzI31k0pw0qhTcRagHSYJg6hgRA A3Q3zKpcGXlnU2UCAp3huG+OG+lCDw5xxeuCWfLR4lNbew7lr9HuIH3tKbRXk0hZYMD1 RXQA== 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=jX/IDqbyvll8w6wyZZ4Cj2yRz+uUuRNKbkr2Ni7Gh1A=; b=BiKUK4wx/3p4dyAf9DyjQiKKSBRwaltKEGLIDG8VQARDDeDKEEQEtFjY5yvVglMAWP vVEBvbnrA7Lu2EeJPuC4bfOb6y3WNWyesSUHXtn7qxSOnlJj8So+6CSAlkjW+16mt9Im 3R937kkahy2da78Tl46+AIBGIMnkeqgugKlVnYEKTIdPlDcG+Tt4+NHVPRwS680bR+OQ zjwa32PVt4UWTtf2m9mf+R8kMGkRg2sZdhCGIShTfs+55Fn2pd4VDl3lvyXr2pxzVpF5 EIov5crxXUQAIwS99fixl7ZGzCZycf07pkoGdN56Kw2Z+EvJgtToRv0SJbHDpmnqYRTA 4iaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bo4si6033334edb.420.2021.02.05.12.31.03; Fri, 05 Feb 2021 12:31:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233077AbhBESrl (ORCPT + 99 others); Fri, 5 Feb 2021 13:47:41 -0500 Received: from mail-oi1-f170.google.com ([209.85.167.170]:46634 "EHLO mail-oi1-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233118AbhBESqF (ORCPT ); Fri, 5 Feb 2021 13:46:05 -0500 Received: by mail-oi1-f170.google.com with SMTP id k25so8815270oik.13; Fri, 05 Feb 2021 12:28:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=jX/IDqbyvll8w6wyZZ4Cj2yRz+uUuRNKbkr2Ni7Gh1A=; b=sPWDBDOboVtgz7L6+2wMX3yxMcRic20z0HxEh4rheyWS5nREb2wU2RCrnD2AiNrPJP JUgt/lDRG61cjiBk4K5NE3lL729DAdt4tvt4gzFpwpzHghQFPTagMGUBv5Nr6FshP4Y1 7eHeKCDvU6M9E33S1QUt1zMrRvRuOeeHoKk82wWzox+Wx9cqIQ+oUnyIxMOnUNFdKvOS LepKMesD1qzyRlVMtdlSK7YaCHH7CdWBs3Rr6/m+zmO22RcWoqk/uMXeT8Jzr2ncW9pv /US6TM+OALEuw5TJDvXiwBWGcuAscw24nGgPCNgzh7N779/fokCIBxkEBGgIyzhcBfbs kUsw== X-Gm-Message-State: AOAM53008rG7fixeVIrgMN7Lu6TgLXHGM+p0YbThnMeZIahk9Z/Nhuby q73R3astt1iF4y8ZheMRzQ== X-Received: by 2002:a05:6808:918:: with SMTP id w24mr4326260oih.20.1612556869753; Fri, 05 Feb 2021 12:27:49 -0800 (PST) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id l12sm1995301oov.37.2021.02.05.12.27.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Feb 2021 12:27:48 -0800 (PST) Received: (nullmailer pid 3669209 invoked by uid 1000); Fri, 05 Feb 2021 20:27:47 -0000 Date: Fri, 5 Feb 2021 14:27:47 -0600 From: Rob Herring To: peng.fan@nxp.com Cc: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, o.rempel@pengutronix.de, devicetree@vger.kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, paul@crapouillou.net, matthias.bgg@gmail.com, agross@kernel.org, patrice.chotard@st.com Subject: Re: [PATCH V9 01/10] dt-bindings: remoteproc: convert imx rproc bindings to json-schema Message-ID: <20210205202747.GA3664957@robh.at.kernel.org> References: <1611191015-22584-1-git-send-email-peng.fan@nxp.com> <1611191015-22584-2-git-send-email-peng.fan@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1611191015-22584-2-git-send-email-peng.fan@nxp.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 21, 2021 at 09:03:26AM +0800, peng.fan@nxp.com wrote: > From: Peng Fan > > Convert the imx rproc binding to DT schema format using json-schema. > > Signed-off-by: Peng Fan > --- > .../bindings/remoteproc/fsl,imx-rproc.yaml | 59 +++++++++++++++++++ > .../bindings/remoteproc/imx-rproc.txt | 33 ----------- > 2 files changed, 59 insertions(+), 33 deletions(-) > create mode 100644 Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml > delete mode 100644 Documentation/devicetree/bindings/remoteproc/imx-rproc.txt > > diff --git a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml > new file mode 100644 > index 000000000000..bce6ccfe1538 > --- /dev/null > +++ b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml > @@ -0,0 +1,59 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/remoteproc/fsl,imx-rproc.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > + > +title: NXP iMX6SX/iMX7D Co-Processor Bindings > + > +description: > + This binding provides support for ARM Cortex M4 Co-processor found on some NXP iMX SoCs. > + > +maintainers: > + - Peng Fan > + > +properties: > + compatible: > + enum: > + - fsl,imx7d-cm4 > + - fsl,imx6sx-cm4 > + > + clocks: > + description: > + Clock for co-processor (See ../clock/clock-bindings.txt) Drop description. You need to define how many clocks (maxItems: 1) > + > + syscon: > + description: > + Phandle to syscon block which provide access to System Reset Controller type ref > + > + memory-region: > + description: > + list of phandels to the reserved memory regions. > + (see ../reserved-memory/reserved-memory.txt) Don't need a generic description for a common property. How many and what is each one. > + > +required: > + - compatible > + - clocks > + - syscon > + > +additionalProperties: false > + > +examples: > + - | > + #include > + m4_reserved_sysmem1: cm4@80000000 { > + reg = <0x80000000 0x80000>; > + }; > + > + m4_reserved_sysmem2: cm4@81000000 { > + reg = <0x81000000 0x80000>; > + }; > + > + imx7d-cm4 { > + compatible = "fsl,imx7d-cm4"; > + memory-region = <&m4_reserved_sysmem1>, <&m4_reserved_sysmem2>; > + syscon = <&src>; > + clocks = <&clks IMX7D_ARM_M4_ROOT_CLK>; > + }; > + > +... > diff --git a/Documentation/devicetree/bindings/remoteproc/imx-rproc.txt b/Documentation/devicetree/bindings/remoteproc/imx-rproc.txt > deleted file mode 100644 > index fbcefd965dc4..000000000000 > --- a/Documentation/devicetree/bindings/remoteproc/imx-rproc.txt > +++ /dev/null > @@ -1,33 +0,0 @@ > -NXP iMX6SX/iMX7D Co-Processor Bindings > ----------------------------------------- > - > -This binding provides support for ARM Cortex M4 Co-processor found on some > -NXP iMX SoCs. > - > -Required properties: > -- compatible Should be one of: > - "fsl,imx7d-cm4" > - "fsl,imx6sx-cm4" > -- clocks Clock for co-processor (See: ../clock/clock-bindings.txt) > -- syscon Phandle to syscon block which provide access to > - System Reset Controller > - > -Optional properties: > -- memory-region list of phandels to the reserved memory regions. > - (See: ../reserved-memory/reserved-memory.txt) > - > -Example: > - m4_reserved_sysmem1: cm4@80000000 { > - reg = <0x80000000 0x80000>; > - }; > - > - m4_reserved_sysmem2: cm4@81000000 { > - reg = <0x81000000 0x80000>; > - }; > - > - imx7d-cm4 { > - compatible = "fsl,imx7d-cm4"; > - memory-region = <&m4_reserved_sysmem1>, <&m4_reserved_sysmem2>; > - syscon = <&src>; > - clocks = <&clks IMX7D_ARM_M4_ROOT_CLK>; > - }; > -- > 2.28.0 >