linux.git
7 years agoMLK-13975: ASoC: fsl: amix: Add channels and format constraints
Viorel Suman [Tue, 8 Aug 2017 11:11:06 +0000 (14:11 +0300)]
MLK-13975: ASoC: fsl: amix: Add channels and format constraints

Add channels and format constraints.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-13975: ASoC: fsl: amix: eliminate unsupported rates
Viorel Suman [Mon, 7 Aug 2017 13:56:06 +0000 (16:56 +0300)]
MLK-13975: ASoC: fsl: amix: eliminate unsupported rates

Eliminate unsupported rates for SAI MCLK frequency = 24576000.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-13975: ASoC: fsl: amix: fix maximum values
Viorel Suman [Mon, 7 Aug 2017 11:41:22 +0000 (14:41 +0300)]
MLK-13975: ASoC: fsl: amix: fix maximum values

AMIX maximum values for attenuation initial value,
step up/down factors and step target is 0x3FFFFh.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-16158-6 ARM64: dts: imx8mq-evk: set default display mode for adv7535 to 1080p60Hz
Fancy Fang [Tue, 8 Aug 2017 06:35:42 +0000 (14:35 +0800)]
MLK-16158-6 ARM64: dts: imx8mq-evk: set default display mode for adv7535 to 1080p60Hz

Set the default display mode for ADV7535 to 1920x1080p@60Hz which
is the maximum resolution can be supported by ADV7535.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-16158-5 video: fbdev: adv7535: refine low refresh settings
Fancy Fang [Tue, 8 Aug 2017 06:34:36 +0000 (14:34 +0800)]
MLK-16158-5 video: fbdev: adv7535: refine low refresh settings

Use the 'refresh' in video mode to determine to set
low refresh config for adv7535 wheter or not.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-16158-4 ARM64: dts: imx8mq: change dsi phy pll 'max-data-rate' to 1.5GHz
Fancy Fang [Tue, 8 Aug 2017 06:20:36 +0000 (14:20 +0800)]
MLK-16158-4 ARM64: dts: imx8mq: change dsi phy pll 'max-data-rate' to 1.5GHz

Accoring to the PHY spec, the DSI PHY PLL on imx8mq platform
can support up to 1.5GHz data rate. So change the 'max-data-rate'
to 1.5GHz on imx8mq.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-16158-3 video: fbdev: mipi_dsi_northwest: add 'vmode_index' to help phy pll config
Fancy Fang [Tue, 8 Aug 2017 06:00:26 +0000 (14:00 +0800)]
MLK-16158-3 video: fbdev: mipi_dsi_northwest: add 'vmode_index' to help phy pll config

Add a field 'vmode_index' to 'mipi_dsi_info' structure to
save the display video mode derived from dts to help config
the PHY PLL as desired.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-16158-2 ARM64: dts: imx8mq-evk: add a new dts to support 'LCDIF-->DSI'
Fancy Fang [Tue, 8 Aug 2017 05:06:06 +0000 (13:06 +0800)]
MLK-16158-2 ARM64: dts: imx8mq-evk: add a new dts to support 'LCDIF-->DSI'

There are two independent display path on imx8mq platform:

    a. DCSS  --> HDMI
    b. LCDIF --> DSI

The default enabled display path is 'DCSS-->HDMI', so add
a new dts to enable 'LCDIF-->DSI', and at the same time,
disable 'DCSS-->HDMI' path.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-16158-1 video: fbdev: dcss: refine ctxld enable code.
Fancy Fang [Tue, 8 Aug 2017 03:04:14 +0000 (11:04 +0800)]
MLK-16158-1 video: fbdev: dcss: refine ctxld enable code.

Refine the ctxld enable configuration by using the
'CTXLD_CTRL_STATUS_SET' to make the code more clean
and strong.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-16159: ASoC: imx_cdnhdmi: refine the N value selection
Shengjiu Wang [Tue, 8 Aug 2017 06:34:23 +0000 (14:34 +0800)]
MLK-16159: ASoC: imx_cdnhdmi: refine the N value selection

According the HDMI spec, the N value depends on the TMDS
rate, and sample rate. As we set the vic mode in dts file,
use the vic_table to get the TMDS rate, then choose the
proper N value.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Reviewed-by: Sandor Yu <sandor.yu@nxp.com>
7 years agoMGS-3159 [#imx-700] fix kernel panic for x11 stress test
Xianzhong [Sun, 6 Aug 2017 06:57:58 +0000 (14:57 +0800)]
MGS-3159 [#imx-700] fix kernel panic for x11 stress test

when gpu memory is from virtual system pool, the physical address
will become invalid, driver should enable mmu mapping accordingly.

but current kernel driver return the zero address with default value,
this mistake will cause gpu write into the wrong memory from zero.

this fix mark the invalid address for the virtual memory.

Date: Aug 06, 2017
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
Reviewed-by: Yuchou Gan <yuchou.gan@nxp.com>
Reviewed-by: Yong Gan <yong.gan@nxp.com>
Tested-by: Jason Liu <jason.hui.liu@nxp.com>
7 years agoMLK-16153-02: dts: Add 4K60 dts for iMX8MQ EVK
Sandor Yu [Mon, 7 Aug 2017 08:38:16 +0000 (16:38 +0800)]
MLK-16153-02: dts: Add 4K60 dts for iMX8MQ EVK

Add 4K60 dts for iMX8MQ EVK.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-16153-01: dts: Fix typo
Sandor Yu [Mon, 7 Aug 2017 08:37:00 +0000 (16:37 +0800)]
MLK-16153-01: dts: Fix typo

Fix hdmi video mode typo.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-16157: ARM64: dts: change the video mode for hdmi audio
Shengjiu Wang [Tue, 8 Aug 2017 01:46:53 +0000 (09:46 +0800)]
MLK-16157: ARM64: dts: change the video mode for hdmi audio

change the video mode for hdmi audio according hdmi video device
node

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
7 years agoMLK-16154: ASoC: fsl_asrc_m2m: fix crash issue with multi-instance
Shengjiu Wang [Mon, 7 Aug 2017 09:21:09 +0000 (17:21 +0800)]
MLK-16154: ASoC: fsl_asrc_m2m: fix crash issue with multi-instance

When open 2 instances of m2m, there is kernel dump. The reason is we
use the dev_set_drvdata to set drvdata for each instance, but each
instance share a same device, the result is drvdata will be changed
by other instances, then cause issue. so the dev_set_drvdata can't be
used, need to combine the pair data with file handler.

Fixes: 58ab1eb5b8c5 ("MLK-13945-3: ASoC: fsl_asrc: support two asrc
devices")

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
7 years agoMLK16147-2 soc:imx Add support to save/restore clock rates
Ranjani Vaidyanathan [Fri, 4 Aug 2017 18:10:31 +0000 (13:10 -0500)]
MLK16147-2 soc:imx Add support to save/restore clock rates

In iMX8QM/iMX8QXP the clock rates set in HW is lost when devices are
powered up/down as part of runtime-pm or suspend/resume.
Add support to the power domain driver to save/restore clock rates
associated with devices as part of power up/down.

Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
7 years agoMLK16147-1 clk:imx - Add support to get the clock rate
Ranjani Vaidyanathan [Fri, 4 Aug 2017 18:08:22 +0000 (13:08 -0500)]
MLK16147-1 clk:imx - Add support to get the clock rate

Add support to get the clock rate of a gate clock. This is required
to save/restore devices clocks when they are powered up/down.

Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
7 years agoMLK-16136-17 video: fbdev: dcss: clear global alpha in blanking one channel
Fancy Fang [Mon, 7 Aug 2017 11:40:14 +0000 (19:40 +0800)]
MLK-16136-17 video: fbdev: dcss: clear global alpha in blanking one channel

The global alpha for one channel should be cleared when
blanding this channel.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-16136-16 video: fbdev: dcss: add scaler ratios setting
Fancy Fang [Mon, 7 Aug 2017 11:31:49 +0000 (19:31 +0800)]
MLK-16136-16 video: fbdev: dcss: add scaler ratios setting

Add scaler ratios setting logic in scaler configuration.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-16136-15 video: fbdev: dcss: enable pan display function
Fancy Fang [Mon, 7 Aug 2017 04:18:49 +0000 (12:18 +0800)]
MLK-16136-15 video: fbdev: dcss: enable pan display function

Enable pan display function for dcss framebuffer driver.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-16136-14 video: fbdev: dcss: refine ctxld interrupts unmask logic
Fancy Fang [Mon, 7 Aug 2017 05:53:50 +0000 (13:53 +0800)]
MLK-16136-14 video: fbdev: dcss: refine ctxld interrupts unmask logic

The ctxld interrupts are better to be unmasked during
interrupts initialization in probe stage with only once.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-16136-13 video: fbdev: dcss: add 'NV12' support for Video layer
Fancy Fang [Sat, 5 Aug 2017 11:34:27 +0000 (19:34 +0800)]
MLK-16136-13 video: fbdev: dcss: add 'NV12' support for Video layer

Add 'NV12' format support for Video layer.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-16136-12 video: fbdev: dcss: refine scaler coefficients configuration
Fancy Fang [Sat, 5 Aug 2017 10:36:19 +0000 (18:36 +0800)]
MLK-16136-12 video: fbdev: dcss: refine scaler coefficients configuration

Use a better scaler coefficients array which can support
both RGB and YUV pixels correctly. And also refine the
coefficients setting code to make it more clear and more
compact.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-16136-11 ARM64: dts: imx8mq-evk: set default HDMI display mode to 1080p@60
Fancy Fang [Fri, 4 Aug 2017 07:20:17 +0000 (15:20 +0800)]
MLK-16136-11 ARM64: dts: imx8mq-evk: set default HDMI display mode to 1080p@60

Set the default HDMI display mode to '1080p@60Hz' instead of 4K,
since '1080p' is a more popular mode which can be supported by
almost every monitor or TV.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-16136-10 ARM64: dts: imx8mq-evk: enable HDMI display by default
Fancy Fang [Fri, 4 Aug 2017 07:05:16 +0000 (15:05 +0800)]
MLK-16136-10 ARM64: dts: imx8mq-evk: enable HDMI display by default

The default display path on imx8mq-evk board is
'DCSS --> HDMI'. So enable the HDMI controller
by default.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-16136-9 irqchip: imx-irqsteer: adjust irq config via 'endian'.
Fancy Fang [Fri, 4 Aug 2017 10:33:44 +0000 (18:33 +0800)]
MLK-16136-9 irqchip: imx-irqsteer: adjust irq config via 'endian'.

Change the irq configurations with adding endianness
determination for different platforms which may choose
different kinds of endianess.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-16136-8 ARM64: dts: imx8mq: add 'endian' property for irqsteer
Fancy Fang [Fri, 4 Aug 2017 10:31:36 +0000 (18:31 +0800)]
MLK-16136-8 ARM64: dts: imx8mq: add 'endian' property for irqsteer

The relationship between an interrupt and its
register and bit offset has two possible cases:

    .Littel Endian (LSB)
    .Big Endian (MSB)

So add 'endian' property to help irqsteer kernel
driver to configure interrupts correctly.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-16136-7 irqchip: imx-irqsteer: correct registers macro defitions
Fancy Fang [Fri, 4 Aug 2017 06:32:46 +0000 (14:32 +0800)]
MLK-16136-7 irqchip: imx-irqsteer: correct registers macro defitions

Correct several macro definitions related with irqsteer
to avoid incorrect expression calculation due to operators
priority.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-16136-6 video: fbdev: DCSS: enable DCSS driver.
Fancy Fang [Fri, 4 Aug 2017 05:51:26 +0000 (13:51 +0800)]
MLK-16136-6 video: fbdev: DCSS: enable DCSS driver.

This is the initial DCSS driver code which supports:

  1. Two DCSS channels: HDR10 Graphic and HDR10 Video.
  2. Context Loader to surppot on-the-fly module config.
  3. Support ARGB8888 format for input and output.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-16136-5 ARM64: dts: imx8mq-evk: enable DCSS by default.
Fancy Fang [Fri, 4 Aug 2017 06:05:06 +0000 (14:05 +0800)]
MLK-16136-5 ARM64: dts: imx8mq-evk: enable DCSS by default.

The default display path on imx8mq-evk should be
DCSS --> HDMI. So enable DCSS by default on imx8mq-evk
board.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-16136-4 ARM64: dts: imx8mq-evk: disable LCDIF by default.
Fancy Fang [Fri, 4 Aug 2017 05:59:26 +0000 (13:59 +0800)]
MLK-16136-4 ARM64: dts: imx8mq-evk: disable LCDIF by default.

Disable LCDIF by default and DCSS will be the default
display controller on imx8mq-evk board.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-16136-3 ARM64: dts: imx8mq: add DCSS device node.
Fancy Fang [Tue, 4 Jul 2017 08:01:15 +0000 (16:01 +0800)]
MLK-16136-3 ARM64: dts: imx8mq: add DCSS device node.

Add DCSS device node on imx8mq platform.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-16136-2 ARM64: dts: imx8mq: add irqsteer node.
Fancy Fang [Tue, 4 Jul 2017 07:53:36 +0000 (15:53 +0800)]
MLK-16136-2 ARM64: dts: imx8mq: add irqsteer node.

The DCSS interrupts go to GIC via irqsteer module.
So add this device node on imx8mq board.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-16136-1 clk: imx: imx8mq: define DCSS root clocks.
Fancy Fang [Thu, 13 Jul 2017 02:20:15 +0000 (10:20 +0800)]
MLK-16136-1 clk: imx: imx8mq: define DCSS root clocks.

Define three root clocks for DCSS module:

    .IMX8MQ_CLK_DISP_AXI_ROOT
    .IMX8MQ_CLK_DISP_APB_ROOT
    .IMX8MQ_CLK_DISP_RTRM_ROOT

These root clocks share one clock gate along with
'IMX8MQ_CLK_DISP_ROOT' clock. So change its type
to be shared gate clock too.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-16134 ARM: dts: imx6ull: update imx6ull header file with the latest imx6ull RDP
Fugang Duan [Thu, 3 Aug 2017 09:06:12 +0000 (17:06 +0800)]
MLK-16134 ARM: dts: imx6ull: update imx6ull header file with the latest imx6ull RDP

Update imx6ull header file with the latest imx6ull RDP.
- add new pin function definitions.
- update pin function changes.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-16143: camera: Fix video flashing issue
Sandor Yu [Mon, 7 Aug 2017 10:40:26 +0000 (18:40 +0800)]
MLK-16143: camera: Fix video flashing issue

Update ov10635 configurated data to fix video flashing issue.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-16149 arm64: dts: imx8qm/qxp: Remove memory reserve entry for M4 and ATF
Ye Li [Mon, 7 Aug 2017 06:00:15 +0000 (01:00 -0500)]
MLK-16149 arm64: dts: imx8qm/qxp: Remove memory reserve entry for M4 and ATF

Since u-boot will process the owned memory in current partition and modify
the DTB memory nodes for kernel at runtime, no need to set the first 128MB memory
as "memreserve" in DTS.

ATF: 0x80000000 -- 0x801fffff.
 - This area will be cleaned out of available memory by u-boot.

M4:  0x88000000 -- 0x8fffffff.
 - A memory reserve entry will be added to DTB by u-boot.

Signed-off-by: Ye Li <ye.li@nxp.com>
7 years agoMLK-16126 arm64: dts: imx8qm: Fix pd_sata0 node's name
Ye Li [Wed, 2 Aug 2017 09:00:33 +0000 (04:00 -0500)]
MLK-16126 arm64: dts: imx8qm: Fix pd_sata0 node's name

Should use PD_HSIO_SATA_0 not the PD_HSIO_SATA0 to align with imx8_pd.h.

Signed-off-by: Ye Li <ye.li@nxp.com>
7 years agoMLK16091-2 clk:imx8qxp - Add VPU encoder/decoder clocks
Ranjani Vaidyanathan [Thu, 27 Jul 2017 20:13:09 +0000 (15:13 -0500)]
MLK16091-2 clk:imx8qxp - Add VPU encoder/decoder clocks

Add VPU encoder/decoder clocks.

Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
7 years agoMLK16091-1 clks:imx8qx - Add VPU encoder and decoder clocks
Ranjani Vaidyanathan [Thu, 27 Jul 2017 20:11:20 +0000 (15:11 -0500)]
MLK16091-1 clks:imx8qx - Add VPU encoder and decoder clocks

VPU encoder and decoder clocks can be enabled/disabled by
Linux on iMX8QX.

Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
7 years agoMLK-16135 usb: gadget: utp: bulk out req amount divisible by 512
Li Jun [Thu, 3 Aug 2017 17:24:35 +0000 (01:24 +0800)]
MLK-16135 usb: gadget: utp: bulk out req amount divisible by 512

As the code comments say, the bulk out req amount should be divisible
by 512, fix this by using set_bulk_out_req_length().

Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-38 ARM64: imx8mq-evk: add typec controller dts node
Li Jun [Thu, 27 Jul 2017 15:14:52 +0000 (23:14 +0800)]
MLK-16013-38 ARM64: imx8mq-evk: add typec controller dts node

Add nxp typec&PD controller ptn5110 dts node, which is a tcpci compliant
typec port controller.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-37 staging: typec: Power swap force discharge for source
Li Jun [Fri, 28 Jul 2017 10:20:42 +0000 (18:20 +0800)]
MLK-16013-37 staging: typec: Power swap force discharge for source

VBus off only means the vbus falls to be below 4v, we can use vbus
force discharge and vbus low alarm to go forward.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-36 staging: typec: wait for cc change on ERROR_RECOVERY
Li Jun [Fri, 28 Jul 2017 10:05:46 +0000 (18:05 +0800)]
MLK-16013-36 staging: typec: wait for cc change on ERROR_RECOVERY

We should wait at least tErrorRecovery before move to unattached state.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-35 staging: typec: Move to SRC_ATTACHED if condition is met
Li Jun [Fri, 28 Jul 2017 10:01:06 +0000 (18:01 +0800)]
MLK-16013-35 staging: typec: Move to SRC_ATTACHED if condition is met

If the other end is trying to be a sink and not driving vbus, we should
move to SRC_ATTACHED directly.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-34 staging: typec: Support cc changes on RP pull-up value
Li Jun [Fri, 28 Jul 2017 09:43:01 +0000 (17:43 +0800)]
MLK-16013-34 staging: typec: Support cc changes on RP pull-up value

CC line changes on souce side RP value is permitted per standard, in
this case we should move to SNK_ATTACH_WAIT.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-33 staging: typec: Do not switch to unattached state for BIST
Li Jun [Fri, 28 Jul 2017 09:37:25 +0000 (17:37 +0800)]
MLK-16013-33 staging: typec: Do not switch to unattached state for BIST

If we received unsupported BIST command, we should by pass it and ready
to accept following command for test, not unconditionly to set the port
to be unattached state and terminate the test.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-32 staging: typec: refine source to sink swap handling
Li Jun [Fri, 28 Jul 2017 09:30:50 +0000 (17:30 +0800)]
MLK-16013-32 staging: typec: refine source to sink swap handling

To early start sink power after source turn off vbus, move the set power
role after vbus is turned off in PR_SWAP_SRC_SNK_SOURCE_OFF, also per
spec, we should do error recovery if the sink side does not turn on
vbus in PD_T_PS_SOURCE_ON.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-31 staging: typec: Set to unattached state if souce disconnected
Li Jun [Fri, 28 Jul 2017 09:19:13 +0000 (17:19 +0800)]
MLK-16013-31 staging: typec: Set to unattached state if souce disconnected

In SNK_HARD_RESET_SINK_ON, if the source disconnected, we should set
state to be unattached state intead of startup sink.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-30 staging: typec: Reset hard_reset_count to be 0 after send source cap
Li Jun [Fri, 28 Jul 2017 09:11:12 +0000 (17:11 +0800)]
MLK-16013-30 staging: typec: Reset hard_reset_count to be 0 after send source cap

Per standard, we should clear the hard reset count to be 0 after souce
sent the source cap.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-29 staging: typec: tcpm: Don't reset message id after soft reset
Li Jun [Fri, 28 Jul 2017 08:55:33 +0000 (16:55 +0800)]
MLK-16013-29 staging: typec: tcpm: Don't reset message id after soft reset

If the power source sent soft reset and the other end accepted, we should
not reset the message id as it was already updated by pd_transmit when
handling the soft reset.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-28 staging: typec: tcpci: Populate config from dt
Li Jun [Fri, 28 Jul 2017 08:12:42 +0000 (16:12 +0800)]
MLK-16013-28 staging: typec: tcpci: Populate config from dt

Instead of static config, use dt to pass basic PD config for
below settings:
- Source pdo list
- Sink pdo list
- Max sink voltage
- Max sink current
- Sink operating power
- TypeC port type
- TypeC port preferred role

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-27 staging: typec: add super speed signal mux selection
Li Jun [Thu, 27 Jul 2017 17:09:12 +0000 (01:09 +0800)]
MLK-16013-27 staging: typec: add super speed signal mux selection

According to the polarity of cc line, we need to do USB3 signal mux
selection if it's controlled by software.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-26 staging: typec: tcpm: update PD timing
Li Jun [Thu, 27 Jul 2017 15:27:15 +0000 (23:27 +0800)]
MLK-16013-26 staging: typec: tcpm: update PD timing

This patch is to update several PD timings for PD compliance, all
those timing definitions should be configurable via user config,
this can be improved later, for now I just update its values in PD
spec defined range.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-25 staging: typec: tcpm: correct the PD_T_SENDER_RESPONSE value
Li Jun [Thu, 27 Jul 2017 14:49:06 +0000 (22:49 +0800)]
MLK-16013-25 staging: typec: tcpm: correct the PD_T_SENDER_RESPONSE value

Per PD spec, the sender response should be in a small range 24~30ms, so
correct the PD_T_SENDER_RESPONSE to be 25.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-24 staging: typec: tcpm: use hrtimer for send response
Li Jun [Thu, 27 Jul 2017 14:43:52 +0000 (22:43 +0800)]
MLK-16013-24 staging: typec: tcpm: use hrtimer for send response

As the sender response timer have very small margin(25~30ms), so
use a hrtimer to handle it.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-23 staging: typec: tcpm: Do soft reset for unexpected get sink cap
Li Jun [Thu, 27 Jul 2017 14:24:13 +0000 (22:24 +0800)]
MLK-16013-23 staging: typec: tcpm: Do soft reset for unexpected get sink cap

A source or sink should receive the get_sink_cap message when in SRC_RDY or
SNK_RDY, if the port receives a get sink capability request before ready,
which means there is message sync error, we should do soft reset to recover
from it, instead of sending a reject message.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-22 staging: typec: tcpm: split operations of power swap from sink to source
Li Jun [Thu, 27 Jul 2017 14:00:54 +0000 (22:00 +0800)]
MLK-16013-22 staging: typec: tcpm: split operations of power swap from sink to source

Add one more state:PR_SWAP_SNK_SRC_ASSERT_RP, as the next state of
PR_SWAP_SNK_SRC_SINK_OFF, it will turn on vbus and wait the vbus
is really on and then send the PS_RDY to the other side.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-21 staging: typec: tcpm: handle pd message send failure
Li Jun [Thu, 27 Jul 2017 13:47:51 +0000 (21:47 +0800)]
MLK-16013-21 staging: typec: tcpm: handle pd message send failure

If the PD message send failed, we need to do soft reset, further if
soft reset failed, we have to start a hard reset.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-20 staging: typec: Add bist test mode support
Li Jun [Thu, 27 Jul 2017 13:38:13 +0000 (21:38 +0800)]
MLK-16013-20 staging: typec: Add bist test mode support

BIST(Built In Self-Test – Power Delivery testing mechanism for
the PHY Layer), see PD 3.0 spec 5.9 Built in Self-Test (BIST), is
added to support BIST message handling in PD compliance test.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-19 staging: typec: tcpci: Only touch target bit when enable vconn
Li Jun [Thu, 27 Jul 2017 13:13:19 +0000 (21:13 +0800)]
MLK-16013-19 staging: typec: tcpci: Only touch target bit when enable vconn

We need a read and then write back to avoid touch any other bits when
enable or disable vconn.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-18 staging: typec: handle unexpected vbus from sink
Li Jun [Thu, 27 Jul 2017 12:58:54 +0000 (20:58 +0800)]
MLK-16013-18 staging: typec: handle unexpected vbus from sink

Power source detected the attachment of sink, will firstly check
the vbus level to make sure power sink isn't sourcing vbus(< 600mv)
before going forward, otherwise it will terminate the session and
go to SRC_UNATTACHED state, this is required by PD compliance.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-17 staging: typec: tcpm: optimise cc toggling for drp port
Li Jun [Wed, 26 Jul 2017 23:33:42 +0000 (07:33 +0800)]
MLK-16013-17 staging: typec: tcpm: optimise cc toggling for drp port

We should only enable drp auto toggling when unattached, so add one
more parameter; when attached, we set the cc line state according to
the other end cc status.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-16: staging: typec: tcpm: tcpm init sequence update
Li Jun [Wed, 26 Jul 2017 17:08:27 +0000 (01:08 +0800)]
MLK-16013-16: staging: typec: tcpm: tcpm init sequence update

Force an error recovery is not a good way to handle all cases and may
break the case of power up with typec already connected. Also the tcpc
init should start after tcpm init setup is done, as tcpc init will
turn on HW event alert so may generate events immediately and drive
tcpm state machine go forward, so move it at the end of tcpm_init.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-15: staging: typec: tcpci: Enable vbus force discharge
Li Jun [Wed, 26 Jul 2017 16:57:32 +0000 (00:57 +0800)]
MLK-16013-15: staging: typec: tcpci: Enable vbus force discharge

Enable vbus low voltage alert and do force discharge, this can aid turn
off vbus quickly.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-14: staging: typec: tcpci: handle fault event
Li Jun [Wed, 26 Jul 2017 16:39:37 +0000 (00:39 +0800)]
MLK-16013-14: staging: typec: tcpci: handle fault event

We need clear any fault alerts to make tcpci controller to recover
from fault.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-13: staging: typec: tcpci: handle rx buffer overflow event
Li Jun [Wed, 26 Jul 2017 16:36:54 +0000 (00:36 +0800)]
MLK-16013-13: staging: typec: tcpci: handle rx buffer overflow event

Add rx buffer overflow event handling.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-12: staging: typec: tcpci: clear pending events before request irq
Li Jun [Wed, 26 Jul 2017 16:19:55 +0000 (00:19 +0800)]
MLK-16013-12: staging: typec: tcpci: clear pending events before request irq

Clear all possible pending events before request irq.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-11 staging: typec: only clear alert events for enabled irq
Li Jun [Wed, 26 Jul 2017 16:08:15 +0000 (00:08 +0800)]
MLK-16013-11 staging: typec: only clear alert events for enabled irq

Uncondtionaly clear all events may impact the typec controller state
machine, so save the enabled irq and only clear alert events for enabled
irq.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-10 staging: typec: add vbus detection for power sink
Li Jun [Wed, 26 Jul 2017 15:50:29 +0000 (23:50 +0800)]
MLK-16013-10 staging: typec: add vbus detection for power sink

Typec port controller may need enable vbus detection to detect
the vbus from power source.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-9 usb: typec: add interface to get port type and role
Li Jun [Wed, 26 Jul 2017 14:08:14 +0000 (22:08 +0800)]
MLK-16013-9 usb: typec: add interface to get port type and role

Add interface to get typec port type and default power role from
dt. To validate a correct setting is specified, add TYPEC_PORT_TYPE_UNKNOWN
and TYPEC_ROLE_UNKNOWN for typec_port_type and typec_role enum.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agostaging: typec: Type-C Port Controller Interface driver (tcpci)
Guenter Roeck [Thu, 27 Apr 2017 21:09:57 +0000 (14:09 -0700)]
staging: typec: Type-C Port Controller Interface driver (tcpci)

The port controller interface driver interconnects the Type-C Port
Manager with a Type-C Port Controller Interface (TCPCI) compliant
port controller.

Signed-off-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 74e656d6b0551999194b5ab1e45ff8b1e82b898e)

7 years agostaging: typec: USB Type-C Port Manager (tcpm)
Guenter Roeck [Thu, 27 Apr 2017 21:09:56 +0000 (14:09 -0700)]
staging: typec: USB Type-C Port Manager (tcpm)

This driver implements the USB Type-C Power Delivery state machine
for both source and sink ports. Alternate mode support is not
fully implemented.

The driver attaches to the USB Type-C class code implemented in
the following patches.

usb: typec: add driver for Intel Whiskey Cove PMIC USB Type-C PHY
usb: USB Type-C connector class

This driver only implements the state machine. Lower level drivers are
responsible for
- Reporting VBUS status and activating VBUS
- Setting CC lines and providing CC line status
- Setting line polarity
- Activating and deactivating VCONN
- Setting the current limit
- Activating and deactivating PD message transfers
- Sending and receiving PD messages

The driver provides both a functional API as well as callbacks for
lower level drivers.

Signed-off-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit f0690a25a140b853b1842fa80faf828601bb47e8)

7 years agousb: USB Type-C connector class
Heikki Krogerus [Tue, 21 Mar 2017 11:56:47 +0000 (13:56 +0200)]
usb: USB Type-C connector class

The purpose of USB Type-C connector class is to provide
unified interface for the user space to get the status and
basic information about USB Type-C connectors on a system,
control over data role swapping, and when the port supports
USB Power Delivery, also control over power role swapping
and Alternate Modes.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-and-Tested-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit fab9288428ec0fbd09adb67d3a17c51d78196f9c)

7 years agolib/string: add sysfs_match_string helper
Heikki Krogerus [Tue, 21 Mar 2017 11:56:46 +0000 (13:56 +0200)]
lib/string: add sysfs_match_string helper

Make a simple helper for matching strings with sysfs
attribute files. In most parts the same as match_string(),
except sysfs_match_string() uses sysfs_streq() instead of
strcmp() for matching. This is more convenient when used
with sysfs attributes.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit e1fe7b6a7b376bfb54558725ddb2a89aaaa4adcc)

7 years agoMLK-16137 video: fbdev: add defer probe for mxs framebuffer
Oliver Brown [Fri, 4 Aug 2017 06:31:35 +0000 (14:31 +0800)]
MLK-16137 video: fbdev: add defer probe for mxs framebuffer

When mxs framebuffer probes, the DISPDRV (here is MIPI DSI driver) is likely
not ready, then mxsfb_dispdrv_init() will fail which in turn causes framebuffer
dirver probe fails. Add the defer probe schema for second probe later to fix it.

Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
Signed-off-by: Robby Cai <robby.cai@nxp.com>
Reviewed-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-16124 clk: imx: clean-up: Add defines for gate enable bits.
Adriana Reus [Tue, 1 Aug 2017 07:28:46 +0000 (10:28 +0300)]
MLK-16124 clk: imx: clean-up: Add defines for gate enable bits.

Use defines for gate enable bits instead of raw values.

Signed-off-by: Adriana Reus <adriana.reus@nxp.com>
7 years agoMLK-16129: ASoC: fsl_hifi4: refine the copyright
Shengjiu Wang [Thu, 3 Aug 2017 02:05:45 +0000 (10:05 +0800)]
MLK-16129: ASoC: fsl_hifi4: refine the copyright

As the fsl_hifi4.c uses the function from uboot/cmd/elf.c,
so need to add the copyright of elf.c, and change licence to
Dual BSD/GPL.
And mxc_hifi4.h is used by user space, so change license to BSD.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
7 years agoMGS-3155 [#imx-697] fix gpu hang when insmod galcore secondly
Xianzhong [Thu, 3 Aug 2017 11:01:31 +0000 (19:01 +0800)]
MGS-3155 [#imx-697] fix gpu hang when insmod galcore secondly

gpu hang alway happen when insmod galcore secondly on i.mx8mq,
this problem is related gpu mmu setup with virtual command buffer.

revert the virtual command buffer change to align 6.2.2 driver.

Date: Aug 03, 2017
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
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>