18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 28c2ecf20Sopenharmony_ci%YAML 1.2 38c2ecf20Sopenharmony_ci--- 48c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/ata/sata_highbank.yaml# 58c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml# 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_cititle: Calxeda AHCI SATA Controller 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_cidescription: | 108c2ecf20Sopenharmony_ci The Calxeda SATA controller mostly conforms to the AHCI interface 118c2ecf20Sopenharmony_ci with some special extensions to add functionality, to map GPIOs for 128c2ecf20Sopenharmony_ci activity LEDs and for mapping the ComboPHYs. 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_cimaintainers: 158c2ecf20Sopenharmony_ci - Andre Przywara <andre.przywara@arm.com> 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ciproperties: 188c2ecf20Sopenharmony_ci compatible: 198c2ecf20Sopenharmony_ci const: calxeda,hb-ahci 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci reg: 228c2ecf20Sopenharmony_ci maxItems: 1 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci interrupts: 258c2ecf20Sopenharmony_ci maxItems: 1 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci dma-coherent: true 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci calxeda,pre-clocks: 308c2ecf20Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/uint32 318c2ecf20Sopenharmony_ci description: | 328c2ecf20Sopenharmony_ci Indicates the number of additional clock cycles to transmit before 338c2ecf20Sopenharmony_ci sending an SGPIO pattern. 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci calxeda,post-clocks: 368c2ecf20Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/uint32 378c2ecf20Sopenharmony_ci description: | 388c2ecf20Sopenharmony_ci Indicates the number of additional clock cycles to transmit after 398c2ecf20Sopenharmony_ci sending an SGPIO pattern. 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ci calxeda,led-order: 428c2ecf20Sopenharmony_ci description: Maps port numbers to offsets within the SGPIO bitstream. 438c2ecf20Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/uint32-array 448c2ecf20Sopenharmony_ci minItems: 1 458c2ecf20Sopenharmony_ci maxItems: 8 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ci calxeda,port-phys: 488c2ecf20Sopenharmony_ci description: | 498c2ecf20Sopenharmony_ci phandle-combophy and lane assignment, which maps each SATA port to a 508c2ecf20Sopenharmony_ci combophy and a lane within that combophy 518c2ecf20Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/phandle-array 528c2ecf20Sopenharmony_ci minItems: 1 538c2ecf20Sopenharmony_ci maxItems: 8 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ci calxeda,tx-atten: 568c2ecf20Sopenharmony_ci description: | 578c2ecf20Sopenharmony_ci Contains TX attenuation override codes, one per port. 588c2ecf20Sopenharmony_ci The upper 24 bits of each entry are always 0 and thus ignored. 598c2ecf20Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/uint32-array 608c2ecf20Sopenharmony_ci minItems: 1 618c2ecf20Sopenharmony_ci maxItems: 8 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_ci calxeda,sgpio-gpio: 648c2ecf20Sopenharmony_ci description: | 658c2ecf20Sopenharmony_ci phandle-gpio bank, bit offset, and default on or off, which indicates 668c2ecf20Sopenharmony_ci that the driver supports SGPIO indicator lights using the indicated 678c2ecf20Sopenharmony_ci GPIOs. 688c2ecf20Sopenharmony_ci 698c2ecf20Sopenharmony_cirequired: 708c2ecf20Sopenharmony_ci - compatible 718c2ecf20Sopenharmony_ci - reg 728c2ecf20Sopenharmony_ci - interrupts 738c2ecf20Sopenharmony_ci 748c2ecf20Sopenharmony_ciadditionalProperties: false 758c2ecf20Sopenharmony_ci 768c2ecf20Sopenharmony_ciexamples: 778c2ecf20Sopenharmony_ci - | 788c2ecf20Sopenharmony_ci sata@ffe08000 { 798c2ecf20Sopenharmony_ci compatible = "calxeda,hb-ahci"; 808c2ecf20Sopenharmony_ci reg = <0xffe08000 0x1000>; 818c2ecf20Sopenharmony_ci interrupts = <115>; 828c2ecf20Sopenharmony_ci dma-coherent; 838c2ecf20Sopenharmony_ci calxeda,port-phys = <&combophy5 0>, <&combophy0 0>, <&combophy0 1>, 848c2ecf20Sopenharmony_ci <&combophy0 2>, <&combophy0 3>; 858c2ecf20Sopenharmony_ci calxeda,sgpio-gpio =<&gpioh 5 1>, <&gpioh 6 1>, <&gpioh 7 1>; 868c2ecf20Sopenharmony_ci calxeda,led-order = <4 0 1 2 3>; 878c2ecf20Sopenharmony_ci calxeda,tx-atten = <0xff 22 0xff 0xff 23>; 888c2ecf20Sopenharmony_ci calxeda,pre-clocks = <10>; 898c2ecf20Sopenharmony_ci calxeda,post-clocks = <0>; 908c2ecf20Sopenharmony_ci }; 918c2ecf20Sopenharmony_ci 928c2ecf20Sopenharmony_ci... 93