]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: DT: STi: STiH416: Add DT node for MiPHY365x
authorLee Jones <lee.jones@linaro.org>
Fri, 11 Jul 2014 11:54:00 +0000 (13:54 +0200)
committerMaxime Coquelin <maxime.coquelin@st.com>
Fri, 31 Oct 2014 08:59:06 +0000 (09:59 +0100)
The MiPHY365x is a Generic PHY which can serve various SATA or PCIe
devices. It has 2 ports which it can use for either; both SATA, both
PCIe or one of each in any configuration.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com>
arch/arm/boot/dts/stih416-b2020.dts
arch/arm/boot/dts/stih416-b2020e.dts
arch/arm/boot/dts/stih416.dtsi

index d42ff1dcd89fa3e5d7521a9e4bb21c9265439e9a..7ce798be5e0190637afdb906ea923b34e9e92574 100644 (file)
                        bus-width    = <8>;
                        non-removable;
                };
+
+               miphy365x_phy: miphy365x@fe382000 {
+                       phy_port0: port@fe382000 {
+                               st,sata-gen = <3>;
+                       };
+
+                       phy_port1: port@fe38a000 {
+                               st,pcie-tx-pol-inv;
+                       };
+               };
        };
 };
index a0434b6ae772ab482674493a493473bfcc093dd2..fa59224115bbcab30d71427a5a66ee92e7926b40 100644 (file)
                        bus-width    = <8>;
                        non-removable;
                };
+
+               miphy365x_phy: miphy365x@fe382000 {
+                       phy_port0: port@fe382000 {
+                               st,sata-gen = <3>;
+                       };
+
+                       phy_port1: port@fe38a000 {
+                               st,pcie-tx-pol-inv;
+                       };
+               };
        };
 };
index 28091548d9153113c8f97418761bcf49638350b9..a54f6832a9acbc8f7245fa0d0f3704b3674837f2 100644 (file)
@@ -9,6 +9,8 @@
 #include "stih41x.dtsi"
 #include "stih416-clock.dtsi"
 #include "stih416-pinctrl.dtsi"
+
+#include <dt-bindings/phy/phy-miphy365x.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/reset-controller/stih416-resets.h>
 / {
                        clock-names     = "mmc";
                        clocks          = <&clk_s_a1_ls 8>;
                };
+
+               miphy365x_phy: miphy365x@fe382000 {
+                       compatible      = "st,miphy365x-phy";
+                       st,syscfg       = <&syscfg_rear>;
+                       #address-cells  = <1>;
+                       #size-cells     = <1>;
+                       ranges;
+
+                       phy_port0: port@fe382000 {
+                               #phy-cells = <1>;
+                               reg = <0xfe382000 0x100>, <0xfe394000 0x100>, <0x824 0x4>;
+                               reg-names = "sata", "pcie", "syscfg";
+                       };
+
+                       phy_port1: port@fe38a000 {
+                               #phy-cells = <1>;
+                               reg = <0xfe38a000 0x100>, <0xfe804000 0x100>, <0x828 0x4>;
+                               reg-names = "sata", "pcie", "syscfg";
+                       };
+               };
        };
 };