From patchwork Tue Jan 12 09:39:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 12013067 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88FF2C433DB for ; Tue, 12 Jan 2021 10:05:43 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1FB4222B30 for ; Tue, 12 Jan 2021 10:05:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1FB4222B30 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=YZEntgS5CgS6SDa1MPoH2L6YM5quK8jNwhlobHetRyE=; b=jJXBGwjNObMiSv3bwdiJ3x/A1 a0AryHUROHqtGQc9plj2KJt5rMGV0MIUGiLkqOlG08KIoCqLM4i5GpcCCP/pYFvkoVN76KOYFaLEv kTIJEwWFoPjbvzNRV/FZBRi+GtchBRbkX2MmdZy+if34+G0Su2Qca4sW9hX00AHiA7Ea9FTIMyVsM 2Sir+KZq6A6BTdkh4yVpOiO8fJU58tOSvT4LVW0iIiatFgfWsvbPiBSk/8WT8TkXUqyA7NvRgplTF CqTbJs9axofEzjj3OS5vzti2fLy8zVzSqcd7zJzbsDm32Xk6OUrH2fWPbPybNa53QvIws84fUZpSM TC1avaHHw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kzGX2-0004BW-3T; Tue, 12 Jan 2021 10:04:08 +0000 Received: from mail-am6eur05on2066.outbound.protection.outlook.com ([40.107.22.66] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kzGWy-00049c-Vx for linux-arm-kernel@lists.infradead.org; Tue, 12 Jan 2021 10:04:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k11naD3oTFkD/L01ZF9xnuCLYYHmOzA7xbwIJzCUjElLggpRHynNRZdBB5N0+MJ6v5q7/xutG/9AOMO71TcTxbCDOx5/lMsrpXx+cLTenxLKkIGyVf7wk9MRhHC4QvSpU0BTzTOJhdSixh4qnqgln+Xvs6B4f/ldRFV8smxIgk+DK0X7qRfYEeQnCMYI/nGzN2lQGO3fRR7NoK4eflD3Cbt+Gnj9owtTAp4mWj2uCLwVbLTcrY7KGFeHqioEH7H4B6K/WmUFE3zcw6QauU34oNo8isaehEaS/CaBqc0UNJYkTm5heVsMu92o1lKXevREaZDZ+wIkZXDYXNMDPAik6A== 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=gDE+R7Ch/mAEdmQ1FO6tocOoj14gW072NHZg/cEzn5o=; b=d/AulnLDUhV2VmFGvFgmC6wJ6bHVSFMSIDPV1fZ2vjwg2FttdQ+lOXXhXuEeUcY92p/6sfZyJZRc1P8mURy+U1o9OPBQ+qRYKvheMnRQ/nMTqipKmke1Q6nw1XWknWg8iObgaSoYDiB1Eg1u5kSQ1t1ZjWnAOuS7wJO3W4lx4KggtVggRNCyS3dnp/TDhLWzGyQfe+ULbLHm/tcI+pN6g38LVt2I30xTUApqx2B7jndJHD9NnrHt00YleUccH/qEM3d8SHCFmEeSXhnao9H8EMtrhUqIrh+GAJHhjU7wC1dVFFtO/2TMT31wcDT1BM0bOueK8r7z7ZPBbALQc6Tmwg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gDE+R7Ch/mAEdmQ1FO6tocOoj14gW072NHZg/cEzn5o=; b=FHCU9J4F9Cq5hDR1PzImKBt9yb69pKekKNlyBLs3TdQ7v3LUcUi3fJwY5+XWs/LfpSi8UffwvZv1MDikY+vqQMQahw4T0wpr9r6Aj4EODZaggCZbj7/juN2flF5HSLbUJvzPGtT9V9Nksx6mtIjpvxxYpJFAGo7ZT6shhqpjM+4= Authentication-Results: wizery.com; dkim=none (message not signed) header.d=none;wizery.com; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DBBPR04MB6025.eurprd04.prod.outlook.com (2603:10a6:10:cf::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.6; Tue, 12 Jan 2021 09:49:24 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c964:9:850a:fc5]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c964:9:850a:fc5%10]) with mapi id 15.20.3742.012; Tue, 12 Jan 2021 09:49:24 +0000 From: peng.fan@nxp.com To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, o.rempel@pengutronix.de, robh+dt@kernel.org Subject: [PATCH V6 01/10] dt-bindings: remoteproc: convert imx rproc bindings to json-schema Date: Tue, 12 Jan 2021 17:39:10 +0800 Message-Id: <1610444359-1857-2-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1610444359-1857-1-git-send-email-peng.fan@nxp.com> References: <1610444359-1857-1-git-send-email-peng.fan@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR06CA0212.apcprd06.prod.outlook.com (2603:1096:4:68::20) 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 SG2PR06CA0212.apcprd06.prod.outlook.com (2603:1096:4:68::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3742.6 via Frontend Transport; Tue, 12 Jan 2021 09:49:19 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: f7a1a15d-fe85-4f51-3136-08d8b6df583e X-MS-TrafficTypeDiagnostic: DBBPR04MB6025: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4714; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ASn8b5Di+FE0rUhVf5Q2HfigRXJUdm2aNaWkKOi2iSrcl9ih4Ly/vCv+7LQgvsUmtLAGBdPsMXNO941BVG6wgDbhXPwAgJN1dm+fIc8CIYRBu9twE+S7fW9VN1j3JKHiT6Ydvbq/kZokFNDJGsMIw+TU1iA7Q2j6PhduOJy5e2+xGuJ2qkdyhVKZLMHq4yaYbwVIbCl399wLymD4d+IKrKH5/3b6lHICQbuuY0UkJXPEG3IKc6yQvBVxvBTm91ldhBQky1Gu/l0RvN5h54ITsV3gdSh6y/qrHLoEh2ZRNqbK8jSuEYYaRSk82dheMex6nsJ4xQmrGSFntT5mr7J5pRhGGYrwT8YYUslU1LNu1+w/0niIhUdK+NudwgyQ14cjw0OfyiW5vcKenCEGw6+FO1nLM5JRuryRnrFqwjhoQA1Fjge49kic1dmCJ9UMAFdDBXk3LFT0V0FzTcFNWEv7oIZmnfQiNdzQcXSu0h2ma4Rnc4DwPBljJAyRDdgMZ4lbkUPhS0UbBB5Px/yZr76pVw== 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)(366004)(4326008)(498600001)(6512007)(7416002)(6666004)(9686003)(69590400011)(66476007)(86362001)(6486002)(8676002)(83380400001)(8936002)(2906002)(66556008)(956004)(2616005)(66946007)(52116002)(5660300002)(6506007)(26005)(186003)(36756003)(16526019); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: n/piyPIC1/TGDKw3LJKoBmmTgbfggC/ABbR7Iyucyq/+bSlmefskVmH/6JrtAQOd88q83aF1KoPJR7KkCqTsN94YdRtz8Lt8jnN/i7LWwthLp+YnPhpAbu232s93XyWRWr77XptRj1agpE175u4vP6X36d+C+284aNGJ3M4MRg9OfH6UDvkcMwudIyHY6mlSTf7mO5Yl3xCc5+/zTQNrRJgZsxAhwqbKHeVemuSXzHUiQUYZ2yI1Zbov0qQFGJlU6uJGCYqR4/AlJB9vQJBs08R3favFVtMFeaEN49HvZMoTp7ejvWjPDZJfn8YFDOZGZd3plGYhyREEmFJlVQFvpDjd3JKn0e0Pjy8mrmFJfZuC/Q+FJs2DJ9sseDyyi4iWfOhbhGNN+oeI/bQkrl4yQJ1qw2vngfwWA0ALFA5klOGz2dNwbIkvVBL4+PJZ1gP7auGD+IeEN1nRM6YMDpyFHHsHzmbnNvPECrby2eUgs0oA71k8LNyIf/bsOnaUfFRMhbo/u5jK1E9LXSZFnMM5o6tPIvyml3Up1rHpkOicYm7e9+KAp/OooKBcqcAyAH9Dpkn1p+ll3AGCpJCku8YbSR4a/8N62HJikU1oPqP+Eue2O+UdZimxPFcJuBNiw1+OaPAfq4xRS6laBJ2d+3BRCA0288SgV0DKYGc5KTJQBD20EilRzynLjtf6aAl+rl53+IZ7FODI0J6bWgla5ZSKz4K65ADnji9fez+FZkeX9Q9dqePrp1/tLCvaCsEG97lm0HIgxc8E3zsu0NURWi/WK8lchlQqO/r1A4fVrlqZvn4rdlw3Z1YzdjGqY7ocK/ZAjX2ahH5EoC357Zz5lJjEEftlj1amC4qimfvuXNE/oIJXPDL/y5oDquqYTlLktuH5q//IjXOdTdFursfWpGmVqtj1lqTK8EUUjFEA/wcN+9mjuloFz7gqmLD331/PjpvRzoYAh8qYfsApnqQpviXHuHJe2B9hBtAlNqxZYNTmtQjHz7wT1s+O9OcKr3+qBy00 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2021 09:49:24.6498 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: f7a1a15d-fe85-4f51-3136-08d8b6df583e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: s4D4t8l8TiG820EEfz7+JKYeJ4pssL8+BrekAL2nz0ffaJo3cZlo5nc7LD8vi0eFzjoBEBAMgTRzTg1GGLpNhA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB6025 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210112_050405_069635_47F72282 X-CRM114-Status: GOOD ( 16.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peng Fan , shawnguo@kernel.org, s.hauer@pengutronix.de, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, patrice.chotard@st.com, paul@crapouillou.net, agross@kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, matthias.bgg@gmail.com, festevam@gmail.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 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) + + syscon: + description: + Phandle to syscon block which provide access to System Reset Controller + + memory-region: + description: + list of phandels to the reserved memory regions. + (see ../reserved-memory/reserved-memory.txt) + +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>; - };