108 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/ata/cortina,gemini-sata-bridge.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Cortina Systems Gemini SATA Bridge8 9maintainers:10 - Linus Walleij <linus.walleij@linaro.org>11 12description: |13 The Gemini SATA bridge in a SoC-internal PATA to SATA bridge that14 takes two Faraday Technology FTIDE010 PATA controllers and bridges15 them in different configurations to two SATA ports.16 17properties:18 compatible:19 const: cortina,gemini-sata-bridge20 21 reg:22 maxItems: 123 24 resets:25 maxItems: 226 description: phandles to the reset lines for both SATA bridges27 28 reset-names:29 items:30 - const: sata031 - const: sata132 33 clocks:34 maxItems: 235 description: phandles to the compulsory peripheral clocks36 37 clock-names:38 items:39 - const: SATA0_PCLK40 - const: SATA1_PCLK41 42 syscon:43 $ref: /schemas/types.yaml#/definitions/phandle44 description: a phandle to the global Gemini system controller45 46 cortina,gemini-ata-muxmode:47 $ref: /schemas/types.yaml#/definitions/uint3248 enum:49 - 050 - 151 - 252 - 353 description: |54 Tell the desired multiplexing mode for the ATA controller and SATA55 bridges.56 Mode 0: ata0 master <-> sata057 ata1 master <-> sata158 ata0 slave interface brought out on IDE pads59 Mode 1: ata0 master <-> sata060 ata1 master <-> sata161 ata1 slave interface brought out on IDE pads62 Mode 2: ata1 master <-> sata163 ata1 slave <-> sata064 ata0 master and slave interfaces brought out on IDE pads65 Mode 3: ata0 master <-> sata066 ata0 slave <-> sata167 ata1 master and slave interfaces brought out on IDE pads68 69 cortina,gemini-enable-ide-pins:70 type: boolean71 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.74 75 cortina,gemini-enable-sata-bridge:76 type: boolean77 description: Enables the PATA to SATA bridge inside the Gemnini SoC.78 The Muxmode decides what PATA blocks will be muxed out and how.79 80required:81 - clocks82 - clock-names83 - cortina,gemini-ata-muxmode84 - resets85 - reset-names86 - compatible87 - reg88 - syscon89 90additionalProperties: false91 92examples:93 - |94 #include <dt-bindings/clock/cortina,gemini-clock.h>95 sata@46000000 {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";103 syscon = <&syscon>;104 cortina,gemini-ata-muxmode = <3>;105 cortina,gemini-enable-ide-pins;106 cortina,gemini-enable-sata-bridge;107 };108