Adding usbphy node for Exynos5250 along with the
necessary device data to be parsed.

Signed-off-by: Vivek Gautam <gautam.vi...@samsung.com>
---
 arch/arm/boot/dts/exynos5250.dtsi       |   22 ++++++++++++++++++++++
 arch/arm/mach-exynos/include/mach/map.h |    1 +
 arch/arm/mach-exynos/mach-exynos5-dt.c  |    2 ++
 3 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/exynos5250.dtsi 
b/arch/arm/boot/dts/exynos5250.dtsi
index 581e57a..bbdb2c2 100644
--- a/arch/arm/boot/dts/exynos5250.dtsi
+++ b/arch/arm/boot/dts/exynos5250.dtsi
@@ -299,6 +299,28 @@
                rx-dma-channel = <&pdma0 11>; /* preliminary */
        };
 
+       phy_h0: usbdev_phyctrl@10040704 {
+               compatible = "samsung,usbdev-phyctrl";
+               samsung,phyhandle-reg = <0x10040704>;
+       };
+
+       phy_h1: usbhost_phyctrl@10040708 {
+               compatible = "samsung,usbhost-phyctrl";
+               samsung,phyhandle-reg = <0x10040708>;
+       };
+
+       phy_h2: usbhost_phycfg@10050230 {
+               compatible = "samsung,usb-phycfg";
+               samsung,phyhandle-reg = <0x10050230>;
+       };
+
+       usbphy@12130000 {
+               compatible = "samsung,exynos5250-usbphy";
+               reg = <0x12130000 0x100>;
+               samsung,usb-phyhandle = <&phy_h0 &phy_h1 &phy_h2>;
+               samsung,enable-mask = <1>;
+       };
+
        amba {
                #address-cells = <1>;
                #size-cells = <1>;
diff --git a/arch/arm/mach-exynos/include/mach/map.h 
b/arch/arm/mach-exynos/include/mach/map.h
index cbb2852..778348e 100644
--- a/arch/arm/mach-exynos/include/mach/map.h
+++ b/arch/arm/mach-exynos/include/mach/map.h
@@ -201,6 +201,7 @@
 #define EXYNOS4_PA_EHCI                        0x12580000
 #define EXYNOS4_PA_OHCI                        0x12590000
 #define EXYNOS4_PA_HSPHY               0x125B0000
+#define EXYNOS5_PA_HSPHY               0x12130000
 #define EXYNOS4_PA_MFC                 0x13400000
 
 #define EXYNOS4_PA_UART                        0x13800000
diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c 
b/arch/arm/mach-exynos/mach-exynos5-dt.c
index 462e5ac..24e7529 100644
--- a/arch/arm/mach-exynos/mach-exynos5-dt.c
+++ b/arch/arm/mach-exynos/mach-exynos5-dt.c
@@ -110,6 +110,8 @@ static const struct of_dev_auxdata 
exynos5250_auxdata_lookup[] __initconst = {
                                "samsung-i2s.1", NULL),
        OF_DEV_AUXDATA("samsung,samsung-i2s", 0x12D70000,
                                "samsung-i2s.2", NULL),
+       OF_DEV_AUXDATA("samsung,exynos5250-usbphy", EXYNOS5_PA_HSPHY,
+                               "s3c-usbphy", NULL),
        {},
 };
 
-- 
1.7.6.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to