Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7629109yba; Thu, 2 May 2019 13:16:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWCXQJ4ca6yKWryG6dHRzpe5kLXgXFEhNOe0qMg7/MV6Iz+V+tb9QFD/F3jrZTEuOtPqnI X-Received: by 2002:a17:902:e402:: with SMTP id ci2mr5938858plb.154.1556828214284; Thu, 02 May 2019 13:16:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556828214; cv=none; d=google.com; s=arc-20160816; b=ua66wJAjJYQgkDbhsoFJ4Wapplwqo/cfKxUCiYHvg0K/ulXpG7uYN9ZgE4l9McSz3B lqE1G1rVyWqxTmUIlp6fJfdXVgxOgpmQMPc95oMQiCQoD4uZxNdZT2VGd7maLL2IrXnU aq+CmC77MEsnuORPXB+yx/csfkLem0CTU9HmBLudvW3nnKwuctC/F+KtAcuc9SxP2GJu 58tx+pujLfgHmf5FbIWFKVy+1FT3Uu+NdxO8DHbpwROa3FSj6Z4nOb7/bApmp7GiD59l /Zwi7BzhEfbJyLQGkWSml3Dxi/TJq5O5arWe6LbhLVSt23a/eDENCIecV77L9/LeqL8P kbKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=34K7c9vjKd2Z1HJjEpBHW8YydWMWXavmG/BzUTkkK30=; b=KTxprW3kNFQMEKXNmWcKMXU9NJwZS5eczavPOlTk5P0p9KeOhjat99vcWf40VWKyZM I02DClh5Wyw27BXTIiEdooQUqYxkM2NOYF3kDy3E4XfM7XDrLoSE0YMZIHnVyBl8X4zb 5Zhrs0In7U9hc8gcHqB7rcKnzTWr4BkGQAZ9TzUFqXsS6qavuR9IkKVGAbjvDSIu1mlQ SKGLexwHv+OjtI/FTelFMM8r7QmGlu5i6wLj4NuP1G9UFIOIsY5+ChD1FQvICyzMI1jn QPw844/fTeIx6TnyslqO2gIMoHgEubT5n9RJcaSM0o/ykjk9gPibkqRbW4tBQJQFfWUs YMVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HgR9EGv2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v21si120064plo.34.2019.05.02.13.16.38; Thu, 02 May 2019 13:16:54 -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=@kernel.org header.s=default header.b=HgR9EGv2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726193AbfEBUPs (ORCPT + 99 others); Thu, 2 May 2019 16:15:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:47652 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725962AbfEBUPs (ORCPT ); Thu, 2 May 2019 16:15:48 -0400 Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8252D2087F; Thu, 2 May 2019 20:15:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556828146; bh=zRxoyURQKaIiT7crP80AuPIZsgXFZ/JEMXTtFf2j0Rg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=HgR9EGv2AamK+gZAJYsuOyK66VNso2+jrjJ0znjMqgHbUMH8Ya9aP+6ogolNBc1Ox OSHm2fsO77nAjn8ZJyeU3ZleOn0vAoYQ/g60xHR8m7rwSlnZ0+VfshIkm9c7x/Aa5o n/3FhxDFr+mjjqONXDAaHgy9qIMaVdFDko8SgnLY= Received: by mail-qk1-f181.google.com with SMTP id a132so2311217qkb.13; Thu, 02 May 2019 13:15:46 -0700 (PDT) X-Gm-Message-State: APjAAAWCGCK9fV1sBzHyZ+ZFYU1pumGFDVbr9Q9tnu26vobO0kM1SbT/ r+OHeLRlpydtsGvxwN4PZiCjyWuFHcH2rVZ1tw== X-Received: by 2002:a37:ad14:: with SMTP id f20mr4646875qkm.147.1556828145727; Thu, 02 May 2019 13:15:45 -0700 (PDT) MIME-Version: 1.0 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: From: Rob Herring Date: Thu, 2 May 2019 15:15:33 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V3 01/12] dt-bindings: xilinx-sdfec: Add SDFEC binding 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.kernel.org" , Derek Kiernan Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 2, 2019 at 6:04 AM Dragan Cvetic wrote: > > 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.kernel.org; Derek Kiernan > > Subject: Re: [PATCH V3 01/12] dt-bindings: xilinx-sdfec: Add SDFEC binding > > > > 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/Documentation/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 functionality > > > +principally covers codes used by LTE. The FEC Engine offers significant > > > +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 (required) > > > + - "s_axis_din_aclk", DIN AXI4-Stream Slave interface clock (optional) > > > + - "s_axis_din_words-aclk", DIN_WORDS AXI4-Stream Slave interface clock (optional) > > > + - "s_axis_ctrl_aclk", Control input AXI4-Stream Slave interface clock (optional) > > > + - "m_axis_dout_aclk", DOUT AXI4-Stream Master interface clock (optional) > > > + - "m_axis_dout_words_aclk", DOUT_WORDS AXI4-Stream Master interface 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 codes > > > + being used. > > > +- xlnx,sdfec-din-words : A value 0 indicates that the DIN_WORDS interface 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 configures the > > > + DIN_WORDS input to be supplied for each AXI transaction. > > > +- xlnx,sdfec-din-width : Configures the DIN AXI stream where a value of 1 > > > + configures a width of "1x128b", 2 a width of "2x128b" and 4 configures a width > > > + of "4x128b". > > > > Perhaps append with '-bits' and make the values 0, 128, 256, 512. > > > > > 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. A simple divide by 128. We generally prefer DT to use real units rather than register values. Rob