ov5642_camera: Don't use internal regulator

The internal regulator bit (bit 5 of register 0x3030) was set
in each of the screen resolutions.

This doesn't make sense, as the decision to use the regulator
should be made system-wide (i.e. in initial_settings).

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
ft5x06_ts: Don't use BTN_TOUCH when using multi-touch mode

Oddly, the XINPUT driver appears to need this bit advertised
in order to recognize the device as a touch screen, but
doesn't need BTN_TOUCH events.

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
ft5x06_ts: simplify through request_threaded_irq

The implementation of the interrupt handler as a delayed work
queue was overly complicated.

A threaded irq makes much more sense.

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
ft5x06_ts: remove unused buttons field from struct ft5x06_ts

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
ft5x06_ts: ignore junk at POR

At power-on-reset, the touch status registers are frequently
garbage. Ignore them if the touch controller isn't currently
signalling readiness through the interrupt line.

See 5f7cc2677 from Android branch.

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
imx6qdl-nitrogen6x.dtsi: TC358743 must use IPU=0 CSI=0
ov5642_camera: add sysfs entry to read/write I2C

Use /sys/bus/i2c/devices/i2c-1/1-003d/ov5642_reg to read
a register like so:
	root@nitrogen6x:~# echo 0x4303 > /sys/bus/i2c/devices/i2c-1/1-003d/ov5642_reg
        root@nitrogen6x:~# cat /sys/bus/i2c/devices/i2c-1/1-003d/ov5642_reg
	0xff

Or write a register with a second parameter:
	root@nitrogen6x:~# echo 0x4303 0xac > /sys/bus/i2c/devices/i2c-1/1-003d/ov5642_reg
        root@nitrogen6x:~# cat /sys/bus/i2c/devices/i2c-1/1-003d/ov5642_reg
	0xac

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
ov5642_camera: set default saturation value to +2 for all resolutions

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
ov5642_camera: Use simple white balance, full range (0-0xff)

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
ov5640_camera: clip Y range to 16..235

JPEG/MPEG expect Y values in the range of 16..235, not 0-255
and encoding will produce artifacts without limiting the
range.

See comments about footroom and headroom here:
	http://en.wikipedia.org/wiki/YCbCr

Pulled from i.MX5x tree:
	https://github.com/boundarydevices/linux/commit/6adf70a50

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
ASoC: sgtl5000: Fix SMALL_POP bit definition

On a mx28evk with a sgtl5000 codec we notice a loud 'click' sound  to happen
5 seconds after the end of a playback.

The SMALL_POP bit should fix this, but its definition is incorrect:
according to the sgtl5000 manual it is bit 0 of CHIP_REF_CTRL register, not
bit 1.

Fix the definition accordingly and enable the bit as intended per the code
comment.

After applying this change, no loud 'click' sound is heard after playback

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
fsl_otp: default to read-only access

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>