linux.git
7 years agoMLK-15950 input: egalax_ts: switch to i2c interface before wake up
Haibo Chen [Thu, 3 Aug 2017 09:02:42 +0000 (17:02 +0800)]
MLK-15950 input: egalax_ts: switch to i2c interface before wake up

For HannStar (HSD100PXN1 Rev: 1-A00C11 F/W:0634) LVDS touch screen,
it has a special request for the EETI touch controller. The host
needs to trigger I2C event to device FW at booting first, and then
the FW can switch to I2C interface. Otherwise, the FW can’t  work
with I2C interface, and can't generate any interrupt when touch
the screen.

This patch send an I2C command before the device wake up, make sure
the device switch to I2C interface first.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Reviewed-by: Andy Duan <fugang.duan@nxp.com>
7 years agoMLK-16130-4: ARM64: dts: add hdmi audio device node
Shengjiu Wang [Thu, 3 Aug 2017 03:08:24 +0000 (11:08 +0800)]
MLK-16130-4: ARM64: dts: add hdmi audio device node

add hdmi audio device node

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
7 years agoMLK-16130-3: ARM64: defconfig: built-in cadence hdmi sound card
Shengjiu Wang [Tue, 1 Aug 2017 10:09:12 +0000 (18:09 +0800)]
MLK-16130-3: ARM64: defconfig: built-in cadence hdmi sound card

built-in cadence hdmi sound card

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
7 years agoMLK-16130-2: ASoC: fsl: add machine driver for cadence hdmi
Shengjiu Wang [Tue, 1 Aug 2017 10:08:54 +0000 (18:08 +0800)]
MLK-16130-2: ASoC: fsl: add machine driver for cadence hdmi

The machine driver will call the API which is provided by
the cadence to configure the audio features.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
7 years agoMLK-16130-1: ASoC: fsl_sai: enable TCE/RCE according to input channels
Shengjiu Wang [Tue, 1 Aug 2017 08:10:38 +0000 (16:10 +0800)]
MLK-16130-1: ASoC: fsl_sai: enable TCE/RCE according to input channels

If there is only two channels input and slots is 2, then enable one
port is enough for data transfer. so enable the TCE/RCE according to
the input channels and slots configuration.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
7 years agoMLK-16131 arm64: dts: freescale: imx8mq: disable pwm led for over-drive mode
Anson Huang [Thu, 3 Aug 2017 03:19:21 +0000 (11:19 +0800)]
MLK-16131 arm64: dts: freescale: imx8mq: disable pwm led for over-drive mode

On i.MX8MQ EVK A1 board, GPIO1_IO13 pin is shared between
GPIO regulator and PWM2, when using over-drive dtb, there
will be no PWM2 function, disable PWM LED to avoid below
message during suspend/resume test:

[   19.754862] PM: resume of devices complete after 118.732 msecs
[   19.761740] Restarting tasks ...
[   19.761741] leds_pwm pwmleds: unable to request PWM for PWM2: -517
[   19.773557] done.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-16119-05: dts: Disabled hdmi property
Sandor Yu [Thu, 3 Aug 2017 04:10:22 +0000 (12:10 +0800)]
MLK-16119-05: dts: Disabled hdmi property

HDMI driver loading depend on HDMI FW.
But not all boards default included HDMI FW.
So disabled hdmi property in dts now.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-16119-04: defconfig: Add mx8 hdmi driver to build list
Sandor Yu [Wed, 2 Aug 2017 06:49:29 +0000 (14:49 +0800)]
MLK-16119-04: defconfig: Add mx8 hdmi driver to build list

Add CONFIG_FB_MX8_HDMI to default build list.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-16119-03: dts: Enable hdmi driver to imx8mq evk dts
Sandor Yu [Wed, 2 Aug 2017 06:48:29 +0000 (14:48 +0800)]
MLK-16119-03: dts: Enable hdmi driver to imx8mq evk dts

Add hdmi driver property to imx8mq evk.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-16119-02: fbdev: add hdmi and api to kernel build
Sandor Yu [Wed, 2 Aug 2017 06:46:17 +0000 (14:46 +0800)]
MLK-16119-02: fbdev: add hdmi and api to kernel build

Add hdmi and api driver to kernel build.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-16119-01: fbdev: Add mx8 hdmi driver
Sandor Yu [Tue, 1 Aug 2017 09:41:01 +0000 (17:41 +0800)]
MLK-16119-01: fbdev: Add mx8 hdmi driver

Add hdmi api code from cadence.
Add mx8 hdmi driver.
Basic hdmi function:
no hotplug and no video mode dynamic change.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-16120 gpu: imx: dpu: fetchdecode: Use interpolate upsampling mode for NV16/61
Liu Ying [Wed, 2 Aug 2017 06:19:10 +0000 (14:19 +0800)]
MLK-16120 gpu: imx: dpu: fetchdecode: Use interpolate upsampling mode for NV16/61

According to dpu spec, we should use interpolate upsampling mode for NV16/61.
This patch changes the mode from replicate to interpolate for the two pixel
formats.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMGS-3150 gpu: Integrate 6.2.3 official driver release
Xianzhong [Wed, 2 Aug 2017 01:51:08 +0000 (09:51 +0800)]
MGS-3150 gpu: Integrate 6.2.3 official driver release

Upgrade GPU driver to enable OpenVX 1.1 for i.MX8QM,
Integrated more bug-fixing for critical gpu issues.

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
7 years agoMLK-16108 PCI: imx: turn on pd for imx8mq pcie
Richard Zhu [Wed, 2 Aug 2017 01:45:41 +0000 (09:45 +0800)]
MLK-16108 PCI: imx: turn on pd for imx8mq pcie

Root cause:
Poewr domain of the PCIEs are turned off, and
not turned on properly in previous ATF.

The PDs of PCIE1/2 have the dependency.
Both of the PDs should be operated at same time.
This issue is gone after update the PDs operations
in ATF.
In order to make sure that the PDs are turned on,
Turn power domain for imx8mq pcie explicitly in
driver.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-16121-2 arm64: dts: freescale: imx8mq: add over-drive mode support
Anson Huang [Wed, 2 Aug 2017 06:41:53 +0000 (14:41 +0800)]
MLK-16121-2 arm64: dts: freescale: imx8mq: add over-drive mode support

i.MX8MQ can run at over-drive mode, it will need to increase
VDD_ARM voltage, add new dtb to support it, this feature
is only available on A1 board with GPIO1_IO13 to control
VDD_ARM voltage.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-16121-1 cpufreq: imx8mq: add gpio regulator support
Anson Huang [Wed, 2 Aug 2017 06:39:18 +0000 (14:39 +0800)]
MLK-16121-1 cpufreq: imx8mq: add gpio regulator support

i.MX8MQ can run at over-drive mode which needs
increasing VDD_ARM voltage, add gpio regulator support
for over-drive mode.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-16114: RPMSG: Fixed ulp can't boot after e12586
Frank Li [Tue, 1 Aug 2017 17:16:58 +0000 (12:16 -0500)]
MLK-16114: RPMSG: Fixed ulp can't boot after e12586

Need call MU_Init before call other function

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com>
7 years agoMLK-16054-2 ARM64: dts: fsl-imx8qm-lpddr4-arm2: add OTG1 vbus power pinctrl
Peter Chen [Mon, 24 Jul 2017 02:30:01 +0000 (10:30 +0800)]
MLK-16054-2 ARM64: dts: fsl-imx8qm-lpddr4-arm2: add OTG1 vbus power pinctrl

Add OTG1 vbus power pinctrl.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
7 years agoMLK-16054-1 ARM64: dts: fsl-imx8qxp-lpddr4-arm2: add OTG1 vbus power pinctrl
Peter Chen [Mon, 3 Jul 2017 07:19:31 +0000 (15:19 +0800)]
MLK-16054-1 ARM64: dts: fsl-imx8qxp-lpddr4-arm2: add OTG1 vbus power pinctrl

Add OTG1 vbus power pinctrl.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
7 years agoMLK-16109-2 arm64: defconfig: add CONFIG_DEVICE_THERMAL support
Anson Huang [Tue, 1 Aug 2017 07:56:45 +0000 (15:56 +0800)]
MLK-16109-2 arm64: defconfig: add CONFIG_DEVICE_THERMAL support

Add CONFIG_DEVICE_THERMAL support by default.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-16109-1 thermal: qoriq: add device cooling support
Anson Huang [Tue, 1 Aug 2017 07:53:31 +0000 (15:53 +0800)]
MLK-16109-1 thermal: qoriq: add device cooling support

On i.MX8MQ, once temperautre exceeds hot threshold, some
modules like GPU etc. can reduce its frequency to cool down
the chip. All modules can register this device cooling
notifier to receive thermal HOT notification.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoarm64: dts: freescale: imx8qm: add reserve memory for rpmsg
Anson Huang [Tue, 1 Aug 2017 06:27:34 +0000 (14:27 +0800)]
arm64: dts: freescale: imx8qm: add reserve memory for rpmsg

RPMSG needs to share memory with M4, and SCD needs to set
this shared memory property accordingly, so the memory
region needs to be fixed.

Here make CMA range same as its size, so that SCD only sets
this region as share property. And also reserve another
4MB for RPMSG.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-16104-2 dma: imx-sdma: add index for multi sdma devices case
Robin Gong [Mon, 31 Jul 2017 08:44:32 +0000 (16:44 +0800)]
MLK-16104-2 dma: imx-sdma: add index for multi sdma devices case

On i.mx8mscale, there are two sdma instances here, and common dma
frameowrk will get channel dynamicly from any available channel whatever
it's from the first sdma device or the second sdma device. But actually,
some IP like SAI only work in sdma2 not sdma1. To make sure get sdma
channel from the right sdma device, add index to match.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
7 years agoMLK-16104-1 dma: imx-sdma: add i.mx8m for multi sdma devices
Robin Gong [Mon, 31 Jul 2017 08:59:26 +0000 (16:59 +0800)]
MLK-16104-1 dma: imx-sdma: add i.mx8m for multi sdma devices

Add i.mx8m for multi sdma devices.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
7 years agoMGS-3145 gpu: dts: update GPU clock parent on i.MX8MQ
Chenyan Feng [Mon, 31 Jul 2017 07:22:00 +0000 (15:22 +0800)]
MGS-3145 gpu: dts: update GPU clock parent on i.MX8MQ

Referred to the mscale design document, GPU has the designated clock PLL
targeting for 800MHz, update the assigned-clk-parent to GPU_PLL_OUT in
GPU device tree, fsl-imx8mq.dtsi.

Signed-off-by: Chenyan Feng <ella.feng@nxp.com>
7 years agoMLK-16102 driver: clk: fix clock source sels for gpu ahb on i.mx8mq
Bai Ping [Mon, 31 Jul 2017 02:43:28 +0000 (10:43 +0800)]
MLK-16102 driver: clk: fix clock source sels for gpu ahb on i.mx8mq

One of the GPU clock source should be from 'gpu_pll_out', not gpu_pll'.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
7 years agoMLK-16099-2: ASoc: fsl: length is not same for alloc and free memory
Weiguang Kong [Mon, 31 Jul 2017 01:43:29 +0000 (09:43 +0800)]
MLK-16099-2: ASoc: fsl: length is not same for alloc and free memory

In fsl_hifi4_probe(), the length for dma_alloc_coherent() is
MSG_BUF_SIZE + INPUT_BUF_SIZE + OUTPUT_BUF_SIZE +
FIRMWARE_DATA_BUF_SIZE + SCRATCH_DATA_BUF_SIZE;

However, in fsl_hifi4_remove(), the length for dma_free_coherent()
is MSG_BUF_SIZE + INPUT_BUF_SIZE + OUTPUT_BUF_SIZE +
FIRMWARE_DATA_BUF_SIZE;

By keeping the same length between dma_alloc_coherent() and
dma_free_coherent() to fix this issue.

Signed-off-by: Weiguang Kong <weiguang.kong@nxp.com>
7 years agoMLK-16099-1: ASoc: fsl: fix crash issue when no dsp core lib
Weiguang Kong [Fri, 28 Jul 2017 08:42:32 +0000 (16:42 +0800)]
MLK-16099-1: ASoc: fsl: fix crash issue when no dsp core lib

When dsp driver can't find the dsp core lib in loading codec
process, the kernel will be crashed. This issue is caused
by unreasonable way of error handling.

By changing the way of error handling to fix this issue.

Signed-off-by: Weiguang Kong <weiguang.kong@nxp.com>
7 years agoMLK-16093-3 cpufreq: imx8mq: add cooling device support
Anson Huang [Fri, 28 Jul 2017 02:30:35 +0000 (10:30 +0800)]
MLK-16093-3 cpufreq: imx8mq: add cooling device support

Add i.MX8MQ cooling device support, when temperature
exceeds passive threshold, cpu-freq will drop to lowest
set-point, and once temperature drops below passive
threshold, cpu-freq will restore.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-16093-2 thermal: qoriq: add necessary callbacks for cooling support
Anson Huang [Fri, 28 Jul 2017 02:22:48 +0000 (10:22 +0800)]
MLK-16093-2 thermal: qoriq: add necessary callbacks for cooling support

Add get_trend and set_trip_temp to support i.MX8MQ cooling
device, get_trend is to customize cooling governor behavior,
once temperature exceeds passive trip, cooling device will work
at full function, and set_trip_temp is for updating trip
temp when do thermal test via modifying trip temp from sysfs.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-16093-1 arm64: dts: freescale: imx8mq: add cpu cooling device
Anson Huang [Fri, 28 Jul 2017 02:20:51 +0000 (10:20 +0800)]
MLK-16093-1 arm64: dts: freescale: imx8mq: add cpu cooling device

Add cpu cooling device support for i.MX8MQ.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-15978 arm64: dts: imx8: change can clock rate to 40Mhz
Dong Aisheng [Thu, 13 Jul 2017 12:40:25 +0000 (20:40 +0800)]
MLK-15978 arm64: dts: imx8: change can clock rate to 40Mhz

CAN needs at least 40Mhz PE clock rate to support CAN FD well.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
7 years agoMLK-16101 MU: avoid read mu version register every scu call
Frank Li [Fri, 28 Jul 2017 20:10:28 +0000 (15:10 -0500)]
MLK-16101 MU: avoid read mu version register every scu call

Generally read mu registers will take about 225ns.
Overall scu_clk_enable function takes about 8000ns to 150000ns.
Although read version register just take 3% time,
it is not necessary to read version register every time.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
7 years agoMLK-16062-5: dts: i.MX8QM arm2 default support 4 mipi sensors
Sandor Yu [Fri, 28 Jul 2017 03:48:23 +0000 (11:48 +0800)]
MLK-16062-5: dts: i.MX8QM arm2 default support 4 mipi sensors

i.MX8QM can support 4 camera sensors or 8 camera sensors.

For eight sensors case, it must need all eight sensors on board,
and for four sensors case, it must need all four sensors on board,
otherwise all mipi sensor can't work.

Four mipi sensors case is more popular than eight sensors.
so change to default support four sensors.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-16062-4: dts: Add imaging ss drivers to i.MX8QXP arm2
Sandor Yu [Mon, 24 Jul 2017 06:20:20 +0000 (14:20 +0800)]
MLK-16062-4: dts: Add imaging ss drivers to i.MX8QXP arm2

Add imaging SS drivers to i.MX8QXP lpddr4 arm2 board.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-16062-3: mx8qxp clk: imaging SS clock power domain update
Sandor Yu [Mon, 24 Jul 2017 02:38:44 +0000 (10:38 +0800)]
MLK-16062-3: mx8qxp clk: imaging SS clock power domain update

Update i.MX8QXP imaging SS clock power domain setting.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-16062-2: i.MX8 imaging: Add debug log to imaging SS driver
Sandor Yu [Fri, 28 Jul 2017 03:08:27 +0000 (11:08 +0800)]
MLK-16062-2: i.MX8 imaging: Add debug log to imaging SS driver

Add debug log to imaging SS drivers.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-16062-1: Fix PXL mipi csi0/1 clock gate register address
Sandor Yu [Thu, 27 Jul 2017 10:21:56 +0000 (18:21 +0800)]
MLK-16062-1: Fix PXL mipi csi0/1 clock gate register address

mipi csi0/1 clock gate register address swapped.
It will cause mipi csi0/1 failed to work.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-16046: mx8 imaging SS: Fix build warning
Sandor Yu [Fri, 21 Jul 2017 04:07:44 +0000 (12:07 +0800)]
MLK-16046: mx8 imaging SS: Fix build warning

Fix build warning:
warning: missing braces around initializer [-Wmissing-braces]

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-16007-2: ASoC: fsl_asrc: Enable automatic configuration for P2P
Mihai Serban [Wed, 26 Jul 2017 08:17:09 +0000 (11:17 +0300)]
MLK-16007-2: ASoC: fsl_asrc: Enable automatic configuration for P2P

Use automatic selection of processing options and internal measured
ratio for P2P conversions.

The conversion done by ASRC depends on the IPG master clock frequency
that can have any value between 130MHz and 200MHz. The documentation
states that to support 10 channels with 192KHz sampling rate the
master clock frequency must be at least 160MHz.
When the master clock cannot be configured to faster frequencies the
ASRC can still convert the samples but it have to be configured to
automatically adjust the processing options and conversion ratio.

Signed-off-by: Mihai Serban <mihai.serban@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-16007-1: ASoC: fsl_asrc: Fix automatic mode configuration
Mihai Serban [Wed, 26 Jul 2017 13:24:29 +0000 (16:24 +0300)]
MLK-16007-1: ASoC: fsl_asrc: Fix automatic mode configuration

Fix configuration for automatic selection of processing options and
internal measured ratio.

ASRC can automatically select its pre-processing and post-processing
options based on the frequencies it detects. To use this option the
two parameter registers ASR76K and ASR56K must be correctly configured
based on IPG clock frequency and the corresponding ATSx bits from the
ASRCTR register must be set.

When both the input sampling clock and the output sampling clock are
physically available, the rate conversion can work by configuring the
physical clocks. For this use case the ASRCTR:USRx and ASRCTR:IRDx
bits have to be configured as 1 and 0 respectively.

Signed-off-by: Mihai Serban <mihai.serban@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-16096 arm64: dts: imx8qxp-lpddr4-arm2: correct i2c1 bus pinctrl
Fugang Duan [Fri, 28 Jul 2017 03:21:13 +0000 (11:21 +0800)]
MLK-16096 arm64: dts: imx8qxp-lpddr4-arm2: correct i2c1 bus pinctrl

Correct i2c1 bus scl pin mux.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-16095-02 arm64: dts: imx8qxp-mek: enable i2c bus switch PCA9646
Fugang Duan [Thu, 27 Jul 2017 10:11:22 +0000 (18:11 +0800)]
MLK-16095-02 arm64: dts: imx8qxp-mek: enable i2c bus switch PCA9646

- Enable i2c bus switch PCA9646.
- Enable gpio expander gpio support on MEK board.
- Add i2c1 device sensor in dts file.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-16095-01 i2c: mux: pca954x: add i2c bus switch PCA9646 chip support
Fugang Duan [Fri, 28 Jul 2017 03:22:31 +0000 (11:22 +0800)]
MLK-16095-01 i2c: mux: pca954x: add i2c bus switch PCA9646 chip support

Add i2c bus switch PCA9646 chip support, which 2-wire bus switch
and buffered 4-channel.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-16097-2 PCI: imx: specify the imx8qxp form imx8qm
Richard Zhu [Fri, 28 Jul 2017 04:39:54 +0000 (12:39 +0800)]
MLK-16097-2 PCI: imx: specify the imx8qxp form imx8qm

On iMX8QM, functions of PCIEB relied on PCIEA.
But PCIEB used on iMX8QXP can work standalone.
Specify the iMX8QXP PCIE in driver.
Up to now, only iMX6QP PCIE may use the EXT OSC,
specify the EXT/EXT_SRC clocks for iMX6QP only.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-16097-1 ARM64: imx8qxp: distinguish qm and qxp for pcie
Richard Zhu [Fri, 28 Jul 2017 04:38:28 +0000 (12:38 +0800)]
MLK-16097-1 ARM64: imx8qxp: distinguish qm and qxp for pcie

Use imx8qxp to specify the imx8qxp pcie support

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-16052-2 PCI: imx: fix the pcieb link down issue
Richard Zhu [Thu, 27 Jul 2017 07:58:27 +0000 (15:58 +0800)]
MLK-16052-2 PCI: imx: fix the pcieb link down issue

The calibration value of PCIEA is mandatory required
by PCIEB on iMX8QM.

The RSTs of the PCIEA would be cleared when the PDs
of PCIEA are turned off.
The calibration value of PCIEA would be lost when the
RSTs of PCIEA are cleared.
So, the RSTs of PCIEA should be asserted when enable
the PCIEB port. Otherwise, PCIEB wouldn't be functional.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-16052-1 arm64: imx8qm: refine pcie power on imx8qm
Richard Zhu [Mon, 24 Jul 2017 03:20:09 +0000 (11:20 +0800)]
MLK-16052-1 arm64: imx8qm: refine pcie power on imx8qm

- Refine the pd definitions of the imx8qm/qxp hsio.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-13951-3 arm64: dts: fsl-imx8qm: enable AMIX
Viorel Suman [Thu, 27 Jul 2017 08:47:05 +0000 (11:47 +0300)]
MLK-13951-3 arm64: dts: fsl-imx8qm: enable AMIX

Enable AMIX in i.MX8 QM.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-13951-2 arm64: dts: fsl-imx8qm: enable SAI6, SAI7 and AMIX
Viorel Suman [Mon, 24 Jul 2017 11:16:26 +0000 (14:16 +0300)]
MLK-13951-2 arm64: dts: fsl-imx8qm: enable SAI6, SAI7 and AMIX

Enable SAI6, SAI7 and AMIX nodes.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-13951-1 clk: imx8qm: fix PD for SAI1 and SAI2 MCLK_SELs
Viorel Suman [Thu, 27 Jul 2017 07:49:45 +0000 (10:49 +0300)]
MLK-13951-1 clk: imx8qm: fix PD for SAI1 and SAI2 MCLK_SELs

Fix PD for SAI1 and SAI2 MCLK_SELs

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-15986-9: arm64: config: video: fbdev: Add fbdev config options
Cristina Ciocan [Thu, 6 Jul 2017 09:28:16 +0000 (12:28 +0300)]
MLK-15986-9: arm64: config: video: fbdev: Add fbdev config options

This patch enables fbdev configs for LCDIF, MIPI DSI Northwest, Truly panel
and ADV7535 MIPI-to-HDMI converter.

Signed-off-by: Cristina Ciocan <cristina-mihaela.ciocan@nxp.com>
7 years agoMLK-15986-8: video: fbdev: Add 64bit framebuffer support for ADV7535
Cristina Ciocan [Wed, 5 Jul 2017 17:26:39 +0000 (20:26 +0300)]
MLK-15986-8: video: fbdev: Add 64bit framebuffer support for ADV7535

This patch adds support for ADV7535  MIPI-to-HDMI converter for 64bit
platforms.

ADV7535 driver changes are added from Fancy Fang's commit ca389b0895c9
("MLK-15322-11: video: fbdev: adv7535: enable adv7535 driver").

Signed-off-by: Cristina Ciocan <cristina-mihaela.ciocan@nxp.com>
7 years agoMLK-15986-7: video: fbdev: Add MIPI DSI NORTHWEST support for 64bit platforms
Cristina Ciocan [Wed, 5 Jul 2017 17:14:47 +0000 (20:14 +0300)]
MLK-15986-7: video: fbdev: Add MIPI DSI NORTHWEST support for 64bit platforms

This patch adds support for 64bit platforms, on top of existing 32bit
support. Among some noticeable differences that occurred for the MIPI DSI
Northwest controller: 4 lane support is added and power management differs.

MIPI DSI Northwest driver changes are added from Fancy Fang's commit
df47fccaf6 "MLK-15322-8 video: fbdev: imx_northwest_dsi: enable Northwest
mipi dsi driver".

Signed-off-by: Cristina Ciocan <cristina-mihaela.ciocan@nxp.com>
7 years agoMLK-15986-6: video: fbdev: Add LCDIF 64bit support
Cristina Ciocan [Wed, 5 Jul 2017 15:25:53 +0000 (18:25 +0300)]
MLK-15986-6: video: fbdev: Add LCDIF 64bit support

This patch enables LCDIF support for 64bit platforms.

Code for the LCDIF can be found in drivers/video/fbdev/mxsfb.c. Add 64bit
debug conditional directives to LCDIF code since this is a new option for
64bit platforms.

LCDIF driver changes are added from Fancy Fang's commit c12dd5e1c24c
("MLK-15322-4 video: fbdev: imx: lcdif: enable lcdif driver for imx8mq").

Signed-off-by: Cristina Ciocan <cristina-mihaela.ciocan@nxp.com>
7 years agoMLK-15986-5: video: fbdev: Add 64bit fbdev option
Cristina Ciocan [Wed, 5 Jul 2017 14:10:30 +0000 (17:10 +0300)]
MLK-15986-5: video: fbdev: Add 64bit fbdev option

Add FB_IMX64 config option that will allow fbdev drivers to offer future
support for 64bit platforms.

Signed-off-by: Cristina Ciocan <cristina-mihaela.ciocan@nxp.com>
7 years agoMLK-15986-4: video: fbdev: Separate display framework code from fb driver code
Cristina Ciocan [Wed, 5 Jul 2017 13:31:42 +0000 (16:31 +0300)]
MLK-15986-4: video: fbdev: Separate display framework code from fb driver code

The display driver framework code in drivers/video/fbdev/mxc/mxc_dispdrv.c
is currently compiled along with fb driver code in
drivers/video/fbdev/mxc. This is a framework that is also used by another
fb driver that can be found in drivers/video/fbdev/mxsfb.c.

This patch separates the framework compilation by pulling it into its
own CONFIG_FB_MXC_DISP_FRAMEWORK that can be selected by any fb driver
and/or panel whose implementation relies on this framework.

Signed-off-by: Cristina Ciocan <cristina-mihaela.ciocan@nxp.com>
7 years agoMLK-15986-3: Revert "MLK-15322-4 video: fbdev: imx: lcdif: enable lcdif driver for...
Cristina Ciocan [Mon, 17 Jul 2017 08:08:59 +0000 (11:08 +0300)]
MLK-15986-3: Revert "MLK-15322-4 video: fbdev: imx: lcdif: enable lcdif driver for imx8mq"

This reverts commit c12dd5e1c24c470bb391ebaffe249d5cb98acb8e.

Signed-off-by: Cristina Ciocan <cristina-mihaela.ciocan@nxp.com>
7 years agoMLK-15986-2: Revert "MLK-15322-8 video: fbdev: imx_northwest_dsi: enable Northwest...
Cristina Ciocan [Mon, 17 Jul 2017 08:08:45 +0000 (11:08 +0300)]
MLK-15986-2: Revert "MLK-15322-8 video: fbdev: imx_northwest_dsi: enable Northwest mipi dsi driver"

This reverts commit df47fccaf638cf17176d202dbf05d12b17cbd3da.

Signed-off-by: Cristina Ciocan <cristina-mihaela.ciocan@nxp.com>
7 years agoMLK-15986-1: Revert "MLK-15322-11: video: fbdev: adv7535: enable adv7535 driver"
Cristina Ciocan [Mon, 17 Jul 2017 07:52:29 +0000 (10:52 +0300)]
MLK-15986-1: Revert "MLK-15322-11: video: fbdev: adv7535: enable adv7535 driver"

This reverts commit ca389b0895c975b86af286064e81cd86037e09e6.

Signed-off-by: Cristina Ciocan <cristina-mihaela.ciocan@nxp.com>
7 years agoMLK-16013-8 ARM64: dts: imx8mq: add dis_u2_susphy_quirk for usb
Li Jun [Fri, 14 Jul 2017 15:13:29 +0000 (23:13 +0800)]
MLK-16013-8 ARM64: dts: imx8mq: add dis_u2_susphy_quirk for usb

This is temp workaround to resolve usb host enumeration issue
by disable usb2 phy suspend.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-7 usb: dwc3: gadget: increase timeout count for ep cmd
Li Jun [Mon, 5 Jun 2017 10:29:43 +0000 (18:29 +0800)]
MLK-16013-7 usb: dwc3: gadget: increase timeout count for ep cmd

Increase the timeout value for wait ep command complete, this is temp
solution to workaround it but no harm any good cases.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-6 Documentation: usb: dwc3: add suspend clk setting
Li Jun [Mon, 17 Jul 2017 16:52:34 +0000 (00:52 +0800)]
MLK-16013-6 Documentation: usb: dwc3: add suspend clk setting

Add dt documentation for specify the suspend clk and its caculation.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-5 ARM64: dts: imx8mq: add power-down-scale property
Li Jun [Mon, 17 Jul 2017 16:51:39 +0000 (00:51 +0800)]
MLK-16013-5 ARM64: dts: imx8mq: add power-down-scale property

As i.mx8mq USB3 suspend clock setting is 32KHz, and the default
power down scale setting is not correct, so add a property to
fix it.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-4 usb: dwc3: add suspend_clk setting interface
Li Jun [Thu, 13 Apr 2017 15:00:00 +0000 (23:00 +0800)]
MLK-16013-4 usb: dwc3: add suspend_clk setting interface

Some dwc3 based USB3 IP may have a wrong default suspend clk
setting, so add an interface to correct it by dts property.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-3 usb: dwc3: of-simple: add imx8mq usb support
Li Jun [Tue, 18 Jul 2017 12:40:05 +0000 (20:40 +0800)]
MLK-16013-3 usb: dwc3: of-simple: add imx8mq usb support

Add i.mx8mq USB3 phy compatible string for dwc3-of-simple driver.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-2 phy: add imx8mq usb phy driver
Li Jun [Fri, 14 Jul 2017 20:22:30 +0000 (04:22 +0800)]
MLK-16013-2 phy: add imx8mq usb phy driver

Use generic phy driver for i.mx8mq USB3 phy reset and clock enable.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-1 ARM64: dts: fsl-imx8mq: add controller glue layer and phy node
Li Jun [Tue, 20 Jun 2017 16:17:27 +0000 (00:17 +0800)]
MLK-16013-1 ARM64: dts: fsl-imx8mq: add controller glue layer and phy node

Restruct i.mx8mq usb3 dts node, add phy and of-simple node, use of-simple
driver to handle the glue layer as there is only clock handling right now,
use generic phy driver model to handle the phy init.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoarm64: dts: freescale: Fix asrc1 node address
Daniel Baluta [Wed, 26 Jul 2017 14:56:51 +0000 (17:56 +0300)]
arm64: dts: freescale: Fix asrc1 node address

According to DMA_Audio_8X_v0.5.04.docx, ASRC1
is mapped at 0x59000000 + 0x800000 = 0x59800000.

Most likely, the current value is a copy/paste error
from ASRC0.

Fixes: cc20b6b242 ("MLK-15317-5: ARM64: dts: Add asrc1 node definition")
Reported-by: Viorel Suman <viorel.suman@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-16089: mtd: gpmi-nand: calculate the correct free oob space for large oob layout...
Han Xu [Thu, 27 Jul 2017 02:20:00 +0000 (21:20 -0500)]
MLK-16089: mtd: gpmi-nand: calculate the correct free oob space for large oob layout setting

for the large oob layout setting, need to calculate the correct free oob
space.

Signed-off-by: Han Xu <han.xu@nxp.com>
7 years agoMLK-16073 ARM64: dts: enable pcie on imx8qxp mek board
Richard Zhu [Mon, 24 Jul 2017 09:47:58 +0000 (17:47 +0800)]
MLK-16073 ARM64: dts: enable pcie on imx8qxp mek board

Enable the pcie support for iMX8QXP MEK board.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-15926: ARM64: dts: fsl-imx8mq-evk: Enable WiFi
Tiberiu Breana [Tue, 11 Jul 2017 07:43:51 +0000 (10:43 +0300)]
MLK-15926: ARM64: dts: fsl-imx8mq-evk: Enable WiFi

Add bcmdhd WiFi node to dts.

Signed-off-by: Tiberiu Breana <andrei-tiberiu.breana@nxp.com>
7 years agoMLK-15141-2: ARM64: dts: fsl-imx8qm-lpddr4-arm2: Enable WiFi
Tiberiu Breana [Thu, 6 Jul 2017 15:37:06 +0000 (18:37 +0300)]
MLK-15141-2: ARM64: dts: fsl-imx8qm-lpddr4-arm2: Enable WiFi

Add the bcmdhd_wlan node and the epdev_on regulator.

Signed-off-by: Tiberiu Breana <andrei-tiberiu.breana@nxp.com>
7 years agoMLK-15141-1: PCI: imx: Add epdev_on regulator for 8QM WiFi
Tiberiu Breana [Thu, 6 Jul 2017 15:28:11 +0000 (18:28 +0300)]
MLK-15141-1: PCI: imx: Add epdev_on regulator for 8QM WiFi

Add the epdev_on regulator to power up the WiFi module
on the iMX8QM board.
This regulator needs to be powered up before the pcie
link, in order for the WiFi module to work.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Tiberiu Breana <andrei-tiberiu.breana@nxp.com>
7 years agoMLK-16042-3: Enable bcmdhd v1.363 for imx8
Tiberiu Breana [Thu, 20 Jul 2017 14:43:37 +0000 (17:43 +0300)]
MLK-16042-3: Enable bcmdhd v1.363 for imx8

Enable cfg80211 and the bcmdhd pcie version in arm64 defconfig.

Signed-off-by: Tiberiu Breana <andrei-tiberiu.breana@nxp.com>
7 years agoMLK-16042-2: net: wireless: bcmdhd_1363: Add dts fw parse support
Tiberiu Breana [Thu, 20 Jul 2017 14:06:46 +0000 (17:06 +0300)]
MLK-16042-2: net: wireless: bcmdhd_1363: Add dts fw parse support

Add support for parsing the fw_path and nv_path parameters
from dts files.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Tiberiu Breana <andrei-tiberiu.breana@nxp.com>
7 years agoMLK-16042-1: Add bcmdhd v1.363 PCIE driver
Tiberiu Breana [Thu, 20 Jul 2017 13:17:49 +0000 (16:17 +0300)]
MLK-16042-1: Add bcmdhd v1.363 PCIE driver

Add another bcmdhd driver version (v1.363) for PCIE devices.
This will be used for WiFi modules such as Murata 1FD (BCM89359)
or 1CX (BCM4356).

Signed-off-by: Tiberiu Breana <andrei-tiberiu.breana@nxp.com>
7 years agoMLK-16077-5: ARM64: dts: support wm8960 in imx8qxp mek board
Shengjiu Wang [Tue, 25 Jul 2017 10:20:00 +0000 (18:20 +0800)]
MLK-16077-5: ARM64: dts: support wm8960 in imx8qxp mek board

Add sound card node for imx8qxp mek board

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
7 years agoMLK-16077-4: ARM64: dts: add cm40 i2c device node
Shengjiu Wang [Tue, 25 Jul 2017 10:18:51 +0000 (18:18 +0800)]
MLK-16077-4: ARM64: dts: add cm40 i2c device node

add the cm40 i2c device node and power domain

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
7 years agoMLK-16077-3: ARM64: defconfig: built in the wm8960 sound card
Shengjiu Wang [Mon, 24 Jul 2017 06:52:06 +0000 (14:52 +0800)]
MLK-16077-3: ARM64: defconfig: built in the wm8960 sound card

built in the wm8960 sound card

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
7 years agoMLK-16077-2: clk: imx: update cm40 clock for imx8qxp
Shengjiu Wang [Mon, 24 Jul 2017 06:51:21 +0000 (14:51 +0800)]
MLK-16077-2: clk: imx: update cm40 clock for imx8qxp

Add cm40 I2C clock for imx8qxp

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
7 years agoMLK-16077-1: irqchip: intmux: add interrupt multiplexing support
Shengjiu Wang [Mon, 24 Jul 2017 06:09:57 +0000 (14:09 +0800)]
MLK-16077-1: irqchip: intmux: add interrupt multiplexing support

The intmux module is used to output internal interrupt in subsystem
to system with 32-to-8 configuration. It has several multiplex
channels depends on system. intmux is introduced in KL28Z reference
manual.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
7 years agoMLK-13471: fxls8471: add a symbol export to fix module build
Julien Olivain [Tue, 15 Nov 2016 16:35:13 +0000 (17:35 +0100)]
MLK-13471: fxls8471: add a symbol export to fix module build

When CONFIG_SENSOR_FXLS8471=m build was failing due to missing
exported symbol. This patch export the missing symbol.

Signed-off-by: Julien Olivain <julien.olivain@nxp.com>
7 years agoMLK-13472: hwmon: mxc_mma8451: add empty sentinel entry at the end of i2c_device_id...
Julien Olivain [Wed, 16 Nov 2016 08:20:25 +0000 (09:20 +0100)]
MLK-13472: hwmon: mxc_mma8451: add empty sentinel entry at the end of i2c_device_id table

This is fixing the build when the driver is enabled as a module, when
CONFIG_MXC_MMA8451=m

Signed-off-by: Julien Olivain <julien.olivain@nxp.com>
7 years agoMLK-16075-21 drm/imx: dpu: kms: Add several YUV pixel formats support
Liu Ying [Fri, 21 Jul 2017 08:21:26 +0000 (16:21 +0800)]
MLK-16075-21 drm/imx: dpu: kms: Add several YUV pixel formats support

This patch adds several YUV pixel formats support for dpu kms.
The pixel formats are YUYV, UYVY, NV12, NV21, NV16, NV61, NV24 and NV42.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-20 drm/imx: dpu: plane: Use a better way to calculate base address
Liu Ying [Mon, 24 Jul 2017 08:56:56 +0000 (16:56 +0800)]
MLK-16075-20 drm/imx: dpu: plane: Use a better way to calculate base address

This patch uses the helper drm_format_plane_cpp() to calculate base address
so that we can calculate correctly for the YUV pixel formats as well.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-19 gpu: imx: dpu: common: Add fetchecos support in dpu plane group
Liu Ying [Mon, 24 Jul 2017 02:48:29 +0000 (10:48 +0800)]
MLK-16075-19 gpu: imx: dpu: common: Add fetchecos support in dpu plane group

This patch adds fetchecos support in dpu plane group.
We currently supports fetcheco0 and fetcheco1.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-18 gpu: imx: fetchdecode: Add several YUV pixel formats support
Liu Ying [Mon, 24 Jul 2017 02:36:26 +0000 (10:36 +0800)]
MLK-16075-18 gpu: imx: fetchdecode: Add several YUV pixel formats support

This patch adds several YUV pixel formats support for fetchdecode.
The pixel formats are YUYV, UYVY, NV12, NV21, NV16, NV61, NV24 and NV42.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-17 gpu: imx: dpu: fetchdecode: Add helper fetchdecode_need_fetcheco()
Liu Ying [Mon, 24 Jul 2017 06:44:34 +0000 (14:44 +0800)]
MLK-16075-17 gpu: imx: dpu: fetchdecode: Add helper fetchdecode_need_fetcheco()

This patch adds helper fetchdecode_need_fetcheco() so that users may
check if a fetchdecode needs to use fetcheco for a specific pixel format.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-16 gpu: imx: dpu: fetchdecode: Add helper fetchdecode_get_fetcheco()
Liu Ying [Mon, 24 Jul 2017 05:59:25 +0000 (13:59 +0800)]
MLK-16075-16 gpu: imx: dpu: fetchdecode: Add helper fetchdecode_get_fetcheco()

This patch adds helper fetchdecode_get_fetcheco() so that users may
get the relevant fetcheco via fetchdecode.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-15 gpu: imx: dpu: fetchdecode: Specify DPU_VPROC_CAP_FETCHECO0/1 cap
Liu Ying [Tue, 25 Jul 2017 03:44:35 +0000 (11:44 +0800)]
MLK-16075-15 gpu: imx: dpu: fetchdecode: Specify DPU_VPROC_CAP_FETCHECO0/1 cap

This patch specifies DPU_VPROC_CAP_FETCHECO0/1 video processing
capabilities of fetchdecode.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-14 gpu: imx: dpu: fetchdecode: Add fetchdecode sources for DPU v2
Liu Ying [Mon, 24 Jul 2017 08:36:40 +0000 (16:36 +0800)]
MLK-16075-14 gpu: imx: dpu: fetchdecode: Add fetchdecode sources for DPU v2

This patch adds fetchdecode sources for DPU version2.
Logics are tweaked to split DPU version1 and version2.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-13 video: dpu: Add more sources for fetchdecode
Liu Ying [Mon, 24 Jul 2017 08:32:48 +0000 (16:32 +0800)]
MLK-16075-13 video: dpu: Add more sources for fetchdecode

This patch adds more sources for fetchdecode.
The new sources are fetchdecode0, fetchdecode1 and fetchwarp2,
which are valid only on DPU v2.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-12 gpu: imx: dpu: common: Add helpers dpu_vproc_has/get_fetcheco_cap()
Liu Ying [Tue, 25 Jul 2017 03:40:22 +0000 (11:40 +0800)]
MLK-16075-12 gpu: imx: dpu: common: Add helpers dpu_vproc_has/get_fetcheco_cap()

This patch adds helpers dpu_vproc_has/get_fetcheco_cap() support
so that the users may check if a video processing mask has fetcheco
capability or get the fetcheco capability from the mask.
We currently only support fetcheco0 and fetcheco1.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-11 gpu: imx: dpu: Add basic fetcheco units support
Liu Ying [Fri, 23 Jun 2017 07:59:39 +0000 (15:59 +0800)]
MLK-16075-11 gpu: imx: dpu: Add basic fetcheco units support

This patch adds basic fetcheco units support.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-10 gpu: imx: dpu: common: Add helpers to get plane w/h of format
Liu Ying [Tue, 25 Jul 2017 07:25:28 +0000 (15:25 +0800)]
MLK-16075-10 gpu: imx: dpu: common: Add helpers to get plane w/h of format

This patch adds helpers dpu_format_plane_width/height() to get plane
width or height of pixel formats which are supported by the current
dpu base driver.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-9 gpu: imx: dpu: common: Add helper to get number of planes of format
Liu Ying [Tue, 25 Jul 2017 07:24:02 +0000 (15:24 +0800)]
MLK-16075-9 gpu: imx: dpu: common: Add helper to get number of planes of format

This patch adds a helper dpu_format_num_planes() to get number of planes
of pixel formats which are supported by the current dpu base driver.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-8 gpu: imx: dpu: common: Add helpers to get sub-samplings of pfmt
Liu Ying [Tue, 25 Jul 2017 07:20:22 +0000 (15:20 +0800)]
MLK-16075-8 gpu: imx: dpu: common: Add helpers to get sub-samplings of pfmt

This patch adds helpers dpu_format_horz/vert_chroma_subsampling() to
get horizontal or vertical sub-samplings of pixel formats which are
supported by the current dpu base driver.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-7 gpu: imx: dpu: prv: Add several YUV pixel format definitions
Liu Ying [Mon, 24 Jul 2017 05:52:01 +0000 (13:52 +0800)]
MLK-16075-7 gpu: imx: dpu: prv: Add several YUV pixel format definitions

This patch adds several YUV pixel format definitions in
array dpu_pixel_format_matrix[].  The pixel formats are
YUYV, UYVY, NV12, NV21, NV16, NV61, NV24 and NV42.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-6 gpu: imx: dpu: prv: Add RASTERMODE reg field definitions
Liu Ying [Mon, 24 Jul 2017 05:41:18 +0000 (13:41 +0800)]
MLK-16075-6 gpu: imx: dpu: prv: Add RASTERMODE reg field definitions

This patch adds RASTERMODE register field definitions.

Signed-off-by: Liu Ying <victor.liu@nxp.com>