From patchwork Fri Mar 2 15:06:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 130550 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp1377002lja; Fri, 2 Mar 2018 07:09:37 -0800 (PST) X-Google-Smtp-Source: AG47ELsIs/jotJA0k9kkohvvutOux8W3uopjtKQPHKYu9oCmdy7Trk+kbB66kGUPLQUc7kfbfR2n X-Received: by 10.101.97.139 with SMTP id c11mr4766040pgv.433.1520003377282; Fri, 02 Mar 2018 07:09:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520003377; cv=none; d=google.com; s=arc-20160816; b=vONtJU9KFL3vmwqB/kaEyYWg3EIUON715BhLdLwelMh0sRLD7KicR5BUQ+QvYf8uBS GOKPh92A/Bi3QfyLyZFzKDlFzRw/8w2G3yAQ9ZA6u9FdBO90Qa5EO8U1150/GRfO0hmx axNFGPYQAPk54W6l2RTSxDvywF9vYt9J5K2C7fWwFjpiOQgM7v28NSVuhHAA3d5rzXpJ 1mo3+2xkj1mkvxIsJTLiCASEip9Dw2skL4JAd3Fr4ZvKTc3To9mSknqlfO0rM/fxycNF Cmk1DRBh54FXElZgFyNH/5Ie6ESKBb8TpGsyhZ49Fc6YvnN4eMniM6GX1oIGRemInJh8 nbHw== 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=1JdZy+fwEMfFdf3xVh6Zg5nGbx09Ra0a2BaLHOIgYek=; b=iw2lW71Or4E/VeKn5QgnJw0z5/Sd4+T9Q2ACB+SxXbasP2TySfzyrNvTL9iEtVTPTR 0c7vG/17+YpLFcX9UBF1Fn5ohILc5w6dHXtVt2AogzQpyc8KtNqRS2kmCe6mJyNjSIjJ RZdlXm7NldvfLvdDHgGb5j+fx7Jrza9W8FdKBKtENmGS844vfC4586ApkPcNbPXt+UT/ rHGG44L6yn0cgIGd7hdsy9C5QzanYReraF3tIrxrvv1F0jShrUjZTTmSSupUx0yggrmb UYwVzGQ5yOm/J8NBo+zmlp83Dcoj7K8MgbVG3CuBBJqSunT7+rc3bUFLe+cA+guFslBp 6PRg== 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 k12si4127799pgs.166.2018.03.02.07.09.36; Fri, 02 Mar 2018 07:09:37 -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 S1429105AbeCBPJb (ORCPT + 28 others); Fri, 2 Mar 2018 10:09:31 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:5731 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1423587AbeCBPH4 (ORCPT ); Fri, 2 Mar 2018 10:07:56 -0500 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 3899CECD4C858; Fri, 2 Mar 2018 23:07:33 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.361.1; Fri, 2 Mar 2018 23:07:26 +0800 From: John Garry To: , , , CC: , , , , Xiaofei Tan , John Garry Subject: [PATCH v2 1/8] dt-bindings: scsi: hisi_sas: add an property of signal attenuation Date: Fri, 2 Mar 2018 23:06:15 +0800 Message-ID: <1520003182-26277-2-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1520003182-26277-1-git-send-email-john.garry@huawei.com> References: <1520003182-26277-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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, 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(+) -- 1.9.1 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, + 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 {