Received: by 10.223.185.116 with SMTP id b49csp8827062wrg; Fri, 2 Mar 2018 08:36:12 -0800 (PST) X-Google-Smtp-Source: AG47ELv5QpMI+WdGLvZ1VNNy94osOy43Afs2GXk2KbV9NpqRBxvl7SCUX4HqPiGKe43pEpXWdSLa X-Received: by 10.101.73.77 with SMTP id q13mr4931026pgs.336.1520008571935; Fri, 02 Mar 2018 08:36:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520008571; cv=none; d=google.com; s=arc-20160816; b=ypEYgshOtsVu2QdxK49A8FwUqYm64gbgmqbfaqGQ49zM1eoR14j4qrhvN+6OlOuxaK wr5MSn9qng2tX9kV9CvqpEiC194ZvZwyUYJInaCcF0QWN3mchhPNpLNaAE6CWa9ZfBbe q/XOuBHUA3kFnQ1OHJ0lIJ3qMXKbGn5cvn4Y5QYpps3oD/X6rbqHU26FNXt8yiIQDbFL hLkBraEsW9m///H/JtMwsYFPC5NhPhPr6LxyXmhCR3/8zZbhgaX+0le6ilVqrHoMRNX5 3K/ljpPXqaoBa+Wt+M+zY1iVz4rIpjfuW1FKHBwDF1eS+HHLIYLP/EjCopbGvdFwbO6q GXxw== 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 :references:in-reply-to:mime-version:dmarc-filter :arc-authentication-results; bh=yAwfiBieU/EnPjIpQqVUTJrKq44bzogYtO9lL1yGMPo=; b=FC2n422X8DxlhFvhmrYixZpRH/6NS5MEPP+FOf9QaDqCeCjiz0YZ8hx88HwKeUNo2p KOHvxB22/90Kj+iF2mxRlQN1jAI7h99eE5aZccxIs0alzReH2VNiANVhD07jiZOdAm0k Y57xocxaY64vZF5eMf/5GJ11BVBX3v/Fvtml7Cy+d4ItKSzd6wqgRgqPjrLRb1OoYCMg Q+EjAvTEhSURtKKL1HAm+yHda6SJCO0pFI0Naps26AhfpRCFaXtmTuUy5QE5Fxd+kkz3 SEMJFsiGj9svU5SBsJFEXvmbum28QEuhYv8nzmIHid6NovoKAcZyPlSuC1hE+KNWNRrV Wj7A== ARC-Authentication-Results: i=1; mx.google.com; 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 s25si4216274pgv.479.2018.03.02.08.35.54; Fri, 02 Mar 2018 08:36:11 -0800 (PST) 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; 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 S1428035AbeCBP5o (ORCPT + 99 others); Fri, 2 Mar 2018 10:57:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:60834 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1426653AbeCBP5m (ORCPT ); Fri, 2 Mar 2018 10:57:42 -0500 Received: from mail-qt0-f182.google.com (mail-qt0-f182.google.com [209.85.216.182]) (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 9BE2421725; Fri, 2 Mar 2018 15:57:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9BE2421725 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=robh+dt@kernel.org Received: by mail-qt0-f182.google.com with SMTP id r16so12422005qtm.4; Fri, 02 Mar 2018 07:57:41 -0800 (PST) X-Gm-Message-State: AElRT7GSQwhKy9BSQAE1MVjY8DoMHJVG4Lc3CJgRSukg3oAskX/h16/8 IV3h54uu1+iJt/M+RdiU1ltDHjXP61aCxBBXYw== X-Received: by 10.200.42.114 with SMTP id l47mr9240287qtl.164.1520006260818; Fri, 02 Mar 2018 07:57:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.178.131 with HTTP; Fri, 2 Mar 2018 07:57:20 -0800 (PST) In-Reply-To: <1520003182-26277-2-git-send-email-john.garry@huawei.com> References: <1520003182-26277-1-git-send-email-john.garry@huawei.com> <1520003182-26277-2-git-send-email-john.garry@huawei.com> From: Rob Herring Date: Fri, 2 Mar 2018 09:57:20 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/8] dt-bindings: scsi: hisi_sas: add an property of signal attenuation To: John Garry Cc: "James E.J. Bottomley" , "Martin K. Petersen" , Mark Rutland , linux-scsi@vger.kernel.org, devicetree@vger.kernel.org, Linuxarm , "linux-kernel@vger.kernel.org" , Xiaofei Tan 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 Fri, Mar 2, 2018 at 9:06 AM, John Garry wrote: > From: Xiaofei Tan > > For some new boards with hip07 chipset we are required to > set PHY config registers differently. The hw property which > determines how to set these registers is in the PHY signal > attenuation readings. > > This patch add an devicetree property, hisi-signal-attenuation, > which is used to describe the signal attenuation of an board. > > Cc: Rob Herring > Cc: Mark Rutland > Signed-off-by: Xiaofei Tan > Signed-off-by: John Garry > --- > Documentation/devicetree/bindings/scsi/hisilicon-sas.txt | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/Documentation/devicetree/bindings/scsi/hisilicon-sas.txt b/Documentation/devicetree/bindings/scsi/hisilicon-sas.txt > index df3bef7..6f6876a 100644 > --- a/Documentation/devicetree/bindings/scsi/hisilicon-sas.txt > +++ b/Documentation/devicetree/bindings/scsi/hisilicon-sas.txt > @@ -53,6 +53,13 @@ Main node required properties: > Optional main node properties: > - hip06-sas-v2-quirk-amt : when set, indicates that the v2 controller has the > "am-max-transmissions" limitation. > + - hisi-signal-attenuation : array of 3 32-bit values, containing de-emphasis, The format for vendor prefixes is: ,property-name And should only be ones defined in vendor-prefixes.txt > + preshoot, and boost attenuation readings for the board. They > + are used to describe the signal attenuation of the board. These > + values' range is 7600 to 12400, and used to represent -24dB to > + 24dB. > + The formula is "y = (x-10000)/10000". For example, 10478 > + means 4.78dB. > > Example: > sas0: sas@c1000000 { > -- > 1.9.1 >