Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751875AbdIVGFY (ORCPT ); Fri, 22 Sep 2017 02:05:24 -0400 Received: from mail-by2nam01on0043.outbound.protection.outlook.com ([104.47.34.43]:11712 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751838AbdIVGFW (ORCPT ); Fri, 22 Sep 2017 02:05:22 -0400 From: Jiaying Liang To: Jiaying Liang , "linux-kernel@vger.kernel.org" CC: "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "jassisinghbrar@gmail.com" , Cyril Chemparathy , "Michal Simek" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , Soren Brinkmann Subject: RE: [RFC LINUX PATCH] Dcoumentation: dt: mailbox: Add Xilinx IPI Mailbox Thread-Topic: [RFC LINUX PATCH] Dcoumentation: dt: mailbox: Add Xilinx IPI Mailbox Thread-Index: AQHTMy74PWGgZB9l/UWdWBL7zW7KlKLAaPZg Date: Fri, 22 Sep 2017 06:05:18 +0000 Message-ID: References: <1506034724-14639-1-git-send-email-jliang@xilinx.com> In-Reply-To: <1506034724-14639-1-git-send-email-jliang@xilinx.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=jliang@xilinx.com; x-originating-ip: [76.102.102.63] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BY1PR0201MB0886;6:2rAovzbRHDBXZmwDsT5MjZZWXwHcz4EEqfP0Kgl1uujypGx079RmHBUPSoxj1DB38vhHsCewVN4S0pqixzcFfyv8CAGXOWe5sEHAHT8sTTD6zWUKfo64pY6awzt55rzrAzBULe4wIVJT54ezxwSkfgRmdDVMEoxd7G4TzzT+zUF6p50Y/oFBo7s8AEZmZn9rUgyTNuxSTpQwtxFAzmtXhnCfQsB7U3qpWeExhrrddZ3JfgBud+sjCO72u7yRiOjr8nkA/be0iXpl7Wwbyk7eDFI20Xwaqwl0GW16grJ9hqgpRblxe/eL30PpO3wyMamNAeNElesfFuEJVEJTKCdZzw==;5:nN1ON9iwd6C2rSA1PDYRdCkH5OBrJUTFkr93Rgvqnn2wSJUuS2vB25DD2IwO9OGTQW7RRzEz6unTreYNg9+EgoAbqfnFDcfIi5JwFQdRYNQ4hLBNI9IncbYkZAWF9fwAmJJgWx2GaxgcASyRLkcu2w==;24:FrMNjE2vhe5xXB33ZCpjaekAa91aVZnJ7BFEf1B+/y62dRQ+/MPtGY1GYBxNJQXc/pfj4UYh7+POJ4JePRGjFWbAURdZWziiujMN5/KekV4=;7:PzxG9YR0GsXYXIEvrEvixs396VQHjDXpa2Tm9qwfeEMz394G3I2T4Npdb8oOTTGcyk5k7AkFDPQ20Mf9MnaLqLfSAVOXGDk/2nMa9gwhfql3CvBl4qnYlpw45D20swzedoU1tWARP7K4xzSactdwNchA3bLb6a65UCAk9md/A+OcuGbZxKSykH3qTLaO2uCVPmRiFEjZYVy72vlVio9KQ/oWYLSW0SotBYMWclpcT4A= x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-forefront-antispam-report: SFV:SKI;SCL:-1;SFV:NSPM;SFS:(10009020)(6009001)(346002)(39860400002)(376002)(13464003)(377454003)(189002)(199003)(105586002)(33656002)(6116002)(106356001)(8676002)(81156014)(7696004)(81166006)(8936002)(5660300001)(66066001)(189998001)(3846002)(2900100001)(6246003)(9686003)(97736004)(86362001)(6506006)(6436002)(229853002)(99286003)(4326008)(55016002)(2950100002)(68736007)(53936002)(39060400002)(2501003)(5250100002)(305945005)(15650500001)(74316002)(7736002)(3280700002)(478600001)(102836003)(2906002)(50986999)(3660700001)(53546010)(110136005)(76176999)(316002)(14454004)(54906003)(25786009)(101416001)(54356999)(107886003)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY1PR0201MB0886;H:BY1PR0201MB0885.namprd02.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; x-ms-office365-filtering-correlation-id: ffbf0cbe-10d5-4066-f95a-08d5017fe6ce x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:BY1PR0201MB0886; x-ms-traffictypediagnostic: BY1PR0201MB0886: x-exchange-antispam-report-test: UriScan:(9452136761055)(192813158149592); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6041248)(20161123560025)(20161123558100)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BY1PR0201MB0886;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BY1PR0201MB0886; x-forefront-prvs: 0438F90F17 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Sep 2017 06:05:18.5716 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0201MB0886 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id v8M65TXA009880 Content-Length: 4369 Lines: 121 > -----Original Message----- > From: Wendy Liang [mailto:wendy.liang@xilinx.com] > Sent: Thursday, September 21, 2017 3:59 PM > To: linux-kernel@vger.kernel.org > Cc: jassisinghbrar@gmail.com; Cyril Chemparathy ; > Michal Simek ; Jiaying Liang > Subject: [RFC LINUX PATCH] Dcoumentation: dt: mailbox: Add Xilinx IPI > Mailbox > > Xilinx ZynqMP IPI(Inter Processor Interrupt) is a hardware block in ZynqMP > SoC used for the communication between various processor systems. > > Signed-off-by: Wendy Liang > --- > .../bindings/mailbox/xlnx,zynqmp-ipi-mailbox.txt | 88 > ++++++++++++++++++++++ > 1 file changed, 88 insertions(+) > create mode 100644 > Documentation/devicetree/bindings/mailbox/xlnx,zynqmp-ipi-mailbox.txt > > diff --git a/Documentation/devicetree/bindings/mailbox/xlnx,zynqmp-ipi- > mailbox.txt b/Documentation/devicetree/bindings/mailbox/xlnx,zynqmp-ipi- > mailbox.txt > new file mode 100644 > index 0000000..5d915d1 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mailbox/xlnx,zynqmp-ipi-mailbox. > +++ txt > @@ -0,0 +1,88 @@ > +Xilinx IPI Mailbox Driver > +======================================== > + > +The Xilinx IPI(Inter Processor Interrupt) mailbox driver is a mailbox > +controller that manages the messaging between two IPI agents. Each IPI > +mailbox has request and response buffers between the two IPI agents. > + > ++-------------------------------------+ > +| | Xilinx ZynqMP IPI Mailbox > +| Controller| > +| | > +| +-------------+ > +| | SMC | > +| | | > ++--------+--------------+------+------+ > + | | > + | +-----------------+ > + | | ATF (ARM trusted firmware) > + | | > ++-------------------------------------+ > + | | Hardware > + | | > + +--------------------------------------+ > + | | > + +----------------------+ +-----------+ | > + | | Buffers between | | IPI Agent | | > + | | two IPI agents | | Registers | | > + | +--------------------+ +-----------+ | > + | | > + | Xilinx ZynqMP IPI | > + +--------------------------------------+ > + > + > +Message Manager Device Node: > +=========================== > +Required properties: > +-------------------- > +- compatible: Shall be: "xlnx,zynqmp-ipi-mailbox" > +- ipi-smc-fid-base Base offset of SMC function IDs for IPI mailbox SMC. > + It contains the IPI IDs of the two IPI agents. > +- reg: IPI request and response buffers address range. It > + can be the IPI buffers from the hardware or it can > + be carved out shared memory. > +- reg-names: Reg resource name of the IPI request and response > + buffers. > +- #mbox-cells: Shall be 1. Contains the logical channel IDs of the > + channels on the IPI mailbox. > +- interrupt-parent: Phandle for the interrupt controller. > +- interrupts: Interrupt mapping. > + > +Required properties: > +-------------------- > +- method: The method of accessing the IPI agent registers. > + Permitted values are: "smc" and "hvc". Default is > + "smc". > +Example: > +------------ > + /* APU IPI mailbox driver */ > + ipis { > + #address-cells = <1>; > + #size-cells = <0>; > + ipi_mailbox_apu_rpu0: ipi_mailbox@0 { > + compatible = "xlnx,zynqmp-ipi-mailbox"; > + reg = <0 0xff990400 40>; > + reg-names = "apu-rpu0"; > + ipi-smc-fid-base = <0x1010>; > + method = "smc"; > + #mbox-cells = <1>; > + interrupt-parent = <&gic>; > + interrupts = <0 35 4>; > + }; > + ipi_mailbox_apu_rpu1: ipi_mailbox@1 { > + compatible = "xlnx,zynqmp-ipi-mailbox"; > + reg = <0 0xff990440 40>; > + reg-names = "apu-rpu1"; > + ipi-smc-fid-base = <0x1020>; > + method = "smc"; > + #mbox-cells = <1>; > + interrupt-parent = <&gic>; > + interrupts = <0 35 4>; > + }; > + }; > + device0: device0 { > + ... > + mbox-names = "rpu0", "rpu1", > + mboxes = <&ipi_mailbox_apu_rpu0 0>, > + < &ipi_mailbox_apu_rpu1 0>; > + }; > -- > 2.7.4 cc: device tree and linux arm kernel mailing lists.