Cortina Systems Gemini SATA Bridge
Schema identifier ($id): "http://devicetree.org/schemas/ata/cortina,gemini-sata-bridge.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
The Gemini SATA bridge in a SoC-internal PATA to SATA bridge that takes two Faraday Technology FTIDE010 PATA controllers and bridges them in different configurations to two SATA ports.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "cortina,gemini-sata-bridge"
reg — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 2
phandles to the reset lines for both SATA bridges
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"sata0"
Item 2
Exact value (
const):"sata1"
clocks — required here #
Maximum number of items (maxItems): 2
phandles to the compulsory peripheral clocks
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"SATA0_PCLK"
Item 2
Exact value (
const):"SATA1_PCLK"
syscon — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
a phandle to the global Gemini system controller
cortina,gemini-ata-muxmode — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Tell the desired multiplexing mode for the ATA controller and SATA
bridges.
Mode 0: ata0 master <-> sata0
ata1 master <-> sata1
ata0 slave interface brought out on IDE pads
Mode 1: ata0 master <-> sata0
ata1 master <-> sata1
ata1 slave interface brought out on IDE pads
Mode 2: ata1 master <-> sata1
ata1 slave <-> sata0
ata0 master and slave interfaces brought out on IDE pads
Mode 3: ata0 master <-> sata0
ata0 slave <-> sata1
ata1 master and slave interfaces brought out on IDE pads
cortina,gemini-enable-ide-pins — not listed as required here #
Value type (type): "boolean"
Enables the PATA to IDE connection. The muxmode setting decides whether ATA0 or ATA1 is brought out, and whether master, slave or both interfaces get brought out.
cortina,gemini-enable-sata-bridge — not listed as required here #
Value type (type): "boolean"
Enables the PATA to SATA bridge inside the Gemnini SoC. The Muxmode decides what PATA blocks will be muxed out and how.
Required in this object (required): "clocks", "clock-names", "cortina,gemini-ata-muxmode", "resets", "reset-names", "compatible", "reg", "syscon"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/cortina,gemini-clock.h>
sata@46000000 {
compatible = "cortina,gemini-sata-bridge";
reg = <0x46000000 0x100>;
resets = <&rcon 26>, <&rcon 27>;
reset-names = "sata0", "sata1";
clocks = <&gcc GEMINI_CLK_GATE_SATA0>,
<&gcc GEMINI_CLK_GATE_SATA1>;
clock-names = "SATA0_PCLK", "SATA1_PCLK";
syscon = <&syscon>;
cortina,gemini-ata-muxmode = <3>;
cortina,gemini-enable-ide-pins;
cortina,gemini-enable-sata-bridge;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)