drm/exynos: enable support for exynos5420 hdmi device
authorRahul Sharma <Rahul.Sharma@samsung.com>
Sun, 20 Apr 2014 10:21:17 +0000 (15:51 +0530)
committerInki Dae <daeinki@gmail.com>
Sun, 1 Jun 2014 17:07:08 +0000 (02:07 +0900)
Enable support for hdmi for exynos5420 hdmiphy. Add
compatible string in the of_match table. Also added
hdmiphy configuration values for exynos5420.

Signed-off-by: Rahul Sharma <Rahul.Sharma@samsung.com>
Signed-off-by: Shirish S <s.shirish@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Documentation/devicetree/bindings/video/exynos_hdmi.txt
drivers/gpu/drm/exynos/exynos_hdmi.c

index f9187a259259f4a25dc80dfe08e66457228fa1fe..75ada041389e573078a52c5b56bbdc65dd4e4df8 100644 (file)
@@ -5,6 +5,7 @@ Required properties:
        1) "samsung,exynos5-hdmi" <DEPRECATED>
        2) "samsung,exynos4210-hdmi"
        3) "samsung,exynos4212-hdmi"
+       4) "samsung,exynos5420-hdmi"
 - reg: physical base address of the hdmi and length of memory mapped
        region.
 - interrupts: interrupt number to the cpu.
index a04fb291b6c2c6d9f7bec0ccd26bf87f6b08f4c8..6acc1e358d569f4aaa09e29cb79bfab93cbc70fb 100644 (file)
@@ -421,6 +421,168 @@ static const struct hdmiphy_config hdmiphy_v14_configs[] = {
        },
 };
 
+static const struct hdmiphy_config hdmiphy_5420_configs[] = {
+       {
+               .pixel_clock = 25200000,
+               .conf = {
+                       0x01, 0x52, 0x3F, 0x55, 0x40, 0x01, 0x00, 0xC8,
+                       0x82, 0xC8, 0xBD, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
+                       0x06, 0x80, 0x01, 0x84, 0x05, 0x02, 0x24, 0x66,
+                       0x54, 0xF4, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80,
+               },
+       },
+       {
+               .pixel_clock = 27000000,
+               .conf = {
+                       0x01, 0xD1, 0x22, 0x51, 0x40, 0x08, 0xFC, 0xE0,
+                       0x98, 0xE8, 0xCB, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
+                       0x06, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
+                       0x54, 0xE4, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80,
+               },
+       },
+       {
+               .pixel_clock = 27027000,
+               .conf = {
+                       0x01, 0xD1, 0x2D, 0x72, 0x40, 0x64, 0x12, 0xC8,
+                       0x43, 0xE8, 0x0E, 0xD9, 0x45, 0xA0, 0xAC, 0x80,
+                       0x26, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
+                       0x54, 0xE3, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80,
+               },
+       },
+       {
+               .pixel_clock = 36000000,
+               .conf = {
+                       0x01, 0x51, 0x2D, 0x55, 0x40, 0x40, 0x00, 0xC8,
+                       0x02, 0xC8, 0x0E, 0xD9, 0x45, 0xA0, 0xAC, 0x80,
+                       0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
+                       0x54, 0xAB, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80,
+               },
+       },
+       {
+               .pixel_clock = 40000000,
+               .conf = {
+                       0x01, 0xD1, 0x21, 0x31, 0x40, 0x3C, 0x28, 0xC8,
+                       0x87, 0xE8, 0xC8, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
+                       0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
+                       0x54, 0x9A, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80,
+               },
+       },
+       {
+               .pixel_clock = 65000000,
+               .conf = {
+                       0x01, 0xD1, 0x36, 0x34, 0x40, 0x0C, 0x04, 0xC8,
+                       0x82, 0xE8, 0x45, 0xD9, 0x45, 0xA0, 0xAC, 0x80,
+                       0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
+                       0x54, 0xBD, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80,
+               },
+       },
+       {
+               .pixel_clock = 71000000,
+               .conf = {
+                       0x01, 0xD1, 0x3B, 0x35, 0x40, 0x0C, 0x04, 0xC8,
+                       0x85, 0xE8, 0x63, 0xD9, 0x45, 0xA0, 0xAC, 0x80,
+                       0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
+                       0x54, 0x57, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80,
+               },
+       },
+       {
+               .pixel_clock = 73250000,
+               .conf = {
+                       0x01, 0xD1, 0x1F, 0x10, 0x40, 0x78, 0x8D, 0xC8,
+                       0x81, 0xE8, 0xB7, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
+                       0x56, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
+                       0x54, 0xA8, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80,
+               },
+       },
+       {
+               .pixel_clock = 74176000,
+               .conf = {
+                       0x01, 0xD1, 0x1F, 0x10, 0x40, 0x5B, 0xEF, 0xC8,
+                       0x81, 0xE8, 0xB9, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
+                       0x56, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
+                       0x54, 0xA6, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80,
+               },
+       },
+       {
+               .pixel_clock = 74250000,
+               .conf = {
+                       0x01, 0xD1, 0x1F, 0x10, 0x40, 0x40, 0xF8, 0x08,
+                       0x81, 0xE8, 0xBA, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
+                       0x26, 0x80, 0x09, 0x84, 0x05, 0x22, 0x24, 0x66,
+                       0x54, 0xA5, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80,
+               },
+       },
+       {
+               .pixel_clock = 83500000,
+               .conf = {
+                       0x01, 0xD1, 0x23, 0x11, 0x40, 0x0C, 0xFB, 0xC8,
+                       0x85, 0xE8, 0xD1, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
+                       0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
+                       0x54, 0x4A, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80,
+               },
+       },
+       {
+               .pixel_clock = 88750000,
+               .conf = {
+                       0x01, 0xD1, 0x25, 0x11, 0x40, 0x18, 0xFF, 0xC8,
+                       0x83, 0xE8, 0xDE, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
+                       0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
+                       0x54, 0x45, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80,
+               },
+       },
+       {
+               .pixel_clock = 106500000,
+               .conf = {
+                       0x01, 0xD1, 0x2C, 0x12, 0x40, 0x0C, 0x09, 0xC8,
+                       0x84, 0xE8, 0x0A, 0xD9, 0x45, 0xA0, 0xAC, 0x80,
+                       0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
+                       0x54, 0x73, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80,
+               },
+       },
+       {
+               .pixel_clock = 108000000,
+               .conf = {
+                       0x01, 0x51, 0x2D, 0x15, 0x40, 0x01, 0x00, 0xC8,
+                       0x82, 0xC8, 0x0E, 0xD9, 0x45, 0xA0, 0xAC, 0x80,
+                       0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
+                       0x54, 0xC7, 0x25, 0x03, 0x00, 0x00, 0x01, 0x80,
+               },
+       },
+       {
+               .pixel_clock = 115500000,
+               .conf = {
+                       0x01, 0xD1, 0x30, 0x14, 0x40, 0x0C, 0x03, 0xC8,
+                       0x88, 0xE8, 0x21, 0xD9, 0x45, 0xA0, 0xAC, 0x80,
+                       0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
+                       0x54, 0x6A, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80,
+               },
+       },
+       {
+               .pixel_clock = 146250000,
+               .conf = {
+                       0x01, 0xD1, 0x3D, 0x15, 0x40, 0x18, 0xFD, 0xC8,
+                       0x83, 0xE8, 0x6E, 0xD9, 0x45, 0xA0, 0xAC, 0x80,
+                       0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
+                       0x54, 0x54, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80,
+               },
+       },
+       {
+               .pixel_clock = 148500000,
+               .conf = {
+                       0x01, 0xD1, 0x1F, 0x00, 0x40, 0x40, 0xF8, 0x08,
+                       0x81, 0xE8, 0xBA, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
+                       0x26, 0x80, 0x09, 0x84, 0x05, 0x22, 0x24, 0x66,
+                       0x54, 0x4B, 0x25, 0x03, 0x00, 0x80, 0x01, 0x80,
+               },
+       },
+};
+
+struct hdmi_driver_data exynos5420_hdmi_driver_data = {
+       .type           = HDMI_TYPE14,
+       .phy_confs      = hdmiphy_5420_configs,
+       .phy_conf_count = ARRAY_SIZE(hdmiphy_5420_configs),
+       .is_apb_phy     = 1,
+};
 
 struct hdmi_driver_data exynos4212_hdmi_driver_data = {
        .type           = HDMI_TYPE14,
@@ -2044,6 +2206,9 @@ static struct of_device_id hdmi_match_types[] = {
        }, {
                .compatible = "samsung,exynos4212-hdmi",
                .data = &exynos4212_hdmi_driver_data,
+       }, {
+               .compatible = "samsung,exynos5420-hdmi",
+               .data = &exynos5420_hdmi_driver_data,
        }, {
                /* end node */
        }