linux.git
7 years agoMLK-11740 ARM: defconfig: change the cpufreq default governor to ondemand
Bai Ping [Tue, 20 Oct 2015 11:24:51 +0000 (19:24 +0800)]
MLK-11740 ARM: defconfig: change the cpufreq default governor to ondemand

Change the cpufreq default governor to the ondemand governor.

Signed-off-by: Bai Ping <b51503@freescale.com>
7 years agoMLK-11705 thermal: imx: make the critical trip temp changable for test
Bai Ping [Tue, 13 Oct 2015 18:46:13 +0000 (02:46 +0800)]
MLK-11705 thermal: imx: make the critical trip temp changable for test

In order to test the critical trip point funtion, the
critical trip point temp should be writable from userspace.

Signed-off-by: Bai Ping <b51503@freescale.com>
7 years agoMLK-11739-2 ARM: dts: imx6qdl: fec interrupt should be in GPC domain
Anson Huang [Mon, 19 Oct 2015 09:34:54 +0000 (17:34 +0800)]
MLK-11739-2 ARM: dts: imx6qdl: fec interrupt should be in GPC domain

GPC irq domain is child domain of GIC, all of platform
irqs should be inside GPC domain.

Signed-off-by: Anson Huang <b20788@freescale.com>
7 years agoMLK-11698 ARM: imx: correct stop_mode_config bit offset
Anson Huang [Wed, 14 Oct 2015 09:50:01 +0000 (17:50 +0800)]
MLK-11698 ARM: imx: correct stop_mode_config bit offset

STOP_MODE_CONFIG field of PMU_MISC0 register are different
on different i.MX6 SoC, weak2P5 can only be enabled when
STOP_MODE_CONFIG is clear, need to read STOP_MODE_CONFIG
setting before enabling weak2P5, so the register field
must be correct, the definition are as below:

i.MX6Q/DL: bit[12];
i.MX6SL: bit[12:11], but only bit[11] is valid, so use bit[11];
i.MX6SX/UL: bit[11:10].

Signed-off-by: Anson Huang <b20788@freescale.com>
7 years agoMLK-11491 ARM: imx: dis-connect vddhigh_in and vddsnvs_in for imx6ul
Anson Huang [Wed, 2 Sep 2015 16:02:22 +0000 (00:02 +0800)]
MLK-11491 ARM: imx: dis-connect vddhigh_in and vddsnvs_in for imx6ul

To achieve lower power number in low power idle, on the boards
which has higher vddhigh_in than vddsnvs_in, need to dis-connect
vddhigh_in and vddsnvs_in internally to make vddhigh_in's power
low enough to meet the design target.

Signed-off-by: Anson Huang <b20788@freescale.com>
7 years agoMLK-11728-03 ARM: dts: remove the non-existed dts file from Makefile
Fugang Duan [Mon, 19 Oct 2015 06:52:47 +0000 (14:52 +0800)]
MLK-11728-03 ARM: dts: remove the non-existed dts file from Makefile

Remove the non-existed dts file from Makefile.

Signed-off-by: Fugang Duan <B38611@freescale.com>
Conflicts:
arch/arm/boot/dts/Makefile

7 years agoMLK-11728-02 ARM: dts: imx6x: add Murata BT support
Fugang Duan [Mon, 19 Oct 2015 03:11:13 +0000 (11:11 +0800)]
MLK-11728-02 ARM: dts: imx6x: add Murata BT support

The patch re-enable Murata BT as commit 117ba2ebb3fd define.
Since commit:76946e805b5d don't set murata bt/wifi as default in dtb and
add extra dts file to support Murata BT/WIFI, to align with this commit,
move BT support in the extra dts file.

Signed-off-by: Fugang Duan <B38611@freescale.com>
Conflicts:
arch/arm/boot/dts/imx6q-sabresd-uart.dts

7 years agoMLK-11725 dts: imx6: add Murata BT/WiFi module support
Dong Aisheng [Thu, 15 Oct 2015 07:39:02 +0000 (15:39 +0800)]
MLK-11725 dts: imx6: add Murata BT/WiFi module support

Add Murata Type ZP (BCM4339) module support on below platforms:
- i.MX6Q/DL/QP SabreSD(SD2 slot) + Murata adapter V2.0
- i.MX6SX SDB (SD3+SD2 slot) + Murata adapter V1.0 & SD EXT card
- i.MX6SL EVK (SD1+SD3 slot) + Murata adapter V1.0 & SD EXT card
- i.MX6UL SDB RevC (SD1 slot) + Murata adapter V2.0

Note: MX6Q/DL/QP SabreSD board requires HW rework.
Please refer to rework guide specified in schematic.

Signed-off-by: Dong Aisheng <aisheng.dong@freescale.com>
Conflicts:
arch/arm/boot/dts/Makefile

7 years agoMLK-11683 dts: imx6qp-sabresd: enhance uSDHC clk pad driver strength
Dong Aisheng [Sat, 10 Oct 2015 09:22:57 +0000 (17:22 +0800)]
MLK-11683 dts: imx6qp-sabresd: enhance uSDHC clk pad driver strength

The old driver strength of uSDHC clk pad of two slot can not work well
on the new imx6qp sabresd board because we can easily meet CRC errors
due to signal quality issue, especially with a SDIO card.
Enhance the driver strength of the CLK pad from 0x10059 to 0x10071
to avoid such issue

Signed-off-by: Dong Aisheng <aisheng.dong@freescale.com>
(cherry picked from commit 59a54039528cc2a7df30ee62e37bc47487c163e4)

7 years agoMLK-11647 ARM: dts: imx6qp-sabresd: Correct DOVDD supply for mipi camera
Robby Cai [Mon, 28 Sep 2015 10:01:27 +0000 (18:01 +0800)]
MLK-11647 ARM: dts: imx6qp-sabresd: Correct DOVDD supply for mipi camera

DOVDD ( GEN_1V8 ) is supplied by SW4 on i.MX6dqp-sabresd board
This patch corrects it.

Signed-off-by: Robby Cai <r63905@freescale.com>
(cherry picked from commit 50f1b6782d3ee8644129f98caff12c183411230c)

7 years agoMLK-11624 ARM: dts: imx6qp-sabresd: Correct DOVDD supply for camera
Robby Cai [Thu, 24 Sep 2015 12:03:03 +0000 (20:03 +0800)]
MLK-11624 ARM: dts: imx6qp-sabresd: Correct DOVDD supply for camera

DOVDD ( GEN_1V8 ) is supplied by SW4 on i.MX6dqp-sabresd board
This patch corrects it.

Signed-off-by: Robby Cai <r63905@freescale.com>
7 years agoMLK-11617 ARM: imx: enable pcie support on imx6qp sd
Richard Zhu [Fri, 18 Sep 2015 08:39:40 +0000 (16:39 +0800)]
MLK-11617 ARM: imx: enable pcie support on imx6qp sd

enable pcie support on imx6qp sd board

Signed-off-by: Richard Zhu <Richard.Zhu@freescale.com>
7 years agoMLK-11615 ARM: dts: imx6qp-sabresd: Enable prefetch for the four mxcfbs
Liu Ying [Thu, 24 Sep 2015 03:30:21 +0000 (11:30 +0800)]
MLK-11615 ARM: dts: imx6qp-sabresd: Enable prefetch for the four mxcfbs

This patch enables the prefetch feature for the four mxcfbs.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
7 years agoMLK-11614 ARM: dts: imx6qp-sabresd: Enable prefetch resolve gasket(PRG) engines
Liu Ying [Thu, 24 Sep 2015 03:25:33 +0000 (11:25 +0800)]
MLK-11614 ARM: dts: imx6qp-sabresd: Enable prefetch resolve gasket(PRG) engines

This patch enables the two prefetch resolve gasket(PRG) engines on the
imx6qp-sabresd platform.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
7 years agoMLK-11613 ARM: dts: imx6qp-sabresd: Enable prefetch engines
Liu Ying [Thu, 24 Sep 2015 03:16:18 +0000 (11:16 +0800)]
MLK-11613 ARM: dts: imx6qp-sabresd: Enable prefetch engines

This patch enables the four prefetch engines on the imx6qp-sabresd platform.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
7 years agoMLK-11704 net: fec: fix MDIO read/write timeout when ethx down/up after suspend/resume
Fugang Duan [Thu, 15 Oct 2015 09:38:29 +0000 (17:38 +0800)]
MLK-11704 net: fec: fix MDIO read/write timeout when ethx down/up after suspend/resume

This reverts commit 12fee3d24574bd084e8b6fa1dcaf84a084298c9a.

The commit:12fee3d24574 intruduce MDIO read/write timeout when Ethernet
down and up after Mega/Fast off. The patch just revert the patch.

Signed-off-by: Fugang Duan <B38611@freescale.com>
7 years agoMLK-11724: ARM: dts: add mqs support mx6sx-sd-exp1 board
Shengjiu Wang [Thu, 18 Jun 2015 11:09:46 +0000 (19:09 +0800)]
MLK-11724: ARM: dts: add mqs support mx6sx-sd-exp1 board

Add mqs support for mx6sx-sd-exp1 board

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
7 years agoMLK-11687 video: mxsfb: remove timestamp in wait for vsync ioctl
Fancy Fang [Wed, 14 Oct 2015 09:37:13 +0000 (17:37 +0800)]
MLK-11687 video: mxsfb: remove timestamp in wait for vsync ioctl

Remove the timestamp usage in the 'MXCFB_WAIT_FOR_VSYNC'
ioctl handler, since the 64 bit timestamp would cause
data overflow when writing it to user memory.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
(cherry picked from commit 4bfbf67a384f1292d217769b77858c08f38fe658)

Conflicts:
drivers/video/mxsfb.c

7 years agoMLK-11602 arm: imx: set imx6qdl eim_slow clk to 135Mhz
Gao Pan [Tue, 13 Oct 2015 10:27:45 +0000 (18:27 +0800)]
MLK-11602 arm: imx: set imx6qdl eim_slow clk to 135Mhz

weim nor read performance drop 32% compared with L3.10.53_1.1.0_GA because
eim_slow clk rate drops. This patch set the eim_slow clk to 135Mhz to improve
the performance.

Signed-off-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: Gao Pan <b54642@freescale.com>
7 years agospi: check tx_buf and rx_buf in spi_unmap_msg
Robin Gong [Thu, 16 Apr 2015 02:54:18 +0000 (10:54 +0800)]
spi: check tx_buf and rx_buf in spi_unmap_msg

Some spi device drivers use the same tx_buf and rx_buf repeatly for better
performance such as driver/input/touchsreen/ads7846.c, but spi core grab tx_buf
/rx_buf of transfer and set them as dummy_tx/dummy_rx once they are NULL. Thus,
in the second time the tx_buf/rx_buf will be replaced by dummy_tx/dummy_rx and
the data which produced by the last tx or rx may be wrongly sent to the device
or handled by the upper level protocol. This patch just keep the orignal value
of tx_buf/rx_buf if they are NULL after this transfer processed.

Signed-off-by: Robin Gong <b38343@freescale.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit bcd1c2dc8b54060ccb864130a83277d2dc1ff24e)

7 years agoMLK-11239 ARM: dts: imx7d-sdb-touch: correct the format of u16 values
Haibo Chen [Mon, 13 Jul 2015 07:23:54 +0000 (15:23 +0800)]
MLK-11239 ARM: dts: imx7d-sdb-touch: correct the format of u16 values

In tsc2046 touch driver, the values such as ti,x-min is defined as a u16
value. the driver use API of_property_read_u16() read the value. For these
u16 value, the dts entry should be like:
    property = /bits/ 16 <0x5000>;
This describe the property as a u16 value.

if the dts entry write like following:
property = <0x5000>;
of subsystem will read this property as a u32 value in default. Due to the
DTB file is big-endian, and our memory system is little endian, this will
make the driver can't read the correct value.

This patch correct the format of u16 values, and set the default value defined
in tsc2046 touch driver.

Signed-off-by: Haibo Chen <haibo.chen@freescale.com>
(cherry picked from commit a08be6b632438098eb7947ce8c0ce8af29575241)

7 years agoMLK-10961-3 imx_v7_defconfig: enable tsc2046 touch screen controller
Haibo Chen [Fri, 22 May 2015 07:32:13 +0000 (15:32 +0800)]
MLK-10961-3 imx_v7_defconfig: enable tsc2046 touch screen controller

Enable tsc2046/ads7846 touch screen controller

Signed-off-by: Haibo Chen <haibo.chen@freescale.com>
(cherry picked from commit 2e805b48fd0f32b18653f5b5666c29f191d77753)

7 years agoMLK-10961-1 arm: dts: imx7d-sdb-touch.dts: add support for touch screen
Haibo Chen [Fri, 22 May 2015 07:25:11 +0000 (15:25 +0800)]
MLK-10961-1 arm: dts: imx7d-sdb-touch.dts: add support for touch screen

Add an new dts file: imx7d-sdb-touch.dts.This file add tsc2046 touch
screen controller support. Due to the pin PENIRQ of tsc2046 is conflict
with the interrupt pin of HDMI, so in this patch, disable the HDMI.

Signed-off-by: Haibo Chen <haibo.chen@freescale.com>
(cherry picked from commit b690c1093a3a88a99da366200362fb4ae8172f9b)

Conflicts:
arch/arm/boot/dts/Makefile
arch/arm/boot/dts/imx7d-sdb.dts

7 years agoMGS-1133 porting vivante drm driver to 4.1 kernel.
Yang Dong [Tue, 13 Oct 2015 13:10:39 +0000 (21:10 +0800)]
MGS-1133 porting vivante drm driver to 4.1 kernel.

Port imx_3.14.y vivante drm driver to 4.1 kernel.

Date: Oct 13, 2015
Signed-off-by Yang Dong <b56112@freescale.com>

7 years agoMLK-11703-9: ARM: dts: imx_v7_defconfig: add battery driver
Robin Gong [Tue, 13 Oct 2015 09:40:54 +0000 (17:40 +0800)]
MLK-11703-9: ARM: dts: imx_v7_defconfig: add battery driver

add battery driver in imx_v7_defconfig

Signed-off-by: Robin Gong <b38343@freescale.com>
7 years agoMLK-11703-7: ARM: dts: imx6qdl-sabresd: add retain-state-suspended property in dts
Robin Gong [Tue, 21 Jan 2014 02:44:12 +0000 (10:44 +0800)]
MLK-11703-7: ARM: dts: imx6qdl-sabresd: add retain-state-suspended property in dts

cherry-pick below patch:

ENGR00295892-2: ARM: dts: imx6qdl-sabresd: add retain-state-suspended property in dts

Add property "retain-state-suspended" in dts.

Signed-off-by: Robin Gong <b38343@freescale.com>
(cherry picked from commit aff480769c26ff7f64059f9631b10e8177c4791b)
(cherry picked from commit 4a029915c4693b16db4806f078504cc86f34c069)

7 years agoMLK-11703-6: ARM: imx6: Add charging led support on Sabresd board
Robin Gong [Tue, 3 Dec 2013 06:59:05 +0000 (14:59 +0800)]
MLK-11703-6: ARM: imx6: Add charging led support on Sabresd board

cherry-pick below patch:

ENGR00290496-1 ARM: imx6: Add charging led support on Sabresd board

Enable led lighting while the board in charging status. Implement it on Sabresd
board.

Signed-off-by: Robin Gong <b38343@freescale.com>
(cherry picked from commit 7a47183634c524f5ac11c60fe555b0b18c0fe7e0)
(cherry picked from commit 28b266aa0bdd531b8eb43a76435f2fcc658bab84)

7 years agoMLK-11703-5: ARM: dts: imx6: add battery device node in dts file
Robin Gong [Fri, 5 Sep 2014 06:53:09 +0000 (14:53 +0800)]
MLK-11703-5: ARM: dts: imx6: add battery device node in dts file

cherry-pick below patch:

ENGR00330406-1: ARM: dts: imx6: add battery device node in dts file

Add battery device node on imx6q/dl-sabresd and imx6sl-evk board

Signed-off-by: Robin Gong <b38343@freescale.com>
(cherry picked from commit 1f2670578decd4a527208864ab3a014d840773f6)

7 years agoMLK-11703-4: sabresd_battery: fix usb charger detect when resume back on mx6sl
Robin Gong [Fri, 15 Nov 2013 10:29:03 +0000 (18:29 +0800)]
MLK-11703-4: sabresd_battery: fix usb charger detect when resume back on mx6sl

cherry-pick below patch:

ENGR00288351 sabresd_battery: fix usb charger detect when resume back on mx6sl

Fix  below redundant log after first resume back on mx6slevk:
max8903-charger max8903.12: USB Charger Connected

It's caused by not add enough prepare for uok&dok which are connected, such as
i.MX6SL-EVK. In this case the board only support DC charger detect, so we
didn't need judge the uok pin for USB charger detect, although uok share with
dok pin.

Signed-off-by: Robin Gong <b38343@freescale.com>
(cherry picked from commit c5ba4940a72e8124db7ef91a67b337df4e45e3b0)
(cherry picked from commit bcd7f8e5e19528abfc1c095049b55b3d409b27af)

7 years agoMLK-11703-3: power: sabresd_battery: remove check charger offset on mx6slevk
Robin Gong [Fri, 30 Aug 2013 07:29:10 +0000 (15:29 +0800)]
MLK-11703-3: power: sabresd_battery: remove check charger offset on mx6slevk

cherry-pick below patch:

ENGR00277663-3 power: sabresd_battery: remove check charger offset on mx6slevk

No need check the charger offset on mx6slevk, since there is no adc converter

Signed-off-by: Robin Gong <b38343@freescale.com>
(cherry picked from commit 7683c62cf2290629f09983744d5a3987a4d64669)
(cherry picked from commit 5f29715585ae82a435aa5ba0fe6393a53c10f87d)

7 years agoMLK-11703-2: power: sabresd_battery: add sabresd_battery driver
Robin Gong [Tue, 13 Aug 2013 09:49:54 +0000 (17:49 +0800)]
MLK-11703-2: power: sabresd_battery: add sabresd_battery driver

cherry-pick below patch:
ENGR00275004-4: power: sabresd_battery: add sabresd_battery driver

Add sabresd battery driver which based on Max8903 charger IC.

Signed-off-by: Robin Gong <b38343@freescale.com>
(cherry picked from commit 19ac2dfcd1e0ea3f1ae231cfc230315eaa9a41be)
(cherry picked from commit b9e81012c21d3318a633a4447797e4a52676c760)

7 years agoMLK-11703-1: input: touchscreen: max11801_ts: Add DCM mode for max11801 ADC
Robin Gong [Tue, 13 Aug 2013 08:58:26 +0000 (16:58 +0800)]
MLK-11703-1: input: touchscreen: max11801_ts: Add DCM mode for max11801 ADC

cherry-pick below patch:

ENGR00275004-1 input: touchscreen: max11801_ts: Add DCM mode for max11801 ADC

We need add DCM mode/AUX mode for ADC converter function of max11801, so that
it can be used to read voltage of battery. Meanwhile, let the driver based on
device tree. The patchset is based on below patch (V3.5.7):

commit 4001774cf51f0140ae7e4e8e0ec1d86475790682
Author: Rong Dian <b38775@freescale.com>
Date:   Fri Jan 18 14:24:28 2013 +0800

    Engr00240284-1 MAX11801: Add DCM aux adc sample function

        1.Add direct conversion mode operations
2.Add aux adc sample function

Signed-off-by: Robin Gong <b38343@freescale.com>
(cherry picked from commit 57b11d40431336c28f15a8a67af41907948c42b6)
(cherry picked from commit 0cf609eb332e206fa6dac3df25ae906c7ab8bd4c)

7 years agoMGS-1132 ARM: Kconfig: increase FORCE_MAX_ZONEORDER for ARCH_MXC
Xianzhong [Tue, 13 Oct 2015 08:50:25 +0000 (16:50 +0800)]
MGS-1132 ARM: Kconfig: increase FORCE_MAX_ZONEORDER for ARCH_MXC

Need increase the FORCE_MAX_ZONEORDER to 14 for high resolution camera
(GPU 2D user case). The default value 11(4MB) is not enough now.

Signed-off-by: Jason Liu <r64343@freescale.com>
(cherry picked from commit fff642ffe868cb55f5caec0501e36fd28b6ece50)

7 years agoMLK-11702-2 ARM: dts: imx6sx-sabreauto: add dts support for pxp v4l2 output
Fancy Fang [Tue, 13 Oct 2015 08:00:57 +0000 (16:00 +0800)]
MLK-11702-2 ARM: dts: imx6sx-sabreauto: add dts support for pxp v4l2 output

Add dts support for pxp v4l2 output on imx6sx sabreauto
board.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
7 years agoMLK-11702-1 ARM: dts: imx6sx-sabreauto: add dts support for pxp
Fancy Fang [Tue, 13 Oct 2015 07:58:55 +0000 (15:58 +0800)]
MLK-11702-1 ARM: dts: imx6sx-sabreauto: add dts support for pxp

Add dts support for pxp module on the imx6sx sabreauto
board.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
7 years agoMLK-11701-2 ARM: dts: imx6sx-sdb: add dts support for pxp v4l2 output
Fancy Fang [Tue, 13 Oct 2015 07:53:38 +0000 (15:53 +0800)]
MLK-11701-2 ARM: dts: imx6sx-sdb: add dts support for pxp v4l2 output

Add dts support for pxp v4l2 output on imx6sx sdb
board.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
7 years agoMLK-11701-1 ARM: dts: imx6sx-sdb: add dts support for pxp
Fancy Fang [Tue, 13 Oct 2015 07:49:23 +0000 (15:49 +0800)]
MLK-11701-1 ARM: dts: imx6sx-sdb: add dts support for pxp

Add dts support for pxp module on the imx6sx sdb
board.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
7 years agoMLK-11699-2 ARM: dts: imx6sx-sabreauto: add dts support for ldb
Fancy Fang [Tue, 13 Oct 2015 07:12:42 +0000 (15:12 +0800)]
MLK-11699-2 ARM: dts: imx6sx-sabreauto: add dts support for ldb

Add dts support for ldb module on the imx6sx
sabreauto board.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
7 years agoMLK-11699-1 ARM: dts: imx6sx-sabreauto: add dts support for backlight and pwm4
Fancy Fang [Tue, 13 Oct 2015 07:08:46 +0000 (15:08 +0800)]
MLK-11699-1 ARM: dts: imx6sx-sabreauto: add dts support for backlight and pwm4

Add dts support for backlight and pwm4 modules on
imx6sx sabreauto board.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
7 years agoMLK-10089 arm: imx: Add 198MHz OPP for i.MX6SX
Bai Ping [Tue, 13 Jan 2015 14:19:53 +0000 (22:19 +0800)]
MLK-10089 arm: imx: Add 198MHz OPP for i.MX6SX

Update the i.MX6SX operating points to comply with the latest
datasheet. Latest i.MX6SX datasheet of Rev.F, 1/2015 adds the
198MHz setpoint. For the RevB board, the VDD_ARM and ADD_SOC
are connected together, so the voltage for 198MHz needs to be
set to 1.175V. for the general setting, add a 25mV margin to
cover the board IR drop.

Signed-off-by: Bai Ping <b51503@freescale.com>
(cherry picked from commit 62bd7207e6346f404589ed8305971c9815d2cf8b)

7 years agoMLK-11281-1: input: keyboard: gpio_keys: add pinctl set in suspend and resume
Robin Gong [Tue, 16 Jun 2015 10:49:35 +0000 (18:49 +0800)]
MLK-11281-1: input: keyboard: gpio_keys: add pinctl set in suspend and resume

Add pinctrl restore to support LPSR.

Signed-off-by: Robin Gong <b38343@freescale.com>
(cherry picked from commit f7d40aa30ca2fe337ba9bb8f7eaca4393db900be)

7 years agoMLK-11693-2: ARM: dts: imx7d-12x12-lpddr3-arm2: add gpio keys
Robin Gong [Mon, 12 Oct 2015 08:25:36 +0000 (16:25 +0800)]
MLK-11693-2: ARM: dts: imx7d-12x12-lpddr3-arm2: add gpio keys

add gpio keys.

Signed-off-by: Robin Gong <b38343@freescale.com>
7 years agoMLK-11693-1: ARM: dts: imx6qdl-sabreauto: add gpio keys
Robin Gong [Mon, 12 Oct 2015 08:23:34 +0000 (16:23 +0800)]
MLK-11693-1: ARM: dts: imx6qdl-sabreauto: add gpio keys

add gpio keys, please attach main board to test this function, since those
gpio pins are located on main board.

Signed-off-by: Robin Gong <b38343@freescale.com>
7 years agoMLK-11692 ARM: dts: imx6sl-evk: add lcdif dts support
Fancy Fang [Mon, 12 Oct 2015 08:05:22 +0000 (16:05 +0800)]
MLK-11692 ARM: dts: imx6sl-evk: add lcdif dts support

Add lcdif dts support on imx6sl evk board.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
7 years agoMLK-11691 ARM: dts: imx6sl-evk: add pxp v4l2 output support
Fancy Fang [Mon, 12 Oct 2015 07:18:49 +0000 (15:18 +0800)]
MLK-11691 ARM: dts: imx6sl-evk: add pxp v4l2 output support

Add pxp v4l2 output support for imx6sl evk board.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
7 years agoMLK-11690: dts: Add hdcp dtb file for imx6q/dl sabreSD board
Sandor Yu [Mon, 12 Oct 2015 07:14:52 +0000 (15:14 +0800)]
MLK-11690: dts: Add hdcp dtb file for imx6q/dl sabreSD board

Add hdcp dtb file for imx6q/dl sabresd board.

Signed-off-by: Sandor Yu <R01008@freescale.com>
7 years agoMLK-11684: mipi dsi: Porting mxc mipi dsi driver from 3.14.y
Sandor Yu [Sat, 10 Oct 2015 09:37:28 +0000 (17:37 +0800)]
MLK-11684: mipi dsi: Porting mxc mipi dsi driver from 3.14.y

Initial the mxc mipi dsi driver.
Baseline copied from imx_3.14.y branch.

Signed-off-by: Sandor Yu <R01008@freescale.com>
7 years agoMLK-11606-02: dts: Enable mxc dcic drive
Sandor Yu [Sat, 10 Oct 2015 08:07:56 +0000 (16:07 +0800)]
MLK-11606-02: dts: Enable mxc dcic drive

Add dcic driver property to imx6q/dl sabresd/auto
and imx6sx sdb board.

Signed-off-by: Sandor Yu <R01008@freescale.com>
7 years agoMLK-11606-01: dcic: Porting dcic driver from 3.14.y
Sandor Yu [Sat, 10 Oct 2015 07:45:29 +0000 (15:45 +0800)]
MLK-11606-01: dcic: Porting dcic driver from 3.14.y

Initial the mxc dcic driver.
Baseline copied from imx_3.14.y branch.

Signed-off-by: Sandor Yu <R01008@freescale.com>
7 years agoMLK-10008 ARM: imx6qdl: Enable pcie on imx6qdl sabreauto
Richard Zhu [Tue, 23 Sep 2014 02:25:01 +0000 (10:25 +0800)]
MLK-10008 ARM: imx6qdl: Enable pcie on imx6qdl sabreauto

- enable pcie on imx6qdl sabreauto boards.

Signed-off-by: Richard Zhu <richard.zhu@freescale.com>
(cherry picked from commit 21c4323d54ec3a25bb73deb98d23ddd1bb3c6c03)

7 years agoMLK-11685-7 mmc: core: add delay for SD3.0 UHS mode switch
Dong Aisheng [Wed, 6 Aug 2014 05:04:09 +0000 (13:04 +0800)]
MLK-11685-7 mmc: core: add delay for SD3.0 UHS mode switch

We may meet the following errors with a SD3.0 DDR50 cards during reboot test.
mmc0: new ultra high speed DDR50 SDHC card at address aaaa
mmcblk0: mmc0:aaaa SU08G 7.40 GiB
mmcblk0: error -84 transferring data, sector 0, nr 8, cmd response 0x900, card status 0xb00
mmcblk0: retrying using single block read
mmcblk0: error -84 transferring data, sector 0, nr 8, cmd response 0x900, card status 0x0
end_request: I/O error, dev mmcblk0, sector 0
.....
Buffer I/O error on device mmcblk0, logical block 0
 mmcblk0: unable to read partition table

The root cause is still unknown.
Since there's an errata of Sandisk eMMC card before that it requires delay for CMD6
for eMMC DDR mode to work stable, we also suspect the SD3.0 DDR requires similar delay.
(Still not confirmed by Sandisk)
By adding the delay, the overnight reboot test(run 2000+ times) did not
show the issue anymore. Originally it can easy show the error after about 20 times of
reboot test.

So this patch would be the temporary workaround for Sandisk SD3.0 DDR50 mode
unstable issue.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
(cherry picked from commit ef3bce5feb2ed36c9f4483287454d35ae330dbe3)
(cherry picked from commit c0cbde8a248036fae1768f232385290c23eddbd7)
(cherry picked from commit 138bab9f78ea2285b6e7c7cd6c8cd956def44003)
(cherry picked from commit 12d7e80e7505027feed3eb1ee6d037b1e6df249b)
Signed-off-by: Haibo Chen <haibo.chen@freescale.com>
7 years agoMLK-11685-6 mmc: sdhci-esdhc-imx: do not enable wakeup by default
Dong Aisheng [Tue, 24 Jun 2014 09:25:03 +0000 (17:25 +0800)]
MLK-11685-6 mmc: sdhci-esdhc-imx: do not enable wakeup by default

After adding mega fast support, the default enabled usdhc wakeup will block
M/F to gate off power domain.
To avoid this issue, we only claim wakeup capability and reply on user to enable
it via sysfs according to real needs.
The drawback of such change is that for SDIO WiFi Wakeup On Wireless feature,
User has to enable both uSDHC and WiFi WoW wakeup mannually to make
WoW work well.

BTW, due to the wakeup feature is controller itself, so we do not need to reply
on WiFi PM flags to enable it.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
(cherry picked from commit 58f91ff6f6719fef44f5122ae1d8a5df7e0061d5)
Signed-off-by: Haibo Chen <haibo.chen@freescale.com>
Conflicts:
drivers/mmc/host/sdhci-esdhc-imx.c

7 years agoMLK-11685-5 mmc: sdhci-esdhc-imx: no need busfreq for imx6qdl
Dong Aisheng [Fri, 17 Jan 2014 02:23:22 +0000 (10:23 +0800)]
MLK-11685-5 mmc: sdhci-esdhc-imx: no need busfreq for imx6qdl

The usdhc of i.MX6Q/DL can work well under low power mode without
request high bus freq. So we do not need request bus freq for i.MX6Q/DL.
It can save power for i.MX6D/DL due to it saves a lot busfreq switch
cost as well as the CPU time runing on high bus freq after switch
during low power mode.

A new flag ESDHC_FLAG_BUSFREQ is added to indicated this requirement.
Currently only i.MX6SL is using it.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
(cherry picked from commit 3b954ce55b56dfce195d65b84913ff3c0fcb9f82)
Signed-off-by: Haibo Chen <haibo.chen@freescale.com>
Conflicts:
drivers/mmc/host/sdhci-esdhc-imx.c

7 years agoMLK-11685-4 mmc: sdhci: do not enable card cd wakeup for gpio case
Dong Aisheng [Mon, 13 Jan 2014 10:27:58 +0000 (18:27 +0800)]
MLK-11685-4 mmc: sdhci: do not enable card cd wakeup for gpio case

Do not need to enable the controller card cd interrupt wakeup
if using GPIO as card detect since it's meaningless.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
(cherry picked from commit e66bb4978fe4b4fb96e81a1a083c16f84f5aa710)
Signed-off-by: Haibo Chen <haibo.chen@freescale.com>
7 years agoMLK-11685-3 mmc: sdhci: do not enable card detect interrupt for gpio cd type
Dong Aisheng [Tue, 31 Dec 2013 08:22:44 +0000 (16:22 +0800)]
MLK-11685-3 mmc: sdhci: do not enable card detect interrupt for gpio cd type

Except SDHCI_QUIRK_BROKEN_CARD_DETECTION and MMC_CAP_NONREMOVABLE,
we also do not need to handle controller native card detect interrupt
for gpio as card detect case.
If we wrong enabled the card detect interrupt for gpio case,
it will cause a lot of unexpected card detect interrupts during data transfer
which should not happen.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
(cherry picked from commit 2bf47f78bee173798e6d6f360b12defd945c936c)
Signed-off-by: Haibo Chen <haibo.chen@freescale.com>
Conflicts:
drivers/mmc/host/sdhci.c

7 years agoMLK-11685-2 sdhci-esdhc-imx: use bus freq in runtime pm
Dong Aisheng [Mon, 11 Nov 2013 06:53:58 +0000 (14:53 +0800)]
MLK-11685-2 sdhci-esdhc-imx: use bus freq in runtime pm

Request BUS_FREQ_HIGH when bus is busy and then release BUS_FREQ_HIGH
when bus becomes idle.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
(cherry picked from commit 64994f7115573c9ede53b51536b2c15f7cf0112a)
Signed-off-by: Haibo Chen <haibo.chen@freescale.com>
Conflicts:
drivers/mmc/host/sdhci-esdhc-imx.c

7 years agoMLK-11685-1 mmc: add delay after CMD6 befoer sending CMD13 for sandisk
Ryan QIAN [Wed, 16 Jan 2013 02:23:28 +0000 (10:23 +0800)]
MLK-11685-1 mmc: add delay after CMD6 befoer sending CMD13 for sandisk

- Some sandisk emmc cards need certain delay befor sending cmd13 after cmd6.
Original CR: ENGR174296 (commit: fd031f9)

Acked-by: Aisheng Dong <b29396@freescale.com>
Signed-off-by: Ryan QIAN <b32804@freescale.com>
(cherry picked from commit f942bf1db36355d46f38792601594949f3f2c71b)
Signed-off-by: Haibo Chen <haibo.chen@freescale.com>
Conflicts:
drivers/mmc/core/mmc_ops.c

7 years agoMLK-11676 ARM: imx_v7_defconfig: disable CONFIG_SWP_EMULATE
Shengjiu Wang [Fri, 9 Oct 2015 08:56:41 +0000 (16:56 +0800)]
MLK-11676 ARM: imx_v7_defconfig: disable CONFIG_SWP_EMULATE

According to the help text in the config SWP_EMULATE in arch/arm/mm/Kconfig:

"In some older versions of glibc [<=2.8] SWP is used during futex trylock()
operations with the assumption that the code will not be preempted. This
invalid assumption may be more likely to fail with SWP emulation enabled,
leading to deadlock of the user application."

The audio codec toolchain version is gcc-4.1.1-glibc-2.4, we need turn off
the CONFIG_SWP_EMULATE in the imx_v7_defconfig.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
7 years agoMLK-10629-6 dts: imx7d-sdb: do not enable wlreg_on always
Dong Aisheng [Thu, 9 Apr 2015 09:05:24 +0000 (17:05 +0800)]
MLK-10629-6 dts: imx7d-sdb: do not enable wlreg_on always

Broadcom WiFi requires reset by operating wlreg_on regulator
when doing insmod/rmmod.
Keep wlreg_on will cause card state wrong and unable to re-insmod.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
(cherry picked from commit d65683e1d0717fa039ebd4c55562e6ee745354b7)
Signed-off-by: Haibo Chen <haibo.chen@freescale.com>
7 years agoMLK-10629-5 dts: imx7d-sdb: remove non-removable property of wifi host
Dong Aisheng [Thu, 9 Apr 2015 08:25:48 +0000 (16:25 +0800)]
MLK-10629-5 dts: imx7d-sdb: remove non-removable property of wifi host

The card detect of Broadcom WiFi on uSDHC2 port can not function
well with a non-removalbe card. Because MMC core only enumerate
one time for non-removable card which is not work for Broadcom WiFI.
So remove it.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
(cherry picked from commit ed4c1c749c755839775ff4ad2078e659fec18650)
Signed-off-by: Haibo Chen <haibo.chen@freescale.com>
Conflicts:
arch/arm/boot/dts/imx7d-sdb.dts

7 years agoMLK-10629-3 dts: imx7d-sdb: add wifi-host property for usdhc2
Dong Aisheng [Thu, 9 Apr 2015 08:19:35 +0000 (16:19 +0800)]
MLK-10629-3 dts: imx7d-sdb: add wifi-host property for usdhc2

There's a Broadcom WiFi on usdhc2.
Add this property due to Broadcom WiFi driver needs call wifi_card_detect
function.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
(cherry picked from commit 72015985537b5bd14ac7b0c97860ab26309ad1a1)
Signed-off-by: Haibo Chen <haibo.chen@freescale.com>
7 years agoMLK-10629-2 mmc: sdhci-esdhc-imx: implement wifi_card_detect function
Dong Aisheng [Thu, 9 Apr 2015 08:16:09 +0000 (16:16 +0800)]
MLK-10629-2 mmc: sdhci-esdhc-imx: implement wifi_card_detect function

WiFi driver could call wifi_card_detect function to re-detect card,
this is required by some special WiFi cards like broadcom WiFi.
To use this function, a new property is introduced to indicate a wifi host.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
(cherry picked from commit 74e71dd0aebb9e931f02aefa3dd1990cbe642ae4)
Signed-off-by: Haibo Chen <haibo.chen@freescale.com>
Conflicts:
Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt

7 years agoMLK-10629-1 dts: imx7d-sdb: add the integrated Broadcom WiFi chip support
Dong Aisheng [Wed, 11 Mar 2015 11:01:53 +0000 (19:01 +0800)]
MLK-10629-1 dts: imx7d-sdb: add the integrated Broadcom WiFi chip support

Add Broadcom WiFi chip BCM4339 on board support.
Need adds a bcmdhd_wlan@0 node for WiFi driver to probe properly.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
(cherry picked from commit 24b44a415df9a27036b843284a179448dcc5fe20)
Signed-off-by: Haibo Chen <haibo.chen@freescale.com>
Conflicts:
arch/arm/boot/dts/imx7d-sdb.dts

7 years agoMLK-11316-4 video: mxc ipuv3 fb: Change on-the-fly switch mechanism for PRE workaround
Liu Ying [Fri, 11 Sep 2015 09:36:39 +0000 (17:36 +0800)]
MLK-11316-4 video: mxc ipuv3 fb: Change on-the-fly switch mechanism for PRE workaround

In order to workaround the PRE SoC bug recorded by errata ERR009624, the
software cannot write the PRE_CTRL register when the PRE writes the PRE_CTRL
register automatically to set the ENABLE bit(bit0) to 1 in the PRE repeat mode.

Instead of setting the PRE_CTRL register any time we want to do on-the-fly
switch(PRE keeps working before and after the switch), we change to set the
register in the on-the-fly configuration interrupt(EOF) handler.  This way,
we may avoid encountering the problematic PRE automatic writing cycle for sure.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit 6218cbcf34f5fb7910a824a8d31cc58819d0bd00)

7 years agoMLK-11316-3 video: mxc ipuv3 fb: Change pan display mechanism for PRE workaround
Liu Ying [Fri, 11 Sep 2015 08:03:06 +0000 (16:03 +0800)]
MLK-11316-3 video: mxc ipuv3 fb: Change pan display mechanism for PRE workaround

In order to workaround the PRE SoC bug recorded by errata ERR009624, the
software cannot write the PRE_CTRL register when the PRE writes the PRE_CTRL
register automatically to set the ENABLE bit(bit0) to 1 in the PRE repeat mode.

The software mechanism to set the PRE_CTRL register is different for PRE Y
resolution higher than 9 lines and lower than or equal to 9 lines.

For cases in which Y resolution is higher than 9 lines, before we update PRE
shadow, we just need to wait until the PRE store engine status runs out of
the problematic PRE automatic writing window.

While for cases in which Y resolutin is lower than or equal to 9 lines, we
have to update PRE shadow in the buffer flip interrupt handler.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit bd9c14e24aaf67926dfd31bd819ab0c87129fe4b)

7 years agoMLK-11316-2 mxc IPUv3: PRE: Define small Y resolution
Liu Ying [Fri, 11 Sep 2015 08:09:57 +0000 (16:09 +0800)]
MLK-11316-2 mxc IPUv3: PRE: Define small Y resolution

In order to workaround the PRE SoC bug recorded by errata ERR009624, the
software cannot write the PRE_CTRL register when the PRE writes the PRE_CTRL
register automatically to set the ENABLE bit(bit0) to 1 in the PRE repeat mode.

The software mechanism to set the PRE_CTRL register is different for PRE Y
resolution higher than 9 lines and lower than or equal to 9 lines.  So,
this patch defines the small Y resolution and adds a helper to check the
Y resolution.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit cf7df46e3b1d2142ff354498982194247bf07fea)

7 years agoMLK-11316-1 mxc IPUv3: PRE: Export a function to set PRE_CTRL register
Liu Ying [Fri, 11 Sep 2015 06:58:02 +0000 (14:58 +0800)]
MLK-11316-1 mxc IPUv3: PRE: Export a function to set PRE_CTRL register

In order to workaround the PRE SoC bug recorded by errata ERR009624, the
software cannot write the PRE_CTRL register when the PRE writes the PRE_CTRL
register automatically to set the ENABLE bit(bit0) to 1 in the PRE repeat mode.

This patch exports a function to set the PRE_CTRL register so that it could be
used by the software when the PRE automatic writing doesn't happen for sure.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit e64bbcd9243a17f9eba9cb3abb6f2c1939eae110)

7 years agoMLK-11536 video: mxc ipuv3 fb: Fix pan-disp frame drop issue when PRE is enabled
Liu Ying [Mon, 14 Sep 2015 05:26:29 +0000 (13:26 +0800)]
MLK-11536 video: mxc ipuv3 fb: Fix pan-disp frame drop issue when PRE is enabled

There could be frame drop issue when we do pan display if we update PRE next
buffer address before waiting for the flip completion, because we may hold
the flip completion already and then two continuous pan display operations may
happen quickly within one active period of frame scanning - the first PRE next
buffer address is overriden.  To fix this issue, this patch updates the buffer
address after the flip completion.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit d0126e42f46f6dad9ae8c6aa390b0e1bea76492e)

7 years agoMLK-11679: IPU: Fix ldb0 can not work issue
Sandor Yu [Fri, 9 Oct 2015 09:25:17 +0000 (17:25 +0800)]
MLK-11679: IPU: Fix ldb0 can not work issue

LVDS0 can not work on imx6q auto and SDB board,
it is caused by ldb0 clock setting is missed in ipu driver.

Signed-off-by: Sandor Yu <R01008@freescale.com>
7 years agoMLK-11503-2 ARM: dts: imx7d-12x12-lpddr3-arm2: enable usdhc in lpsr mode
Haibo Chen [Tue, 8 Sep 2015 06:21:04 +0000 (14:21 +0800)]
MLK-11503-2 ARM: dts: imx7d-12x12-lpddr3-arm2: enable usdhc in lpsr mode

Add pinctrl sleep mode support for usdhc, and enable usdhc in lpsr mode.

Signed-off-by: Haibo Chen <haibo.chen@freescale.com>
(cherry picked from commit 75b33d1a578abaed44b11a05187c19dedb25aad2)

Conflicts:
arch/arm/boot/dts/imx7d-12x12-lpddr3-arm2.dts

7 years agoMLK-11503-1 mmc: sdhci-pltfm: add pinctrl sleep mode support
Haibo Chen [Tue, 8 Sep 2015 06:17:23 +0000 (14:17 +0800)]
MLK-11503-1 mmc: sdhci-pltfm: add pinctrl sleep mode support

For LPSR mode, usdhc iomux settings will be lost after resume,
so add pinctrl sleep mode support.

Signed-off-by: Haibo Chen <haibo.chen@freescale.com>
(cherry picked from commit 983a7a174ed20d34a170a6aba70ff9d5bb2c9973)

7 years agoMLK-11397 mmc: sdhci-esdhc-imx: move the setting of watermark level out of probe
Haibo Chen [Thu, 25 Jun 2015 02:08:46 +0000 (10:08 +0800)]
MLK-11397 mmc: sdhci-esdhc-imx: move the setting of watermark level out of probe

Currently, we config the watermark_level register only in probe.
This will cause the mmc write operation timeout issue after system
resume back in LPSR mode. Because in LPSR mode, after system resume
back, the watermark_level register(0x44) changes to 0x08000880, which
set the write watermark level as 0, and set the read watermark level
as 128. This value is incorrect.

This patch move the setting of watermark level register out of probe,
so after system resume back, mmc driver will set back this watermark
level register back to 0x10401040.

Signed-off-by: Haibo Chen <haibo.chen@freescale.com>
(cherry picked from commit 05f72329a3c288e15c2f187305a21815d6bffc6d)

Conflicts:
drivers/mmc/host/sdhci-esdhc-imx.c

7 years agoMLK-10837 dts: imx_v7_defconfig: remove CONFIG_BT_HCIBTSDIO support
Dong Aisheng [Fri, 15 May 2015 06:29:50 +0000 (14:29 +0800)]
MLK-10837 dts: imx_v7_defconfig: remove CONFIG_BT_HCIBTSDIO support

We don't need btsdio driver support and enable it will cause
Broadcom WiFi driver suspend/resume unwork due to it does not
implement suspend/resume callback.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
(cherry picked from commit ebd90ea123d493935b559c05db0cd5b5db9d3c73)

7 years agommc: Allow setting slot index via devicetree alias
Sascha Hauer [Fri, 20 Jun 2014 07:08:16 +0000 (15:08 +0800)]
mmc: Allow setting slot index via devicetree alias

As with gpio, uart and others, allow specifying the name_idx via the
aliases-node in the devicetree.

On embedded devices, there is often a combination of removable (e.g.
SD card) and non-removable mmc devices (e.g. eMMC).
Therefore the name_idx might change depending on
- host of removable device
- removable card present or not

This makes it difficult to hard code the root device, if it is on the
non-removable device. E.g. if SD card is present eMMC will be mmcblk1,
if SD card is not present at boot, eMMC will be mmcblk0.

If the aliases-node is not found, the driver will act as before.

The original patch is from here:
https://www.mail-archive.com/linux-mmc@vger.kernel.org/msg26472.html

The patch requires additional alias_id fix or it won't work.
Because according to function definition the max_idx parameter of idx_alloc
is exclusive, so need add 1 or it will be unable to find the proper idx
within an invalid range.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Dong Aisheng <b29396@freescale.com>
(cherry picked from commit 35928d6c6a76a24a16edfa636f4c08293614a1e0)

7 years agoof: Add helper for getting the maximum alias index for a stem
Sascha Hauer [Thu, 22 May 2014 15:30:22 +0000 (17:30 +0200)]
of: Add helper for getting the maximum alias index for a stem

of_alias_max_index will return the maximum number for which an
alias of a given stem exists. This is useful for frameworks
whishing to reserve a number of device slots from dynamic
allocation.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
(cherry picked from commit 5ce2ad39b36fd48b9f77249198655da7cbcc7ee5)

Conflicts:
include/linux/of.h

7 years agoMLK-11620 ARM: imx: single SOC config/compile support
Bai Ping [Thu, 24 Sep 2015 16:49:13 +0000 (00:49 +0800)]
MLK-11620 ARM: imx: single SOC config/compile support

Currently, all i.MX6 config (CONFIG_SOC_IMX6XXX) are enabled, so
build and function are OK for every i.MX6 SOC, however, when only
one SOC config is selected in menu config, for example, users only
needs i.MX6SL, they might deselect all reset SOC configs, then the
build will fail, this is unacceptable.

Signed-off-by: Anson Huang <b20788@freescale.com>
Signed-off-by: Bai Ping <b51503@freescale.com>
7 years agoMLK-11566-6 mlb: add i.mx6sx support
Anson Huang [Mon, 21 Sep 2015 10:51:21 +0000 (18:51 +0800)]
MLK-11566-6 mlb: add i.mx6sx support

i.MX6SX has MLB150, add support for it.

Signed-off-by: Anson Huang <b20788@freescale.com>
(cherry picked from commit 99d374da7d49d45800821b28d55e032387f1cc67)

7 years agoMLK-11566-5 drvier: imx_sema4: add dummy function
Anson Huang [Fri, 18 Sep 2015 15:55:00 +0000 (23:55 +0800)]
MLK-11566-5 drvier: imx_sema4: add dummy function

When CONFIG_IMX_SEMA4 is NOT set, some modules may
still call SEMA4 APIs, need to add dummy function
to make sure build pass.

Signed-off-by: Anson Huang <b20788@freescale.com>
(cherry picked from commit 5a2537095621da25c8967a0ccdbb8b0029e14c94)

7 years agoMLK-11566-4 mxc: gpu: enable gpu for all i.mx6 SOC
Anson Huang [Fri, 18 Sep 2015 15:54:02 +0000 (23:54 +0800)]
MLK-11566-4 mxc: gpu: enable gpu for all i.mx6 SOC

GPU is NOT just depending on i.MX6Q, enable it for all i.MX6 SOCs.

Signed-off-by: Anson Huang <b20788@freescale.com>
(cherry picked from commit 06b8da5c28dc2fec0160bc60cc846d4910a05b41)

7 years agoMLK-11566-3 input: keyboard: add i.mx6ul support for snvs power key
Anson Huang [Fri, 18 Sep 2015 15:53:03 +0000 (23:53 +0800)]
MLK-11566-3 input: keyboard: add i.mx6ul support for snvs power key

i.MX6UL has SNVS power key, add support for it.

Signed-off-by: Anson Huang <b20788@freescale.com>
(cherry picked from commit 095c876a12e27220cb91cb9dc376a20b6bf259e4)

7 years agoMLK-11566-2 mxc: mipi: make mipi csi2 common for SOC_IMX6 and SOC_IMX7
Anson Huang [Fri, 18 Sep 2015 15:52:21 +0000 (23:52 +0800)]
MLK-11566-2 mxc: mipi: make mipi csi2 common for SOC_IMX6 and SOC_IMX7

MIPI_CSI2 is necessary for modules build, enable it for all
i.MX6 and i.MX7 SOC.

Signed-off-by: Anson Huang <b20788@freescale.com>
(cherry picked from commit 2e2025df741a79620be9b96fa6fb0f2e2e40fdea)

7 years agoMLK-11566-1 dma: add MXS_DMA for all i.mx6 SOC
Anson Huang [Fri, 18 Sep 2015 15:51:15 +0000 (23:51 +0800)]
MLK-11566-1 dma: add MXS_DMA for all i.mx6 SOC

Enable MSX_DMA for all i.MX6 SOCs.

Signed-off-by: Anson Huang <b20788@freescale.com>
(cherry picked from commit 70e7d05ca89fff0d4c8515cd3933b23082bb2eaf)

7 years agoMLK-11661: ipuv3: Fix build warning
Sandor Yu [Wed, 30 Sep 2015 08:55:01 +0000 (16:55 +0800)]
MLK-11661: ipuv3: Fix build warning

Fix buiulding warning:
drivers/mxc/ipu3/ipu_disp.c:435:29: warning: initialization discards
'const' qualifier from pointer target type
[-Wdiscarded-array-qualifiers]
 {{DP_COM_CONF_CSC_DEF_BOTH, &rgb2ycbcr_coeff}, {0, 0}, {0, 0},
 {DP_COM_CONF_CSC_DEF_BG, &rgb2ycbcr_coeff}, {DP_COM_CONF_CSC_DEF_BG,
 &rgb2ycbcr_coeff} },

Signed-off-by: Sandor Yu <R01008@freescale.com>
7 years agoMLK-11657: IPU: check ldb clock with clk name
Sandor Yu [Wed, 30 Sep 2015 08:15:00 +0000 (16:15 +0800)]
MLK-11657: IPU: check ldb clock with clk name

4.1 kernel apply the followed patch:
commit 73e0e496afdac9a5190eb3b9c51fdfebcc14ebd4
clkdev: Always allocate a struct clk and call __clk_get() w/ CCF

clock_get will return a new struct clk, so we can't use the pointer
of clk struct to compare clk whether is equal, replace with clk name.

Signed-off-by: Sandor Yu <R01008@freescale.com>
7 years agoMLK-11556-9 clock: correct the parent clock for EPDC pix clock
Robby Cai [Tue, 22 Sep 2015 14:21:57 +0000 (22:21 +0800)]
MLK-11556-9 clock: correct the parent clock for EPDC pix clock

Correct the parent clock for EPDC pixel clock to get desired clock rate.

Signed-off-by: Robby Cai <r63905@freescale.com>
7 years agoMLK-11556-8 ARM: dts: imx6sl-evk: add epdc support
Robby Cai [Thu, 17 Sep 2015 01:41:18 +0000 (09:41 +0800)]
MLK-11556-8 ARM: dts: imx6sl-evk: add epdc support

Add epdc support on i.MX6SoloLite EVK board.
Add 'compatible', 'clocks' property in common imx6sl.dtsi
enable pxp, pmic, epdc in imx6sl-evk.dts

Signed-off-by: Robby Cai <r63905@freescale.com>
7 years agoMLK-11556-7 ARM: dts: imx6dl-sabresd: add epdc support
Robby Cai [Thu, 17 Sep 2015 01:25:53 +0000 (09:25 +0800)]
MLK-11556-7 ARM: dts: imx6dl-sabresd: add epdc support

Add epdc support on i.MX6DL SabreSD board.
Add 'compatible', 'clocks' property in common imx6dl.dtsi
enable pxp, pmic, epdc in imx6dl-sabresd.dts

Signed-off-by: Robby Cai <r63905@freescale.com>
7 years agoMLK-11556-6 ARM: dts: imx7d-sdb: add epdc support
Robby Cai [Wed, 16 Sep 2015 08:00:45 +0000 (16:00 +0800)]
MLK-11556-6 ARM: dts: imx7d-sdb: add epdc support

Add epdc support on i.MX7D SDB board
Since EPDC has pin conflict with ENET1/2, a new DTS file is added.
And EPDC has pin conflict with SIM, so disable SIM by default.

Signed-off-by: Robby Cai <r63905@freescale.com>
7 years agoMLK-11556-5 ARM: dts: imx7d-12x12-arm2: add epdc support
Robby Cai [Wed, 16 Sep 2015 07:36:22 +0000 (15:36 +0800)]
MLK-11556-5 ARM: dts: imx7d-12x12-arm2: add epdc support

Add epdc support on i.MX7D 12x12 LPDDR3 ARM2 board

Signed-off-by: Robby Cai <r63905@freescale.com>
7 years agoMLK-11556-4 defconfig: enable epdc driver
Robby Cai [Wed, 16 Sep 2015 08:03:48 +0000 (16:03 +0800)]
MLK-11556-4 defconfig: enable epdc driver

Enable epdc driver of both version

Signed-off-by: Robby Cai <r63905@freescale.com>
7 years agoMLK-11556-3 epdc: add EPDC driver
Robby Cai [Wed, 16 Sep 2015 01:45:04 +0000 (09:45 +0800)]
MLK-11556-3 epdc: add EPDC driver

mxc_epdc_fb.c for i.MX6SoloLite, and i.MX6DualLite (and i.MX50 as well),
mxc_epdc_v2_fb.c for i.MX7D.

Signed-off-by: Robby Cai <r63905@freescale.com>
7 years agoMLK-11556-2 defconfig: enable pmic max17135 hwmon, mfd, regulator function
Robby Cai [Wed, 16 Sep 2015 06:46:28 +0000 (14:46 +0800)]
MLK-11556-2 defconfig: enable pmic max17135 hwmon, mfd, regulator function

Enable hwmon, mfd, regulator function

Signed-off-by: Robby Cai <r63905@freescale.com>
7 years agoMLK-11556-1 pmic: max17135: add hwmon, mfd and regulator drivers for this pmic
Robby Cai [Wed, 16 Sep 2015 06:39:16 +0000 (14:39 +0800)]
MLK-11556-1 pmic: max17135: add hwmon, mfd and regulator drivers for this pmic

Add PMIC 'MAX17135' module drivers to 4.1.y kernel. These are necessary
to supply power for E-ink panel display functions.

Signed-off-by: Robby Cai <r63905@freescale.com>
7 years agoMLK-11623 ASoC: imx-cs42888: add 32k and 64k sample rate support
Zidan Wang [Thu, 24 Sep 2015 10:59:14 +0000 (18:59 +0800)]
MLK-11623 ASoC: imx-cs42888: add 32k and 64k sample rate support

When codec sysclk is 24576000, the sample rate ratio can be 128, 192,
256, 384, 512, 768, 1024. So 32k, 48k, 64k, 96k, 192k can be support.

Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
(cherry picked from commit b436254cd55dc0d2ebb6d2ca7ce5f58520ea5dbc)

7 years agoMLK-11628 ASoC: fsl_sai: add initial value for is_slave_mode
Zidan Wang [Fri, 25 Sep 2015 06:27:00 +0000 (14:27 +0800)]
MLK-11628 ASoC: fsl_sai: add initial value for is_slave_mode

After playback audio with sai<->wm8960 sound card, is_slave_mode
will be set, but it will not be cleared. So playback audio with
sai<->sii902x sound card will have no voice.

Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
7 years agoMLK-11629 ARM: dts: imx7d-sdb: add sai<->sii902x sound card support
Zidan Wang [Fri, 25 Sep 2015 02:20:32 +0000 (10:20 +0800)]
MLK-11629 ARM: dts: imx7d-sdb: add sai<->sii902x sound card support

add sai<->sii902x sound card support for imx7d-sdb board

Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
7 years agoMLK-10713-2 ASoC: imx-sii902x: Add 96k and 192k sample rate support
Zidan Wang [Wed, 22 Apr 2015 05:01:34 +0000 (13:01 +0800)]
MLK-10713-2 ASoC: imx-sii902x: Add 96k and 192k sample rate support

Add 96k and 192k sample rate support for hdmi audio.

Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
(cherry picked from commit fa94b89ab94ce78800d112d0a013d0c0901d9b78)

7 years agoMLK-10611-2 ASoC: imx-sii902x: forbid using SAI when SAI is being used by other device
Zidan Wang [Fri, 10 Apr 2015 02:27:37 +0000 (10:27 +0800)]
MLK-10611-2 ASoC: imx-sii902x: forbid using SAI when SAI is being used by other device

imx7d-sdb board using one SAI for wm8960 and sii902x hdmi audio, wm8960
using SAI as slave mode and sii902x hdmi audio using SAI as master mode,
so SAI can't be used at the same time.

Forbid palyback(capture) when SAI is being used capture(playback) by other
device.

Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
(cherry picked from commit bac15c28c3b8a57fbe04ea80b8fb5eb47a0211f1)

7 years agoMLK-10518-1 ASoC: imx-sii902x: add machine driver for sii902x hdmi audio
Zidan Wang [Tue, 31 Mar 2015 13:05:51 +0000 (21:05 +0800)]
MLK-10518-1 ASoC: imx-sii902x: add machine driver for sii902x hdmi audio

Add machine driver for sii902x hdmi audio. Restricting by SAI master clock,
the hdmi audio just support 16bit 24bit sample width and 32k 48k sample rate.

Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
(cherry picked from commit 8dc359b46c81105efcd13007325d9cadc9a6214d)

7 years agoMLK-11387-3 ARM: imx: update ddr freq scale setting on imx7d
Anson Huang [Thu, 20 Aug 2015 12:25:28 +0000 (20:25 +0800)]
MLK-11387-3 ARM: imx: update ddr freq scale setting on imx7d

To pass stress test in high temperature environment,
according to design team's suggestion, need to adjust
ddr phy setting for LPDDR3.

Signed-off-by: Anson Huang <b20788@freescale.com>