POSTED: drm/bridge: Modify drm_bridge core to support driver model

This patch tries to seperate drm_bridge implementation
into 2 parts, a drm part and a non_drm part.

A set of helper functions are defined in this patch to make
bridge driver probe independent of the drm flow.

The bridge devices register themselves on a lookup table
when they get probed by calling "drm_bridge_add_for_lookup".

The parent encoder driver waits till the bridge is available in the
lookup table(by calling "of_drm_find_bridge") and then continues with
its initialization.

The encoder driver should call "drm_bridge_attach_encoder" to pass on
the drm_device and the encoder pointers to the bridge object.

Now that the drm_device pointer is available, the encoder then calls
"bridge->funcs->post_encoder_init" to allow the bridge to continue
registering itself with the drm core.

Also, non driver model based ptn3460 driver is removed in this patch.

Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
POSTED: drm/bridge: Add i2c based driver for ptn3460 bridge

This patch adds ptn3460 as module_i2c_driver.

Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
POSTED: drm/bridge: Add i2c based driver for ps8622/ps8625 bridge

This patch adds drm_bridge driver for parade DisplayPort
to LVDS bridge chip.

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
POSTED: ARM: dts: Add DT changes for display on peach_pi

Add DT nodes for panel-simple "auo,b133htn01" panel.
Add backlight enable pin and backlight power supply for pwm-backlight.
Also, add panel phandle needed by dp to enable display on peach_pi.

Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
POSTED: ARM: dts: Add DT changes for display on snow

Add DT nodes for ptn3460 bridge chip and panel-simple panel.
Add backlight enable pin and backlight power supply for pwm-backlight.
Also add bridge phandle needed by dp to enable display on snow.

Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
POSTED: ARM: dts: Add DT changes for display on peach_pit

Add DT nodes for ps8622 bridge chip and panel-simple panel.
Add backlight power supply for pwm-backlight.
Also add bridge phandle needed by dp to enable display on peach_pit.

Note that, peach_pit doesn't support "chunghwa,claa101wb01" panel,
but still we choose to reuse the binding since "chunghwa,claa101wb01"
has similar LCD timings.

Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
POSTED: drm/exynos: Support DP CLKCON register in FIMD driver

Add the missing setting for DP CLKCON register.

This register is present on Exynos5 based FIMD controllers,
and needs to be set if we are using DP.

Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
Reviewed-by: Jingoo Han <jg1.han@samsung.com>

Conflicts:
	drivers/gpu/drm/exynos/exynos_drm_fimd.c
POSTED: ARM: dts: Add FIMD output property for snow

Set FIMD output type for snow as DP.

Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
POSTED: ARM: dts: Add FIMD output property for peach_pit

Set FIMD output type for peach_pit as DP.

Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
POSTED: ARM: dts: Add FIMD output property for peach_pi

Set FIMD output type for peach_pi as DP.

Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
POSTED: ARM: dts: Add FIMD output property for smdk5250

Set FIMD output type for smdk5250 as DP.

Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
POSTED: ARM: dts: Add FIMD output property for smdk5420

Set FIMD output type for smdk5420 as DP.

Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
POSTED: ARM: dts: Add FIMD output property for arndale

Set FIMD output type for arndale as DP.

Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
TEMP/TO POST: drm/exynos: dp: use ioremap() instead of ioremap_resource()

Replace ioremap() with ioremap_resource() so that we get a mapped memory
region and nobody else overlaps it.

Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
TEMP/TO POST: ARM: DT: fix: Add chunghwa,claa101wb01 compatible to snow

Simple panel driver expects compatible property of real panel,
which would be "chunghwa,claa101wb01" similar to peach-pit.
Adding the same to enable display on Snow.

Suggested-by: Ajay Kumar <ajaykumar.rs@samsung.com>
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
TEMP/TO POST: iommu: exynos: Add "mmu-masters" support

As the generic iommu dt-bindings are under discussion, we
can use the previous "mmu-masters" implementation as a hack
to enable the exynos/iommu functionality.

Signed-off-by: Shaik Ameer Basha <shaik.ameer@samsung.com>
TEMP/TO POST: ARM: dts: add System MMU nodes of Exynos SoCs

This patch is a squashed version of posted patches -
ARM: dts: add System MMU nodes of exynos4 series
ARM: dts: add System MMU nodes of exynos4210
ARM: dts: add System MMU nodes of exynos4x12
ARM: dts: add System MMU nodes of exynos5250
ARM: dts: add System MMU nodes of exynos5420

Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
PRIVATE: HACK: ARM: dts: remove references to display power domain for exynos5420

Fix for compilation error

Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
PRIVATE: HACK: drm/bridge: Fix build errors

This change will be squashed with following commit
drm/bridge: Modify drm_bridge core to support driver model

Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
POSTED: clk: max77686: Add DT include for MAX77686 PMIC clock

This patch adds a dt-binding include for Maxim 77686
PMIC clock IDs that can be used by both the max77686
clock driver and Device Tree source files.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Mike Turquette <mturquette@linaro.org>
Acked-by: Mike Turquette <mturquette@linaro.org>