Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp538720ybh; Wed, 15 Jul 2020 08:34:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdb+tgg64FGnsud/ZPIYZN3uqiz+ynbURM4StoIi39svfBh6k+HgCR38bgrvSABgHmVCZ8 X-Received: by 2002:a17:906:7fc8:: with SMTP id r8mr10128014ejs.412.1594827256142; Wed, 15 Jul 2020 08:34:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594827256; cv=pass; d=google.com; s=arc-20160816; b=ffm3PWI4/1HHYvqkzzEdyOGrRvHsoflFt+Fz6W5U/9AgELz92mMgfN8O/2WA9hXSAr BWalEKnK9rqOSqOoDQC2K5/TEbkYG1LWwI5vofxN4FiNer9n3YfcOdCOTCL4OS0raU/k Z53jBriFd2+1Ilb4uZdcd2hRygA5LuU7evyxXQ8q0ycp7aO+yp6ataIVG5SibL2xMpHY Px4Nixf+cFiZx+hVghHm259JjTquFiS5DNG22TqBzpvej/Sb2a/Bj0gWorDmIgwLCaWy mNBFiE6pVsLhbXqiJ6Zd/HpnCcGXmswSvB8SVzfm7pq9D0LTpqza+lkC12R/dYsWUSKf gOlA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=mCbxp+HOokXjLS6PPmmnJzqQ674rAvhculgbV6mXZZo=; b=wu0Vr0Bv9oRK8Uj+D0XtH80Ne+9fQMpaFIhVHYdn7ZdWgE1wXEgpYzmDNYWnIQIVYd tXBzTjrVBAA2ZOafkgX7xTX/iap/e94F0EwKDdt8XOfRtSXKS8yh1Ntul4Sb8+sd0oKh qDhA8z/MP4gYFkM1yT3gpAhF00BfE8yKlnq5xnxZTps6ZzUjbA+djwCNZWAq4/jhNpD8 SMnFu0rM4UEgN6ivGOw1yuOGCQG/hPBJv2D4vc1dL/sQLwVSRBwG73dMfiQORvczxlzp ba9IO183S4+c6cBNINEoTnpq//izIHHBulBXRtiCGFeN1azixU2ziSN3q/82htkFcSM5 tHxQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=FNx49xJp; arc=pass (i=1 spf=pass spfdomain=xilinx.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ch9si1383228edb.155.2020.07.15.08.33.53; Wed, 15 Jul 2020 08:34:16 -0700 (PDT) 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=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=FNx49xJp; arc=pass (i=1 spf=pass spfdomain=xilinx.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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726928AbgGOPdd (ORCPT + 99 others); Wed, 15 Jul 2020 11:33:33 -0400 Received: from mail-eopbgr680057.outbound.protection.outlook.com ([40.107.68.57]:45988 "EHLO NAM04-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725907AbgGOPdZ (ORCPT ); Wed, 15 Jul 2020 11:33:25 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ClJC27H7ptUJ0FSkegIan7OtaguMP/gLbkPJ6YE/IqyZiks1ekfsvUNDP+ZVq0n/OBuJNjeUsnuWAwUWygyTb8bcuLJGEWrAJ5s6juiWzaTNTJkRJ2ugORwXYEShqyNYcfBvu1Ewxil9KHyvGpgX6jusDQIRIt/DjM0U+mwsxy962go/d6vydTn5mNRfWldNh6KFc267bRiy32xru5SBDQJ2MgahJ+4Lm28lHNeaEuMWyD0SSHGKZbSM8Dd/zM+xEww5djeCYats/+JUuOanX0iRStjvL9/+CikR4G7mY4njMnjMAmDEZc6P6tusgAo/avVRn5OGcDIMCpx5nsSGfA== 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=mCbxp+HOokXjLS6PPmmnJzqQ674rAvhculgbV6mXZZo=; b=XeKEt2TL0dVOEkYTUh4jechlmYwtuS+vhOGInzEtSwK2UUwGnuR425DgFA90J2JtGW3u3WDb7CZHGghoD39TCOPOYNBCqu6i3Dsj9JXrhWevx9f+ngmBsHmLSYX2H1Hd8iSISMXxDzsaWKnnU1KrLCj1cxgNWbRFvcTG9dfplBVAHBccLdsOdjhwpP/Rk9DG08Ur2EuFpXZlIB47BNZSXLb0WN0PGTLz9wqX3OvPbdezzKZKMCHaM1hmf0+R54BL7opCnqXQ2y0D+ZQKfZFfgCKI+9VKr1WoC6kyYkNJpW3CiJraGnpvfjb0XrGEfZ5aDw8vA+ZSuvBagOgjDgPQyw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.60.83) smtp.rcpttodomain=wizery.com smtp.mailfrom=xilinx.com; dmarc=bestguesspass action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mCbxp+HOokXjLS6PPmmnJzqQ674rAvhculgbV6mXZZo=; b=FNx49xJpqoxxKhVudTPBP5BSBGqs8Y/qh7X8NoyQ/m91BMv5Wz2OQGO+hpmMl5z4Y8Tj0/xPqwCyPDKlqkBPkSTZcNZiVRjS+aE3nhGQ0zmQh/Epr88QrCDLXbM3C0jYDMV1ewHf75xoi8FbxXFAjldYfPW24VAseMC2YI9usqM= Received: from BL1PR13CA0041.namprd13.prod.outlook.com (2603:10b6:208:257::16) by DM6PR02MB6969.namprd02.prod.outlook.com (2603:10b6:5:25c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.17; Wed, 15 Jul 2020 15:33:20 +0000 Received: from BL2NAM02FT003.eop-nam02.prod.protection.outlook.com (2603:10b6:208:257:cafe::ec) by BL1PR13CA0041.outlook.office365.com (2603:10b6:208:257::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.10 via Frontend Transport; Wed, 15 Jul 2020 15:33:20 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; wizery.com; dkim=none (message not signed) header.d=none;wizery.com; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by BL2NAM02FT003.mail.protection.outlook.com (10.152.76.204) with Microsoft SMTP Server id 15.20.3195.18 via Frontend Transport; Wed, 15 Jul 2020 15:33:20 +0000 Received: from [149.199.38.66] (port=39345 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.90) (envelope-from ) id 1jvjNh-0005fE-02; Wed, 15 Jul 2020 08:31:37 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1jvjPL-0007rZ-S1; Wed, 15 Jul 2020 08:33:19 -0700 Received: from [172.19.2.206] (helo=xsjblevinsk50.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1jvjPJ-0007qz-Qq; Wed, 15 Jul 2020 08:33:17 -0700 From: Ben Levinsky To: ohad@wizery.com, bjorn.andersson@linaro.org, michals@xilinx.com, JOLLYS@xilinx.com, RAJANV@xilinx.com, robh+dt@kernel.org, mark.rutland@arm.com Cc: linux-remoteproc@vger.kernel.org, linux-arm-kernell@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, jliang@xilinx.com, stefanos@xilinx.com, Jason Wu , Michal Simek Subject: [PATCH v6 4/5] dt-bindings: remoteproc: Add documentation for ZynqMP R5 rproc bindings Date: Wed, 15 Jul 2020 08:33:16 -0700 Message-Id: <20200715153317.25643-5-ben.levinsky@xilinx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200715153317.25643-1-ben.levinsky@xilinx.com> References: <20200715153317.25643-1-ben.levinsky@xilinx.com> X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:xsj-pvapsmtpgw01;PTR:unknown-60-83.xilinx.com;CAT:NONE;SFTY:;SFS:(136003)(39860400002)(346002)(396003)(376002)(46966005)(186003)(336012)(26005)(8936002)(8676002)(47076004)(82740400003)(7696005)(44832011)(2616005)(1076003)(36756003)(5660300002)(426003)(81166007)(82310400002)(2906002)(316002)(83380400001)(9786002)(478600001)(4326008)(70206006)(70586007)(356005)(54906003)(107886003);DIR:OUT;SFP:1101; X-MS-PublicTrafficType: Email MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 4a7b1384-cbb5-48f2-7703-08d828d46731 X-MS-TrafficTypeDiagnostic: DM6PR02MB6969: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AUZyu/Nkf0PVV39UD0gD/4MCCTUFiQWU7lCmAQGKEQaja6H2kGcqz1NMxKkjieoU8nDvSpUXnsOS2ywOvma6yFiXHnBVLV/JEfTSzJtN0B8RODsuySboqwlBlY8SHVwr99vDUn92TO20mEjXbm2uoL6C0slYGo+Uqs/CZsGf3hSMeIqBYhShai4Xy0x3ivJSVniNHMPPVR3iPMBetiSHJj2kZauGEqrFcYn0qRYDhHutaRz2qsA1TwNtHXXDe4WjiKATEFCzPOLtxyAsSy4kLVi34Y1SACSbOlmD3hCgq1Q6PW9IZb76UXMOACjHgl/icGwWAkpOgHeNM6N/p6/ZMEXQA0hrrCXoSOKFXSaGnykfg+DgSdh95VgormIVNp2Tvd8Xyhozxt8++yVT2ug9BuFRXpTQI3xgSk3cYknaqxxGFKJwd417k8BMtFueN1GNzivgGMrmUJHyDIKxSwlcWzLLkZxgxph0DMgXbqD8cKc= X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2020 15:33:20.2268 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4a7b1384-cbb5-48f2-7703-08d828d46731 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-AuthSource: BL2NAM02FT003.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR02MB6969 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add binding for ZynqMP R5 OpenAMP. Represent the RPU domain resources in one device node. Each RPU processor is a subnode of the top RPU domain node. Signed-off-by: Ben Levinsky Signed-off-by: Jason Wu Signed-off-by: Wendy Liang Signed-off-by: Michal Simek --- v3: - update zynqmp_r5 yaml parsing to not raise warnings for extra information in children of R5 node. The warning "node has a unit name, but no reg or ranges property" will still be raised though as this particular node is needed to describe the '#address-cells' and '#size-cells' information. v4:: - remove warning '/example-0/rpu@ff9a0000/r5@0: node has a unit name, but no reg or ranges property' by adding reg to r5 node. v5: - update device tree sample and yaml parsing to not raise any warnings - description for memory-region in yaml parsing - compatible string in yaml parsing for TCM v6: - remove coupling TCM nodes with remoteproc - remove mailbox as it is optional not needed --- .../xilinx,zynqmp-r5-remoteproc.yaml | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 Documentation/devicetree/bindings/remoteproc/xilinx,zynqmp-r5-remoteproc.yaml diff --git a/Documentation/devicetree/bindings/remoteproc/xilinx,zynqmp-r5-remoteproc.yaml b/Documentation/devicetree/bindings/remoteproc/xilinx,zynqmp-r5-remoteproc.yaml new file mode 100644 index 000000000000..54f916d9b037 --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/xilinx,zynqmp-r5-remoteproc.yaml @@ -0,0 +1,73 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/remoteproc/xilinx,zynqmp-r5-remoteproc.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Xilinx R5 remote processor controller bindings + +description: + This document defines the binding for the remoteproc component that loads and + boots firmwares on the Xilinx Zynqmp and Versal family chipset. + + Note that the Linux has global addressing view of the R5-related memory (TCM) + so the absolute address ranges are provided in TCM reg's. +maintainers: + - Ed Mooring + - Ben Levinsky + +properties: + compatible: + const: "xlnx,zynqmp-r5-remoteproc-1.0" + + lockstep-mode: + description: + R5 core configuration (split is 0 or lock-step and 1) + maxItems: 1 + + interrupts: + description: + Interrupt mapping for remoteproc IPI. It is required if the + user uses the remoteproc driver with the RPMsg kernel driver. + maxItems: 6 + + memory-region: + description: + collection of memory carveouts used for elf-loading and inter-processor + communication. + maxItems: 4 + minItems: 4 + pnode-id: + maxItems: 1 + mboxes: + maxItems: 2 + mbox-names: + maxItems: 2 + +examples: + - | + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + elf_load: rproc@3ed000000 { + no-map; + reg = <0x3ed00000 0x40000>; + }; + }; + rpu { + compatible = "xlnx,zynqmp-r5-remoteproc-1.0"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + lockstep-mode = <0>; + r5_0 { + ranges; + #address-cells = <1>; + #size-cells = <1>; + memory-region = <&elf_load>; + pnode-id = <0x7>; + }; + }; + +... -- 2.17.1