summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)AuthorFilesLines
2014-05-15usb: usb5303: add support for reference clock specified in device treeMarek Szyprowski1-2/+26
USB3503 chip supports 8 values of reference clock. The value is specified by REF_SEL[1:0] pins and INT_N line. This patch add support for getting 'refclk' clock, enabling it and setting INT_N line according to the value of the gathered clock. If no clock has been specified, driver defaults to the old behaviour (assuming that clock has been specified by REF_SEL pins from primary reference clock frequencies table). Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: I3453e714f9a793640b8cb6c0b4ccf699661ec934
2014-05-15usb: s5p-ehci: add support for more than one usb phyMarek Szyprowski1-50/+55
Based on 'usb: ehci-exynos: Change to use phy provided by the generic phy framework' patch posted to usb ml. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: I5f7574c0659905148f6e7af95ecd197e92e03d16
2014-05-15drivers: phy: exynos4x12-phy: fix HSIC1 power on/off sequenceMarek Szyprowski2-15/+35
From experiments with real hardware, it seems that URSTCON bits for HSIC0 and HSIC1 seems to be swapped, so updated macro definitions for them. HSIC1 also requires enabling power to device phy to get properly enabled (similar hack is already implemented for HSIC0). Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: Idcbe47f1a55d882394296837b9218e9f843e842c
2014-05-15phy: exynos: fix building as a moduleArnd Bergmann1-3/+4
The top-level phy-samsung-usb2 driver may be configured as a loadable module, which currently causes link errors because of the dependency on the exynos{5250,4x12,4210}_usb2_phy_config symbol. Solving this could be achieved by exporting these symbols, but as the SoC-specific parts of the driver are not currently built as modules, it seems better to just link everything into one module and avoid the need for the export. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Kamil Debski <k.debski@samsung.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> [backport from upstream commit d1481832f1dbb9d10fab27269631a130fa082f03] Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: I07f3a7ee523c55fab023b6c03caa6fba31bdec9b
2014-05-15phy: Add new Exynos USB 2.0 PHY driverKamil Debski6-0/+909
Add a new driver for the Exynos USB 2.0 PHY. The new driver uses the generic PHY framework. The driver includes support for the Exynos 4x10 and 4x12 SoC families. Signed-off-by: Kamil Debski <k.debski@samsung.com> Reviewed-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> [backport from upstream commit 06fb01373cae0bbf9af3a2b49e29c4341a5ba311] Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: I1f76ba5ecc23a49eeeec3c9a834a1e7fcc844834
2014-05-15Revert "phy: Add new Exynos USB PHY driver"Marek Szyprowski6-1028/+0
This reverts commit 9eaa4d2322f94704866fbd0cbce260ba8dcb6de2. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: Ib0644b766b0174cdec43cc483b5ccc7f9487f411
2014-05-15Revert "phy: exynos-usb: Fix referenct counting"Marek Szyprowski1-1/+1
This reverts commit 58ae84cefb54046335d9581f3d96e8a5b947a08b. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: I3adfabef0633bdb8542940a506976afd12856f21
2014-05-15Revert "phy: exynos: Change order of initialization of phy in power_on"Marek Szyprowski2-3/+23
This reverts commit dbd99235197ce37b37f5e0c04fe7465a655f9c47. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: I010965a1deb88f01b8a8c07e2c56910f5d73b9d2
2014-05-15Revert "phy: exynos-usb: Remove ref counting for additional reset for ↵Marek Szyprowski1-0/+6
Exynos4212" This reverts commit f600e05157a6d3d38f87260f5caa88918cac129e. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: Id87eb3479a353d34f58092973e2896bdacaf9c2a
2014-05-15Revert "phy: exynos : add delay after reset phy for usb host"Marek Szyprowski1-1/+0
This reverts commit 507ba96c49fe6e247dcb5a79e1aca7160def7254. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: I57c35ef9ba7e3255562602662a81b3a8aa90461b
2014-05-15Revert "phy: exynos4212-usb: Use refcount to power device PHY for HSIC0"Marek Szyprowski1-10/+0
This reverts commit 16b990c41a9f1e31f4c51f66052a1c648a3c0b2e. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: I49f69bf27d8226e05a3fb48c70b15f21e3685345
2014-05-15phy: fix kernel oops in phy_lookup()Sergei Shtylyov1-0/+3
The kernel oopses in phy_lookup() due to 'phy->init_data' being NULL if we register PHYs from a device tree probing driver and then call phy_get() on a device that has no representation in the device tree (e.g. a PCI device). Checking the pointer before dereferening it and skipping an interation if it's NULL prevents this kernel oops. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> [backport from upstream commit 743bb387a1edbf1ebbba6cf77c1af3e488886c39] Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: Iea16343af63965d19960fc8acf89e0a65b806440
2014-05-15phy: core: Add devm_of_phy_get to phy-coreKamil Debski1-0/+31
Adding devm_of_phy_get will allow to get phys by supplying a pointer to the struct device_node instead of struct device. Signed-off-by: Kamil Debski <k.debski@samsung.com> Reviewed-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> [backport from upstream commit b5d682f4eb76c98f2ca5658926df43dd05cf2c37] Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: Ie1d75af85ef1072457074d94ab268c5d570ed930
2014-05-15phy: core: Add an exported of_phy_get functionKamil Debski1-9/+36
Previously the of_phy_get function took a struct device * and was declared static. It was impossible to call it from another driver and thus it was impossible to get phy defined for a given node. The old function was renamed to _of_phy_get and was left for internal use. of_phy_get function was added and it was exported. The function enables to get a phy for a given device tree node. Signed-off-by: Kamil Debski <k.debski@samsung.com> Reviewed-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> [backport from upstream commit 0b3f3b2c777a2f7d20c9826a190ffd5bbd288f8f] Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: Id5aef3fdb574ba269f938428375cc4e88e5e59c0
2014-05-15phy-core: Don't propagate -ENOSUPP from phy_pm_runtime_get_sync to callerHans de Goede1-0/+4
The phy-core allows phy_init and phy_power_on to be called multiple times, but before this patch -ENOSUPP from phy_pm_runtime_get_sync would be propagated to the caller for the 2nd and later calls. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> [backport from upstream commit 767a1b5d6ec4ac5335dde17100880347ed154ce2] Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: If65ef9e8d070b4f3d601e139a28246fab36cb40e
2014-05-15phy-core: phy_get: Leave error logging to the callerHans de Goede1-8/+2
In various cases errors may be expected, ie probe-deferral or a call to phy_get from a driver where the use of a phy is optional. Rather then adding all sort of complicated checks for this, and/or adding special functions like devm_phy_get_optional, simply don't log an error, and let deciding if get_phy returning an error really should result in a dev_err up to the caller. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> [backport from upstream commit f40037fd3677ae240978f469cc4155bf3ca7c076] Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: Iafe801b4c0a2419abc8f20717a3f441a2d9a2ab1
2014-05-15drivers: phy: Add support for optional physAndrew Lunn1-0/+45
Add devm_phy_optional_get and phy_optional_get, which should be used when the phy is optional. They does not return an error when the phy does not exist, rather they returns NULL, which is considered as a valid phy, but results in NOPs when used with the consumer API. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Tested-by: Gregory CLEMENT <gregory.clement@free-electrons.com> Acked-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Jason Cooper <jason@lakedaemon.net> [backport from upstream commit 788a4d56ff378bff0b8e685d03a962b36903a149] Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: I76c9bb54d4bd11b742522c91c28f48b82ca4aa41
2014-05-15drivers: phy: Make NULL a valid phy referenceAndrew Lunn1-1/+16
The common clock framework considers NULL a valid clock reference. This makes handling optional clocks simple, in that if the optional clock is not available, a NULL reference can be used in the place of a real clock, simplifying the clock consumer. Extend this concept to the phy consumer API. A NULL can be passed to the release calls, the phy_init() and phy_exit() calls, and phy_power_on() and phy_power_off() and a NOP is performed. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Tested-by: Gregory CLEMENT <gregory.clement@free-electrons.com> Acked-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Jason Cooper <jason@lakedaemon.net> [backport from upstream commit 04c2facad8fee66c981a51852806d8923336f362] Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: I387a29962849f50fa8df1ab684babcbbe3227c84
2014-05-15phy: phy-core.c: remove unnecessary initialization of local variablesKishon Vijay Abraham I1-3/+3
There were a few places where variables are initialized unncessarily. Remove those initializations. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> [backport from upstream commit d18c960430ca341e5c12a023c805ff8fd10032a6] Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: Ib80f6930d91c01a1e2c9f70ae4e61519eadd37d1
2014-05-15phy: phy-core: increment refcounting variables only on 'success'Kishon Vijay Abraham I1-8/+14
Increment 'init_count' only if the 'init' callback succeeded and decrement 'init_count' only if the 'exit' callback succeded. Increment 'power_count' only if 'power_on' callback succeded and if it failed disable the clocks using phy_pm_runtime_put_sync(). Also decrement 'power_count' only if 'power_off' callback succeded and if it failed do not disable the clocks. Reported-by: George Cherian <george.cherian@ti.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> [backport from upstream commit 637d378cea0b463c466a61a6564cdd541d689af5] Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: I482404787fa520568d365fbc39ab81d812689f20
2014-05-15phy: core: properly handle failure of pm_runtime_get functionsFelipe Balbi1-2/+14
In case pm_runtime_get*() fails, it still increments pm usage counter, so we *must* make sure to pm_runtime_put() even in those cases. This patch fixes that mistake the same way usbcore treats those possible failures. Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> [backport from upstream commit cedb7f89d1e1f631b7e5d920fe1ea7f742d07f79] Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: I8de0a4c76c5ad3de2d45996504f3f1aa716dc017
2014-05-15drivers: phy: tweaks to phy_create()Dan Carpenter1-16/+10
If this was called with a NULL "dev" then it lead to a NULL dereference when we called dev_WARN(). I have changed it to WARN_ON() so that we get a stack dump and can fix the caller. The rest of this patch is just cleanup like returning directly instead of having do-nothing gotos. Using descriptive labels instead of GW-BASIC style "err0" and "err1". I also flipped the order of put_device() and ida_remove() so they are a mirror reflection of the order they were allocated. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> [backport from upstream commit 52797d293287f5a98bd686616527b102b077ac39] Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: I695ba238d040b484d1be1f10f7752a7dac164aab
2014-05-15drivers: phy: Fix memory leakSachin Kamat1-5/+5
'phy' was not being freed upon error in one of the cases. Adjust the 'goto's to fix this. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> [backport from upstream commit c1b1731d2002b93857810aa5da856b43f46bb470] Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: I170f5d157e97077e50f059dbecdcb0877fd1a680
2014-05-15mmc: dw_mmc-exynos: add the MMC_CAP_ERASE capabilityJaehoon Chung1-4/+4
To use the erase command, add the MMC_CAP_ERASE capability by default. Change-Id: Ia9c600eafb08bebb7a60b3b3147a8c8baf303cd0 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2014-05-15drm/exynos: hdmi: fix dt broken issueInki Dae1-18/+70
This patch resolves the issue that the use of existing dtb is broken. This patch gets existing dt nodes directly and checks if existing dtb should be supported or not. For this, it adds a soc_ver varable to hdmi_context structure to distinguish SoC version because it should get dt node corresponding to SoC correctly. Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-05-15Revert "drm/exynos: add mout_hdmi clock in hdmi driver to change parent"Tomasz Stanislawski1-7/+1
Signed-off-by: Tomasz Stanislawski <t.stanislaws@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-05-15drm/exynos: release unhandled page flip events at postclose.Inki Dae1-13/+22
This patch resolves a dead lock issue that could be incurred when exynos_drm_crtc_dpms function was called. The exynos_drm_crtc_dpms function waits for the completion of pended page flip events. However, preclose callback - this releases all unhandled page flip events - is called prior to the exynos_drm_crtc_dpms function call when drm is closed. So at this time, this will make the exynos_drm_crtc_dpms to wait infiniately for the completion of the page flip events. This patch releases the unhandled page flip events at postclose instead of preclose so that exynos_drm_crtc_dpms function can be waked up. Changelog v2: - fix a memory leak when drm is closed. . it has a memory leak when a requeste page flip is handled after drm_events_release() is called and before drm_fb_release() is called. At this time, a drm_pending_event will not be freed. So also this chage releases the drm_pending_event at postclose(). And it calls drm_vblank_put() for pair if there is any unhandled page flip event. Signed-off-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
2014-05-15drm/exynos: fimd: clear channel before enabling iommuAkshu Agrawal1-20/+50
If any fimd channel was already active, initializing iommu will result in a PAGE FAULT (e.e. u-boot could have turned on the display and not disabled it before the kernel starts). This patch checks if any channel is active before initializing iommu and disables it. Changelog v2: - consider SoC without SHADOWCON register Signed-off-by: Akshu Agrawal <akshu.a@samsung.com> Signed-off-by: Prathyush K <prathyush.k@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-05-15drm/exynos: fimd: update dt bindingsInki Dae1-39/+4
This patch removes wrong dt bindings and adds new ones. Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-05-15drm/panel: add S6E8AA0 driverAndrzej Hajda3-0/+1076
The patch adds MIPI-DSI based S6E8AA0 AMOLED LCD panel driver. Driver uses mipi_dsi bus to communicate with panel and exposes drm_panel interface. v2 - added bus error handling, - set maxmimum DSI packet size on init, - removed unsupported brightness drm_panel callbacks, - minor improvements v3 - switched to gpiod framework, - minor fixes in error handling Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-05-15drm/panel: add ld9040 driverAndrzej Hajda3-0/+388
The patch adds LD9040 parallel RGB panel driver with SPI control interface. The driver uses drm_panel framework. Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-05-15drm/exynos: remove MODULE_DEVICE_TABLE definitionsInki Dae1-1/+0
This patch removes MODULE_DEVICE_TABLE definition to of_device_id of MIPI-DSI driver. Eyxnos drm should be built as single module so these definitions should be removed. Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-05-15drm/exynos: add DSIM driverAndrzej Hajda5-0/+1539
The patch adds driver for Exynos DSI master (DSIM). It is a platform driver which is registered as exynos_drm_display sub-driver of exynos_drm framework and implements DRM encoder/connector pair. It is also MIPI-DSI host driver and provides DSI bus for panels. It interacts with its panel(s) using drm_panel framework. Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-05-15drm: add MIPI DSI encoder and connector typesShobhit Kumar1-0/+2
Signed-off-by: Shobhit Kumar <shobhit.kumar@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Acked-by: Dave Airlie <airlied@gmail.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-05-15drm/exynos: disallow fbdev initialization if no device is connectedAndrzej Hajda1-0/+21
This patch adds explicit check if there is a connector with connected status before fbdev initialization. It prevents creation of default fbdev 1024x768 which is unusable on panels with bigger resolutions. Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-05-15drm/exynos: Replace DRM_LOG_KMS() by DRM_DEBUG_KMS()Lespiau, Damien2-2/+2
There are only a few users of the DRM_LOG_KMS() macro. We can simplify the DRM code a bit by replacing them by DRM_DEBUG_KMS(). Cc: Inki Dae <inki.dae@samsung.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-05-15drm/exynos: fimd: remove unused variableAndrzej Hajda1-14/+6
The patch removes unused vidcon0 field from fimd_context structure. Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Reviewed-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-05-15drm/exynos: restore parallel output interface supportAndrzej Hajda5-0/+360
The patch adds parallel output interface to FIMD device driver. It also restores support for panels initialized by boot loader, but without proper kernel driver. Driver uses video interface bindings to find connected panel. It uses drm_panel interface to interact with the panel. Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Reviewed-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-05-15drm/exynos: select DRM_PANELInki Dae1-0/+1
Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-05-15drm/panel: fix build errorInki Dae1-12/+14
Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-05-15drm/mipi_dsi: create dsi devices only for nodes with reg propertyAndrzej Hajda1-1/+5
MIPI DSI host node can contain child nodes which are not DSI devices. Checking for existence of reg property can be used to distinguish such nodes. Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-05-15drm: Add MIPI DSI bus supportAndrzej Hajda3-0/+320
MIPI DSI bus allows to model DSI hosts and DSI peripherals using the Linux driver model. DSI hosts are registered by the DSI host drivers. During registration DSI peripherals will be created from the children of the DSI host's device tree node. Support for registration from board-setup code will be added later when needed. DSI hosts expose operations which can be used by DSI peripheral drivers to access associated devices. Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-05-15drm/panel: add support for LG LD070WX3-SL01 panelAlexandre Courbot1-0/+30
This panel is used by Tegra Note 7 and supported by the simple-panel driver. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-05-15drm/panel: add support for LG LH500WX1-SD03 panelAlexandre Courbot1-0/+30
This panel is used by the NVIDIA SHIELD and supported by the simple-panel driver. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-05-15drm/panel: simple: Allow DSI panels to provide mode flagsThierry Reding1-0/+3
In order to differentiate between the different video modes (burst vs. non-burst, sync pulses vs. sync events) supported by peripherals, pass the flags that specify this mode in the panel description to the DSI peripheral device when probed. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Inki Ddae <inki.dae@samsung.com>
2014-05-15drm/panel: simple: Allow GPIO accesses to sleepThierry Reding1-2/+2
The enable GPIO for panels may be provided by GPIO expanders on slow busses (such as I2C), and therefore toggling the GPIO may sleep. Since these accesses don't happen in interrupt context, use the *_cansleep() variants of the GPIO API. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-05-15drm/panel: remove redundant regulator_disable()Alexandre Courbot1-2/+0
regulator_disable() is already performed by panel_simple_disable(), which is called by panel_simple_remove(). Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-05-15drm/panel: use gpiod interface for enable GPIOAlexandre Courbot1-49/+18
Use the new GPIO descriptor interface to handle the panel's enable GPIO. This considerably simplifies the code. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> [treding@nvidia.com: rework to improve readability] Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-05-15drm/panel: Add LG 12.9" LCD panelThierry Reding1-0/+25
The LP129QE LCD has an LED backlight and a display resolution of 2560x1700 pixels. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-05-15drm/panel: update EDID BLOB in panel_simple_get_modes()Stephen Warren1-0/+1
This stashes away the EDID data so that the sysfs per-connector file "edid" can display it. Without this change, the "edid" file is always empty. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>