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
26 description: phandles to the reset lines for both SATA bridges
35 description: phandles to the compulsory peripheral clocks
43 $ref: /schemas/types.yaml#/definitions/phandle
44 description: a phandle to the global Gemini system controller
46 cortina,gemini-ata-muxmode:
47 $ref: /schemas/types.yaml#/definitions/uint32
54 Tell the desired multiplexing mode for the ATA controller and SATA
56 Mode 0: ata0 master <-> sata0
58 ata0 slave interface brought out on IDE pads
59 Mode 1: ata0 master <-> sata0
61 ata1 slave interface brought out on IDE pads
62 Mode 2: ata1 master <-> sata1
64 ata0 master and slave interfaces brought out on IDE pads
65 Mode 3: ata0 master <-> sata0
67 ata1 master and slave interfaces brought out on IDE pads
69 cortina,gemini-enable-ide-pins:
71 description: Enables the PATA to IDE connection.
72 The muxmode setting decides whether ATA0 or ATA1 is brought out,
73 and whether master, slave or both interfaces get brought out.
75 cortina,gemini-enable-sata-bridge:
77 description: Enables the PATA to SATA bridge inside the Gemnini SoC.
78 The Muxmode decides what PATA blocks will be muxed out and how.
83 - cortina,gemini-ata-muxmode
90 additionalProperties: false
94 #include <dt-bindings/clock/cortina,gemini-clock.h>
96 compatible = "cortina,gemini-sata-bridge";
97 reg = <0x46000000 0x100>;
98 resets = <&rcon 26>, <&rcon 27>;
99 reset-names = "sata0", "sata1";
100 clocks = <&gcc GEMINI_CLK_GATE_SATA0>,
101 <&gcc GEMINI_CLK_GATE_SATA1>;
102 clock-names = "SATA0_PCLK", "SATA1_PCLK";
104 cortina,gemini-ata-muxmode = <3>;
105 cortina,gemini-enable-ide-pins;
106 cortina,gemini-enable-sata-bridge;