Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp402188pxb; Sat, 6 Mar 2021 03:42:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJxneIwCeg2DFmkK3jvHFu/WXbCJ7dDdYyPEL/N7eFppkYTyXY9+3bdyzqo/02mvaaHvm6ea X-Received: by 2002:a05:6402:35d3:: with SMTP id z19mr13388432edc.143.1615030957911; Sat, 06 Mar 2021 03:42:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1615030957; cv=pass; d=google.com; s=arc-20160816; b=Vu+VGtbUUjkXouJUQU/qXZhwmEbRXqCMgbNVfrI/2CePkH/VM+/rHnpuBBXsIfx76n UH69yjS8YdxkGS9QmLWxh2S3h5LekpD77m9+3Naa0Uh/fytN3BVmqp5PgoSE3M3NMrO+ XFQnYmV4JbN0sbvDJJwlY6qOd6ExsN7ixfEAzwh+ZiLGYwv3AI3n0tH6sxs9zgXt52ZD 8db5EvD1FWjwesUriqpPmJPrVvhliAo1ezKagJ9L+I3FZuafSFRW5I1XB2E856iZKQlG Z1EfQjaa+Y4fCIqQ8zQ0k3CYsiWfEksAGP/vSAzg+YLV+YZSYKcfQkuqR7bFkkdCxlCe ws3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=9A+XP/uWsN0e/CRatf8DaJuBGXINbHwchccy90gEerE=; b=CPrL0ncYN0AELawqsUgvgsahNU5yPg28n11L6vEW6tlP02at84PqRIx7+NV8t+Yy1h ZsQoya/MzQVbLHCtTAk4Ywis+ajYSQyS8jLp8QgepWDMc/KuPYlu+oB+IBDFaGsHjkMU x0SainpEQ+ev68GP39QszP3HroI5zb74gZhHXqYd0jnhJ2dYHkNv5IcXNa9tiiIf+SpT j8emd5A6s87PnZkfjwBkJI22lrwT+qIEjBySdKxKAAGxYhZfK6nNFeCaa0a7PxOHRqp1 UqQ3aOCllbE99A8C/HSLrbo9b+pOPbvszRmoIOqTtqoxKa92XkK5OmZp/wfsGIyd+g8a q4JA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=N8DiV844; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p2si3227310edr.107.2021.03.06.03.42.15; Sat, 06 Mar 2021 03:42:37 -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; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=N8DiV844; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230438AbhCFLiO (ORCPT + 99 others); Sat, 6 Mar 2021 06:38:14 -0500 Received: from mail-eopbgr80043.outbound.protection.outlook.com ([40.107.8.43]:23521 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230227AbhCFLhs (ORCPT ); Sat, 6 Mar 2021 06:37:48 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UsStnGwphUccFJ3fya2lUKhlK6XutLm3YdtaXF0yn0B5P0a8Zmi8qm8LROyQJbE/m+MfbXpFVkqLR8VRsesa5XpxyCoqJhN/ApBJGG3EUnjVGLtOoxh3FmPghMjmlETyoV8SPRXBHn0nQ4ipmeZgudltiZcj9cIzkKOPNrX5wwSvBNDDCGmQPFgxpdlAuXbrs8IodguJ4riNoZYZypZX6FoCDJCF83xaZQ0LG3RFqioa8rHCb3L6QCXkuRhmiYeWmk+GB1xzfE9ZpAzZmEINlo6LZ3n2zeFPVP3zlHm8i2WI04F+g4GgpddfGZaQfsDVh+fqFHbtaO7uEDJNN2pEaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9A+XP/uWsN0e/CRatf8DaJuBGXINbHwchccy90gEerE=; b=dHAZNyzbYM1fA0SJ1a1WSCgg8TeQLTCAXmaN89jc2TWrl1EyqzIa4YeINIwE44FLTBb3qC42rOlBNdcTxO7PyLCzjtOKRxJ355DADaTYVXPDfbz4O2sAaG8AJBj9puepUU6EU2JxDWwWbYJHrHIl4CHv2d5tcWqwdUr1g+c1+n0RqYkPz4xCYE2D3sZFpyuaLrVpwfCYXpjxQSL2+cGOEPBmS4+Xrzsyp4AQu59i3iFOflMhRP+MmVy74MAIo86KqNoe8IUzyExQuJyu6gMDPNS2HY+y5qD1LcVk7SxcAE4jcJU4I0sEn0cJ+N8NgPkiJM0BVotZtwHcWNEgyLWLtg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9A+XP/uWsN0e/CRatf8DaJuBGXINbHwchccy90gEerE=; b=N8DiV844EGhtNutiZJi+R1YmsNU+Z4K29g0WRpjo+hCXRwcLAFiUjf+r/Zr/YxVe8Iz1t4OK44kI/p4IzV2DYvpUhHuBfXyyE3nYCRz6RZBLQWaLZy4V6QDH6IMS/xysreKcE5dYBb8y02TzVYJi0g4pfOG4hk4Bygrb2YfRDXM= Authentication-Results: wizery.com; dkim=none (message not signed) header.d=none;wizery.com; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB6PR04MB3016.eurprd04.prod.outlook.com (2603:10a6:6:a::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17; Sat, 6 Mar 2021 11:37:45 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d58c:d479:d094:43d0]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d58c:d479:d094:43d0%9]) with mapi id 15.20.3846.054; Sat, 6 Mar 2021 11:37:44 +0000 From: peng.fan@oss.nxp.com To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, o.rempel@pengutronix.de, robh+dt@kernel.org, devicetree@vger.kernel.org Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.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, Peng Fan Subject: [PATCH V13 01/10] dt-bindings: remoteproc: convert imx rproc bindings to json-schema Date: Sat, 6 Mar 2021 19:24:16 +0800 Message-Id: <1615029865-23312-2-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1615029865-23312-1-git-send-email-peng.fan@oss.nxp.com> References: <1615029865-23312-1-git-send-email-peng.fan@oss.nxp.com> Content-Type: text/plain X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR04CA0047.apcprd04.prod.outlook.com (2603:1096:202:14::15) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by HK2PR04CA0047.apcprd04.prod.outlook.com (2603:1096:202:14::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3912.17 via Frontend Transport; Sat, 6 Mar 2021 11:37:40 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: a04b62fa-d58b-4dc2-9af6-08d8e094426d X-MS-TrafficTypeDiagnostic: DB6PR04MB3016: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4941; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WM1ISYpzRGXhm9NgbGQjuZyzFH70EWSwglWCVdYpPrNiEA8qBBDrAH8YmxW+CKmU3DXvfS+Q8Pic1HMKflPwVosusLQ0jkjwO1apGPlNirI1/EUZiOQhgS9uLJ/ooW+n7wz2vrNcUdepaZUkSnVHJUn2zPxHqpyMqikMWV4Dc6nMkYvU6LPl3GPbzmwAKt+oPgHUJPGn6i4bikts2r5XrHrWfONd21LTdesG8fEpkObB+CGYVX3tsdxlwipcgbm+etikB2cU+bOLeVXP2Ac1PTQpbTLn9/alXUbla40HG9w2mPLkVhvzD4vkOHI5k5sgNyxfyBa3iG4uMgjfT/Z8hwCPV6E4RBZKPP71xpej0ngiYiHx78RnwtEfU/yarGrQYqi1jbPCi1FQUHpRV+HqqVaMk4a6MsE6CDadyzze6VbTzUuShCYAbU+T+jZ0ACqDhmBlQSH/vrF9GDC777Vk0cv/ritVbxIIiGi8aL5rTiUIlGayjYlTpairddtatB7xwEj03eiiX031uGnQaFg+4O+kHZWqsYLvMepTYnrjdqPvmhfJSHs3fgJW0gGeSGtvEqnfzylxcZY0Q9G07mYXLRFnxLy9MuRHDX13r6VkaPaOet3TpsHsbp0zjK/Cwq1und9LsIV7agyCT4bzkARepg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB6PR0402MB2760.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(376002)(366004)(396003)(39860400002)(346002)(83380400001)(8936002)(69590400012)(8676002)(86362001)(6666004)(52116002)(956004)(478600001)(5660300002)(6506007)(66946007)(26005)(2616005)(4326008)(316002)(66476007)(6486002)(6512007)(2906002)(7416002)(16526019)(186003)(66556008)(9686003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?W7ZXXEn5it7mGW2UC/gPJTDICm/DfSMStum/J0UhQ1P0z6PJ/TElW8UXe2tO?= =?us-ascii?Q?rhxEMy2y7QUYxKYJE8+y3C9pK9eStOwDeU0oGPjDD1pVKMUZM5MqW+4cRBpO?= =?us-ascii?Q?JJPm6Ttg0GV6VuJh6Uh5QTdfNnMWQS/miIx9vHATEEwR2MGjzz5fyRhyPN+5?= =?us-ascii?Q?mkGtpj6m8IG9vsFBMQ04juQbXNkRBtumjyL20AI22b/dwLoLjWhh31QDtDzd?= =?us-ascii?Q?71OHn4QBlIb4qEjBeHlR4+FFyuUxl/iLbCYwmfbWPjGQGq1cPYj33cHLce3H?= =?us-ascii?Q?jLhtvB9QQRR8GqTxNRAthIiurUQrNdyeQsOpCQBkj42bY5k2JJ5YlfAjGXd5?= =?us-ascii?Q?PFPCEt0l9kx6655gdXFVxXgAoFFVrZtsMMdZUG/iN13kjWhsTRBeJ7bUaMk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zUg6oCeacdH+CXL6EBREbwQpAoly/VapTW6/6ElTzD2FvdU?= =?us-ascii?Q?Oa/zLMgXEYtizDEokk73xeYg?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a04b62fa-d58b-4dc2-9af6-08d8e094426d X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Mar 2021 11:37:44.8975 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: sZpznS4GMsMQ7mbAyz21VDCOaqyb4hAmGbpIldy8DkyJ4kDNUbZxkydttSF0UgxYUEmtK7AHbLKR1Xku2406jA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3016 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Fan Convert the imx rproc binding to DT schema format using json-schema. Reviewed-by: Rob Herring Signed-off-by: Peng Fan --- .../bindings/remoteproc/fsl,imx-rproc.yaml | 61 +++++++++++++++++++ .../bindings/remoteproc/imx-rproc.txt | 33 ---------- 2 files changed, 61 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..54d2456530a6 --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml @@ -0,0 +1,61 @@ +# 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: + maxItems: 1 + + syscon: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to syscon block which provide access to System Reset Controller + + memory-region: + description: + If present, a phandle for a reserved memory area that used for vdev buffer, + resource table, vring region and others used by remote processor. + minItems: 1 + maxItems: 32 + +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.30.0