1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/ata/cortina,gemini-sata-bridge.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Cortina Systems Gemini SATA Bridge
10 - Linus Walleij <linus.walleij@linaro.org>
13 The Gemini SATA bridge in a SoC-internal PATA to SATA bridge that
14 takes two Faraday Technology FTIDE010 PATA controllers and bridges
15 them in different configurations to two SATA ports.
19 const: cortina,gemini-sata-bridge
27 description: phandles to the reset lines for both SATA bridges
37 description: phandles to the compulsory peripheral clocks
45 $ref: /schemas/types.yaml#/definitions/phandle
46 description: a phandle to the global Gemini system controller
48 cortina,gemini-ata-muxmode:
49 $ref: /schemas/types.yaml#/definitions/uint32
56 Tell the desired multiplexing mode for the ATA controller and SATA
58 Mode 0: ata0 master <-> sata0
60 ata0 slave interface brought out on IDE pads
61 Mode 1: ata0 master <-> sata0
63 ata1 slave interface brought out on IDE pads
64 Mode 2: ata1 master <-> sata1
66 ata0 master and slave interfaces brought out on IDE pads
67 Mode 3: ata0 master <-> sata0
69 ata1 master and slave interfaces brought out on IDE pads
71 cortina,gemini-enable-ide-pins:
73 description: Enables the PATA to IDE connection.
74 The muxmode setting decides whether ATA0 or ATA1 is brought out,
75 and whether master, slave or both interfaces get brought out.
77 cortina,gemini-enable-sata-bridge:
79 description: Enables the PATA to SATA bridge inside the Gemnini SoC.
80 The Muxmode decides what PATA blocks will be muxed out and how.
85 - cortina,gemini-ata-muxmode
92 additionalProperties: false
96 #include <dt-bindings/clock/cortina,gemini-clock.h>
98 compatible = "cortina,gemini-sata-bridge";
99 reg = <0x46000000 0x100>;
100 resets = <&rcon 26>, <&rcon 27>;
101 reset-names = "sata0", "sata1";
102 clocks = <&gcc GEMINI_CLK_GATE_SATA0>,
103 <&gcc GEMINI_CLK_GATE_SATA1>;
104 clock-names = "SATA0_PCLK", "SATA1_PCLK";
106 cortina,gemini-ata-muxmode = <3>;
107 cortina,gemini-enable-ide-pins;
108 cortina,gemini-enable-sata-bridge;