From patchwork Wed Mar 7 12:25:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 130870 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp5119958lja; Wed, 7 Mar 2018 04:26:34 -0800 (PST) X-Google-Smtp-Source: AG47ELv/THoPiwZOHJzA0E7XfPkUzI9Wjpzp2GuK2L5w2NEK8Ehf6VLABBZ/1I5FvScdok6gN9+f X-Received: by 10.98.157.199 with SMTP id a68mr22534197pfk.59.1520425594762; Wed, 07 Mar 2018 04:26:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520425594; cv=none; d=google.com; s=arc-20160816; b=ey1zeDzLYHzHgx+Tktd8VvUq5F0gZaB0Nb4gnpIdBMIEM6Ktl9MFA6vnbAa++YkPOA xzoixZn2W98HTtWv6BYaiFMp5Ei4eRrL8kQhMnz3R8iJpwaE+NAsveUKq1WdMOppQTuC zRg2jtJGvVh2hjtZ3/BIQPrLHoGwpXzYgCP7lbVUsnGfTFsVDW+TrtCd5u0mRcY8eIdJ SXOZAuU19qhLJpG8zxK8HIBbNaIZB3MKm8eUmPToinOKu0Fu0GHIksriDa/mkMr7QHSN 6+3LWXD34BgMZPOT3aDONDWN2c3XRlLuVhK1xcRbj6MgQr2/KvpfUL6xZwQJ7yBffHeI uejg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=HY7P2ykVO7aXNsFrmsUF9y8vdVz33rC24I8YDuRWDu0=; b=rdK4VOmmrFZFPO3nTK0DD2TrCg2ebarhaNlrEutOwNUAb45cFQWedR+jf+5Jeh9j0w pGUiEDT1cV0cZLYNiwk1v+6kmfkpZRIOeK5cig4sraHTVHTWbk0OHgNK5jCjYLiweKx3 CGXKz57IEu7FVArP0I6UD5mMqV0B2GB/5CRtBc0ufvgDHmXE2Lp3UL+PbBCrrZZ73qUU AsblWEMraiagLOdKTl9XwmR/0NdmPRFeaUNU6CVKVr2hefl/CSSi7Ll/V98RaBrYmahN 4Un1dRCM8uuLeRYGIH+YcMryARIPvwHApfuBERQkz52CI7SmZxj791fa/TsVlxhNhE9N F0Iw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-scsi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-scsi-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 a23si13428044pfn.161.2018.03.07.04.26.34; Wed, 07 Mar 2018 04:26:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-scsi-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-scsi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933106AbeCGM0d (ORCPT + 1 other); Wed, 7 Mar 2018 07:26:33 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:6170 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754173AbeCGM0G (ORCPT ); Wed, 7 Mar 2018 07:26:06 -0500 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id E815FC0AF89B7; Wed, 7 Mar 2018 20:25:42 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.361.1; Wed, 7 Mar 2018 20:25:34 +0800 From: John Garry To: , , , , CC: , , , , Xiaofei Tan , John Garry Subject: [PATCH v4 01/10] dt-bindings: scsi: hisi_sas: add an property of signal attenuation Date: Wed, 7 Mar 2018 20:25:05 +0800 Message-ID: <1520425514-205565-2-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1520425514-205565-1-git-send-email-john.garry@huawei.com> References: <1520425514-205565-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org 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, "hisilicon,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(+) -- 1.9.1 diff --git a/Documentation/devicetree/bindings/scsi/hisilicon-sas.txt b/Documentation/devicetree/bindings/scsi/hisilicon-sas.txt index df3bef7..8c6659e 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. + - hisilicon,signal-attenuation : array of 3 32-bit values, containing de-emphasis, + 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 {