From patchwork Mon Feb 8 08:56:02 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: 378541 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp4517499jah; Mon, 8 Feb 2021 01:11:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJz0nfuoixhg7s87E3lFwrqobDKa9VVOrojnWMexNS8lMSl1RWODEpJKAVoKbj9huFymGTbu X-Received: by 2002:a17:906:c08e:: with SMTP id f14mr16629831ejz.388.1612775506818; Mon, 08 Feb 2021 01:11:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1612775506; cv=pass; d=google.com; s=arc-20160816; b=jdDjecQBXVN+e64qUlSfYfEoM3bLx/zAqA1RuHDBeATPGAYqx25wMeV4cZATGhdAT3 EHCptc2RyWEcPAO6x0ITwjZfV1uv4ceJBQpHUefIhEViuh0nxTJgx5coXZyqelh5F1zY rCsD1/iEeBUHOb/2x25MqU2SPL9zmFrtmomZzx7rvERyTwhHuQ0qdW5FN2UK3EZD/Jw0 8lfl1yj0GyYW++DHS/yhMgtqq38LQjC/qRG5vqP6SZRdwkvnj1Oub/6umBhKTtcDpYd4 SENtsikS3mg2LYzQepkXELmJ2+XGa5/2kd2ng8ZpjoHkfPfVl371FI1/Tr228n5H6jIC dZMw== 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=5ya5TZ1TPJCBO3tXK6VZCcn/yLGZLf97GH1cX0cehIU=; b=gbLYE4OcP9On/OvmuY8dCwYrlbCGqsabAul3WcJ5WH8/1o/s1ccnKdzkIAywhYeYr+ suq62RM5dPrW+/KhEG5YmBqUXWNTPjFkd1l7NT2et207tzoTFPjMDD/ULZmoGDqTh6rz BOf4n/b8TZFxCgQr+RiWJ3s1b15CY+AESSrSSmdIt6jzfXCVpR8HpYrxr8ivWi1MHyZn TdhHRkUQ5aQzuk+V0Gea8ZPjnTB0PcmZ3Jg1QlcT1BrxOVuImUL854oW0ZmTGN4AQpfr 6BuS2YueMJKwwFqSNoUdBudImL9VWsx6Sz9BkqOP9XV8WsPBdrd15PytHTH8PCJN4Hhv +v+w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=dLYmhoQB; 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 n14si7081278ejr.267.2021.02.08.01.11.46; Mon, 08 Feb 2021 01:11: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=dLYmhoQB; 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 S231400AbhBHJLa (ORCPT + 6 others); Mon, 8 Feb 2021 04:11:30 -0500 Received: from mail-eopbgr40068.outbound.protection.outlook.com ([40.107.4.68]:17732 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230396AbhBHJJ1 (ORCPT ); Mon, 8 Feb 2021 04:09:27 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XXz+7EFrxw5oEDXqxwOTQVsrWkpUqEJw939qYDhwGDAHJjXw8QM2nxS6nWwJASyDciA1GLoTXB/Kp+ZdUDsYOlmFyhAwX0CEvNpsnYTqQLfDsfmEY94bWYP4Yba/OsUl779QBGrd7CAoSLNXeO70qi6EvVkJ6XWy+Mh/5JEqC+RBpbs9IOGH15bfPx8j4ZxPMCsw1EseEVQX47Fe1C1OxkQMXuskCYaRq+QXV/S219og+or43cZgzXoXfm4goTI2OTr/dEHrIzPJ8YeNmQaCmgmeG1oqzRFMppJ9I/or899J0aE0cTcPNiSHoaWFnIaZJKvsjHfoMAgpTZxoJ3zyJg== 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=5ya5TZ1TPJCBO3tXK6VZCcn/yLGZLf97GH1cX0cehIU=; b=Xuy3TnxUP+Vwf04sRSpg2imXA43iy/ks+KDKUYqHiR+sWyMk3xYBAlELK1xklEmv0Fh8Qfe9zW6+r5UgRVWqcZBHDS/Vr3HjfHbE9EssiyAobA3YxZu8lnp3ClTdKnT5z1NkXgJ1QkqqNR5tPPRF8kHTrPNRuCgMq0t9UK/dPrH6uCD3EpR3TfG0EGyWInUWqdxE4AkTUdZr8Dg9SUc93wakQfRUo2Rp3krvqshbVXjil1HsMJ1OOWZrElEZtAsZwDbN33XGvS6k0GjZjeERCVDGGqWQxOF5BSgHF86eE6xKfnw2982+tyuAwkDZ7as51tTcO5kgG4WwOXirpRP9Bg== 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=5ya5TZ1TPJCBO3tXK6VZCcn/yLGZLf97GH1cX0cehIU=; b=dLYmhoQBZ1BWix+eyC4j+yis1aASVdhDcO0j/vmqEkJxSQC2j7mNmm9Lawq4hzcul9ajwsuUG9YTh1zgQDILgI6FZNR7EsconyNaxYjh8MhAu/Fn5z34QlVbBb2bkvd4gkVn0DWrqoD0DVaqwZOA/MXoof7A5guyCVVHtxymzhg= 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 DB6PR0402MB2933.eurprd04.prod.outlook.com (2603:10a6:4:9c::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.20; Mon, 8 Feb 2021 09:07:43 +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.3825.030; Mon, 8 Feb 2021 09:07:43 +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-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, Peng Fan Subject: [PATCH V10 01/10] dt-bindings: remoteproc: convert imx rproc bindings to json-schema Date: Mon, 8 Feb 2021 16:56:02 +0800 Message-Id: <1612774571-6134-2-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1612774571-6134-1-git-send-email-peng.fan@oss.nxp.com> References: <1612774571-6134-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR01CA0102.apcprd01.prod.exchangelabs.com (2603:1096:3:15::28) 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 SG2PR01CA0102.apcprd01.prod.exchangelabs.com (2603:1096:3:15::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3825.19 via Frontend Transport; Mon, 8 Feb 2021 09:07:38 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 82ed24a7-d0ba-4e6f-d527-08d8cc10fe6c X-MS-TrafficTypeDiagnostic: DB6PR0402MB2933: 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: GHyq4+h0SEnN6IXfpVMA0+vEFPMlQieq9KAbLWe6DklYJld3H91qOTAiErCIZclZF9CMMHlo7+bMzOboHSwzg2Ay4PqxvpsCa2m1rv7ydE+akjiXdda2TXUnBQhJmNpeh6XdMiAiHHJUEc51+qhFl/MMZbUYMQt5AOEQkXDI8dxqQnDGkwuq0b8MbHCEtztG2z+muKmWiGpZ8pGq1tt3yMBYPim0vfuUnSVXRRpj+z/RNG0szK7ga3BsByzxlUNSn3Tpf48nrk1/ADC5YAkQBGh4sCxEeA1xqejiYd7MOI+9/G5727klQu20RaYgP3BitUtUU95zSvDL6V6WSyJYbyLYrecVRFtlDdqooSP9rallGXGnQpyrT9gHqHckjj8WpunQ2vAk4+q8D5SFEjpkp/BHqXBINiejbuxUMBWPfzm8uDoVSGt8SsmfyAtm4GDZe9wZszplOOOqlzTDPMXiD3f9MLFm8JI/MBRK5R6WC9Snqca7WeMbFI3Gd6j/h43MI3VMNLTXk1EfwivmeTqth2gdszx7v+oGBdiFsxWvy6l2L4Gbo+qdGoCYLLD4Pqs5ccomZ3fPCr4KXRu1e96NLq9o8DFClw27fvG/KUtYyXm9S4IOTuASPhxCzhl2nkTx5yUomteX8koKytYimZJltw== 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)(396003)(366004)(376002)(346002)(39860400002)(136003)(7416002)(52116002)(6666004)(316002)(83380400001)(4326008)(8936002)(186003)(69590400011)(86362001)(66946007)(6486002)(8676002)(6512007)(478600001)(6506007)(26005)(956004)(2616005)(5660300002)(16526019)(66476007)(66556008)(2906002)(9686003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: zZsvSCegEjPA6bMB+WR5yhUxLmB54HDRAjvSn13kfwW7MObx5neHbpJFeiI5Lp05B3lFLuSd83yAnzmIwxVZFDY0g4q8Khs00j1qscxlv2Bfs14UVmg89lgwLs2UMipgo4upo4OcL8QXOcZHgT6Vire0Mg5rLjRdXRAiflcCQO0OqMo/QlNU5W+Ct62+p6oZm6koPYmdPxHQyk+kDEpnBEJIZ0sX9nSv8nBdRtIAcDkABUNs6bwnB+5ej/O4ObA17+gbpBIlQUSsCzPDZ+KygtkbF9ry7kgVGYGiUNfcPJqH/FOwC1nWN9XbTNS9N4ilbhK8t2SxKcMNXCKFSR/ee1Uif/2IZd/c7bzl/QtDluvGtEY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Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Feb 2021 09:07:43.5742 (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: dQ18cgQCSMquvyQRJottCLQOtMT9ROnRHU3Ji8YcMLChhnxLngTdN4eDT+1+ivQHEuLt4GMMuPqBytA1KtbPqA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0402MB2933 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 | 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 -- 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..5e906fa6a39d --- /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: + 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. + +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>; - };