ARM: dts: add Gemini PATA/SATA support
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 20 Mar 2017 22:39:26 +0000 (23:39 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 13 Jun 2017 21:58:00 +0000 (23:58 +0200)
The NAS4229B and SQ201 Gemini systems have a PATA controller
which is linked to a SATA bridge in the SoC. Enable both
platforms to use the PATA/SATA devices.

Cc: John Feng-Hsin Chiang <john453@faraday-tech.com>
Cc: Greentime Hu <green.hu@gmail.com>
Acked-by: Hans Ulli Kroll <ulli.kroll@googlemail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/gemini-nas4220b.dts
arch/arm/boot/dts/gemini-sq201.dts
arch/arm/boot/dts/gemini.dtsi

index 7668ba52158ef90eff013b822cc6734e1c0acf20..55f6a4f1f8016754274af65ed6895b7e8ab47a3f 100644 (file)
                                read-only;
                        };
                };
+
+               sata: sata@46000000 {
+                       cortina,gemini-ata-muxmode = <0>;
+                       cortina,gemini-enable-sata-bridge;
+                       status = "okay";
+               };
+
+               ata@63000000 {
+                       status = "okay";
+               };
        };
 };
index 46309e79cc7b13cd936af2ddb7b46264320c912e..4d200f0bcd451ac780b23ec1f181c056befcc057 100644 (file)
                        };
                };
 
+               sata: sata@46000000 {
+                       cortina,gemini-ata-muxmode = <0>;
+                       cortina,gemini-enable-sata-bridge;
+                       status = "okay";
+               };
+
                pci@50000000 {
                        status = "okay";
                        interrupt-map-mask = <0xf800 0 0 7>;
                                <0x6000 0 0 3 &pci_intc 1>,
                                <0x6000 0 0 4 &pci_intc 2>;
                };
+
+               ata@63000000 {
+                       status = "okay";
+               };
        };
 };
index 0beaa4ef757e38c29bb1754cfac8652d97f9951e..141d8d3a1d07bfab1c0df4e5f559ac2075828793 100644 (file)
                        clock-names = "PCLK", "EXTCLK";
                };
 
+               sata: sata@46000000 {
+                       compatible = "cortina,gemini-sata-bridge";
+                       reg = <0x46000000 0x100>;
+                       resets = <&syscon 26>,
+                                <&syscon 27>;
+                       reset-names = "sata0", "sata1";
+                       clocks = <&syscon 10>,
+                                <&syscon 11>;
+                       clock-names = "SATA0_PCLK", "SATA1_PCLK";
+                       syscon = <&syscon>;
+                       status = "disabled";
+               };
+
                intcon: interrupt-controller@48000000 {
                        compatible = "faraday,ftintc010";
                        reg = <0x48000000 0x1000>;
                        };
                };
 
+               ata@63000000 {
+                       compatible = "cortina,gemini-pata", "faraday,ftide010";
+                       reg = <0x63000000 0x1000>;
+                       interrupts = <4 IRQ_TYPE_EDGE_RISING>;
+                       resets = <&syscon 2>;
+                       clocks = <&syscon 14>;
+                       clock-names = "PCLK";
+                       sata = <&sata>;
+                       status = "disabled";
+               };
+
+               ata@63400000 {
+                       compatible = "cortina,gemini-pata", "faraday,ftide010";
+                       reg = <0x63400000 0x1000>;
+                       interrupts = <5 IRQ_TYPE_EDGE_RISING>;
+                       resets = <&syscon 2>;
+                       clocks = <&syscon 14>;
+                       clock-names = "PCLK";
+                       sata = <&sata>;
+                       status = "disabled";
+               };
+
                dma-controller@67000000 {
                        compatible = "faraday,ftdma020", "arm,pl080", "arm,primecell";
                        /* Faraday Technology FTDMAC020 variant */