Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7086411yba; Thu, 2 May 2019 04:06:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHLtyr3agOMVXs5FbkcMV/MFbHIuQQcBeptlwDLfJrsI2Qj22/tTvhsarQsHh2cdTOSRN6 X-Received: by 2002:aa7:8289:: with SMTP id s9mr3482029pfm.208.1556795178165; Thu, 02 May 2019 04:06:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556795178; cv=none; d=google.com; s=arc-20160816; b=mBPJ8bmG0qbJKNhEgikgUuZin6jfcYYUN8hib1E/xHYjMPCcxp6xFD59Dm/bbgBJbC 0vMZBwoZT42z+lChdZchnnPrILpq4ndonIVshBYW9KaUxMkDphHY5ox1WnLmWNaoJl78 2zJHqSzkQ6uE/JniauUw8BeIsX2ec/FcRWkdng0acTuQuLUCaiHPPjEBvfWZzGyIGcdh ZIYaq/bUBjLyuenhs79O9MwU2/O1BHnYL6E3v3kK9mlDLGgYdXm0DU/jZq9DpV1nD7jF tIBV1BMfoHWw1KxxV32WXrhUZCuxkZnzStzaReIgZNW5K4lg5OKqRVVn/foZwBpGvc2c w6dg== ARC-Message-Signature: i=1; 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=8Fxz5rwDocQxZsxmYG4zmrOEB63+gnFkQNPThFTNI4U=; b=H51SWQrtnBmkUtioVTikIfRPfCLLBsgv0ackYYaeRhabPDKctBrfq5nScJKiddnGgD R45xJdHWjBO122zd+y8WTBJrvuP7wXLazhw3ubf+zX5fIiRaKmiOQXh/a4/G5uRYvJaW KgtZPbs3b3u+aDqwCGSovOe348pQlNd2HNlsus9hKJcLwFgk/+snaL/sfQZC2Se/NyzW ZVdzjh0HZMfg1gL4zYCTUl/WHcjmaxjTi9ZcqWH4DeA1IFi/1pqTGJ/QghKxJbcN1iER Xb5ZUq8kMA6D4ziCzYXPduRalxpjumIcG1UYmIBw11/PQfpUba6P5G9eJZ5yAL1Q85jY lGCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=MQTTjKJn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b21si12606749pff.35.2019.05.02.04.06.00; Thu, 02 May 2019 04:06:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=MQTTjKJn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726450AbfEBLEe (ORCPT + 99 others); Thu, 2 May 2019 07:04:34 -0400 Received: from mail-eopbgr760083.outbound.protection.outlook.com ([40.107.76.83]:15587 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726242AbfEBLEd (ORCPT ); Thu, 2 May 2019 07:04:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8Fxz5rwDocQxZsxmYG4zmrOEB63+gnFkQNPThFTNI4U=; b=MQTTjKJnX3tvIkg2Lug44plksJIK5QsIrxAKcFVAfgEUJnuw1AEOV7jQy+r9NL4OPVlwXUJRThq9bd5O0ivpbI46tOomKYOWqqKyWknPeh3ftqVIdvtENPP2GDagSDVuCncrT5dGGVGFliBfCtFDbwn3l6BCqsR/KvaRamPnxKg= Received: from BL0PR02MB5681.namprd02.prod.outlook.com (20.177.241.92) by BL0PR02MB3777.namprd02.prod.outlook.com (52.132.8.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1835.14; Thu, 2 May 2019 11:04:30 +0000 Received: from BL0PR02MB5681.namprd02.prod.outlook.com ([fe80::6cde:f726:b36e:752d]) by BL0PR02MB5681.namprd02.prod.outlook.com ([fe80::6cde:f726:b36e:752d%5]) with mapi id 15.20.1835.018; Thu, 2 May 2019 11:04:30 +0000 From: Dragan Cvetic To: Rob Herring CC: "arnd@arndb.de" , "gregkh@linuxfoundation.org" , Michal Simek , "linux-arm-kernel@lists.infradead.org" , "mark.rutland@arm.com" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Derek Kiernan Subject: RE: [PATCH V3 01/12] dt-bindings: xilinx-sdfec: Add SDFEC binding Thread-Topic: [PATCH V3 01/12] dt-bindings: xilinx-sdfec: Add SDFEC binding Thread-Index: AQHU/UVMESM8TKHZf0mZ8yysxzDRXaZWsusAgAD9BPA= Date: Thu, 2 May 2019 11:04:30 +0000 Message-ID: References: <1556402706-176271-1-git-send-email-dragan.cvetic@xilinx.com> <1556402706-176271-2-git-send-email-dragan.cvetic@xilinx.com> <20190501194738.GA1441@bogus> In-Reply-To: <20190501194738.GA1441@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: spf=none (sender IP is ) smtp.mailfrom=draganc@xilinx.com; x-originating-ip: [149.199.80.133] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 06915e2a-760f-4077-9ac6-08d6ceedf376 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:BL0PR02MB3777; x-ms-traffictypediagnostic: BL0PR02MB3777: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3968; x-forefront-prvs: 0025434D2D x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(376002)(346002)(366004)(136003)(39860400002)(13464003)(189003)(199004)(68736007)(8676002)(64756008)(107886003)(66446008)(66946007)(66556008)(66476007)(73956011)(102836004)(186003)(256004)(11346002)(86362001)(486006)(52536014)(81156014)(81166006)(8936002)(71200400001)(71190400001)(476003)(5660300002)(26005)(7736002)(446003)(2906002)(478600001)(6506007)(99286004)(76176011)(7696005)(316002)(55016002)(54906003)(53546011)(6246003)(9686003)(6916009)(33656002)(74316002)(229853002)(25786009)(4326008)(66066001)(3846002)(6116002)(6436002)(53936002)(305945005)(14454004)(76116006);DIR:OUT;SFP:1101;SCL:1;SRVR:BL0PR02MB3777;H:BL0PR02MB5681.namprd02.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: xilinx.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 3Y5T033iWgD7r2hr/MQ2u4u2feAL0b1xrxVCgN61NW05NdrvDZCxdN0JCqd9exQ8YO8X8VFCVMWx+CvVRW4C3v5dSOMv8nd3C8ogcKm1kUFYNhHRkjw069+ukU12rIRU01AMwxiTsDUH0+UokR3zCsa6qLjA8ss40fCzP+BNXyER7iNWgk/0soqXdw2fT8Lge8Kcz3LueWSdci0nhwZfw4oSy1MSQN4Ypkdm2RgqPjaVffitqXPTMNMbH4Vl7do5o8Y2b7UMTA2CZDVsyQFx1tBCXXlZEQTX97KJAc8J0+AKEwLoAs0GFcfw4tznggWA+muGYErb4R3KPrAGqCFQko0BRnvG0NOcoP6XOiITlP+qB6vaendyDjzHer1cxkCFI6h0KcbD7nIWMaSf13tsQukx/K+1hT0blDDlNDE2siU= 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: 06915e2a-760f-4077-9ac6-08d6ceedf376 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 May 2019 11:04:30.4142 (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-Transport-CrossTenantHeadersStamped: BL0PR02MB3777 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, Please find my inline comments below Thank you Dragan > -----Original Message----- > From: Rob Herring [mailto:robh@kernel.org] > Sent: Wednesday 1 May 2019 20:48 > To: Dragan Cvetic > Cc: arnd@arndb.de; gregkh@linuxfoundation.org; Michal Simek ; linux-arm-kernel@lists.infradead.org; > mark.rutland@arm.com; devicetree@vger.kernel.org; linux-kernel@vger.kerne= l.org; Derek Kiernan > Subject: Re: [PATCH V3 01/12] dt-bindings: xilinx-sdfec: Add SDFEC bindin= g >=20 > On Sat, Apr 27, 2019 at 11:04:55PM +0100, Dragan Cvetic wrote: > > Add the Soft Decision Forward Error Correction (SDFEC) Engine > > bindings which is available for the Zynq UltraScale+ RFSoC > > FPGA's. > > > > Signed-off-by: Dragan Cvetic > > Signed-off-by: Derek Kiernan > > --- > > .../devicetree/bindings/misc/xlnx,sd-fec.txt | 58 ++++++++++++++= ++++++++ > > 1 file changed, 58 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/misc/xlnx,sd-fec.= txt > > > > diff --git a/Documentation/devicetree/bindings/misc/xlnx,sd-fec.txt b/D= ocumentation/devicetree/bindings/misc/xlnx,sd-fec.txt > > new file mode 100644 > > index 0000000..425b6a6 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/misc/xlnx,sd-fec.txt > > @@ -0,0 +1,58 @@ > > +* Xilinx SDFEC(16nm) IP * > > + > > +The Soft Decision Forward Error Correction (SDFEC) Engine is a Hard IP= block > > +which provides high-throughput LDPC and Turbo Code implementations. > > +The LDPC decode & encode functionality is capable of covering a range = of > > +customer specified Quasi-cyclic (QC) codes. The Turbo decode functiona= lity > > +principally covers codes used by LTE. The FEC Engine offers significan= t > > +power and area savings versus implementations done in the FPGA fabric. > > + > > + > > +Required properties: > > +- compatible: Must be "xlnx,sd-fec-1.1" > > +- clock-names : List of input clock names from the following: > > + - "core_clk", Main processing clock for processing core (required) > > + - "s_axi_aclk", AXI4-Lite memory-mapped slave interface clock (req= uired) > > + - "s_axis_din_aclk", DIN AXI4-Stream Slave interface clock (option= al) > > + - "s_axis_din_words-aclk", DIN_WORDS AXI4-Stream Slave interface c= lock (optional) > > + - "s_axis_ctrl_aclk", Control input AXI4-Stream Slave interface c= lock (optional) > > + - "m_axis_dout_aclk", DOUT AXI4-Stream Master interface clock (opt= ional) > > + - "m_axis_dout_words_aclk", DOUT_WORDS AXI4-Stream Master interfac= e clock (optional) > > + - "m_axis_status_aclk", Status output AXI4-Stream Master interface= clock (optional) > > +- clocks : Clock phandles (see clock_bindings.txt for details). > > +- reg: Should contain Xilinx SDFEC 16nm Hardened IP block registers > > + location and length. > > +- xlnx,sdfec-code : Should contain "ldpc" or "turbo" to describe the c= odes > > + being used. > > +- xlnx,sdfec-din-words : A value 0 indicates that the DIN_WORDS interf= ace is > > + driven with a fixed value and is not present on the device, a value = of 1 > > + configures the DIN_WORDS to be block based, while a value of 2 confi= gures the > > + DIN_WORDS input to be supplied for each AXI transaction. > > +- xlnx,sdfec-din-width : Configures the DIN AXI stream where a value o= f 1 > > + configures a width of "1x128b", 2 a width of "2x128b" and 4 configur= es a width > > + of "4x128b". >=20 > Perhaps append with '-bits' and make the values 0, 128, 256, 512. >=20 The suggested will require the extra code for converting from 128,256,512 = to 1,2,4, as HW is configured with 1, 2 and 4. > > +- xlnx,sdfec-dout-words : A value 0 indicates that the DOUT_WORDS inte= rface is > > + driven with a fixed value and is not present on the device, a value = of 1 > > + configures the DOUT_WORDS to be block based, while a value of 2 conf= igures the > > + DOUT_WORDS input to be supplied for each AXI transaction. > > +- xlnx,sdfec-dout-width : Configures the DOUT AXI stream where a value= of 1 > > + configures a width of "1x128b", 2 a width of "2x128b" and 4 configur= es a width > > + of "4x128b". >=20 > Same here. >=20 Same comment as previous one. > > +Optional properties: > > +- interrupts: should contain SDFEC interrupt number >=20 > The interrupt may not be wired? My mistake. It should stay: interrupt-parent =3D <&axi_intc>; interrupts =3D <1 0>; >=20 > > + > > +Example > > +--------------------------------------- > > + sd_fec_0: sd-fec@a0040000 { > > + compatible =3D "xlnx,sd-fec-1.1"; > > + clock-names =3D "core_clk","s_axi_aclk","s_axis_ctrl_aclk","s_axis_d= in_aclk","m_axis_status_aclk","m_axis_dout_aclk"; > > + clocks =3D <&misc_clk_2>,<&misc_clk_0>,<&misc_clk_1>,<&misc_clk_1>,<= &misc_clk_1>, <&misc_clk_1>; > > + reg =3D <0x0 0xa0040000 0x0 0x40000>; > > + interrupt-parent =3D <&gic>; > > + interrupts =3D <0 89 4>; > > + xlnx,sdfec-code =3D "ldpc"; > > + xlnx,sdfec-din-words =3D <0>; > > + xlnx,sdfec-din-width =3D <2>; > > + xlnx,sdfec-dout-words =3D <0>; > > + xlnx,sdfec-dout-width =3D <1>; > > + }; > > -- > > 2.7.4 > >