From patchwork Thu Feb 18 01:24:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 384350 Delivered-To: patch@linaro.org Received: by 2002:a02:c80e:0:0:0:0:0 with SMTP id p14csp3281344jao; Wed, 17 Feb 2021 17:39:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2e+qzzbU9G1EcFPOn6WDqqXaF4fpJInvJypUSxS0wRLoT8dqsx87ym6KFkX96Bq8uokDB X-Received: by 2002:a17:906:9bcd:: with SMTP id de13mr1600621ejc.245.1613612348565; Wed, 17 Feb 2021 17:39:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1613612348; cv=pass; d=google.com; s=arc-20160816; b=YwqCT0RHEprkiAz0bFsKX9asbeLf6YQtG8mDG/1SZLD1TZYxziNADlYUEvvgEd8R+n 0eiuDzDXMxm+ZCsWnCFsUw4zk+2ZYyWYZXQqTUAMTDlKUjfMY7FQt7oue7ZALLDUrEOg VBE1wDwiIEKKTAsHsc30VKuy98i1dGObNGK/T1NoVJRKFtavy/+mv/TA+D7I/v4R/M5p 4ZTSdp9pMHWukHvYcWmfjDwAOHGAryyamuS8/HyQxb/zTrtwd9TNnKiGbCZioUqvsff8 Ho9WURN/BeRHXLjN5cOCyjZR6+rYGa8RtXPbaMhtxLodxg6QO2spVhzVEB0jv0eyEy1H PqZQ== 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=yt+axGlyrTIDQD77uBCs/V1sEzbEHvwbaLemP3XgUOo=; b=WhOz8L7HDWb9Pqf3HoWbkM4G56tGAvjrCq3rIe9i/i6sgPUbaoFqHbVo3zKDqI23n8 CafG7l2xvbqPxdUpRtsOXA+yD6lL9Yl4C4NCY9PlCHkvfFqTc3iOw8vXaHgK9Ug+A2lo 2zQ5Lm+f9W9kqsEL9TLk90Qls6iBMgxjoroub52qql1cpulIPxOT4yvY7EatfJHpHvt2 +VmrRlMillSALabnrwyBEkX8ELbaKSkxwmk7sWYb353qYJEwrse3dmxnRTgLvPsNoieA PO7FoVdTJ4Pc/tj69PI14VQGWqP4Pcc8LF2YBJYgJDbIcRxq2o99D4ydH4e970rkGuK8 FwrA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=EgPqD9iW; 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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 e1si2551315eja.255.2021.02.17.17.39.08; Wed, 17 Feb 2021 17:39:08 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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=EgPqD9iW; 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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S229553AbhBRBiV (ORCPT + 6 others); Wed, 17 Feb 2021 20:38:21 -0500 Received: from mail-eopbgr80057.outbound.protection.outlook.com ([40.107.8.57]:29216 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230125AbhBRBiQ (ORCPT ); Wed, 17 Feb 2021 20:38:16 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NAaq8knHt2COzA7f1yzPSME6er42aYVXf31qXudX4la1qFEqoZQMH8qzDcIpPooLoLZeM16HoFcdTVNEqzn8RcXoQInTgTOBz8zM/+/a74G1qioXH+Oq0YEQev8qswJK7AhqYG1AUAPE72Lk/9SdIaz+2qGOfvQ1yxOi3a9mH+9KqYB/sZWofVEsomI5pVtmNlhmbB8oCUQFaLnTWtkHrWQ4+JvO/Pr8NhF0UyppabspAHBVOvHXHNuAe0vdy5PRkRPwiv+/GcSyqneMyUOi+pHoAsT9DuOSKM8DdjM4RpPVcFxGfkg9bVvTGe3KURtW+7ASGb6PClMvThlHQMbenQ== 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=yt+axGlyrTIDQD77uBCs/V1sEzbEHvwbaLemP3XgUOo=; b=ddELUmN3mZtrDnqdwYj79Xd8DGmzBDY8gxCnh7Hq2r8n8zqnPCVu3HoQuoy9L0YU0wxopKdvEqU0O+yZZcpUvJkMC8SrOgq8+3EZ4t+05+b9fPjO7pTyL6absnB7zfRtjuHGasAveEuxj14iTZ903qr80ZG1oVMvCt7esyObVaS2P6RFpsIngvT7V40bljNrgvyq7jV8fsY+3FHp1eUlEGyby7EJJKz94jVfw5YtABy46qe3Tmu8QRw9VsIudNLsxYWVuWmGFFitlmoIN3zxOYPa8pCbhzkofessJmLLkmUyXqIKJK+V3gIVxCuPeKGpKpB+7Av49QulQwzmEr4u6g== 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=yt+axGlyrTIDQD77uBCs/V1sEzbEHvwbaLemP3XgUOo=; b=EgPqD9iWX3FpNysdllMoKT7ABzHpQYYpxAOlOy897Taa2dLO0xWzZPRtHiLS0RLd7dmzYjT7D9t/Q8xD8lbPZOCd8aFe5Wb/xyMoUjwaWjHSNWcEU3D7qUyhWHG5AVUyMhfWjC+hrBHhdw7+ZFdl7NxCp9c5Jzt9Pewm586hgAc= 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 DBAPR04MB7285.eurprd04.prod.outlook.com (2603:10a6:10:1ac::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.28; Thu, 18 Feb 2021 01:37:01 +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.043; Thu, 18 Feb 2021 01:37:01 +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 V12 01/10] dt-bindings: remoteproc: convert imx rproc bindings to json-schema Date: Thu, 18 Feb 2021 09:24:51 +0800 Message-Id: <1613611500-12414-2-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1613611500-12414-1-git-send-email-peng.fan@oss.nxp.com> References: <1613611500-12414-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR0401CA0005.apcprd04.prod.outlook.com (2603:1096:3:1::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 SG2PR0401CA0005.apcprd04.prod.outlook.com (2603:1096:3:1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3868.27 via Frontend Transport; Thu, 18 Feb 2021 01:36:56 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: b60465d5-0ede-4b08-4665-08d8d3adafe0 X-MS-TrafficTypeDiagnostic: DBAPR04MB7285: 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: DHY8xBvpbDwwal6ggx2DkUWacG8/lV0EGzX/YMSJpbGrHEdC6DoxCvA89jzZ59Etr6923LcJYT4CJCHrMLDlaTZ3YRCShvDb5q1BD6fimOeCHdmxXGDuA22b9WUefMJRUFhbQRBNqQyQpv/k8zwSF1gxKPDbweDD3Ho2r56eRoOW7emj/Xcy17mO4E7smMIyEUdqI3tmFSSCoSh2WNtq1mFzaHGsByNltxgUoOTOrygmoHcQUbkoISJuXb+JDWyQ8aTuEW/EVluCbK/MS/W88ybNqPCC5cIB7FOKIiwNY8ko8KnFxfNjKIivcwJ/bI1JgifwE/ogiGWhd8REIdNfjErWhP4cKKx1DB7NAUT1+SKukdeel1KKOXM7tAObVIZ6MdWhXdy1uSReZ4eQpQhU2w51Rh4fzKZRRnGWZFIq9iiI52w3xwZGo5jBO4BJtL3lwiQ1gFp8CzzBI4+YMBjrmbfX8TUPtH3TVktTh+cwNDwyC+vuwSLe9HoFEm4s9D2idu8HZMvJbOqy7OtdN/SOz9YhbpHUREYGEzw8q5tV/JwgaNinVp4x4obILOe0B6Rv6TUtB3wN4HTplkn9I+GDHpwNLphc6AaDAseDEjxhJrRwqBTGzu4/aZ30my79utWAdvdVpcukcDLNAPLWt5W1NQ== 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)(6512007)(9686003)(16526019)(186003)(26005)(5660300002)(83380400001)(6506007)(69590400012)(66946007)(66556008)(2906002)(52116002)(7416002)(316002)(66476007)(8676002)(2616005)(956004)(6486002)(6666004)(86362001)(478600001)(4326008)(8936002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: Gxn2BSwOgheO5pfagehdbiRIBjYUQ6Lt/JloJjG2U4ZDjjv4FakuXST4aVg4c43az8ChoE06/3d+E7jkbZhPGwuQI1M7Ko/eilr21Qv/XtFd5NKzie1b6tIQ7jpa20S4bFrTMK27RxiV9pqpfMPywjpRpzJzVqbOqj+57EwL6qA0nwN4No7m58P4uWucWJxx0iayved96MHo6Y0ekdnlwkBJDj5n2h4IFPg6blCXLn8frkk8ZJPXPCGp58LDKGT4PpaW5uZqr66v1+O8DWtonYacsGPULHOoAHExgj93LEmuwEu7c0uyJFeRBBD1EsbopIxfsLhTzMqs1a+jVzszKy5bpGzMLpRlYGAXKYv4JsRTmF3sTfBsiICDZmx04+/QPC6WXTh3NsUr5sSwH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outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Feb 2021 01:37:00.9217 (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: NWL7ZZOF294wx7R27IdprNnkBmkfy6zBMbsXurGHX5vrc2rodxFFW+KqatcResd/543o5XgH9Kux+xn0JNzrlQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7285 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 | 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 -- 2.30.0 Reviewed-by: Rob Herring 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>; - };