Kamil Debski [Tue, 2 Jul 2013 15:24:10 +0000 (17:24 +0200)]
ARM: dts: exynos4412-redwood: Add device nodes for modem_if
Add device nodes for modem_if, also set HSIC regulator to always on.
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Kamil Debski [Thu, 23 May 2013 10:03:23 +0000 (12:03 +0200)]
modem_if: Add modem drivers to Kconfig and Makefile
Add modem_if to Kconfig and Makefile to enable compilation.
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Kamil Debski [Tue, 2 Jul 2013 13:53:32 +0000 (15:53 +0200)]
modem_if: Change net device name choice mechanism
CONFIG_SLP is no longer used hence new method of net device names was
implemented.
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Kamil Debski [Tue, 21 May 2013 14:54:10 +0000 (16:54 +0200)]
modem_if: ifdef wake_lock support in the modem driver
Wake_locks are not supported outside of Android so it is essential to
make their use optional.
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Kamil Debski [Thu, 23 May 2013 09:51:54 +0000 (11:51 +0200)]
modem_if: Move code from board-m0-modems.c to the xmm6262 driver
Moved code from the board file to the driver of the xmm6262 chip. Also
handling of sim card detection has been commented out.
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Kamil Debski [Tue, 2 Jul 2013 14:18:22 +0000 (16:18 +0200)]
usb: ehci-s5p: Add s5p_ehci_configurate, needed by modem_if
s5p_ehci_configurate function configures the data transfer for HSIC modem.
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Kamil Debski [Thu, 23 May 2013 09:33:17 +0000 (11:33 +0200)]
modem_if: Comment out enable_wake_irq in modem drivers (HSIC, xmm6262)
Enabling the interrupt caused problem with the modem.
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Kamil Debski [Wed, 22 May 2013 14:26:37 +0000 (16:26 +0200)]
modem_if: Move code from board-m0-modems.c to the modem driver
Move modem related code from the board file to the modem driver.
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Kamil Debski [Wed, 22 May 2013 13:46:21 +0000 (15:46 +0200)]
modem_if: device_tree: Add modem_if to exynos4412-slp_pq.dts
Add modem_if to the device tree of slp_pq board.
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Kamil Debski [Tue, 21 May 2013 16:54:09 +0000 (18:54 +0200)]
modem_if: Modification of the modem driver to compile on the 3.8 kernel
The modem_if driver code was taken from 3.0 kernel and did not compile
on 3.8. These changes are necessary to make the driver work.
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Kamil Debski [Wed, 22 May 2013 12:31:10 +0000 (14:31 +0200)]
modem_if: Add modem.h to include/linux/platform_data
This file is needed by modem_if driver.
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Kamil Debski [Tue, 21 May 2013 15:32:17 +0000 (17:32 +0200)]
modem_if: Remove linux/cma.h use
Remove linux/cma.h from modem_modemctl_device_xmm6262.c
It wasn't used anyway and was included for linux/rbtree.h only.
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Kamil Debski [Wed, 22 May 2013 12:34:06 +0000 (14:34 +0200)]
modem_if: Add modem_if driver files
All files were taken from exynos3.4 kernel.
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Kamil Debski [Tue, 2 Jul 2013 14:14:44 +0000 (16:14 +0200)]
usb: ehci-s5p: Add support for HSIC to the Exynos 4x12 SoC family
Add support for HSIC to the Exynos 4x12 SoC family.
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Praveen Paneri [Tue, 2 Jul 2013 14:12:16 +0000 (16:12 +0200)]
usb: s3c-hsotg: Changing MAC interface to 8 bit
This patch changes UTMI+ PHY interface of udc core from 16bit to
8bit. Although the manual says that only 16 bit is supported. This
solves the problem of EHCI and Device not working together.
Signed-off-by: Praveen Paneri <p.paneri@samsung.com>
Kamil Debski [Tue, 2 Jul 2013 13:51:39 +0000 (15:51 +0200)]
ARM: dts: Enable ehci for exynos4412-redwood.dts
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Kamil Debski [Tue, 2 Jul 2013 14:14:29 +0000 (16:14 +0200)]
usb: ehci-s5p: Fix device tree compatible string for ehci-s5p.c
Change device tree compatible string to a more generic one covering whole
Exynos SoC family.
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Kamil Debski [Tue, 2 Jul 2013 14:14:01 +0000 (16:14 +0200)]
usb: ehci-s5p: Create EHCI & OHCI power control sysfs
This patch enable EHCI & OHCI power control function using sysfs
This control ehci port power and initialize kernel resources.
EHCI power off: echo 0 > /sys/devices/platform/s5p-ehci/ehci_power
EHCI power on: echo 1 > /sys/devices/platform/s5p-ehci/ehci_power
OHCI power off: echo 0 > /sys/devices/platform/s5p-ohci/ohci_power
OHCI power on: echo 1 > /sys/devices/platform/s5p-ohci/ohci_power
Change-Id: I51f99fa5759cd5041b1e70cf7309047aac2232e5
Signed-off-by: Yulgon Kim <yulgon.kim@samsung.com>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Tomasz Figa [Wed, 13 Mar 2013 19:03:15 +0000 (20:03 +0100)]
ARM: dts: exynos4210-origen: Use real regulators for USB OTG
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Tomasz Figa [Wed, 13 Mar 2013 19:09:01 +0000 (20:09 +0100)]
ARM: dts: exynos4210-origen: Add device node for ehci controller
This patch adds device tree node for ehci controller used on
exynos4210-origen board.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Tomasz Figa [Wed, 13 Mar 2013 19:07:50 +0000 (20:07 +0100)]
ARM: DTS: exynos4210-origen: Add MAX8997 node entry
The node entry is added as per documentation and legacy board file.
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Tomasz Figa [Fri, 8 Mar 2013 17:14:17 +0000 (18:14 +0100)]
ARM: dts: exynos4x12: Extend usbphy reg property to cover HSIC registers
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Tomasz Figa [Fri, 8 Mar 2013 17:13:58 +0000 (18:13 +0100)]
ARM: dts: exynos4412-slp_pq: Enable EHCI controller
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Tomasz Figa [Fri, 8 Mar 2013 17:13:08 +0000 (18:13 +0100)]
[HACK] ARM: dts: exynos4412-slp_pq: Keep HSIC regulators always on
This is needed because the s5p-ehci driver does not control voltage
regulators.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Tomasz Figa [Fri, 8 Mar 2013 17:12:43 +0000 (18:12 +0100)]
ARM: dts: exynos4: Add node for EHCI
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Tomasz Figa [Thu, 7 Mar 2013 14:36:40 +0000 (15:36 +0100)]
ARM: dts: exynos4210-origen: Add device nodes for USB gadget
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Tomasz Figa [Wed, 26 Jun 2013 13:42:14 +0000 (15:42 +0200)]
exynos4-is: Ungate uart clocks on system suspend
Due to hardware requirements, several ISP clocks must be enabled when
suspending the system. This patch adds ungating to suspend and
gating to resume callbacks to keep such clocks ungated.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Tomasz Figa [Wed, 26 Jun 2013 13:37:14 +0000 (15:37 +0200)]
exynos4-is: Handle suspend/resume of fimc-is-i2c correctly
If the same callbacks are used for runtime and system suspend/resume,
clocks can get disabled twice, which can lead to negative reference
counts and kernel warnings.
This patch splits suspend/resume callbacks into separate runtime and
system-wide functions, so clock gating is done correctly.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Jaehoon Chung [Thu, 27 Jun 2013 02:29:47 +0000 (11:29 +0900)]
mmc: sdhci-s3c: remove the duplicated calling sequence
Didn't need to call the sdhci_s3c_notify_change in
setup_card_detect_gpio()
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Sylwester Nawrocki [Tue, 25 Jun 2013 18:23:35 +0000 (20:23 +0200)]
ARM: dts: Remove redundant sysreg node from exynos4.dtsi
Remove the incorrect sysreg node, which is likely in this file
due to wrong merge conflict resolution.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Jaehoon Chung [Tue, 25 Jun 2013 01:27:53 +0000 (10:27 +0900)]
mmc: sdhci-s3c: revert "fix missing clock for gpio card-detect"
It's produced the clk-disable counting warning.
(the pair is not right)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Sylwester Nawrocki [Mon, 24 Jun 2013 16:56:55 +0000 (18:56 +0200)]
ARM: dts: Add missing I2C controller node alias for GP2AP020A00F sensor
Without this alias probing of the I2C0 adapter was failing as the
'i2c-gpio-2' i2c-gpio adapter was getting I2C bus id 0 assigned to it.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Peter De Schrijver [Wed, 5 Jun 2013 15:06:36 +0000 (18:06 +0300)]
clk: honor CLK_GET_RATE_NOCACHE in clk_set_rate
clk_set_rate() uses clk->rate directly. This causes problems if the clock
is marked as CLK_GET_RATE_NOCACHE. Hence call clk_get_rate() to get the
current rate.
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Sylwester Nawrocki [Fri, 21 Jun 2013 12:07:07 +0000 (14:07 +0200)]
tizen_defconfig update
Enable MIPI CSI-2/DSIM PHY driver and geenric PHY framework.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Sylwester Nawrocki [Thu, 4 Apr 2013 12:13:51 +0000 (14:13 +0200)]
video: exynos_dsi: Use generic PHY driver
Use the generic PHY API instead of the platform callback to control
the MIPI DSIM DPHY.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Sylwester Nawrocki [Fri, 28 Jun 2013 09:24:47 +0000 (11:24 +0200)]
ARM: Samsung: Remove the MIPI PHY setup code
Generic PHY drivers are used to handle the MIPI CSIS and MIPI DSIM
DPHYs so we can remove now unused code at arch/arm/plat-samsung.
In case there is any board file for S5PV210 platforms using MIPI
CSIS/DSIM (not any upstream currently) it should use the generic
PHY API to bind the PHYs to respective PHY consumer drivers and
a platform device for the PHY provider should be defined.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Sylwester Nawrocki [Thu, 4 Apr 2013 12:15:04 +0000 (14:15 +0200)]
[media] exynos4-is: Use the generic MIPI CSIS PHY driver
Use the generic PHY API instead of the platform callback to control
the MIPI CSIS DPHY. The 'phy_label' field is added to the platform
data structure to allow PHY lookup on non-dt platforms
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Sylwester Nawrocki [Fri, 28 Jun 2013 09:21:25 +0000 (11:21 +0200)]
video: exynos_mipi_dsim: Use the generic PHY driver
Use the generic PHY API instead of the platform callback to control
the MIPI DSIM DPHY. The 'phy_label' field is added to the platform
data structure to allow PHY lookup on non-dt platforms.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Acked-by: Donghwa Lee <dh09.lee@samsung.com>
Sylwester Nawrocki [Thu, 13 Jun 2013 09:16:30 +0000 (11:16 +0200)]
phy: Add driver for Exynos MIPI CSIS/DSIM DPHYs
Add a PHY provider driver for the Samsung S5P/Exynos SoC MIPI CSI-2
receiver and MIPI DSI transmitter DPHYs.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Felipe Balbi <balbi@ti.com>
---
Changes since v3:
- replaced spin_(un)lock_irq_{save,restore} with spin_{lock,unlock}.
- DT binding file renamed to samsung-phy.txt, so it can be used for
other PHYs as well,
- removed <linux/delay.h> inclusion,
- added missing spin_lock_init().
Kishon Vijay Abraham I [Wed, 26 Jun 2013 09:57:45 +0000 (15:27 +0530)]
drivers: phy: add generic PHY framework
The PHY framework provides a set of APIs for the PHY drivers to
create/destroy a PHY and APIs for the PHY users to obtain a reference to the
PHY with or without using phandle. For dt-boot, the PHY drivers should
also register *PHY provider* with the framework.
PHY drivers should create the PHY by passing id and ops like init, exit,
power_on and power_off. This framework is also pm runtime enabled.
The documentation for the generic PHY framework is added in
Documentation/phy.txt and the documentation for dt binding can be found at
Documentation/devicetree/bindings/phy/phy-bindings.txt
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Tested-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Sylwester Nawrocki [Thu, 4 Apr 2013 11:23:27 +0000 (13:23 +0200)]
ARM: dts: Add MIPI PHY node to exynos4.dtsi
Add PHY provider node for the MIPI CSIS and MIPI DSIM PHYs.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Sylwester Nawrocki [Fri, 31 May 2013 11:08:24 +0000 (13:08 +0200)]
exynos4-is: Add the FIMC-IS ISP capture DMA driver
Add a video capture node for the FIMC-IS ISP IP block. The Exynos4x12
FIMC-IS ISP IP block has 2 DMA interfaces that allow to capture raw
Bayer and YUV data to memory. Currently only the DMA2 output is and
raw Bayer data capture is supported.
exynos4-is: Fix ISP DMA capture start/stop sequence
Ensure we wait until FIMC-IS executes a command, otherwise a division by
zero exception is thrown in the interrupt handler due to buf_count being
set to 0.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com
Sylwester Nawrocki [Thu, 20 Jun 2013 13:49:09 +0000 (10:49 -0300)]
[media] exynos4-is: Correct colorspace handling at FIMC-LITE
Ensure the colorspace is properly adjusted by the driver for YUV
and Bayer image formats. The subdev try_fmt helper is simplified.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Sylwester Nawrocki [Tue, 18 Jun 2013 17:56:11 +0000 (14:56 -0300)]
[media] exynos4-is: Set valid initial format on FIMC.n subdevs
Ensure there are valid initial image formats on the FIMC.n subdev pads.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Sylwester Nawrocki [Tue, 18 Jun 2013 17:50:50 +0000 (14:50 -0300)]
[media] exynos4-is: Set valid initial format on FIMC-IS-ISP subdev pads
Ensure there is a valid initial resolution and pixel format set
at the FIMC-IS-ISP subdev pads.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Sylwester Nawrocki [Tue, 18 Jun 2013 16:42:30 +0000 (13:42 -0300)]
[media] exynos4-is: Fix format propagation on FIMC-IS-ISP subdev
Ensure TRY formats are propagated from the sink pad to the source pads
of the FIMC-IS-ISP subdev and the TRY and ACTIVE formats are separated.
[mchehab@redhat.com: Whitespace cleanup]
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Sylwester Nawrocki [Tue, 18 Jun 2013 11:00:42 +0000 (08:00 -0300)]
[media] exynos4-is: Set valid initial format at FIMC-LITE
Ensure the image resolution and crop rectangle on the FIMC-LITE.n
subdevs and fimc-lite.n.capture video nodes is properly configured
upon the driver's initialization.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Sylwester Nawrocki [Thu, 20 Jun 2013 13:57:47 +0000 (10:57 -0300)]
[media] exynos4-is: Fix format propagation on FIMC-LITE.n subdevs
FIMC-LITE subdevs have one sink pad and two source pads on which the image
formats are always same. This patch implements missing format propagation
from the sink pad to the source pads, to allow user space to negotiate TRY
format on whole media pipeline involving FIMC-LITE.n subdevs. The subdev
try_fmt helper is simplified.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Sylwester Nawrocki [Fri, 31 May 2013 13:36:19 +0000 (10:36 -0300)]
[media] exynos4-is: Change fimc-is firmware file names
This patch changes the firmware file names of the FIMC-IS subsystem.
It is needed since there are different firmwares used across various
SoC series, e.g. Exynos4 and Exynos5.
Also the sensor specific "setfile" name is changed, to account for
it depends on an image sensor and is also specific to the FIMC-IS
and the SoC.
This is a change for a driver merged in 3.10.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Sylwester Nawrocki [Fri, 31 May 2013 13:38:23 +0000 (10:38 -0300)]
[media] exynos4-is: Add support for Exynos5250 MIPI-CSIS
Add compatible property for the Exynos5250 and enable the frame start
and frame end interrupts. These interrupts are needed for the Exynos5
FIMC-IS firmware. The driver enables those interrupt only where available,
depending on the 'compatible' property. This can be optimized further,
by exposing some API at the subdev driver, so the host driver can enable
extra interrupts only for the image processing chains involving FIMC-IS.
Signed-off-by: Shaik Ameer Basha <shaik.ameer@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Sylwester Nawrocki [Fri, 14 Jun 2013 15:38:15 +0000 (12:38 -0300)]
[media] exynos4-is: Add Exynos5250 SoC support to fimc-lite driver
This patch adds support for the Exynos5250 SoC variant of the FIMC-LITE
IP. A 'compatible' string is added for Exynos5250 compatible devices
and the capture DMA handling is reworked to use the FLITE_REG_CIFCNTSEQ
register, masking output DMA buffer address slots. The frame interrupt
is enabled so there are now 2 interrupts per frame. This likely can be
optimized in future by using any status registers that allow to figure
out what the last and the currently written frame buffer is. It would
also be more reliable in cases where there are high interrupt service
latencies.
Signed-off-by: Shaik Ameer Basha <shaik.ameer@samsung.com>
Signed-off-by: Arun Kumar K <arun.kk@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Sylwester Nawrocki [Tue, 11 Jun 2013 13:44:38 +0000 (10:44 -0300)]
[media] exynos4-is: Drop drvdata handling in fimc-lite for non-dt platforms
The FIMC-LITE IP block is available only on platforms instantiated
from device tree.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Lukasz Czerwinski [Tue, 28 May 2013 07:03:43 +0000 (09:03 +0200)]
tizen_defconfig update
This patch enables:
- NFC subsystem
- NCI protocol
- NFC HCI implementation
- SHDLC link layer for HCI NFC drivers
- NFC PN544 driver support
- GP2AP002A00F light/priximity sensor
- LSM330DLC sensor IIO driver
- buffer support within IIO
Signed-off-by: Lukasz Czerwinski <l.czerwinski@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Lukasz Czerwinski [Thu, 13 Jun 2013 11:23:48 +0000 (13:23 +0200)]
ARM: dts: Add nfc node for PQ board
This patch adds nxp pn544-hci nfc controller node.
Signed-off-by: Lukasz Czerwinski <l.czerwinski@samsung.com>
Lukasz Czerwinski [Thu, 13 Jun 2013 13:42:22 +0000 (15:42 +0200)]
nfc: pn544-i2c: Fix pn544_hci_i2c_write() resend cmd
Driver should always try resend cmd after failed i2c_master_send.
Signed-off-by: Lukasz Czerwinski <l.czerwinski@samsung.com>
Lukasz Czerwinski [Thu, 13 Jun 2013 13:06:33 +0000 (15:06 +0200)]
nfc: pn544-i2c: Remove unused gpio_irq
This patch removes unused gpio irq pin from driver.
Signed-off-by: Lukasz Czerwinski <l.czerwinski@samsung.com>
Lukasz Czerwinski [Tue, 4 Jun 2013 11:24:43 +0000 (13:24 +0200)]
nfc: pn544-i2c: Add DT bindings
This patch adds device tree support for nxp pn544-i2c nfc controller.
Signed-off-by: Lukasz Czerwinski <l.czerwinski@samsung.com>
Jacek Anaszewski [Fri, 14 Jun 2013 15:23:52 +0000 (17:23 +0200)]
ARM: dts: Add gp2ap002a00f device node for PQ/M0 board
This patch adds gp2ap002a00f device node for PQ/M0 board.
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Jacek Anaszewski [Mon, 17 Jun 2013 11:21:21 +0000 (13:21 +0200)]
iio: Add driver for the gp2ap002a00f light/proximity sensor
Add a new driver for the ambient light/proximity sensor
device. The driver exposes three channels: light_clear
light_ir and proximity. It also supports high and low
ambient light threshold event and proximity detection
event.
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Jacek Anaszewski [Fri, 21 Jun 2013 08:52:31 +0000 (10:52 +0200)]
iio: Add driver for the LPS331AP barometer sensor
Add new driver for the barometer device. The driver is
compliant with IIO framework, and exposes two channels
for reading the pressure and the temperature. The output
data can be read either in 'one shot' mode or by exploiting
IIO events.
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Jaehoon Chung [Thu, 20 Jun 2013 04:39:35 +0000 (13:39 +0900)]
ARM: dts: enable sd-card
In oreder to use the SD-card, enabled the sd-card into devicetree.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Lukasz Czerwinski [Mon, 17 Jun 2013 07:14:23 +0000 (09:14 +0200)]
ARM: dts: exynos-slp_pq.dts: Add lsm330dlc node for slp_pq
Signed-off-by: Lukasz Czerwinski <l.czerwinski@samsung.com>
Lukasz Czerwinski [Mon, 17 Jun 2013 07:09:22 +0000 (09:09 +0200)]
ARM: dts: exnos4412-redwood.dts: Add lsm330dlc node for redwood
Signed-off-by: Lukasz Czerwinski <l.czerwinski@samsung.com>
Lukasz Czerwinski [Fri, 24 May 2013 12:17:48 +0000 (14:17 +0200)]
iio: accel Add event subsystem to st_accel driver
This patch adds event support for iio st_accel driver.
Signed-off-by: Lukasz Czerwinski <l.czerwinski@samsung.com>
Lukasz Czerwinski [Thu, 23 May 2013 14:02:45 +0000 (16:02 +0200)]
iio: st_sensors Add threshold events support
This patch adds threshold events support for the ST common
library.
Lukasz Czerwinski [Thu, 23 May 2013 11:35:28 +0000 (13:35 +0200)]
iio: st_sensors: Add handling of multiple interrupts
This patch adds handling of multiple interrupts for st_sensors.
Each mapped interrupt can be declared from DT.
Signed-off-by: Lukasz Czerwinski <l.czerwinski@samsung.com>
Lukasz Czerwinski [Mon, 17 Jun 2013 13:49:49 +0000 (15:49 +0200)]
iio: st_gyro: Add DT bindings
Signed-off-by: Lukasz Czerwinski <l.czerwinski@samsung.com>
Lukasz Czerwinski [Mon, 17 Jun 2013 13:43:30 +0000 (15:43 +0200)]
iio: st_accel: Add DT bindings
Signed-off-by: Lukasz Czerwinski <l.czerwinski@samsung.com>
Sylwester Nawrocki [Fri, 14 Jun 2013 16:43:38 +0000 (18:43 +0200)]
ARM: dts: Add camera device nodes for M0 rev 1.1 board
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Sylwester Nawrocki [Fri, 14 Jun 2013 15:16:18 +0000 (17:16 +0200)]
clk: exynos4: Add CLK_GET_RATE_NOCACHE flag for the Exynos4x12 ISP clocks
The ISP clock registers belong to the ISP power domain and may change
their values if this power domain is switched off/on. Add
CLK_GET_RATE_NOCACHE flags to ensure clk_set_rate() and clk_get_rate()
work properly and do not use invalid cached values.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Sylwester Nawrocki [Fri, 14 Jun 2013 15:10:49 +0000 (17:10 +0200)]
clk: Prevent potential null pointer dereference in clk_set_rate()
Ensure the passed clk pointer is not dereferenced if it is invalid.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Jonghwa Lee [Mon, 10 Jun 2013 15:23:40 +0000 (00:23 +0900)]
regulator: max77693: Do code clean.
This patch removes unnecessary dev_info, and changes some of them to dev_dbg.
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Jonghwa Lee [Mon, 10 Jun 2013 15:13:39 +0000 (00:13 +0900)]
regulator: max77693: Pass of_node when regulator is registered.
Since of_get_regulator() retrieve regulator's list with of_node pointer,
all regulator is required to hold their device tree node if regulator driver
uses device tree.
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Jonghwa Lee [Mon, 10 Jun 2013 15:12:17 +0000 (00:12 +0900)]
regulator: max77693: Modify platform deivce id according to mfd driver.
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Sylwester Nawrocki [Mon, 10 Jun 2013 17:07:43 +0000 (19:07 +0200)]
ARM: configs: Update tizen_defconfig
This patch updates tizen_defconfig to:
- enable suspend/resume.
- enable support for IIO devices,
- enable LSM330DLC accelerometer and gyroscope sensor drivers,
- enable legacy AK8975 magnetometer and LPS331 sensor drivers,
- enable AK8975 sensor IIO driver, MAX77693 charger, FIMC-IS,
- add extra gpios for wm8994 GPIO driver (this allows to register
successfully the wm8994 GPIO chip),
- enable MALI UMP.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Mon, 10 Jun 2013 04:58:29 +0000 (13:58 +0900)]
ARM: dts: usbphy: add SYSREG reg info for exynos4x12
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Fri, 31 May 2013 11:39:25 +0000 (20:39 +0900)]
ARM: dts: enable g2d device for redwood
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Fri, 31 May 2013 11:39:07 +0000 (20:39 +0900)]
ARM: dts: Add g2d clock properties
This patch adds g2d's clock properties.
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Fri, 31 May 2013 11:37:02 +0000 (20:37 +0900)]
drm/exynos: add g2d compatible node for exynos4212
This patch adds a g2d node compatible with exynos4212.
Signe-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Fri, 31 May 2013 10:47:57 +0000 (19:47 +0900)]
drm/exynos: add dt-binding documentation for rotator
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Fri, 31 May 2013 09:59:03 +0000 (18:59 +0900)]
ARM: dts: enable rotator node for redwood
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Fri, 31 May 2013 09:56:21 +0000 (18:56 +0900)]
ARM: dts: add a rotator node for exynos4
This patch adds a device node of rotator for exynos4 platform. It has proper
register and clock information. It also has limit table to get restrictions of
the image size.
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Fri, 31 May 2013 09:38:59 +0000 (18:38 +0900)]
drm/exynos: add device tree support for rotator
The exynos4 platform is only dt-based since 3.10, we should convert driver data
and ids to dt-based parsing methods. The rotator driver has a limit table to get
size limit. The minimum size of RGB888 format is 8 x 8 and maximum size is 8K x
8K. The other format, YCbCr420 2-Plane has 32 x 32 min size and 32K x 32K max
size. Each format should be multiple of 'align' value.
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Sylwester Nawrocki [Mon, 27 May 2013 16:06:38 +0000 (18:06 +0200)]
gpu: mali: Remove Exynos PM domain checks in debug code
This fixes following compilation warning when Mali debug options are enabled:
CC drivers/gpu/arm/mali400/mali/linux/mali_osk_low_level_mem.o
drivers/gpu/arm/mali400/mali/linux/mali_osk_low_level_mem.c: In function ‘_mali_osk_mem_iowrite32_relaxed’:
drivers/gpu/arm/mali400/mali/linux/mali_osk_low_level_mem.c:436: error: ‘EXYNOS4_G3D_CONFIGURATION’ undeclared (first use in this function)
drivers/gpu/arm/mali400/mali/linux/mali_osk_low_level_mem.c:436: error: (Each undeclared identifier is reported only once
drivers/gpu/arm/mali400/mali/linux/mali_osk_low_level_mem.c:436: error: for each function it appears in.)
drivers/gpu/arm/mali400/mali/linux/mali_osk_low_level_mem.c: In function ‘_mali_osk_mem_ioread32’:
drivers/gpu/arm/mali400/mali/linux/mali_osk_low_level_mem.c:453: error: ‘EXYNOS4_G3D_CONFIGURATION’ undeclared (first use in this function)
drivers/gpu/arm/mali400/mali/linux/mali_osk_low_level_mem.c: In function ‘_mali_osk_mem_iowrite32’:
drivers/gpu/arm/mali400/mali/linux/mali_osk_low_level_mem.c:469: error: ‘EXYNOS4_G3D_CONFIGURATION’ undeclared (first use in this function)
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Sylwester Nawrocki [Mon, 27 May 2013 13:55:54 +0000 (15:55 +0200)]
ARM: dts: Correct aclk400_mcuisp clock index at fimc-is node
Adjust to the upstream clocks definition differences.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Tomasz Figa [Tue, 21 May 2013 16:28:10 +0000 (18:28 +0200)]
ARM: dts: exynos4412-slp_pq: Add aliases for bit-banged I2C buses
This patch adds missing aliases of bit-banged I2C buses required for
numbered I2C bus registration.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Tomasz Figa [Tue, 21 May 2013 16:28:10 +0000 (18:28 +0200)]
ARM: dts: exynos4210-trats: Add aliases for bit-banged I2C buses
This patch adds missing aliases of bit-banged I2C buses required for
numbered I2C bus registration.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Tomasz Figa [Tue, 21 May 2013 16:04:27 +0000 (18:04 +0200)]
power: max17042: Fix deadlock caused by deferred initialization
There is no need to defer chip initialization from probe. In addition,
current implementation caused a deadlock, which made boot hang from time
to time.
This patch removes deferred initialization and adds chip initialization
to probe, before the power supply is registered.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Andrzej Hajda [Wed, 15 May 2013 11:04:14 +0000 (13:04 +0200)]
ARM: dts: exynos4210-trats
Adjusted front camera configuration to work with s5k5baf driver.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Andrzej Hajda [Fri, 10 May 2013 13:44:15 +0000 (15:44 +0200)]
s5k5baf: add camera sensor driver
Driver for Samsung S5K5BAF UXGA 1/5" 2M CMOS Image Sensor with embedded
SoC ISP. The driver exposes the sensor as two V4L2 subdevices:
- S5K5BAF-CIS - pure CMOS Image Sensor, fixed 1600x1200 format,
no controls.
- S5K5BAF-ISP - Image Signal Processor, formats up to 1600x1200,
pre/post ISP cropping, downscaling via selection API, controls.
The private V4L2_CID_{RED/GREEN/BLUE}_GAIN controls will be replaced
with V4L2_CID_{RED/BLUE}_BALANCE controls in subsequent patch.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
v3:
- narrowed state->error usage to i2c and power errors
v2:
- lower-cased driver name,
- removed underscore from regulator names,
- removed platform data code,
- v4l controls grouped in anonymous structs,
- added s5k5baf_clear_error function,
- private controls definitions moved to uapi header file,
- added v4l2-controls.h reservation for private controls,
- corrected subdev registered/unregistered code,
- .log_status sudbev op set to v4l2 helper,
- moved entity link creation to probe routines,
- added cleanup on error to probe function.
Jonghwa Lee [Fri, 10 May 2013 08:58:35 +0000 (17:58 +0900)]
arm: dts: Update max77686's device tree for M0/PQ.
- IRQ type update : from 0 to 2 (FALLING_EDGE)
- Remove unnecessary data : consumer supplies, min/max uV..
- Change data of charger ldo from voltage to current.
[s.nawrocki: redundant closing parenthesis removed to fix build break]
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Sylwester Nawrocki [Thu, 9 May 2013 15:50:17 +0000 (17:50 +0200)]
ARM: dts: Modify lps331ap device node for PQ/M0 board
This patch adds interrupt-map support for the lps331ap
device node for PQ/M0 board, so that it facilitates
passing information about device's interrupt sources used.
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Jonghwa Lee [Thu, 9 May 2013 11:29:13 +0000 (20:29 +0900)]
fuelgauge: max1704xx: Fix max17042 driver to work properly.
Fixed :
- Read battery capacity from VFG(voltage fuel gauge) for ModelGuage M1.
- Fix error of registering alarm irq to generic irq framework.
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Jonghwa Lee [Thu, 9 May 2013 11:26:09 +0000 (20:26 +0900)]
ARM: dts: Support device tree of fuel gauge(max77693) in PQ/M0
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Lukasz Majewski [Fri, 19 Apr 2013 14:50:42 +0000 (16:50 +0200)]
ARM: dts: thermal: exynos4: TMU voltage regulator support at REDWOOD
This regulator must be enabled at REDWOOD target to allow temperature
sensor to work.
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Lukasz Majewski [Fri, 19 Apr 2013 15:31:16 +0000 (17:31 +0200)]
ARM: dts: thermal: exynos4: Add documentation for Exynos SoC thermal bindings
Proper description for Exynos4 bindings added to Documentation/devicetree/
bindings
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Lukasz Majewski [Fri, 19 Apr 2013 15:09:21 +0000 (17:09 +0200)]
Thermal: exynos: Support for TMU regulator defined at device tree
TMU probe function now checks for a device tree defined regulator.
For compatibility reasons it is allowed to probe driver even without
this regulator defined.
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Lukasz Majewski [Fri, 19 Apr 2013 14:45:53 +0000 (16:45 +0200)]
ARM: dts: thermal: exynos4: TMU device tree support for Exynos4412 targets
Device tree support for TMU at Exynos4x12 targets.
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Sachin Kamat [Mon, 22 Apr 2013 02:55:46 +0000 (02:55 +0000)]
clk: exynos4: Add clock entries for TMU
Added clock entries for thermal management unit (TMU) for
Exynos4 SoCs.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Thomas Abraham <thomas.abraham@linaro.org>
Cc: Mike Turquette <mturquette@linaro.org>
Sylwester Nawrocki [Fri, 31 May 2013 13:37:27 +0000 (10:37 -0300)]
[media] exynos4-is: Extend link_notify handler to support fimc-is/lite pipelines
This patch corrects the link_notify handler to support more complex
pipelines, including fimc-lite and fimc-is entities.
After the FIMC-IS driver addition the assumptions made in the link_notify
callback are no longer valid, e.g. the link between fimc-lite subdev and
its video node is not immutable any more and there is more subdevs than
just sensor, MIPI-CSIS and FIMC(-LITE).
The graph is now walked and for each video node found a media pipeline
which ends at this node is disabled/enabled (the subdevs are powered
on/off).
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>