1*064f14e9SSerge Semin# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*064f14e9SSerge Semin%YAML 1.2 3*064f14e9SSerge Semin--- 4*064f14e9SSerge Semin$id: http://devicetree.org/schemas/ata/baikal,bt1-ahci.yaml# 5*064f14e9SSerge Semin$schema: http://devicetree.org/meta-schemas/core.yaml# 6*064f14e9SSerge Semin 7*064f14e9SSerge Semintitle: Baikal-T1 SoC AHCI SATA controller 8*064f14e9SSerge Semin 9*064f14e9SSerge Seminmaintainers: 10*064f14e9SSerge Semin - Serge Semin <fancer.lancer@gmail.com> 11*064f14e9SSerge Semin 12*064f14e9SSerge Semindescription: 13*064f14e9SSerge Semin AHCI SATA controller embedded into the Baikal-T1 SoC is based on the 14*064f14e9SSerge Semin DWC AHCI SATA v4.10a IP-core. 15*064f14e9SSerge Semin 16*064f14e9SSerge SeminallOf: 17*064f14e9SSerge Semin - $ref: snps,dwc-ahci-common.yaml# 18*064f14e9SSerge Semin 19*064f14e9SSerge Seminproperties: 20*064f14e9SSerge Semin compatible: 21*064f14e9SSerge Semin const: baikal,bt1-ahci 22*064f14e9SSerge Semin 23*064f14e9SSerge Semin clocks: 24*064f14e9SSerge Semin items: 25*064f14e9SSerge Semin - description: Peripheral APB bus clock 26*064f14e9SSerge Semin - description: Application AXI BIU clock 27*064f14e9SSerge Semin - description: SATA Ports reference clock 28*064f14e9SSerge Semin 29*064f14e9SSerge Semin clock-names: 30*064f14e9SSerge Semin items: 31*064f14e9SSerge Semin - const: pclk 32*064f14e9SSerge Semin - const: aclk 33*064f14e9SSerge Semin - const: ref 34*064f14e9SSerge Semin 35*064f14e9SSerge Semin resets: 36*064f14e9SSerge Semin items: 37*064f14e9SSerge Semin - description: Application AXI BIU domain reset 38*064f14e9SSerge Semin - description: SATA Ports clock domain reset 39*064f14e9SSerge Semin 40*064f14e9SSerge Semin reset-names: 41*064f14e9SSerge Semin items: 42*064f14e9SSerge Semin - const: arst 43*064f14e9SSerge Semin - const: ref 44*064f14e9SSerge Semin 45*064f14e9SSerge Semin ports-implemented: 46*064f14e9SSerge Semin maximum: 0x3 47*064f14e9SSerge Semin 48*064f14e9SSerge SeminpatternProperties: 49*064f14e9SSerge Semin "^sata-port@[0-1]$": 50*064f14e9SSerge Semin $ref: /schemas/ata/snps,dwc-ahci-common.yaml#/$defs/dwc-ahci-port 51*064f14e9SSerge Semin 52*064f14e9SSerge Semin properties: 53*064f14e9SSerge Semin reg: 54*064f14e9SSerge Semin minimum: 0 55*064f14e9SSerge Semin maximum: 1 56*064f14e9SSerge Semin 57*064f14e9SSerge Semin snps,tx-ts-max: 58*064f14e9SSerge Semin $ref: /schemas/types.yaml#/definitions/uint32 59*064f14e9SSerge Semin description: 60*064f14e9SSerge Semin Due to having AXI3 bus interface utilized the maximum Tx DMA 61*064f14e9SSerge Semin transaction size can't exceed 16 beats (AxLEN[3:0]). 62*064f14e9SSerge Semin enum: [ 1, 2, 4, 8, 16 ] 63*064f14e9SSerge Semin 64*064f14e9SSerge Semin snps,rx-ts-max: 65*064f14e9SSerge Semin $ref: /schemas/types.yaml#/definitions/uint32 66*064f14e9SSerge Semin description: 67*064f14e9SSerge Semin Due to having AXI3 bus interface utilized the maximum Rx DMA 68*064f14e9SSerge Semin transaction size can't exceed 16 beats (AxLEN[3:0]). 69*064f14e9SSerge Semin enum: [ 1, 2, 4, 8, 16 ] 70*064f14e9SSerge Semin 71*064f14e9SSerge Semin unevaluatedProperties: false 72*064f14e9SSerge Semin 73*064f14e9SSerge Seminrequired: 74*064f14e9SSerge Semin - compatible 75*064f14e9SSerge Semin - reg 76*064f14e9SSerge Semin - interrupts 77*064f14e9SSerge Semin - clocks 78*064f14e9SSerge Semin - clock-names 79*064f14e9SSerge Semin - resets 80*064f14e9SSerge Semin 81*064f14e9SSerge SeminunevaluatedProperties: false 82*064f14e9SSerge Semin 83*064f14e9SSerge Seminexamples: 84*064f14e9SSerge Semin - | 85*064f14e9SSerge Semin sata@1f050000 { 86*064f14e9SSerge Semin compatible = "baikal,bt1-ahci"; 87*064f14e9SSerge Semin reg = <0x1f050000 0x2000>; 88*064f14e9SSerge Semin #address-cells = <1>; 89*064f14e9SSerge Semin #size-cells = <0>; 90*064f14e9SSerge Semin 91*064f14e9SSerge Semin interrupts = <0 64 4>; 92*064f14e9SSerge Semin 93*064f14e9SSerge Semin clocks = <&ccu_sys 1>, <&ccu_axi 2>, <&sata_ref_clk>; 94*064f14e9SSerge Semin clock-names = "pclk", "aclk", "ref"; 95*064f14e9SSerge Semin 96*064f14e9SSerge Semin resets = <&ccu_axi 2>, <&ccu_sys 0>; 97*064f14e9SSerge Semin reset-names = "arst", "ref"; 98*064f14e9SSerge Semin 99*064f14e9SSerge Semin ports-implemented = <0x3>; 100*064f14e9SSerge Semin 101*064f14e9SSerge Semin sata-port@0 { 102*064f14e9SSerge Semin reg = <0>; 103*064f14e9SSerge Semin 104*064f14e9SSerge Semin snps,tx-ts-max = <4>; 105*064f14e9SSerge Semin snps,rx-ts-max = <4>; 106*064f14e9SSerge Semin }; 107*064f14e9SSerge Semin 108*064f14e9SSerge Semin sata-port@1 { 109*064f14e9SSerge Semin reg = <1>; 110*064f14e9SSerge Semin 111*064f14e9SSerge Semin snps,tx-ts-max = <4>; 112*064f14e9SSerge Semin snps,rx-ts-max = <4>; 113*064f14e9SSerge Semin }; 114*064f14e9SSerge Semin }; 115*064f14e9SSerge Semin... 116