xref: /freebsd/sys/contrib/device-tree/Bindings/ata/fsl,pq-sata.yaml (revision 8ccc0d235c226d84112561d453c49904398d085c)
1*8ccc0d23SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*8ccc0d23SEmmanuel Vadot%YAML 1.2
3*8ccc0d23SEmmanuel Vadot---
4*8ccc0d23SEmmanuel Vadot$id: http://devicetree.org/schemas/ata/fsl,pq-sata.yaml#
5*8ccc0d23SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*8ccc0d23SEmmanuel Vadot
7*8ccc0d23SEmmanuel Vadottitle: Freescale 8xxx/3.0 Gb/s SATA nodes
8*8ccc0d23SEmmanuel Vadot
9*8ccc0d23SEmmanuel Vadotmaintainers:
10*8ccc0d23SEmmanuel Vadot  - J. Neuschäfer <j.ne@posteo.net>
11*8ccc0d23SEmmanuel Vadot
12*8ccc0d23SEmmanuel Vadotdescription:
13*8ccc0d23SEmmanuel Vadot  SATA nodes are defined to describe on-chip Serial ATA controllers.
14*8ccc0d23SEmmanuel Vadot  Each SATA controller should have its own node.
15*8ccc0d23SEmmanuel Vadot
16*8ccc0d23SEmmanuel Vadotproperties:
17*8ccc0d23SEmmanuel Vadot  compatible:
18*8ccc0d23SEmmanuel Vadot    oneOf:
19*8ccc0d23SEmmanuel Vadot      - items:
20*8ccc0d23SEmmanuel Vadot          - enum:
21*8ccc0d23SEmmanuel Vadot              - fsl,mpc8377-sata
22*8ccc0d23SEmmanuel Vadot              - fsl,mpc8536-sata
23*8ccc0d23SEmmanuel Vadot              - fsl,mpc8315-sata
24*8ccc0d23SEmmanuel Vadot              - fsl,mpc8379-sata
25*8ccc0d23SEmmanuel Vadot          - const: fsl,pq-sata
26*8ccc0d23SEmmanuel Vadot      - const: fsl,pq-sata-v2
27*8ccc0d23SEmmanuel Vadot
28*8ccc0d23SEmmanuel Vadot  reg:
29*8ccc0d23SEmmanuel Vadot    maxItems: 1
30*8ccc0d23SEmmanuel Vadot
31*8ccc0d23SEmmanuel Vadot  interrupts:
32*8ccc0d23SEmmanuel Vadot    maxItems: 1
33*8ccc0d23SEmmanuel Vadot
34*8ccc0d23SEmmanuel Vadot  cell-index:
35*8ccc0d23SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
36*8ccc0d23SEmmanuel Vadot    enum: [1, 2, 3, 4]
37*8ccc0d23SEmmanuel Vadot    description: |
38*8ccc0d23SEmmanuel Vadot      1 for controller @ 0x18000
39*8ccc0d23SEmmanuel Vadot      2 for controller @ 0x19000
40*8ccc0d23SEmmanuel Vadot      3 for controller @ 0x1a000
41*8ccc0d23SEmmanuel Vadot      4 for controller @ 0x1b000
42*8ccc0d23SEmmanuel Vadot
43*8ccc0d23SEmmanuel Vadotrequired:
44*8ccc0d23SEmmanuel Vadot  - compatible
45*8ccc0d23SEmmanuel Vadot  - interrupts
46*8ccc0d23SEmmanuel Vadot  - cell-index
47*8ccc0d23SEmmanuel Vadot
48*8ccc0d23SEmmanuel VadotadditionalProperties: false
49*8ccc0d23SEmmanuel Vadot
50*8ccc0d23SEmmanuel Vadotexamples:
51*8ccc0d23SEmmanuel Vadot  - |
52*8ccc0d23SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
53*8ccc0d23SEmmanuel Vadot    sata@18000 {
54*8ccc0d23SEmmanuel Vadot        compatible = "fsl,mpc8379-sata", "fsl,pq-sata";
55*8ccc0d23SEmmanuel Vadot        reg = <0x18000 0x1000>;
56*8ccc0d23SEmmanuel Vadot        cell-index = <1>;
57*8ccc0d23SEmmanuel Vadot        interrupts = <44 IRQ_TYPE_LEVEL_LOW>;
58*8ccc0d23SEmmanuel Vadot    };
59*8ccc0d23SEmmanuel Vadot
60*8ccc0d23SEmmanuel Vadot...
61