Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp61336ybm; Tue, 26 May 2020 10:44:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4Xl6T2COLgEF2vgA+unLVQDyy9eGyuBytFuzGenvYe1qoeOws6gNZb33nMkxRBWzQauFt X-Received: by 2002:a05:6402:206f:: with SMTP id bd15mr22119447edb.3.1590515080860; Tue, 26 May 2020 10:44:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1590515080; cv=pass; d=google.com; s=arc-20160816; b=RKwFF8IvhuYMx7ZoLHHtnDT+Eo71wHHmGrSMBXcIHNTRQGkTEPbFeBh5CtbonyZd5c J0BsYco7guEHm2NR/7Gsv1OPBavB+Y5BQSt9pu56nQKtFWQpFVFKylUNeXx9SEx4i8K6 RPnXeaiQlhqTU2nHjToU2t0DDCG/mjEp21l4Sq3k5OTUFyK2fwt+vj3PlZzRb+Xs/PQ3 ZRxOniSx4ZSeegRDXZKakRN4SNp5ZfO4G0aAph8dhaOAAfD9mNAW1ni2ie94OrdYtcmw 5xDQ2hz2h0Csv8ubgDsnBFGQEnDdKInoTLh6F1ea093xwv+MuEKI7P1SLvUCoKshgc08 4iDw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=SwYb4Y44y+i3XjTnhjz5aBjKZXIWebNNANpekkBuUgg=; b=gm/wqY35GhdVNmTZx1/MLFxAdgWRT9PovNYKcsyy9T3Vl2YzxRzlQXE4N8YLiz8N2t L8yEvpmc8eCV7klBzU8ULGn74LplcV57Q3GFgB+H+6PKertmRVZxIX1lvPF5jFmwxerZ h9xgVgvf9unZb+6ypLxPXYGJ3m8Qar8UDlYmEpj6ocAc85Kx/lydCrwCLqpaozw/ys9a NFiksdhaUa9RGhmLAwSlUXM1f98ctouHlfwC0dq1XEKRPdjaG1dHi8CCSyPisawLdtbO VH10wycUpSWqWwsNLgKyAMiJDsjYt5e3bgzY8XNjcgm4fLS8eI3aabWYtq2o4K1AVNFQ a9IA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=Gm+VG3rq; arc=pass (i=1 spf=pass spfdomain=xilinx.com dkim=pass dkdomain=xilinx.com dmarc=pass fromdomain=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 a13si255122edb.423.2020.05.26.10.44.17; Tue, 26 May 2020 10:44:40 -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=Gm+VG3rq; arc=pass (i=1 spf=pass spfdomain=xilinx.com dkim=pass dkdomain=xilinx.com dmarc=pass fromdomain=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 S2388809AbgEZRk3 (ORCPT + 99 others); Tue, 26 May 2020 13:40:29 -0400 Received: from mail-dm6nam11on2077.outbound.protection.outlook.com ([40.107.223.77]:6542 "EHLO NAM11-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388061AbgEZRk0 (ORCPT ); Tue, 26 May 2020 13:40:26 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G8/getJTX6mLGZiEPOzLrYezzfh7M2jgZVjEsE809FbNuegWdYkQpKQigYHONuOF2q/h3CafLZ+BpAug3pF7Jcq+PRUCF0MnI2o2yx5nnzoGoNpwsN8F3YD2NM8vOWn7ieL/JFe5x5p4sy+rZyt64fLkHnQ31HNT2M9GacCGIAWNy61fnBXOpMoOb7D9AvhmIVJNVnXWJ6k9r+3DnD7BDH4JoBp9ZuSa9niCz+k80wRB2aPdayR5Sc18e7mpioE2uf1yGszf3lXk+o1diEytVenikpvkLU1JFJK1KjsGPChRw3X6f9oqUDhAqxFeMon9xUtaZVPWI9pwJd2DNk4Ydw== 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=SwYb4Y44y+i3XjTnhjz5aBjKZXIWebNNANpekkBuUgg=; b=ZyNXARXVEd5WW3162IwKMKHUat+1wdNXRFige+/rWgO7EgA9UAu5hggalE/pBalxXIMKwUsHkxZOU+a1jT0Ue1v9cR1JTN0jbXjPmkwPiguusJu3aL6+D/+YjyRkSj5Ya/dnymYBZHMmACmfpYM9MsqhWf5omrOx99I186lX4lOuJ0UJo4TkeXuLC8Msz5Tyx2oc4obeYbrzoH2eVDGRhROQbzdl2oecLizxCZCTl3iBC/CXZrxyu81Bo5C1K3rxG6MQadHeHNmMMu2XYSV2vw1FGx8URk223fe4ydND+tNI7AbQZ4eg7MaqsKNUwdvoqkJcpNMSQrlnxXzVkFc2AQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=xilinx.com; dmarc=pass action=none header.from=xilinx.com; dkim=pass header.d=xilinx.com; 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=SwYb4Y44y+i3XjTnhjz5aBjKZXIWebNNANpekkBuUgg=; b=Gm+VG3rqAOjd5sVbEYgvhtmBhwtZtudFQeSb7vmHNy5f8+c3RdLVIaigGLsGZ9c7snP1f0Rfa0p9x9OUBW5ZVUZE+bX6MV4Nc34rK18rUiq2LEn9zc3p+XODbPHYda1RywPd8nOdAEFezHit0Q22XhBheK9dG7QG2d9lCY482RY= Received: from BYAPR02MB4407.namprd02.prod.outlook.com (2603:10b6:a03:55::31) by BYAPR02MB6437.namprd02.prod.outlook.com (2603:10b6:a03:120::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3045.17; Tue, 26 May 2020 17:40:22 +0000 Received: from BYAPR02MB4407.namprd02.prod.outlook.com ([fe80::e59d:9815:461e:2a79]) by BYAPR02MB4407.namprd02.prod.outlook.com ([fe80::e59d:9815:461e:2a79%6]) with mapi id 15.20.3021.027; Tue, 26 May 2020 17:40:22 +0000 From: Ben Levinsky To: Rob Herring CC: "ohad@wizery.com" , "bjorn.andersson@linaro.org" , Michal Simek , Jolly Shah , Rajan Vaja , "mark.rutland@arm.com" , "linux-remoteproc@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Stefano Stabellini Subject: RE: [PATCH v4 4/5] dt-bindings: remoteproc: Add documentation for ZynqMP R5 rproc bindings Thread-Topic: [PATCH v4 4/5] dt-bindings: remoteproc: Add documentation for ZynqMP R5 rproc bindings Thread-Index: AQHWGl7uxdGBAyULe0azD2FJNJZOnqijj0uAgBdEEWA= Date: Tue, 26 May 2020 17:40:22 +0000 Message-ID: References: <1587749770-15082-1-git-send-email-ben.levinsky@xilinx.com> <1587749770-15082-5-git-send-email-ben.levinsky@xilinx.com> <20200511221755.GA13585@bogus> In-Reply-To: <20200511221755.GA13585@bogus> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-TNEF-Correlator: authentication-results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=xilinx.com; x-originating-ip: [98.207.156.201] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 3aa5111d-c412-464e-ea9c-08d8019bdda8 x-ms-traffictypediagnostic: BYAPR02MB6437: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 041517DFAB x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 7+x4p9DsfGjY/tjNdjJ0Bz1evHfRlSPN2tgJtahXpHmaMI1ePAiNB6/zigJRhKxwq6vLmOiy8gTGi1EgN4j4xBlN9dMQC38lS6UT2CC+hCidbcO01NNYtX+yE/TOaeDax36bPJTWfZz8pmnhx4y6yHg5l67agL3DWtKuJ3049qtE6LdR/a+WuXQJcfO5wEtetJ9abgOO+RPJ+lvrj3Vuok9EGNo2Ut57sAeVS3yPHqXUIfbGuBfljpUAoIWgQwVQH6jSZCudrrv5JRQWzJTxe4YcIodGfdQQOapHu5s6fFPGsxMk+TkV0rlFxUvawYyx9OzP/ZgAH8fLyaJrP2kCXxeYg3WfOiL3k0pEoyZ8IM1NT+8sS0wQVbmvocSUulnmYcRV7/r3sQ1g3GccWMOosA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR02MB4407.namprd02.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(346002)(376002)(136003)(396003)(366004)(39850400004)(55016002)(66946007)(9686003)(71200400001)(186003)(53546011)(6506007)(54906003)(86362001)(4326008)(316002)(52536014)(107886003)(7696005)(5660300002)(76116006)(64756008)(2906002)(66446008)(478600001)(6916009)(26005)(66476007)(66556008)(33656002)(8676002)(8936002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: M/QpV4u9rEjj49+P2Jml4U8nzD2hL2SfOE4Rip78JSXvXu7QNBBrTsDVo3Tq7/xkMbjhXgNsMw7xydS1fzeFXsTFbaO7n0JnJYLxA0zd73da8CnN+uiGw+9hTdTeaDt5ctxfCbdZfWz330szHDLkQW0hrMRQzF98zl+iHia9OPQOMl+kGy/kat9pbf7tQ+axUDmyd0pkw4qt4ttg6AkHDylTp4vXy/Z0COZk2WyKCfFD9YNhkmaSfbtO9hYq9R89PI0xOTInqBHVy47Q5qDNMIBAwkCu1yIeztQJlKT5xrVywRYZE2OhXq4EOOhu3RMkBdXb7++olOjHTEgRI5qz8heNlLQvjud8SVO0MDBhdgJbnRxmgIgycSNKWf9WUTmVJZe5MRoPk5NL9wWSpGSz1udwYU811vPRXYAdWDnSWEWP/dbcxyZ3kvSKj9pzft6tB+C1Y9rnsA4aIsOWGRRcknzxXCcev6NOiJGaO7WQ0hhgOO5krJeiYN6FMLcKNhOW Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3aa5111d-c412-464e-ea9c-08d8019bdda8 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 May 2020 17:40:22.1939 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 3KaaheJxNzn1ZwL3tj7LkV/r1Mm73Tj5AvCfCAq8wzEKUAstNfHuvdutenTRxcgRL71HOEC14g0C7P07+XI0Vw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR02MB6437 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, The Xilinx R5 Remoteproc driver has been around for a long time -- admitted= ly we should have upstreamed it long ago. The driver in the current form is= using an "classic" remoteproc device tree node as described here. I am working with Stefano to come up with an appropriate System Device Tree= representation but it is not going to be ready right away. Our preference = would be to upstream the remoteproc node and driver in their current forms = while system device tree is maturing. Will also update as per your below comments in a v5 too. Best Regards, Ben Levinsky -----Original Message----- From: Rob Herring =20 Sent: Monday, May 11, 2020 3:18 PM To: Ben Levinsky Cc: ohad@wizery.com; bjorn.andersson@linaro.org; Michal Simek ; Jolly Shah ; Rajan Vaja ; ma= rk.rutland@arm.com; linux-remoteproc@vger.kernel.org; linux-arm-kernel@list= s.infradead.org; devicetree@vger.kernel.org; linux-kernel@vger.kernel.org; = Jason Wu ; Jiaying Liang Subject: Re: [PATCH v4 4/5] dt-bindings: remoteproc: Add documentation for = ZynqMP R5 rproc bindings On Fri, Apr 24, 2020 at 10:36:09AM -0700, Ben Levinsky wrote: > Add binding for ZynqMP R5 OpenAMP. >=20 > Represent the RPU domain resources in one device node. Each RPU=20 > processor is a subnode of the top RPU domain node. This needs to be sorted out as part of the system DT effort that Xilinx is = working on. I can't see this binding co-existing with it. >=20 > Signed-off-by: Ben Levinsky > Signed-off-by: Jason Wu > Signed-off-by: Wendy Liang > Signed-off-by: Michal Simek > --- > Changes since v2: > - 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=20 > as this particular node is needed to describe the > '#address-cells' and '#size-cells' information. > Changes since 3: > - 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. > --- >=20 > .../remoteproc/xilinx,zynqmp-r5-remoteproc.yaml | 127 +++++++++++++++= ++++++ > 1 file changed, 127 insertions(+) > create mode 100644=20 > Documentation/devicetree/bindings/remoteproc/xilinx,zynqmp-r5-remotepr > oc.yaml >=20 > diff --git=20 > a/Documentation/devicetree/bindings/remoteproc/xilinx,zynqmp-r5-remote > proc.yaml=20 > b/Documentation/devicetree/bindings/remoteproc/xilinx,zynqmp-r5-remote > proc.yaml > new file mode 100644 > index 0000000..41520b6 > --- /dev/null > +++ b/Documentation/devicetree/bindings/remoteproc/xilinx,zynqmp-r5-re > +++ moteproc.yaml > @@ -0,0 +1,127 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) %YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/remoteproc/xilinx,zynqmp-r5-remotepr= oc.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=20 > +loads and > + boots firmwares on the Xilinx Zynqmp and Versal family chipset. > + > +maintainers: > + - Ed Mooring > + - Ben Levinsky > + > +properties: > + compatible: > + const: "xlnx,zynqmp-r5-remoteproc-1.0" > + > + core_conf: > + description: > + R5 core configuration (valid string - split or lock-step) > + 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: > + maxItems: 4 > + minItems: 4 > + pnode-id: > + maxItems: 1 What is this?=20 [Ben Levinsky] I will description for this. This is used by the Xilinx powe= r management code later on when configuring the RPU. > + mboxes: > + maxItems: 2 > + mbox-names: > + maxItems: 2 > + > + r5@0: > + type: object > + required: > + - '#address-cells' > + - '#size-cells' > + - pnode-id > +examples: > + - | > + reserved-memory { > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + ranges; > + rpu0vdev0vring0: rpu0vdev0vring0@3ed40000 { > + no-map; > + reg =3D <0x3ed40000 0x4000>; > + }; > + rpu0vdev0vring1: rpu0vdev0vring1@3ed44000 { > + no-map; > + reg =3D <0x3ed44000 0x4000>; > + }; > + rpu0vdev0buffer: rpu0vdev0buffer@3ed48000 { > + no-map; > + reg =3D <0x3ed48000 0x100000>; > + }; > + rproc_0_reserved: rproc@3ed000000 { > + no-map; > + reg =3D <0x3ed00000 0x40000>; > + }; > + }; > + rpu: rpu@ff9a0000 { > + compatible =3D "xlnx,zynqmp-r5-remoteproc-1.0"; > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + ranges; > + core_conf =3D "split"; If split, then where is the 2nd core? [Ben Levinsky] Will fix, I will add second core in v5. > + reg =3D <0xFF9A0000 0x10000>; > + r5_0: r5@0 { Unit-addresses are based on 'reg' values. [Ben Levinsky] Will fix this, thanks > + ranges; > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + reg =3D <0xFF9A0100 0x1000>; > + memory-region =3D <&rproc_0_reserved>, <&rpu0vdev0buffer>= , <&rpu0vdev0vring0>, <&rpu0vdev0vring1>; > + pnode-id =3D <0x7>; > + mboxes =3D <&ipi_mailbox_rpu0 0>, <&ipi_mailbox_rpu0 1>; > + mbox-names =3D "tx", "rx"; > + tcm_0_a: tcm_0@0 { > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + reg =3D <0xFFE00000 0x10000>; > + pnode-id =3D <0xf>; These nodes probably need some sort of compatible. And don't the TCMs have = different addresses for R5 vs. the A cores? [Ben Levinsky] I can add a compatible. The addressesing here is absolute (i= .e. 0xffex-xxxx ) as it is used from point of view of A core here. > + }; > + tcm_0_b: tcm_0@1 { > + #address-cells =3D <2>; > + #size-cells =3D <2>; > + reg =3D <0xFFE20000 0x10000>; > + pnode-id =3D <0x10>; > + }; > + }; > + }; > + > + > + zynqmp_ipi1 { > + compatible =3D "xlnx,zynqmp-ipi-mailbox"; > + interrupt-parent =3D <&gic>; > + interrupts =3D <0 29 4>; > + xlnx,ipi-id =3D <7>; > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + ranges; > + > + /* APU<->RPU0 IPI mailbox controller */ > + ipi_mailbox_rpu0: mailbox@ff90000 { > + reg =3D <0xff990600 0x20>, > + <0xff990620 0x20>, > + <0xff9900c0 0x20>, > + <0xff9900e0 0x20>; > + reg-names =3D "local_request_region", > + "local_response_region", > + "remote_request_region", > + "remote_response_region"; > + #mbox-cells =3D <1>; > + xlnx,ipi-id =3D <1>; > + }; > + }; > + > +... > -- > 2.7.4 >=20