linux.git
7 years agoMGS-3255: gpu-viv: enable command commit worker for 6.2.4.p1
Xianzhong [Sat, 16 Dec 2017 23:31:09 +0000 (07:31 +0800)]
MGS-3255: gpu-viv: enable command commit worker for 6.2.4.p1

This feature is initialy created and enabled for 6.2.4 GPU driver,
Need re-enable GPU command commit worker for 6.2.4.p1 driver version.

i.MX8QM dual GPU SW workaround since no command sharing HW fix in B0,
optimized driver to improve GPU benchmark with better performance.

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
(cherry picked from commit 2b20dff2514aa7f8f18a6c42451e43b637425e40)

7 years agoMLK-17455: ARM64: dts: correct the pinctrl setting for audio peripheral
Shengjiu Wang [Wed, 31 Jan 2018 02:57:35 +0000 (10:57 +0800)]
MLK-17455: ARM64: dts: correct the pinctrl setting for audio peripheral

According to the Reference manual, the bit 1-4 of PAD setting is reserved.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17475-07 ARM64: defconfig: enable TJA1100 PHY config
Fugang Duan [Tue, 30 Jan 2018 10:58:39 +0000 (18:58 +0800)]
MLK-17475-07 ARM64: defconfig: enable TJA1100 PHY config

Enable CONFIG_NXP_TJA110X_PHY config to support NXP TJA1100 net card
for i.MX8QM/QXP platforms.

Reviewed-by: Pandy Gao <pandy.gao@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-17475-06 ARM64: dts: imx8qm/qxp: add tja1100 net card support for mek and arm2...
Fugang Duan [Tue, 30 Jan 2018 08:41:17 +0000 (16:41 +0800)]
MLK-17475-06 ARM64: dts: imx8qm/qxp: add tja1100 net card support for mek and arm2 boards

Add NXP TJA1100 net card support for mek and arm2 boards.

For i.MX8QXP MEK/ARM2 board,disable enet1 port due to below issues:
- TJA1100 net card PHY address conflict with enet1 PHY1.
- TJA1100 net card attach on enet2 and use enet2 mdio bus.

For i.MX8QM MEK/ARM2 board, enet1 PHY address shoule be reworked to 2,
otherwise port1 don't work. Of course, the *-tja1100.dtb file focus on
verifying TJA1100 net card.

Reviewed-by: Pandy Gao <pandy.gao@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-17475-05 net: phy: tja110x: add lock to protect .suspend/.resume()
Fugang Duan [Tue, 30 Jan 2018 08:22:56 +0000 (16:22 +0800)]
MLK-17475-05 net: phy: tja110x: add lock to protect .suspend/.resume()

Add phydev->lock to protect phy register access in .suspend()/.resume().

Reviewed-by: Pandy Gao <pandy.gao@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-17475-04 net: phy: tja110x: clean up the debug error message
Fugang Duan [Tue, 30 Jan 2018 07:53:55 +0000 (15:53 +0800)]
MLK-17475-04 net: phy: tja110x: clean up the debug error message

Some code slices have handled the code logic in correctly, it should
not print out the error message. So clean up them.

Reviewed-by: Pandy Gao <pandy.gao@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-17475-03 net: phy: tja110x: add quirk for refclk_in selection
Fugang Duan [Tue, 30 Jan 2018 06:37:36 +0000 (14:37 +0800)]
MLK-17475-03 net: phy: tja110x: add quirk for refclk_in selection

When RMII signaling using an external crystal, refclk can output 50Mhz
to MAC as reference clock. When RMII signaling using an externally generated
reference clock refclk pin is input with 50Mhz.

Add one quirk to select the RMII refclk mode that depends on board design.

Reviewed-by: Pandy Gao <pandy.gao@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-17475-02 net: phy: tja110x: remove phy config_init in phy device probe()
Fugang Duan [Tue, 30 Jan 2018 06:29:22 +0000 (14:29 +0800)]
MLK-17475-02 net: phy: tja110x: remove phy config_init in phy device probe()

It is not necessary to config phy during phy device probe since it
will be called when do phy connect like below follow:
...
of_phy_connect()->
phy_attach_direct()->
phy_init_hw()->
config_init()
...

Reviewed-by: Pandy Gao <pandy.gao@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-17475-01 net: phy: tja110x: add NXP TJA110X PHY driver
Christian Herber [Tue, 30 Jan 2018 05:33:33 +0000 (13:33 +0800)]
MLK-17475-01 net: phy: tja110x: add NXP TJA110X PHY driver

The TJA1100 is IEEE 100BASE-T1 compliant, is single port Ethernet PHY Transceiver
is designed and fully qualified for automotive applications. It supports 100Mbit/s
transmit and receive capability up to at least 15 m of UTP cables.

TJA1100 PHY detail infomation refer to:
https://www.nxp.com/products/analog/interfaces/in-vehicle-network/ethernet/
automotive-phy-transceivers/ieee-100base-t1-compliant-automotive-ethernet-
phy-transceiver:TJA1100HN

The original driver is based on kernel 4.1:
https://source.codeaurora.org/external/autoivnsw/tja110x_linux_phydev
(Author: Christian Herber)

Porting the driver to kernel 4.9 and to support i.MX8 series platforms.
(Author: Fugang Duan)

Reviewed-by: Pandy Gao <pandy.gao@nxp.com>
Signed-off-by: Christian Herber <christian.herber@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMGS-3627 [#imx-911] "Could not open egl display" when run monkey test case for long...
Yuchou Gan [Wed, 31 Jan 2018 10:05:04 +0000 (18:05 +0800)]
MGS-3627 [#imx-911] "Could not open egl display" when run monkey test case for long time.

The root cause is that each time an application runs, the gpu driver will map reserved memory 128M to
the application virtual memory space, which means it need the system have at least 128M physical memory available,
otherwise the shmem_zero_setup will fail. Add MAP_NORESERVE flag to fix this problem.

Date: Jan 30, 2017
Signed-off-by: Yuchou Gan yuchou.gan@nxp.com
7 years agoASoC: imx-ak5558: Add support for 384KHz and 768KHz
Daniel Baluta [Mon, 29 Jan 2018 17:43:30 +0000 (19:43 +0200)]
ASoC: imx-ak5558: Add support for 384KHz and 768KHz

In normal mode we need to test SAI capability of supporting
higher rates so adjust constraints list to allow 384KHz
and 768KHz.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-15033: ASoC: fsl: Change constraints for AK4458
Cosmin-Gabriel Samoila [Tue, 30 Jan 2018 09:42:02 +0000 (11:42 +0200)]
MLK-15033: ASoC: fsl: Change constraints for AK4458

Add 384KHz and 768KHz as supported rates and add
different constraints for number of channels when
in tdm mode.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17462-4: ARM64: dts : support TDM mode for audio board.
Cosmin-Gabriel Samoila [Tue, 30 Jan 2018 09:38:43 +0000 (11:38 +0200)]
MLK-17462-4: ARM64: dts : support TDM mode for audio board.

Use a separate dts for tdm mode for ak4458.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-15033: ASoC: fsl: Add TDM support in machine driver for AK4458
Cosmin-Gabriel Samoila [Tue, 30 Jan 2018 09:31:49 +0000 (11:31 +0200)]
MLK-15033: ASoC: fsl: Add TDM support in machine driver for AK4458

TDM mode is enabled when "fsl,tdm" property is added in machine
driver dts node. When using TDM mode, SND_SOC_DAIFMT_DSP_B format
is used and the tdm slot_width is set to 32.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-15033: ASoC: codecs: Add TDM support for AK4458
Cosmin-Gabriel Samoila [Tue, 30 Jan 2018 09:18:33 +0000 (11:18 +0200)]
MLK-15033: ASoC: codecs: Add TDM support for AK4458

Based on slot_width and params_width, we will set
the format and TDM mode as specified in AK4458
datasheet.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17472: ASoC: imx-wm8962: fix build warning
Shengjiu Wang [Tue, 30 Jan 2018 02:36:05 +0000 (10:36 +0800)]
MLK-17472: ASoC: imx-wm8962: fix build warning

sound/soc/fsl/imx-wm8962.c: In function ‘imx_wm8962_probe’:
sound/soc/fsl/imx-wm8962.c:810:2: warning: ‘cpu_np’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  of_node_put(cpu_np);
  ^~~~~~~~~~~~~~~~~~~

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17289-9: dts: Add cec property to imx8mq dts
Sandor Yu [Mon, 25 Dec 2017 08:38:01 +0000 (16:38 +0800)]
MLK-17289-9: dts: Add cec property to imx8mq dts

Add cec property to imx8mq dts.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-17289-8: dts: Remove hdmi_cec property
Sandor Yu [Mon, 25 Dec 2017 08:36:30 +0000 (16:36 +0800)]
MLK-17289-8: dts: Remove hdmi_cec property

hdmi cec function is implement hdmi driver.
so remove hdmi_cec property in imx8qm dts files.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-17289-7: dts: Add cec property to imx8qm mek dts
Sandor Yu [Mon, 25 Dec 2017 08:34:44 +0000 (16:34 +0800)]
MLK-17289-7: dts: Add cec property to imx8qm mek dts

Add cec property to imx8qm mek dts.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-17289-6: hdp drm: Add cec register/unregister function
Sandor Yu [Fri, 22 Dec 2017 10:09:29 +0000 (18:09 +0800)]
MLK-17289-6: hdp drm: Add cec register/unregister function

Add cec register/unregister function in hdp drm driver.
Add is_cec variable to check cec function setting in dtb.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-17289-5: hdmi cec: change cec driver architecture
Sandor Yu [Fri, 22 Dec 2017 10:10:31 +0000 (18:10 +0800)]
MLK-17289-5: hdmi cec: change cec driver architecture

Change hdmi cec driver architecture.
Embedded cec function to hdmi driver.
Rewrite cec_read and cec_write fucntion
to support both imx8qm and imx8mq cec.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-17289-4: hdp api: Add hdmi cec base address
Sandor Yu [Fri, 22 Dec 2017 10:08:24 +0000 (18:08 +0800)]
MLK-17289-4: hdp api: Add hdmi cec base address

Add hdmi cec base address.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-17289-3: hdmi fb: change mem variable type
Sandor Yu [Fri, 22 Dec 2017 10:07:53 +0000 (18:07 +0800)]
MLK-17289-3: hdmi fb: change mem variable type

Change mem variable type.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-17289-2: hdp drm: Add mem variable
Sandor Yu [Fri, 22 Dec 2017 10:06:43 +0000 (18:06 +0800)]
MLK-17289-2: hdp drm: Add mem variable

Add mem variable in struct imx_hdp,
and move regs_base and ss_base to struct mem.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-17289-1: hdp: change struct mem variable type to pointer
Sandor Yu [Fri, 22 Dec 2017 10:04:58 +0000 (18:04 +0800)]
MLK-17289-1: hdp: change struct mem variable type to pointer

Change struct mem variable type to pointer in struct state.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-17108-4 staging: typec: tcpci: correct read data msg length
Li Jun [Thu, 25 Jan 2018 12:01:46 +0000 (20:01 +0800)]
MLK-17108-4 staging: typec: tcpci: correct read data msg length

Per tcpci spec, the TCPC_RX_BYTE_CNT is the number of bytes in the
RX_BUFFER_DATA_OBJECTS plus three (for the RX_BUF_FRAME_TYPE and
RX_BUF_HEADER), so after read out the header, we should only read
TCPC_RX_BYTE_CNT-3 bytes for data if this is a data message.

Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-17108-3 staging: typec: tcpci: don't do force discharge if enable vbus sink
Li Jun [Thu, 25 Jan 2018 11:45:10 +0000 (19:45 +0800)]
MLK-17108-3 staging: typec: tcpci: don't do force discharge if enable vbus sink

We use vbus force discharge to have a quick vbus off for power role swap,
which works like this: enable vbus force discharge and wait the vbus fall
below vbus low threshold, when reaches, an alarm generated and tcpm can go
forward. but current code do vbus force discharge in any disable source
vbus case, in enable vbus charge case, we firstly disable source vbus and
then turn on vbus sink, in between, vbus force discharge should not be
enabled.

Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-17108-2 staging: typec: support dead battery charging
Jun Li [Thu, 18 Jan 2018 19:16:00 +0000 (03:16 +0800)]
MLK-17108-2 staging: typec: support dead battery charging

If the vbus is aready on and remote cc state is Rp while typec init, we
think it's a dead battery case, this needs the PD session already setup
by bootloader,  so kernel can negotiate a new power session by soft reset,
this patch use the exsiting flag vbus_never_low as boot from dead battery
flag, but update the condition of setting it: not only check vbus, also
the cc status to make sure remote is a power source, if yes, bypass the
vbus sink disable. If the vbus is from local, we will still disable vbus
charge so original code intention is kept.

Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-17108-1 ARM64: dts: imx8mq-evk: increase i2c1 clock to be 400K
Li Jun [Thu, 25 Jan 2018 11:38:45 +0000 (19:38 +0800)]
MLK-17108-1 ARM64: dts: imx8mq-evk: increase i2c1 clock to be 400K

As the typec port controller interface(TCPCI) spec requires the i2c clock
at least to be 400K, so here increase it to be 400K to meet timing
requirement.

Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16224-6: ASoC: fsl_sai: fix DSD suspend/resume
Viorel Suman [Mon, 29 Jan 2018 14:04:44 +0000 (16:04 +0200)]
MLK-16224-6: ASoC: fsl_sai: fix DSD suspend/resume

With the existing implementation the SAI pinctrl state is restored to
default after resume - this breaks DSD playback after resume.
Restore DSD pinctrl state in snd_soc_dai_driver resume callback.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17462-4: ARM64: dts : support TDM mode for audio board.
Shengjiu Wang [Fri, 26 Jan 2018 05:52:53 +0000 (13:52 +0800)]
MLK-17462-4: ARM64: dts : support TDM mode for audio board.

Use a separate dts for tdm mode for ak5558.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17462-3: ASoC: imx-ak5558: support TDM mode
Shengjiu Wang [Fri, 26 Jan 2018 05:52:33 +0000 (13:52 +0800)]
MLK-17462-3: ASoC: imx-ak5558: support TDM mode

add fsl,tdm property, in tdm mode, the slot_width is fixed to
32 bit.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17462-2: ASoC: ak5558: support SND_SOC_DAIFMT_DSP_B format for TDM
Shengjiu Wang [Fri, 26 Jan 2018 02:53:08 +0000 (10:53 +0800)]
MLK-17462-2: ASoC: ak5558: support SND_SOC_DAIFMT_DSP_B format for TDM

Add set_tdm_slot function for TDM mode, and support
SND_SOC_DAIFMT_DSP_B format

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17462-1: ASoC: AK5558: revert the fix for 8k and 16kHz.
Shengjiu Wang [Thu, 25 Jan 2018 02:35:49 +0000 (10:35 +0800)]
MLK-17462-1: ASoC: AK5558: revert the fix for 8k and 16kHz.

Revert commit 38078b6549c7 ("MLK-17428-4: ASoC: AK5558: fix
issue for 8k and 16kHz")

With this patch, there will be issue with PDM mode, cause the codec can't
work sometimes, the phenomenon is the register read failed.

So we revert this patch, and we will enable the pm_runtime function, which
should also fix the 8k and 16khz can't work issue in normal mode.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17470: ASoC: ak4497: automatically select dsdsel in driver
Shengjiu Wang [Fri, 26 Jan 2018 08:44:08 +0000 (16:44 +0800)]
MLK-17470: ASoC: ak4497: automatically select dsdsel in driver

automatically select dsdsel in driver according to the frequency

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17467: ASoC: fsl_sai: fix typo for fsl_sai
Shengjiu Wang [Fri, 26 Jan 2018 08:44:19 +0000 (16:44 +0800)]
MLK-17467: ASoC: fsl_sai: fix typo for fsl_sai

Fix build warning

sound/soc/fsl/fsl_sai.c: In function ‘fsl_sai_trigger’:
sound/soc/fsl/fsl_sai.c:736:3: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation]
   while (tx && i < channels)
   ^~~~~
sound/soc/fsl/fsl_sai.c:742:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘while’
    j++;
    ^
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17445: ASoC: ak4497: let codec start/stop properly
Viorel Suman [Mon, 29 Jan 2018 10:35:09 +0000 (12:35 +0200)]
MLK-17445: ASoC: ak4497: let codec start/stop properly

Let the codec start/stop properly before syncing
regmap with codec registers.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17389: drm/panel: rm67191: Fix power on/off logic
Robert Chiras [Mon, 22 Jan 2018 08:16:03 +0000 (10:16 +0200)]
MLK-17389: drm/panel: rm67191: Fix power on/off logic

On remove, the panel driver was only calling rad_panel_disable, which
only updates the brightness. During a reboot, the panel may remain
powered which will cause the whole screen to be bright white (sometimes
flashing).
This patch also calls the rad_panel_unprepare, which puts the panel to
sleep and also sets the DSI_EN gpio to LOW (which is the proper power
off sequence).
While powering on the sleeps are too high, so reduce them according to
the sample driver received from vendor.
Also, fixed the reading of display-timings property: this property is
optional, but will dump some error messages into the console log by
directly calling of_get_videomode() when this property is missing. To
avoid the error messages, first check if we really have this property
first.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
7 years agoMLK-17468-2: hdp: Enable imx8qm hdmi/dp 4kp30 support
Sandor Yu [Mon, 29 Jan 2018 08:43:16 +0000 (16:43 +0800)]
MLK-17468-2: hdp: Enable imx8qm hdmi/dp 4kp30 support

Add link rate select function.
Change max support pixel clock rate to 297MHz(4kp30).

Because edid read function is not enabled.
For such TV that max support 1080p60 or 720p60,
the followed cmdline mode should be added to kernel boot args:
video=HDMI-A-1:1920x1080-32@60 or
video=HDMI-A-1:1280x720-32@60

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-17468-1: dptx: remove CDN_API_Get_PIXEL_FREQ_KHZ_ClosetVal
Sandor Yu [Mon, 29 Jan 2018 08:41:21 +0000 (16:41 +0800)]
MLK-17468-1: dptx: remove CDN_API_Get_PIXEL_FREQ_KHZ_ClosetVal

Remove CDN_API_Get_PIXEL_FREQ_KHZ_ClosetVal function,
replace with vic_table.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-17469 ARM: dts: imx7ulp-evk: add USB support for RevB board
Peter Chen [Fri, 15 Sep 2017 01:42:41 +0000 (09:42 +0800)]
MLK-17469 ARM: dts: imx7ulp-evk: add USB support for RevB board

There are Type-C chip PTN5150 and connector are on it, and dual-role
mode are supported.

Acked-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
7 years agoMLK-17463: ASoC: codecs: ak5558: Add runtime PM support
Daniel Baluta [Thu, 25 Jan 2018 17:10:55 +0000 (19:10 +0200)]
MLK-17463: ASoC: codecs: ak5558: Add runtime PM support

Based on latest power management design in MLK-17074,
every driver need to enter runtime suspend state before
entering system suspend, so the driver should call the
pm_runtime_force_suspend in suspend.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMGS-3622 [#imx-905] fix gpu gc_hal_kernel_platform_imx.c license error
Yuchou Gan [Mon, 29 Jan 2018 11:22:06 +0000 (19:22 +0800)]
MGS-3622 [#imx-905] fix gpu gc_hal_kernel_platform_imx.c license error

The GPU kernel driver file gc_hal_kernel_platform_imx.c license is incorrect,
Need fix it with GPL and MIT license statement.

Date: Jan 29, 2017
Signed-off-by: Yuchou Gan yuchou.gan@nxp.com
7 years agoMLK-17461-4: dts: reparent dpu/hdmi pixel clock from av_pll_bypass
Sandor Yu [Thu, 25 Jan 2018 08:23:25 +0000 (16:23 +0800)]
MLK-17461-4: dts: reparent dpu/hdmi pixel clock from av_pll_bypass

Reparent dpu and hdmi pixel clock from av_pll_bypass.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
7 years agoMLK-17461-3: hdp: Remove pixel clock root setting
Sandor Yu [Thu, 25 Jan 2018 08:27:54 +0000 (16:27 +0800)]
MLK-17461-3: hdp: Remove pixel clock root setting

HDMI pixel clock reparent function have implemented in dts,
remove clock root set function from hdp driver.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
7 years agoMLK-17461-2: clk: create imx8qm hdmi_pixel_select clocks
Sandor Yu [Thu, 25 Jan 2018 08:18:31 +0000 (16:18 +0800)]
MLK-17461-2: clk: create imx8qm hdmi_pixel_select clocks

Add hdmi_pxl_sel clocks.
Add av_pll_bypass clock.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
7 years agoMLK-17461-1: clk: define hdmi pixel select clock
Sandor Yu [Thu, 25 Jan 2018 08:21:52 +0000 (16:21 +0800)]
MLK-17461-1: clk: define hdmi pixel select clock

Define hdmi pixel select clocks.
Define av_pll_bypass clock.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
7 years agoMGS-3617 [#ccc] Disable the depth compression for imx8 board
Yuchou Gan [Fri, 26 Jan 2018 15:44:02 +0000 (23:44 +0800)]
MGS-3617 [#ccc] Disable the depth compression for imx8 board

This is the requirement for MGS-2914, but will cause cts failure and be reverted later.
New gpu driver 6.2.4.p1.pre2 has fixed the cts failure issue so we disable it again.

Date: Jan 26, 2017
Signed-off-by: Yuchou Gan yuchou.gan@nxp.com
7 years agoMGS-3616 [#ccc] Integrate 6.2.4.p1.pre2 hal driver to linux kernel
Yuchou Gan [Fri, 26 Jan 2018 14:34:54 +0000 (22:34 +0800)]
MGS-3616 [#ccc] Integrate 6.2.4.p1.pre2 hal driver to linux kernel

Update the gpu kernel to 6.2.4.p1.pre2

Date: Jan 26, 2017
Signed-off-by: Yuchou Gan yuchou.gan@nxp.com
7 years agoMLK-15033: ASoC: ak4458: add pm_runtime support
Cosmin-Gabriel Samoila [Thu, 25 Jan 2018 12:36:55 +0000 (14:36 +0200)]
MLK-15033: ASoC: ak4458: add pm_runtime support

Add pm_runtime support for AK4458 codec. Based on latest power
management design in MLK-17074, every driver need to enter
runtime suspend state before entering system suspend, so the
driver should call the pm_runtime_force_suspend in suspend.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-17445: ASoC: ak4497: add pm_runtime support
Viorel Suman [Tue, 23 Jan 2018 12:18:05 +0000 (14:18 +0200)]
MLK-17445: ASoC: ak4497: add pm_runtime support

Add pm_runtime support fo AK4497 codec. Based on latest power
management design in MLK-17074, every driver need to enter
runtime suspend state before entering system suspend, so the
driver should call the pm_runtime_force_suspend in suspend.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17456-2: hdmi: Remove debug log
Sandor Yu [Wed, 24 Jan 2018 11:23:04 +0000 (19:23 +0800)]
MLK-17456-2: hdmi: Remove debug log

Remove debug log

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-17456-1: hdp: Enable EDID read function for imx8mq hdmi
Sandor Yu [Wed, 24 Jan 2018 11:18:16 +0000 (19:18 +0800)]
MLK-17456-1: hdp: Enable EDID read function for imx8mq hdmi

-Enable EDID read function for imx8mq hdmi.
-Add video mode check.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-17457: arm64: dts: enable usb otg for imx8mq ddr4 arm2
Han Xu [Wed, 24 Jan 2018 21:58:12 +0000 (15:58 -0600)]
MLK-17457: arm64: dts: enable usb otg for imx8mq ddr4 arm2

enable the usb otg for mfgtool download on imx8mq ddr4 arm2 board.

Signed-off-by: Han Xu <han.xu@nxp.com>
7 years agoMLK-15071: ASoC: codecs: AK5558: Remove unsuported rates and channels
Cosmin-Gabriel Samoila [Wed, 24 Jan 2018 08:39:22 +0000 (10:39 +0200)]
MLK-15071: ASoC: codecs: AK5558: Remove unsuported rates and channels

Support only even number of channels greater than 2 and
rates multiple of 8000.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-17453 arm64: dts: increase i2c pad drive strength
Gao Pan [Wed, 24 Jan 2018 06:00:02 +0000 (14:00 +0800)]
MLK-17453 arm64: dts: increase i2c pad drive strength

Too many i2c slaves are conencted to imx8qm i2c0 and
imx8qxp lpi2c1. So i2c pad drive strength should be
increased. Otherwise, there will be i2c probe error.

Reported-by: Andy Tian <yang.tian@nxp.com>
Tested-by: Andy Tian <yang.tian@nxp.com>
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-17449 ARM: imx_v7_defconfig: disabled the config CONFIG_CFG80211_INTERNAL_REGDB
Fugang Duan [Wed, 24 Jan 2018 03:43:07 +0000 (11:43 +0800)]
MLK-17449 ARM: imx_v7_defconfig: disabled the config CONFIG_CFG80211_INTERNAL_REGDB

Enable config "CONFIG_CFG80211_INTERNAL_REGDB" break i.MX7D bcmdhd driver
for Murata TypeZP module. Now disable it.
fixes:[336e66bee4a5] "MLK-17362-03 ARM: imx_v7_defconfig: enable configs for QCA9377-3"

Reported-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-17452 clk: imx: imx7ulp: update nic1_divbus clock for B0
Anson Huang [Wed, 24 Jan 2018 14:45:49 +0000 (22:45 +0800)]
MLK-17452 clk: imx: imx7ulp: update nic1_divbus clock for B0

On i.MX7ULP B0 chip, nic1_divbus's parent is changed to
from nic0_div directly, update it accordingly.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
7 years agoMLK-17450 - [i.MX8MQ/Hantro]: Support voltage adjustment
Zhou Peng-B04994 [Wed, 24 Jan 2018 06:40:35 +0000 (14:40 +0800)]
MLK-17450 - [i.MX8MQ/Hantro]: Support voltage adjustment

Update vpu voltage to 1.0v for 600M+ clock
Otherwise, keep 0.9v voltage

Signed-off-by: Zhou Peng-B04994 <eagle.zhou@nxp.com>
7 years agoMLK-17447 drivers: soc: imx: Fix busfreq mutex unlock twice on imx8mq
Bai Ping [Mon, 8 Jan 2018 08:06:55 +0000 (16:06 +0800)]
MLK-17447 drivers: soc: imx: Fix busfreq mutex unlock twice on imx8mq

A 'return' statement is missed before, So the mutex will be unlocked
twice, in some corner case, one core will unlock the mutex that locked
by anohter core wrongly. Then lead to concurrent access to the DVFS
at the same time.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-16224-8: ARM64: dts: support DSD for ak4497
Shengjiu Wang [Tue, 23 Jan 2018 09:16:10 +0000 (17:16 +0800)]
MLK-16224-8: ARM64: dts: support DSD for ak4497

For most DSD sample rate is mulitply of 44k, so specify PLL2
for DSD usage. for pinmux is different for DSD mode compare with
PCM mode, define a new pinmux group for DSD.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-16224-7: ASoC: imx-ak4497: support dsd format
Shengjiu Wang [Tue, 23 Jan 2018 05:28:55 +0000 (13:28 +0800)]
MLK-16224-7: ASoC: imx-ak4497: support dsd format

for dsd, specify the slot number is 1, SND_SOC_DAIFMT_PDM is
used for DSD, and add constraint for sample rate.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-16224-6: ASoC: ak4497: support dsd format
Shengjiu Wang [Tue, 23 Jan 2018 05:28:24 +0000 (13:28 +0800)]
MLK-16224-6: ASoC: ak4497: support dsd format

Add DSD_U8, DSD_U16_LE, DSD_U32_LE in support list. and
SND_SOC_DAIFMT_PDM is used for DSD format

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-16224-5: dma: imx-sdma: support mulit fifo script
Shengjiu Wang [Tue, 23 Jan 2018 05:28:05 +0000 (13:28 +0800)]
MLK-16224-5: dma: imx-sdma: support mulit fifo script

The type IMX_DMATYPE_MULTI_SAI is used for SAI multi-fifo mode,
in this mode, the fifo num parameter is configured through
dma_slave_config

The watermark definition is:
bit0~7: wartermark level
bit8~11: fifo number
bit16~19: fifo offset
bit27~24: sw done selector
bit23: sw done enabled

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Robin Gong<yibin.gong@nxp.com>
7 years agoMLK-16224-4: ASoC: fsl_sai: support multi fifo and DSD
Shengjiu Wang [Tue, 23 Jan 2018 05:26:37 +0000 (13:26 +0800)]
MLK-16224-4: ASoC: fsl_sai: support multi fifo and DSD

The codec always mux the LRCLK pin to DSD data line, so when
we want to support DSD, the pinmux is different. For two channel
DSD, the DSDL is mapped to TX0, but the DSDR is mapped to TX4,
there is address offset for the fifo address of TX0 and TX4, TX4's
fifo is not adjacent to TX0's.

Usually, if mapping is TX0 and TX1, that will be easy for SAI
and SDMA to handle, that SAI can use the FIFO combine mode, SDMA
can use the normal script.

so for DSD:
1. The SDMA should use the multi-fifo script, and SAI can't
use the FIFO combine mode.
2. driver should to check the dts configuration(fsl,dataline) for
which dataline is used corrently
3. maxburst is the multiply of datalines
4. each channel of DSD occupy one data lane
5. according to data lane, set TRCE bits

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-16224-3: ASoC: imx-pcm-dma-v2: fifo_num is used by dma slave config
Shengjiu Wang [Tue, 23 Jan 2018 05:29:19 +0000 (13:29 +0800)]
MLK-16224-3: ASoC: imx-pcm-dma-v2:  fifo_num is used by dma slave config

fifo_num is a new added parameter for dma slave config

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-16224-2: ASoC: dmaengine_pcm: add fifo_num to snd_dmaengine_dai_dma_data
Shengjiu Wang [Tue, 23 Jan 2018 05:27:10 +0000 (13:27 +0800)]
MLK-16224-2: ASoC: dmaengine_pcm: add fifo_num to snd_dmaengine_dai_dma_data

In order to support multi-fifo sdma script, the audio driver need to send
the fifo number to dma driver through dma_slave_config, and the cpu_dai
driver should config fifo_num for the audio platform driver, then platform
driver can config fifo_num to dma.
So add new variable fifo_num for struct snd_dmaengine_dai_dma_data.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Robin Gong<yibin.gong@nxp.com>
7 years agoMLK-16224-1: dmaengine: add src_fifo_num and dst_fifo_num in dma_slave_config
Shengjiu Wang [Tue, 23 Jan 2018 05:27:39 +0000 (13:27 +0800)]
MLK-16224-1: dmaengine: add src_fifo_num and dst_fifo_num in dma_slave_config

In order to support multi-fifo sdma script, the audio driver need to send
the fifo number to dma driver through dma_slave_config, so add src_fifo_num
and dst_fifo_num two new variable for struct dma_slave_config.

src_fifo_num: bit 0-7 is the fifo number, bit:8-11 is the fifo offset;
dst_fifo_num: same as src_fifo_num

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Robin Gong<yibin.gong@nxp.com>
7 years agoMLK-15033: ASoC: codecs: AK4458: Remove unsupported rates and channels
Cosmin-Gabriel Samoila [Tue, 23 Jan 2018 08:58:32 +0000 (10:58 +0200)]
MLK-15033: ASoC: codecs: AK4458: Remove unsupported rates and channels

Support only even number of channels greater than 2 and
rates multiple of 8000.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-17442: ASoC: fsl: fix wrong usage of filter_data
Shengjiu Wang [Tue, 23 Jan 2018 05:25:40 +0000 (13:25 +0800)]
MLK-17442: ASoC: fsl: fix wrong usage of filter_data

The filter_data should be used for dma_filter_fn function,
but we used the filter_data wrongly for dma channel name.
This patch is to fix the issue.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviwed-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-17412-02: Add support of secvio driver for imx8mq
Franck LENORMAND [Fri, 19 Jan 2018 14:52:42 +0000 (15:52 +0100)]
MLK-17412-02: Add support of secvio driver for imx8mq

This patch:
 - Adds compilation of the secvio driver for all arm64 targets
 - Adds the secvio driver to fsl-imx8mq.dtsi

Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
7 years agoMLK-17412-01: Fix secvio driver to have same driver name as DTS
Franck LENORMAND [Thu, 18 Jan 2018 15:35:45 +0000 (16:35 +0100)]
MLK-17412-01: Fix secvio driver to have same driver name as DTS

The name of the driver was "snvs-secvio" which doesn't corresponds
to its use in the differents dts files.

This patch change the driver name to "caam-snvs" to corresponds
to the dts files.

Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
7 years agoMLK-17410: ASoC: fsl_asrc: fix kernel panic in suspend resume
Shengjiu Wang [Mon, 22 Jan 2018 07:23:25 +0000 (15:23 +0800)]
MLK-17410: ASoC: fsl_asrc: fix kernel panic in suspend resume

After ASRC convert, there will be kernel panic

[   54.365777] [<ffff000008636528>] regmap_mmio_read32le+0x8/0x18
[   54.371615] [<ffff00000862f004>] _regmap_bus_reg_read+0x14/0x20
[   54.377538] [<ffff000008630830>] _regmap_read+0x60/0xe8
[   54.382769] [<ffff000008630c30>] _regmap_update_bits+0xa0/0xf0
[   54.388606] [<ffff000008631be8>] regmap_update_bits_base+0x60/0x90
[   54.394794] [<ffff000008a275c4>] fsl_asrc_resume+0x74/0xa8
[   54.400287] [<ffff0000086226a8>] dpm_run_callback.isra.6+0x30/0x98
[   54.406468] [<ffff000008622b20>] device_resume+0x100/0x188
[   54.411958] [<ffff0000086239c8>] dpm_resume+0x100/0x218
[   54.417188] [<ffff000008623c9c>] dpm_resume_end+0x14/0x28
[   54.422594] [<ffff0000080fd990>] suspend_devices_and_enter+0x138/0x500
[   54.429124] [<ffff0000080fdfc0>] pm_suspend+0x268/0x2d8
[   54.434348] [<ffff0000080fcabc>] state_store+0x84/0xf8
[   54.439491] [<ffff0000083dfcac>] kobj_attr_store+0x14/0x28
[   54.444982] [<ffff000008254e58>] sysfs_kf_write+0x48/0x58
[   54.450383] [<ffff0000082541c8>] kernfs_fop_write+0xb0/0x1f8
[   54.456050] [<ffff0000081dc5c4>] __vfs_write+0x1c/0x100
[   54.461277] [<ffff0000081dd3cc>] vfs_write+0x9c/0x1b0
[   54.466332] [<ffff0000081de814>] SyS_write+0x44/0xa0
[   54.471295] [<ffff000008082f4c>] __sys_trace_return+0x0/0x4

The reason is that the power of subsystem is disabled in suspend
the register can't be accessed. so we need to call pm_runtime_force_suspend
and pm_runtime_force_resume in suspend and resume state.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17443 wireless: bcmdhd: fix build warning
Gao Pan [Tue, 23 Jan 2018 06:15:37 +0000 (14:15 +0800)]
MLK-17443 wireless: bcmdhd: fix build warning

case1: statement "if (bustype != BUSTYPE(bustype))"
equals "if (bustype != bustype)" when BCMBUSTYPE is
not defined. Some compilers treat it as a build warning.

case2: fix misleadingly indented of dhd_os_sdunlock(dhdp)

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Tested-by: Peng Fan <peng.fan@nxp.com>
7 years agoMLK-17441 ARM64: defconfig enable OP-TEE
Peng Fan [Tue, 23 Jan 2018 05:05:53 +0000 (13:05 +0800)]
MLK-17441 ARM64: defconfig enable OP-TEE

Enable OP-TEE by default. With OP-TEE, we could leverage
security features exposed by OP-TEE os.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
7 years agooptee: fix invalid of_node_put() in optee_driver_init()
Jens Wiklander [Mon, 9 Oct 2017 09:11:49 +0000 (11:11 +0200)]
optee: fix invalid of_node_put() in optee_driver_init()

The first node supplied to of_find_matching_node() has its reference
counter decreased as part of call to that function. In optee_driver_init()
after calling of_find_matching_node() it's invalid to call of_node_put() on
the supplied node again.

So remove the invalid call to of_node_put().

Reported-by: Alex Shi <alex.shi@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
(cherry picked from commit f044113113dd95ba73916bde10e804d3cdfa2662)

7 years agoarm64: defconfig: Fixed reordering
Abel Vesa [Mon, 22 Jan 2018 12:00:46 +0000 (14:00 +0200)]
arm64: defconfig: Fixed reordering

Introduced by commits:
542070530eb0 MLK-15070-4: ARM64: defconfig: build in sound card for audio board of mscale
8f97c51d8318 MLK-17400-03 arm64: defconfig: add max732x enable

This is due to manual editing the config instead of using Kconfig to
generate it.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-17401: drm: imx: dcss: fix scaling issue
Laurentiu Palcu [Fri, 19 Jan 2018 07:49:07 +0000 (09:49 +0200)]
MLK-17401: drm: imx: dcss: fix scaling issue

Under certain circumstances (corner cases) the scaling fractions were
not set properly. This patch fixes this.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
7 years agoMLK-17440 ARM: dts: imx7ulp-evk-qspi: update cpu opp table
Anson Huang [Mon, 22 Jan 2018 15:14:46 +0000 (23:14 +0800)]
MLK-17440 ARM: dts: imx7ulp-evk-qspi: update cpu opp table

i.MX7ULP B0 has different CPU opp table, update it accordingly.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Tested-by: Haibo Chen <haibo.chen@nxp.com>
7 years agoMLK-17428-9: ARM64: dts: change the clock frequency to support 768kHz
Shengjiu Wang [Fri, 19 Jan 2018 07:48:21 +0000 (15:48 +0800)]
MLK-17428-9: ARM64: dts: change the clock frequency to support 768kHz

The bit clock for 786KHz, 16bit, 2 channel is 24.576MHz, and the default
divider of SAI is at least 2, so the minimum master clock should be 49MHz.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-17428-8: ASoC: fsl_sai: support 768KHz sample rate
Shengjiu Wang [Fri, 19 Jan 2018 07:45:21 +0000 (15:45 +0800)]
MLK-17428-8: ASoC: fsl_sai: support 768KHz sample rate

support 768Hz sample rate and 2.8MHz for DSD

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17428-7: ASoC: imx-ak5558: support 768KHz sample rate
Shengjiu Wang [Fri, 19 Jan 2018 09:44:00 +0000 (17:44 +0800)]
MLK-17428-7: ASoC: imx-ak5558: support 768KHz sample rate

For 768kHz sample rate, the codec can't support 64fs mclk, only
can support 32fs mclk, so we can't fix the slot_width to 32, which
is for S32_LE, use params_physical_width(params) to instead of
hard code.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17428-6: ASoC: imx-ak4497: support 768KHz sample rate
Shengjiu Wang [Fri, 19 Jan 2018 07:45:06 +0000 (15:45 +0800)]
MLK-17428-6: ASoC: imx-ak4497: support 768KHz sample rate

For 768kHz sample rate, the codec can't support 64fs mclk, only
can support 32fs mclk, so we can't fix the slot_width to 32, which
is for S32_LE, use params_physical_width(params) to instead of
hard code.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17428-5: ASoC: imx-ak4458: support 768KHz sample rate
Shengjiu Wang [Fri, 19 Jan 2018 07:44:40 +0000 (15:44 +0800)]
MLK-17428-5: ASoC: imx-ak4458: support 768KHz sample rate

For 768kHz sample rate, the codec can't support 64fs mclk, only
can support 32fs mclk, so we can't fix the slot_width to 32, which
is for S32_LE, use params_physical_width(params) to instead of
hard code.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17428-4: ASoC: AK5558: fix issue for 8k and 16kHz
Shengjiu Wang [Mon, 22 Jan 2018 03:17:34 +0000 (11:17 +0800)]
MLK-17428-4: ASoC: AK5558: fix issue for 8k and 16kHz

The first time recording for 8k and 16k is ok after boot up,
but there is no data recorded for second time recording, so
re-init the registers when BIAS_OFF to fix the issue.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17428-3: ASoC: AK5558: support 384kHz and 768kHz for ak5558
Shengjiu Wang [Fri, 19 Jan 2018 07:44:13 +0000 (15:44 +0800)]
MLK-17428-3: ASoC: AK5558: support 384kHz and 768kHz for ak5558

The default definition in ALSA for sample rate is in range 8kHz to
192kHz, but some codec support very high sample rate, so we need
to use the SNDRV_PCM_RATE_KNOT and add constraint list for sample
rate to support 384kHz and 768Hz.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17428-2: ASoC: AK4497: support 384kHz and 768kHz for ak4497
Shengjiu Wang [Fri, 19 Jan 2018 07:43:52 +0000 (15:43 +0800)]
MLK-17428-2: ASoC: AK4497: support 384kHz and 768kHz for ak4497

The default definition in ALSA for sample rate is in range 8kHz to
192kHz, but some codec support very high sample rate, so we need
to use the SNDRV_PCM_RATE_KNOT and add constraint list for sample
rate to support 384kHz and 768Hz.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17428-1: ASoC: AK4458: support 384kHz and 768kHz for ak4458
Shengjiu Wang [Fri, 19 Jan 2018 07:43:08 +0000 (15:43 +0800)]
MLK-17428-1: ASoC: AK4458: support 384kHz and 768kHz for ak4458

The default definition in ALSA for sample rate is in range 8kHz to
192kHz, but some codec support very high sample rate, so we need
to use the SNDRV_PCM_RATE_KNOT and add constraint list for sample
rate to support 384kHz and 768Hz.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-17438 arm64: dts: add emvsim0 device node in register address order
Gao Pan [Mon, 22 Jan 2018 02:09:59 +0000 (10:09 +0800)]
MLK-17438 arm64: dts: add emvsim0 device node in register address order

Add emvsim0 device node in register address order

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
7 years agodrm: rename u32 in __u32 in uapi
Lionel Landwerlin [Thu, 24 Aug 2017 15:08:14 +0000 (16:08 +0100)]
drm: rename u32 in __u32 in uapi

All other fields use __

Cc: Ben Widawsky <ben@bwidawsk.net>
Fixes: db1689aa61b ("drm: Create a format/modifier blob")
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170824150814.5878-1-lionel.g.landwerlin@intel.com
7 years agoMLK-17430 Added firmware-6 support for Murata 1CQ mission mode
Jameel kareem [Fri, 19 Jan 2018 06:40:47 +0000 (14:40 +0800)]
MLK-17430 Added firmware-6 support for Murata 1CQ mission mode

Add support to load firmware-6.bin for Murata 1CQ mission mode.
Modify the warning log to debug log for unknown eventid message
when loading firmware-6 file.

Signed-off-by: Jameel kareem <jameel.kareem@murata.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Acked-by: Gao Pan <pandy.gao@nxp.com>
7 years agoMLK-17400-06 arm64: dts: 8qxp: add enet2 phy regulator for arm2 board
Fugang Duan [Wed, 17 Jan 2018 07:40:32 +0000 (15:40 +0800)]
MLK-17400-06 arm64: dts: 8qxp: add enet2 phy regulator for arm2 board

Add enet2 phy regulator for arm2 board to set IO voltage to 1.8v.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Acked-by: Gao Pan <pandy.gao@nxp.com>
7 years agoMLK-17400-05 arm64: dts: 8qm/8qxp: add enet2 phy regulator for MEK board
Fugang Duan [Tue, 2 Jan 2018 10:32:19 +0000 (18:32 +0800)]
MLK-17400-05 arm64: dts: 8qm/8qxp: add enet2 phy regulator for MEK board

Add enet2 phy regulator to fix IO voltage 1.8v for MEK board.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Acked-by: Gao Pan <pandy.gao@nxp.com>
7 years agoMLK-17400-04 arm64: dts: 8qxp: increase pin drive strength for i2c1
Fugang Duan [Wed, 17 Jan 2018 09:01:32 +0000 (17:01 +0800)]
MLK-17400-04 arm64: dts: 8qxp: increase pin drive strength for i2c1

LPI2C1 bus mount many slave devices, the current drive strength is
weak and device probe failed. Then increase the pin drive strength
for LPI2C1 lines.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Acked-by: Gao Pan <pandy.gao@nxp.com>
7 years agoMLK-17400-03 arm64: defconfig: add max732x enable
Fugang Duan [Tue, 2 Jan 2018 10:33:59 +0000 (18:33 +0800)]
MLK-17400-03 arm64: defconfig: add max732x enable

Add max732x config enable.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Acked-by: Gao Pan <pandy.gao@nxp.com>
7 years agoMLK-17400-02 gpio: max732x: add device reset support
Fugang Duan [Wed, 17 Jan 2018 07:36:39 +0000 (15:36 +0800)]
MLK-17400-02 gpio: max732x: add device reset support

Add device reset for max732x driver.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Acked-by: Gao Pan <pandy.gao@nxp.com>
7 years agoMLK-17400-01 net: fec: defer probe if regulator is not ready
Fugang Duan [Tue, 2 Jan 2018 10:29:16 +0000 (18:29 +0800)]
MLK-17400-01 net: fec: defer probe if regulator is not ready

Defer probe if regulator is not ready. E.g. some regulator is fixed
regulator controlled by i2c expander gpio, the i2c device may be probed
after the driver, then it should handle the case of defer probe error.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Acked-by: Gao Pan <pandy.gao@nxp.com>
7 years agoMLK-17426 imx: lpi2c: add debug message when i2c peripheral clk doesn't work
Gao Pan [Fri, 19 Jan 2018 06:30:36 +0000 (14:30 +0800)]
MLK-17426 imx: lpi2c: add debug message when i2c peripheral clk doesn't work

add debug message when i2c peripheral clk rate is 0, then
directly return -EINVAL.

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Reviewed-by: Andy Duan <fugang.duan@nxp.com>
7 years agoMLK-17427 arm64: dts: add ecspi device node for imx8mq
Gao Pan [Wed, 13 Dec 2017 06:28:22 +0000 (14:28 +0800)]
MLK-17427 arm64: dts: add ecspi device node for imx8mq

add ecspi device node for imx8mq

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Reviewed-by: Andy Duan <fugang.duan@nxp.com>
7 years agoMLK-17429-2 Documentation: add doc for EMVSIM
Gao Pan [Fri, 19 Jan 2018 07:50:51 +0000 (15:50 +0800)]
MLK-17429-2 Documentation: add doc for EMVSIM

add devicetree binding doc for add for EMVSIM

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Reviewed-by: Andy Duan <fugang.duan@nxp.com>