Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: hisi_sas: dt-bindings: add an property of signal attenuation

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 <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Xiaofei Tan and committed by
Martin K. Petersen
4c40db99 1875ede0

+7
+7
Documentation/devicetree/bindings/scsi/hisilicon-sas.txt
··· 53 53 Optional main node properties: 54 54 - hip06-sas-v2-quirk-amt : when set, indicates that the v2 controller has the 55 55 "am-max-transmissions" limitation. 56 + - hisilicon,signal-attenuation : array of 3 32-bit values, containing de-emphasis, 57 + preshoot, and boost attenuation readings for the board. They 58 + are used to describe the signal attenuation of the board. These 59 + values' range is 7600 to 12400, and used to represent -24dB to 60 + 24dB. 61 + The formula is "y = (x-10000)/10000". For example, 10478 62 + means 4.78dB. 56 63 57 64 Example: 58 65 sas0: sas@c1000000 {