brintos

brintos / linux-shallow public Read only

0
0
Text · 2.8 KiB · 13eaa8d Raw
128 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/ata/rockchip,dwc-ahci.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Synopsys DWC AHCI SATA controller for Rockchip devices8 9maintainers:10  - Serge Semin <fancer.lancer@gmail.com>11 12description:13  This document defines device tree bindings for the Synopsys DWC14  implementation of the AHCI SATA controller found in Rockchip15  devices.16 17select:18  properties:19    compatible:20      contains:21        enum:22          - rockchip,rk3568-dwc-ahci23          - rockchip,rk3588-dwc-ahci24  required:25    - compatible26 27properties:28  compatible:29    items:30      - enum:31          - rockchip,rk3568-dwc-ahci32          - rockchip,rk3588-dwc-ahci33      - const: snps,dwc-ahci34 35  ports-implemented:36    const: 137 38  power-domains:39    maxItems: 140 41  sata-port@0:42    $ref: /schemas/ata/snps,dwc-ahci-common.yaml#/$defs/dwc-ahci-port43 44    properties:45      reg:46        const: 047 48    unevaluatedProperties: false49 50patternProperties:51  "^sata-port@[1-9a-e]$": false52 53required:54  - compatible55  - reg56  - interrupts57  - clocks58  - clock-names59  - ports-implemented60 61allOf:62  - $ref: snps,dwc-ahci-common.yaml#63  - if:64      properties:65        compatible:66          contains:67            enum:68              - rockchip,rk3588-dwc-ahci69    then:70      properties:71        clocks:72          maxItems: 573        clock-names:74          items:75            - const: sata76            - const: pmalive77            - const: rxoob78            - const: ref79            - const: asic80  - if:81      properties:82        compatible:83          contains:84            enum:85              - rockchip,rk3568-dwc-ahci86    then:87      properties:88        clocks:89          maxItems: 390        clock-names:91          items:92            - const: sata93            - const: pmalive94            - const: rxoob95 96unevaluatedProperties: false97 98examples:99  - |100    #include <dt-bindings/clock/rockchip,rk3588-cru.h>101    #include <dt-bindings/interrupt-controller/arm-gic.h>102    #include <dt-bindings/ata/ahci.h>103    #include <dt-bindings/phy/phy.h>104 105    sata@fe210000 {106      compatible = "rockchip,rk3588-dwc-ahci", "snps,dwc-ahci";107      reg = <0xfe210000 0x1000>;108      clocks = <&cru ACLK_SATA0>, <&cru CLK_PMALIVE0>,109               <&cru CLK_RXOOB0>, <&cru CLK_PIPEPHY0_REF>,110               <&cru CLK_PIPEPHY0_PIPE_ASIC_G>;111      clock-names = "sata", "pmalive", "rxoob", "ref", "asic";112      interrupts = <GIC_SPI 273 IRQ_TYPE_LEVEL_HIGH 0>;113      ports-implemented = <0x1>;114      #address-cells = <1>;115      #size-cells = <0>;116 117      sata-port@0 {118        reg = <0>;119        hba-port-cap = <HBA_PORT_FBSCP>;120        phys = <&combphy0_ps PHY_TYPE_SATA>;121        phy-names = "sata-phy";122        snps,rx-ts-max = <32>;123        snps,tx-ts-max = <32>;124      };125    };126 127...128