xref: /freebsd/sys/contrib/device-tree/Bindings/ata/intel,ixp4xx-compact-flash.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
1354d7675SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2354d7675SEmmanuel Vadot%YAML 1.2
3354d7675SEmmanuel Vadot---
4354d7675SEmmanuel Vadot$id: http://devicetree.org/schemas/ata/intel,ixp4xx-compact-flash.yaml#
5354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6354d7675SEmmanuel Vadot
7354d7675SEmmanuel Vadottitle: Intel IXP4xx CompactFlash Card Controller
8354d7675SEmmanuel Vadot
9354d7675SEmmanuel Vadotmaintainers:
10354d7675SEmmanuel Vadot  - Linus Walleij <linus.walleij@linaro.org>
11354d7675SEmmanuel Vadot
12354d7675SEmmanuel Vadotdescription: |
13354d7675SEmmanuel Vadot  The IXP4xx network processors have a CompactFlash interface that presents
14354d7675SEmmanuel Vadot  a CompactFlash card to the system as a true IDE (parallel ATA) device. The
15354d7675SEmmanuel Vadot  device is always connected to the expansion bus of the IXP4xx SoCs using one
16354d7675SEmmanuel Vadot  or two chip select areas and address translating logic on the board. The
17354d7675SEmmanuel Vadot  node must be placed inside a chip select node on the IXP4xx expansion bus.
18354d7675SEmmanuel Vadot
19354d7675SEmmanuel Vadotproperties:
20354d7675SEmmanuel Vadot  compatible:
21354d7675SEmmanuel Vadot    const: intel,ixp4xx-compact-flash
22354d7675SEmmanuel Vadot
23354d7675SEmmanuel Vadot  reg:
24354d7675SEmmanuel Vadot    items:
25354d7675SEmmanuel Vadot      - description: Command interface registers
26354d7675SEmmanuel Vadot      - description: Control interface registers
27354d7675SEmmanuel Vadot
28354d7675SEmmanuel Vadot  interrupts:
29354d7675SEmmanuel Vadot    maxItems: 1
30354d7675SEmmanuel Vadot
31354d7675SEmmanuel Vadotrequired:
32354d7675SEmmanuel Vadot  - compatible
33354d7675SEmmanuel Vadot  - reg
34354d7675SEmmanuel Vadot  - interrupts
35354d7675SEmmanuel Vadot
36354d7675SEmmanuel VadotallOf:
37354d7675SEmmanuel Vadot  - $ref: pata-common.yaml#
38*cb7aa33aSEmmanuel Vadot  - $ref: /schemas/memory-controllers/intel,ixp4xx-expansion-peripheral-props.yaml#
39354d7675SEmmanuel Vadot
40354d7675SEmmanuel VadotunevaluatedProperties: false
41354d7675SEmmanuel Vadot
42354d7675SEmmanuel Vadotexamples:
43354d7675SEmmanuel Vadot  - |
44354d7675SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
45354d7675SEmmanuel Vadot
46354d7675SEmmanuel Vadot    bus@c4000000 {
47354d7675SEmmanuel Vadot      compatible = "intel,ixp43x-expansion-bus-controller", "syscon";
48354d7675SEmmanuel Vadot      reg = <0xc4000000 0x1000>;
49354d7675SEmmanuel Vadot      native-endian;
50354d7675SEmmanuel Vadot      #address-cells = <2>;
51354d7675SEmmanuel Vadot      #size-cells = <1>;
52354d7675SEmmanuel Vadot      ranges = <0 0x0 0x50000000 0x01000000>, <1 0x0 0x51000000 0x01000000>;
53354d7675SEmmanuel Vadot      dma-ranges = <0 0x0 0x50000000 0x01000000>, <1 0x0 0x51000000 0x01000000>;
54354d7675SEmmanuel Vadot      ide@1,0 {
55354d7675SEmmanuel Vadot        compatible = "intel,ixp4xx-compact-flash";
56354d7675SEmmanuel Vadot        reg = <1 0x00000000 0x1000>, <1 0x00040000 0x1000>;
57354d7675SEmmanuel Vadot        interrupt-parent = <&gpio0>;
58354d7675SEmmanuel Vadot        interrupts = <12 IRQ_TYPE_EDGE_RISING>;
59354d7675SEmmanuel Vadot      };
60354d7675SEmmanuel Vadot    };
61354d7675SEmmanuel Vadot
62354d7675SEmmanuel Vadot...
63