]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: dts: add device tree support for exynos5 hdmiphy
authorRahul Sharma <rahul.sharma@samsung.com>
Mon, 29 Oct 2012 12:51:42 +0000 (21:51 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Mon, 29 Oct 2012 12:51:42 +0000 (21:51 +0900)
This patch adds support for device tree based discovery for exynos5
hdmiphy.

Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Documentation/devicetree/bindings/drm/exynos/hdmiphy.txt [new file with mode: 0644]
arch/arm/boot/dts/exynos5250-smdk5250.dts
arch/arm/boot/dts/exynos5250.dtsi
arch/arm/mach-exynos/mach-exynos5-dt.c

diff --git a/Documentation/devicetree/bindings/drm/exynos/hdmiphy.txt b/Documentation/devicetree/bindings/drm/exynos/hdmiphy.txt
new file mode 100644 (file)
index 0000000..858f4f9
--- /dev/null
@@ -0,0 +1,12 @@
+Device-Tree bindings for hdmiphy driver
+
+Required properties:
+- compatible: value should be "samsung,exynos5-hdmiphy".
+- reg: I2C address of the hdmiphy device.
+
+Example:
+
+       hdmiphy {
+               compatible = "samsung,exynos5-hdmiphy";
+               reg = <0x38>;
+       };
index 2a478abbd98a65b43021b05b54e2a969449fa2c0..7dc196f6b0a12c0bb861595592aaafe333c30a42 100644 (file)
                status = "disabled";
        };
 
+       i2c@12CE0000 {
+               samsung,i2c-sda-delay = <100>;
+               samsung,i2c-max-bus-freq = <66000>;
+
+               hdmiphy@38 {
+                       compatible = "samsung,exynos5-hdmiphy";
+                       reg = <0x38>;
+               };
+       };
+
        dwmmc_0: dwmmc0@12200000 {
                num-slots = <1>;
                supports-highspeed;
index 2a203e62f745c36ea072e6d321eaa3e70b58b587..190068f664991b0fb782b5288f91c7e5f25a30e5 100644 (file)
                #size-cells = <0>;
        };
 
+       i2c@12CE0000 {
+               compatible = "samsung,s3c2440-hdmiphy-i2c";
+               reg = <0x12CE0000 0x1000>;
+               interrupts = <0 64 0>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+       };
+
        spi_0: spi@12d20000 {
                compatible = "samsung,exynos4210-spi";
                reg = <0x12d20000 0x100>;
index 4fc15daf7c1722823fd5345d64194999a652dfdc..0f20ba8fcf1b4f132e3a6509aa6e21601e78ab56 100644 (file)
@@ -47,6 +47,8 @@ static const struct of_dev_auxdata exynos5250_auxdata_lookup[] __initconst = {
                                "s3c2440-i2c.0", NULL),
        OF_DEV_AUXDATA("samsung,s3c2440-i2c", EXYNOS5_PA_IIC(1),
                                "s3c2440-i2c.1", NULL),
+       OF_DEV_AUXDATA("samsung,s3c2440-hdmiphy-i2c", EXYNOS5_PA_IIC(8),
+                               "s3c2440-hdmiphy-i2c", NULL),
        OF_DEV_AUXDATA("samsung,exynos5250-dw-mshc", EXYNOS5_PA_DWMCI0,
                                "dw_mmc.0", NULL),
        OF_DEV_AUXDATA("samsung,exynos5250-dw-mshc", EXYNOS5_PA_DWMCI1,