18c2ecf20Sopenharmony_ci* HiSilicon SAS controller 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciThe HiSilicon SAS controller supports SAS/SATA. 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ciMain node required properties: 68c2ecf20Sopenharmony_ci - compatible : value should be as follows: 78c2ecf20Sopenharmony_ci (a) "hisilicon,hip05-sas-v1" for v1 hw in hip05 chipset 88c2ecf20Sopenharmony_ci (b) "hisilicon,hip06-sas-v2" for v2 hw in hip06 chipset 98c2ecf20Sopenharmony_ci (c) "hisilicon,hip07-sas-v2" for v2 hw in hip07 chipset 108c2ecf20Sopenharmony_ci - sas-addr : array of 8 bytes for host SAS address 118c2ecf20Sopenharmony_ci - reg : Contains two regions. The first is the address and length of the SAS 128c2ecf20Sopenharmony_ci register. The second is the address and length of CPLD register for 138c2ecf20Sopenharmony_ci SGPIO control. The second is optional, and should be set only when 148c2ecf20Sopenharmony_ci we use a CPLD for directly attached disk LED control. 158c2ecf20Sopenharmony_ci - hisilicon,sas-syscon: phandle of syscon used for sas control 168c2ecf20Sopenharmony_ci - ctrl-reset-reg : offset to controller reset register in ctrl reg 178c2ecf20Sopenharmony_ci - ctrl-reset-sts-reg : offset to controller reset status register in ctrl reg 188c2ecf20Sopenharmony_ci - ctrl-clock-ena-reg : offset to controller clock enable register in ctrl reg 198c2ecf20Sopenharmony_ci - queue-count : number of delivery and completion queues in the controller 208c2ecf20Sopenharmony_ci - phy-count : number of phys accessible by the controller 218c2ecf20Sopenharmony_ci - interrupts : For v1 hw: Interrupts for phys, completion queues, and fatal 228c2ecf20Sopenharmony_ci sources; the interrupts are ordered in 3 groups, as follows: 238c2ecf20Sopenharmony_ci - Phy interrupts 248c2ecf20Sopenharmony_ci - Completion queue interrupts 258c2ecf20Sopenharmony_ci - Fatal interrupts 268c2ecf20Sopenharmony_ci Phy interrupts : Each phy has 3 interrupt sources: 278c2ecf20Sopenharmony_ci - broadcast 288c2ecf20Sopenharmony_ci - phyup 298c2ecf20Sopenharmony_ci - abnormal 308c2ecf20Sopenharmony_ci The phy interrupts are ordered into groups of 3 per phy 318c2ecf20Sopenharmony_ci (broadcast, phyup, and abnormal) in increasing order. 328c2ecf20Sopenharmony_ci Completion queue interrupts : each completion queue has 1 338c2ecf20Sopenharmony_ci interrupt source. 348c2ecf20Sopenharmony_ci The interrupts are ordered in increasing order. 358c2ecf20Sopenharmony_ci Fatal interrupts : the fatal interrupts are ordered as follows: 368c2ecf20Sopenharmony_ci - ECC 378c2ecf20Sopenharmony_ci - AXI bus 388c2ecf20Sopenharmony_ci For v2 hw: Interrupts for phys, Sata, and completion queues; 398c2ecf20Sopenharmony_ci the interrupts are ordered in 3 groups, as follows: 408c2ecf20Sopenharmony_ci - Phy interrupts 418c2ecf20Sopenharmony_ci - Sata interrupts 428c2ecf20Sopenharmony_ci - Completion queue interrupts 438c2ecf20Sopenharmony_ci Phy interrupts : Each controller has 2 phy interrupts: 448c2ecf20Sopenharmony_ci - phy up/down 458c2ecf20Sopenharmony_ci - channel interrupt 468c2ecf20Sopenharmony_ci Sata interrupts : Each phy on the controller has 1 Sata 478c2ecf20Sopenharmony_ci interrupt. The interrupts are ordered in increasing 488c2ecf20Sopenharmony_ci order. 498c2ecf20Sopenharmony_ci Completion queue interrupts : each completion queue has 1 508c2ecf20Sopenharmony_ci interrupt source. The interrupts are ordered in 518c2ecf20Sopenharmony_ci increasing order. 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ciOptional main node properties: 548c2ecf20Sopenharmony_ci - hip06-sas-v2-quirk-amt : when set, indicates that the v2 controller has the 558c2ecf20Sopenharmony_ci "am-max-transmissions" limitation. 568c2ecf20Sopenharmony_ci - hisilicon,signal-attenuation : array of 3 32-bit values, containing de-emphasis, 578c2ecf20Sopenharmony_ci preshoot, and boost attenuation readings for the board. They 588c2ecf20Sopenharmony_ci are used to describe the signal attenuation of the board. These 598c2ecf20Sopenharmony_ci values' range is 7600 to 12400, and used to represent -24dB to 608c2ecf20Sopenharmony_ci 24dB. 618c2ecf20Sopenharmony_ci The formula is "y = (x-10000)/10000". For example, 10478 628c2ecf20Sopenharmony_ci means 4.78dB. 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ciExample: 658c2ecf20Sopenharmony_ci sas0: sas@c1000000 { 668c2ecf20Sopenharmony_ci compatible = "hisilicon,hip05-sas-v1"; 678c2ecf20Sopenharmony_ci sas-addr = [50 01 88 20 16 00 00 0a]; 688c2ecf20Sopenharmony_ci reg = <0x0 0xc1000000 0x0 0x10000>; 698c2ecf20Sopenharmony_ci hisilicon,sas-syscon = <&pcie_sas>; 708c2ecf20Sopenharmony_ci ctrl-reset-reg = <0xa60>; 718c2ecf20Sopenharmony_ci ctrl-reset-sts-reg = <0x5a30>; 728c2ecf20Sopenharmony_ci ctrl-clock-ena-reg = <0x338>; 738c2ecf20Sopenharmony_ci queue-count = <32>; 748c2ecf20Sopenharmony_ci phy-count = <8>; 758c2ecf20Sopenharmony_ci dma-coherent; 768c2ecf20Sopenharmony_ci interrupt-parent = <&mbigen_dsa>; 778c2ecf20Sopenharmony_ci interrupts = <259 4>,<263 4>,<264 4>,/* phy0 */ 788c2ecf20Sopenharmony_ci <269 4>,<273 4>,<274 4>,/* phy1 */ 798c2ecf20Sopenharmony_ci <279 4>,<283 4>,<284 4>,/* phy2 */ 808c2ecf20Sopenharmony_ci <289 4>,<293 4>,<294 4>,/* phy3 */ 818c2ecf20Sopenharmony_ci <299 4>,<303 4>,<304 4>,/* phy4 */ 828c2ecf20Sopenharmony_ci <309 4>,<313 4>,<314 4>,/* phy5 */ 838c2ecf20Sopenharmony_ci <319 4>,<323 4>,<324 4>,/* phy6 */ 848c2ecf20Sopenharmony_ci <329 4>,<333 4>,<334 4>,/* phy7 */ 858c2ecf20Sopenharmony_ci <336 1>,<337 1>,<338 1>,/* cq0-2 */ 868c2ecf20Sopenharmony_ci <339 1>,<340 1>,<341 1>,/* cq3-5 */ 878c2ecf20Sopenharmony_ci <342 1>,<343 1>,<344 1>,/* cq6-8 */ 888c2ecf20Sopenharmony_ci <345 1>,<346 1>,<347 1>,/* cq9-11 */ 898c2ecf20Sopenharmony_ci <348 1>,<349 1>,<350 1>,/* cq12-14 */ 908c2ecf20Sopenharmony_ci <351 1>,<352 1>,<353 1>,/* cq15-17 */ 918c2ecf20Sopenharmony_ci <354 1>,<355 1>,<356 1>,/* cq18-20 */ 928c2ecf20Sopenharmony_ci <357 1>,<358 1>,<359 1>,/* cq21-23 */ 938c2ecf20Sopenharmony_ci <360 1>,<361 1>,<362 1>,/* cq24-26 */ 948c2ecf20Sopenharmony_ci <363 1>,<364 1>,<365 1>,/* cq27-29 */ 958c2ecf20Sopenharmony_ci <366 1>,<367 1>/* cq30-31 */ 968c2ecf20Sopenharmony_ci <376 4>,/* fatal ecc */ 978c2ecf20Sopenharmony_ci <381 4>;/* fatal axi */ 988c2ecf20Sopenharmony_ci }; 99