162306a36Sopenharmony_ci* HiSilicon SAS controller 262306a36Sopenharmony_ci 362306a36Sopenharmony_ciThe HiSilicon SAS controller supports SAS/SATA. 462306a36Sopenharmony_ci 562306a36Sopenharmony_ciMain node required properties: 662306a36Sopenharmony_ci - compatible : value should be as follows: 762306a36Sopenharmony_ci (a) "hisilicon,hip05-sas-v1" for v1 hw in hip05 chipset 862306a36Sopenharmony_ci (b) "hisilicon,hip06-sas-v2" for v2 hw in hip06 chipset 962306a36Sopenharmony_ci (c) "hisilicon,hip07-sas-v2" for v2 hw in hip07 chipset 1062306a36Sopenharmony_ci - sas-addr : array of 8 bytes for host SAS address 1162306a36Sopenharmony_ci - reg : Contains two regions. The first is the address and length of the SAS 1262306a36Sopenharmony_ci register. The second is the address and length of CPLD register for 1362306a36Sopenharmony_ci SGPIO control. The second is optional, and should be set only when 1462306a36Sopenharmony_ci we use a CPLD for directly attached disk LED control. 1562306a36Sopenharmony_ci - hisilicon,sas-syscon: phandle of syscon used for sas control 1662306a36Sopenharmony_ci - ctrl-reset-reg : offset to controller reset register in ctrl reg 1762306a36Sopenharmony_ci - ctrl-reset-sts-reg : offset to controller reset status register in ctrl reg 1862306a36Sopenharmony_ci - ctrl-clock-ena-reg : offset to controller clock enable register in ctrl reg 1962306a36Sopenharmony_ci - queue-count : number of delivery and completion queues in the controller 2062306a36Sopenharmony_ci - phy-count : number of phys accessible by the controller 2162306a36Sopenharmony_ci - interrupts : For v1 hw: Interrupts for phys, completion queues, and fatal 2262306a36Sopenharmony_ci sources; the interrupts are ordered in 3 groups, as follows: 2362306a36Sopenharmony_ci - Phy interrupts 2462306a36Sopenharmony_ci - Completion queue interrupts 2562306a36Sopenharmony_ci - Fatal interrupts 2662306a36Sopenharmony_ci Phy interrupts : Each phy has 3 interrupt sources: 2762306a36Sopenharmony_ci - broadcast 2862306a36Sopenharmony_ci - phyup 2962306a36Sopenharmony_ci - abnormal 3062306a36Sopenharmony_ci The phy interrupts are ordered into groups of 3 per phy 3162306a36Sopenharmony_ci (broadcast, phyup, and abnormal) in increasing order. 3262306a36Sopenharmony_ci Completion queue interrupts : each completion queue has 1 3362306a36Sopenharmony_ci interrupt source. 3462306a36Sopenharmony_ci The interrupts are ordered in increasing order. 3562306a36Sopenharmony_ci Fatal interrupts : the fatal interrupts are ordered as follows: 3662306a36Sopenharmony_ci - ECC 3762306a36Sopenharmony_ci - AXI bus 3862306a36Sopenharmony_ci For v2 hw: Interrupts for phys, Sata, and completion queues; 3962306a36Sopenharmony_ci the interrupts are ordered in 3 groups, as follows: 4062306a36Sopenharmony_ci - Phy interrupts 4162306a36Sopenharmony_ci - Sata interrupts 4262306a36Sopenharmony_ci - Completion queue interrupts 4362306a36Sopenharmony_ci Phy interrupts : Each controller has 2 phy interrupts: 4462306a36Sopenharmony_ci - phy up/down 4562306a36Sopenharmony_ci - channel interrupt 4662306a36Sopenharmony_ci Sata interrupts : Each phy on the controller has 1 Sata 4762306a36Sopenharmony_ci interrupt. The interrupts are ordered in increasing 4862306a36Sopenharmony_ci order. 4962306a36Sopenharmony_ci Completion queue interrupts : each completion queue has 1 5062306a36Sopenharmony_ci interrupt source. The interrupts are ordered in 5162306a36Sopenharmony_ci increasing order. 5262306a36Sopenharmony_ci 5362306a36Sopenharmony_ciOptional main node properties: 5462306a36Sopenharmony_ci - hip06-sas-v2-quirk-amt : when set, indicates that the v2 controller has the 5562306a36Sopenharmony_ci "am-max-transmissions" limitation. 5662306a36Sopenharmony_ci - hisilicon,signal-attenuation : array of 3 32-bit values, containing de-emphasis, 5762306a36Sopenharmony_ci preshoot, and boost attenuation readings for the board. They 5862306a36Sopenharmony_ci are used to describe the signal attenuation of the board. These 5962306a36Sopenharmony_ci values' range is 7600 to 12400, and used to represent -24dB to 6062306a36Sopenharmony_ci 24dB. 6162306a36Sopenharmony_ci The formula is "y = (x-10000)/10000". For example, 10478 6262306a36Sopenharmony_ci means 4.78dB. 6362306a36Sopenharmony_ci 6462306a36Sopenharmony_ciExample: 6562306a36Sopenharmony_ci sas0: sas@c1000000 { 6662306a36Sopenharmony_ci compatible = "hisilicon,hip05-sas-v1"; 6762306a36Sopenharmony_ci sas-addr = [50 01 88 20 16 00 00 0a]; 6862306a36Sopenharmony_ci reg = <0x0 0xc1000000 0x0 0x10000>; 6962306a36Sopenharmony_ci hisilicon,sas-syscon = <&pcie_sas>; 7062306a36Sopenharmony_ci ctrl-reset-reg = <0xa60>; 7162306a36Sopenharmony_ci ctrl-reset-sts-reg = <0x5a30>; 7262306a36Sopenharmony_ci ctrl-clock-ena-reg = <0x338>; 7362306a36Sopenharmony_ci queue-count = <32>; 7462306a36Sopenharmony_ci phy-count = <8>; 7562306a36Sopenharmony_ci dma-coherent; 7662306a36Sopenharmony_ci interrupt-parent = <&mbigen_dsa>; 7762306a36Sopenharmony_ci interrupts = <259 4>,<263 4>,<264 4>,/* phy0 */ 7862306a36Sopenharmony_ci <269 4>,<273 4>,<274 4>,/* phy1 */ 7962306a36Sopenharmony_ci <279 4>,<283 4>,<284 4>,/* phy2 */ 8062306a36Sopenharmony_ci <289 4>,<293 4>,<294 4>,/* phy3 */ 8162306a36Sopenharmony_ci <299 4>,<303 4>,<304 4>,/* phy4 */ 8262306a36Sopenharmony_ci <309 4>,<313 4>,<314 4>,/* phy5 */ 8362306a36Sopenharmony_ci <319 4>,<323 4>,<324 4>,/* phy6 */ 8462306a36Sopenharmony_ci <329 4>,<333 4>,<334 4>,/* phy7 */ 8562306a36Sopenharmony_ci <336 1>,<337 1>,<338 1>,/* cq0-2 */ 8662306a36Sopenharmony_ci <339 1>,<340 1>,<341 1>,/* cq3-5 */ 8762306a36Sopenharmony_ci <342 1>,<343 1>,<344 1>,/* cq6-8 */ 8862306a36Sopenharmony_ci <345 1>,<346 1>,<347 1>,/* cq9-11 */ 8962306a36Sopenharmony_ci <348 1>,<349 1>,<350 1>,/* cq12-14 */ 9062306a36Sopenharmony_ci <351 1>,<352 1>,<353 1>,/* cq15-17 */ 9162306a36Sopenharmony_ci <354 1>,<355 1>,<356 1>,/* cq18-20 */ 9262306a36Sopenharmony_ci <357 1>,<358 1>,<359 1>,/* cq21-23 */ 9362306a36Sopenharmony_ci <360 1>,<361 1>,<362 1>,/* cq24-26 */ 9462306a36Sopenharmony_ci <363 1>,<364 1>,<365 1>,/* cq27-29 */ 9562306a36Sopenharmony_ci <366 1>,<367 1>/* cq30-31 */ 9662306a36Sopenharmony_ci <376 4>,/* fatal ecc */ 9762306a36Sopenharmony_ci <381 4>;/* fatal axi */ 9862306a36Sopenharmony_ci }; 99