From patchwork Sat Mar 6 11:24:16 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: 394537 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp228363jai; Sat, 6 Mar 2021 03:38:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzeVLllnU0/0N63l2JGoX8u81maixeSF61fj/IPxBzDXEkFXvwcd4kjHt2w7izhxdPQlIeK X-Received: by 2002:a17:906:a86:: with SMTP id y6mr6758847ejf.354.1615030726038; Sat, 06 Mar 2021 03:38:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1615030726; cv=pass; d=google.com; s=arc-20160816; b=m8TquHT/DWwUlAY+R+fsfeuToNgDGVHyJv9m7uemZZWmfjbx/YxB67UVBGdsXY897P 5WFD+BxUeaT4PcDVUE0lM4LrrEeHNqrJz3XiQ3QX//VfxBZ18qv371vYbg5E6kfix6sv i7sgdNkWmTm1kY7gFpmVhQZgRZkt3+ezBf6gXPGeDOz3hJ1Xs6gS6tbhJfTBtOSSlk3C mqxaVKPaWo1H5X5f6uWl6djIYx9HfEvIqcyvaRo3G3ryXhzRj91zYMSKNaEeyfVtF8WF ytUV/RR2zAlTe82eVhoGEKZryJ+XFTy5WRdj8eXpEl0yAmn7zK/Nws2F+yuFoyCbij/B fjwQ== 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=bW9Htu1n47oDKM+eXcsPgFWphS87sV8ze34NriTB03DjBnHSxKR7yX45HuOnXCctdR GrVbNxIMRH3jO5ucT4BHWaXLktm5Gyo0ODOCABWqr+bsui2TuowFze5WLsm5BksniVit vcsBZ0dmxTFuUKq/vddfsfHH0LpopjzXvkb+b4BWmUGM/OW51UDheArHEqSr+S6fE5I/ 5dEVzi5b9AIZK1cHKCKvsWB3wU6G3hXHLJNrc87UqH5q12QFhj++teEQU8P9OWJyrfPd Y5lohjtGRMlp7pFc+ulKJqafSeGn/Qx2ZGDJIaRu3MJO+BYlA3ECaa0qNL5hY0YpgMrM MgXQ== 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 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 q3si3186237edv.223.2021.03.06.03.38.45; Sat, 06 Mar 2021 03:38:46 -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=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 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 S230412AbhCFLiK (ORCPT + 6 others); Sat, 6 Mar 2021 06:38:10 -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> 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: W7ZXXEn5it7mGW2UC/gPJTDICm/DfSMStum/J0UhQ1P0z6PJ/TElW8UXe2tOrhxEMy2y7QUYxKYJE8+y3C9pK9eStOwDeU0oGPjDD1pVKMUZM5MqW+4cRBpOJJPm6Ttg0GV6VuJh6Uh5QTdfNnMWQS/miIx9vHATEEwR2MGjzz5fyRhyPN+5mkGtpj6m8IG9vsFBMQ04juQbXNkRBtumjyL20AI22b/dwLoLjWhh31QDtDzd71OHn4QBlIb4qEjBeHlR4+FFyuUxl/iLbCYwmfbWPjGQGq1cPYj33cHLce3HjLhtvB9QQRR8GqTxNRAthIiurUQrNdyeQsOpCQBkj42bY5k2JJ5YlfAjGXd5PFPCEt0l9kx6655gdXFVxXgAoFFVrZtsMMdZUG/iN13kjWhsTRBeJ7bUaMkdlJQKiUIeyKkwKtG7VhdeuCRAP99L4mWFoodTrWfL621Yl0NlawQ+r3Pirq2m2cd6Zdk/oaEBOCRhi0Rk2tJPSvQvee2fNwCNA0Ra/JlvU3vxVTUI7A0IBL7UxOUxGs0Q+hAhot35XgzGx9w3CLE2LxjFS5Uur2o31jh0rGs0xYxbW4snnTEB6R2vH+cej5VH3Vc8P6+7Yo0yrDTy1RwFpxyDOEAmAHuO8YRkG0ZOSk+QsoBDQ5t6dyFYpEOyVRPTfbWJVbjgn7CzLOLaIChaScAz7L5h020ZheDjIp0IVZ5NJ6bYqIm0sO+ea17j6zvDZxz+GOKyx6ba7ORK9iUO+QtsnEaz3uzXh0p0LQOWBG4Yy5baPHnvnDbgSOvsnqUd+29QDG2gstGNZTmez+OMz6Pj/Ke3ZGh0bHWrYJYdv9UPjQ4S6/zyWfLl/hBVbqQoc/S/WGT1ETu6Z15RDLQssT+QN6gzCKi47uOA/MBnLGJnrkuKfgm361yumBoLBEZaKvDa3MOkxdj3D8cF276ey35VfMw6+ejJDABnkETcT40X1P+G5AqeiMk/tREKxVbAj7G4yjPW0LtOPiNacCf0PHvFaUadGHRJsGwlnN/EfmycjHz3pDlt4B/QdBHSD+b4p93qioaUZVqA0GvvqcAfB6y/UYpm/bCocVYOMzqGs7RuK4rHRu1EZX7vlM83ZxUO8jL79h8sWnbwMg5fBRT8L6uoF+ISO1ynxmOv80tPCPDN3nFuhAo4GGAPdNGkFCwMc5iOfb44Bx0haYdiXtbARfWJvY5RoRXX2/x+BVQ2mcf0Z87gsihzzz+m9QW7DVr0hHdz0m8hg0W92ngi4TUo6zUg6oCeacdH+CXL6EBREbwQpAoly/VapTW6/6ElTzD2FvdUOa/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: devicetree@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 -- 2.30.0 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>; - };