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>
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>
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>
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
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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)
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Gao Pan [Fri, 19 Jan 2018 07:38:39 +0000 (15:38 +0800)]
MLK-17429-1 Documentation: add doc for SIMv2
add devicetree binding doc for SIMv2
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Reviewed-by: Andy Duan <fugang.duan@nxp.com>
Gao Pan [Fri, 19 Jan 2018 03:12:15 +0000 (11:12 +0800)]
MLK-17416 imx8: sim: add usleep_range() before reading SPDP Bit
Card Presence Detect Status Bit SPDP in EMV_SIM_PCSR is
synchronized by two posedge of low_ref_clk which is 32KHz.
So there should be 1.5 low_ref_clk cycles(about 90us) before
reading SPDP Bit.
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
Fugang Duan [Thu, 11 Jan 2018 09:08:54 +0000 (17:08 +0800)]
MLK-17362-04 bcmdhd: fix build warning for .reg_notifier callback
drivers/net/wireless/bcmdhd/wl_cfg80211.c: In function 'wl_setup_wiphy':
drivers/net/wireless/bcmdhd/wl_cfg80211.c:8253:28: warning: assignment from incompatible pointer type
wdev->wiphy->reg_notifier = wl_cfg80211_reg_notifier;
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Fugang Duan [Fri, 3 Nov 2017 09:01:45 +0000 (17:01 +0800)]
MLK-17362-03 ARM: imx_v7_defconfig: enable configs for QCA9377-3
Add some necessary configs for qualcomm wifi QCA9377-3.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Fugang Duan [Fri, 3 Nov 2017 05:40:18 +0000 (13:40 +0800)]
MLK-17362-02 arm: dts: imx7ulp-evk: add qualcomm Qca9377-3 bt wifi support
Add qualcomm Qca9377-3 bt wifi support for i.MX7ULP B0 chip
EVK RevA3 board.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Nakul Kachhwaha [Tue, 28 Feb 2017 06:17:01 +0000 (11:47 +0530)]
MLK-17362-01 Changes for wireless and cfg80211 for v4.9.11 support
[Patch] Pulling the following commits and some general changes
from custom v3.10 kernel for supporting qcacld2.0 on kernel v4.9.11.
1. cfg80211: Using new wiphy flag WIPHY_FLAG_DFS_OFFLOAD
When flag WIPHY_FLAG_DFS_OFFLOAD is defined, the driver would handle
all the DFS related operations. Therefore the kernel needs to ignore
the DFS state that it uses to block the userspace calls to the driver
through cfg80211 APIs. Also it should treat the userspace calls to
start radar detection as a no-op.
Please note that changes in util.c is not picked up explicitly.
Kernel v4.9.11 uses wrapper cfg80211_get_chans_dfs_required which takes
care of this change.
Change-Id: I9dd2076945581ca67e54dfc96dd3dbc526c6f0a2
IRs-Fixed: 202686
2. New db.txt from git/sforshee/wireless-regdb.git
CONFIG_CFG80211_INTERNAL_REGDB is enabled in build. This causes
kernel warn messages as db.txt is empty. A new db.txt is added
from:
git://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git
IRs-Fixed: 202686
3. Picked up the declaration and definition of the function
cfg80211_is_gratuitous_arp_unsolicited_na
Change-Id: I1e4083a2327c121073226aa6b75bb6b5b97cec00
CRs-fixed:
1079453
Signed-off-by: Nakul Kachhwaha <nkachh@codeaurora.org>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Shengjiu Wang [Thu, 18 Jan 2018 05:00:48 +0000 (13:00 +0800)]
MLK-15070-4: ARM64: defconfig: build in sound card for audio board of mscale
build in AK4458, AK5558, AK4497
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Shengjiu Wang [Thu, 18 Jan 2018 04:55:42 +0000 (12:55 +0800)]
MLK-15070-3: ARM64: dts: enable audio codec on the audio board of mscale
Enable the AK4458, AK5558, and AK4497 with mode 0. For ak4497 use
same SAI interface with AK4458, so move ak4497 device node to
a separate dts.
The AK4458 support maximum 16 channels, the AK5558 support maximum 8
channels, AK4497 is for stereo.
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Daniel Baluta [Mon, 31 Jul 2017 10:57:43 +0000 (13:57 +0300)]
MLK-15070-2: ASoC: fsl: Add machine driver for AK4497
This glues SAI interface with AK4497 DAC codec on i.MX boards.
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Daniel Baluta [Mon, 31 Jul 2017 10:56:30 +0000 (13:56 +0300)]
MLK-15070-1: ASoC: codecs: Add support for AK4497 DAC
AK4497 is a 32-bit 2ch DAC, supporting up to 6 types
of digital filters and accepts up to 768kHz PCM data
and 22.4MHz DSD data.
This is based on original code received from Asahi Kasei
with the following modifications:
* there is now a .component_driver inside snd_soc_codec_driver holding
the controls, dapm_widgets and dap_routes.
* Remove akdbgprt
* Use module_i2c_driver
* Add NXP copyright
* Use symbolic names for registers
* Fix coding style issues
* fix function parameters indentation
* remove multiple empty newlines
* convert C++ style comments to C style comments
* fix spaces and tabs at the end of the line.
* remove braces {} for single block statements
* Make pointers const
* Fix lines over 80 chars
* Don't initialize statics to 0
* Use usleep_range instead of msleep
* Fx vendor prefix
* Add DT bindings documentation for ak4497 codec
* Remove regmap default functions
* Use devm_kzalloc
* Fix MAX_REGISTERS value
* Add $self as module author
* Remove .owner field
* Make ak4497_init_reg return void
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Shengjiu Wang [Wed, 27 Dec 2017 06:54:52 +0000 (14:54 +0800)]
MLK-15071-2: ASoC: fsl: Add machine driver for AK5558
Add machine driver for i.MX boards that have AK5558 ADC attached to SAI.
Signed-off-by: Mihai Serban <mihai.serban@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Mihai Serban [Tue, 13 Jun 2017 11:52:28 +0000 (14:52 +0300)]
MLK-15071-1: ASoC: codecs: Add AK5558 ADC driver
The AK555x series is a 32-bit, 768 kHz sampling, differential input A/D
converter for digital audio systems. The datasheet is available here:
https://www.akm.com/akm/en/file/datasheet/AK5558VN.pdf
Signed-off-by: Mihai Serban <mihai.serban@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Mihai Serban [Tue, 11 Jul 2017 15:24:52 +0000 (18:24 +0300)]
MLK-15033-2: ASoC: fsl: Add machine driver for AK4458
Add machine driver for i.MX boards that have AK4458 DAC attached to SAI.
Signed-off-by: Mihai Serban <mihai.serban@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Mihai Serban [Tue, 6 Jun 2017 09:12:08 +0000 (12:12 +0300)]
MLK-15033-1: ASoC: codecs: Add support for AK4458 DAC
The AK4458 is a 32-bit 8ch Premium DAC, its datasheet is available here:
https://www.akm.com/akm/en/file/datasheet/AK4458VN.pdf
Signed-off-by: Mihai Serban <mihai.serban@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Gao Pan [Mon, 8 Jan 2018 09:11:20 +0000 (17:11 +0800)]
MLK-17352 defconfig: imx_v7_defconfig: enable SIMv2 in defconfig
To enable SIMv2 for imx6ul/imx7d, both CONFIG_MXC_SIMv2
and CONFIG_ARCH_MXC have to be enabled.
This patch enables these two config in imx_v7_defconfig for
SIMv2 support.
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Reviewed-by: Andy Duan <fugang.duan@nxp.com>
Gao Pan [Thu, 21 Dec 2017 06:54:53 +0000 (14:54 +0800)]
MLK-17319-3 defconfig: enable EMVSIM in defconfig
enable EMVSIM in defconfig
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Reviewed-by: Andy Duan <fugang.duan@nxp.com>
Gao Pan [Mon, 8 Jan 2018 08:59:04 +0000 (16:59 +0800)]
MLK-17319-2 arm64: dts: add emvsim0 device node for imx8qm-mek
add emvsim0 device node for imx8qm-mek to support EMVSIM
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Reviewed-by: Andy Duan <fugang.duan@nxp.com>
Gao Pan [Mon, 8 Jan 2018 09:10:31 +0000 (17:10 +0800)]
MLK-17319-1 imx8: sim: add driver to support EMVSIM module
The EMVSIM module is designed to facilitate communication to
Smart Cards compatible to the EMV ver4.3 standard and compatible
with ISO/IEC 7816-3 Standard.
This patch adds driver to support EMVSIM module for imx8.
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Reviewed-by: Andy Duan <fugang.duan@nxp.com>
Peter Chen [Fri, 12 Jan 2018 07:26:12 +0000 (15:26 +0800)]
MLK-17366-2 usb: cdns3: decrease autosuspend timeout
Cadence3 low power sequence doesn't allow too much time gap
between xhci bus suspend and controller suspend,
otherwise, the disconnection will be seen between them.
Acked-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Peter Chen [Fri, 12 Jan 2018 07:23:44 +0000 (15:23 +0800)]
MLK-17366-1 usb: cdns3: improve USB PHY operation
Improve USB PHY operation, and keep 32K clock for RX detection
all the time, it can fix SS connection can't be recognition
from U3.
Acked-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Manu Gautam [Wed, 27 Sep 2017 11:19:20 +0000 (16:49 +0530)]
usb: dwc3: Don't reinitialize core during host bus-suspend/resume
Driver powers-off PHYs and reinitializes DWC3 core and gadget on
resume. While this works fine for gadget mode but in host
mode there is not re-initialization of host stack. Also, resetting
bus as part of bus_suspend/resume is not correct which could affect
(or disconnect) connected devices.
Fix this by not reinitializing core on suspend/resume in host mode
for HOST only and OTG/drd configurations.
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
(cherry picked from commit
689bf72c6e0dc97493ba14d82f6762456f8f244a)
Jun Li [Wed, 17 Jan 2018 16:16:57 +0000 (00:16 +0800)]
MLK-17399 ARM64: dts: imx8mq: enable usb3 link PM
Enable USB3 hardware link power management, so the link can enter
U1 and U2 if there is no data transfer if the deivce can support
them.
Signed-off-by: Li Jun <jun.li@nxp.com>
Robin Gong [Tue, 16 Jan 2018 09:52:49 +0000 (17:52 +0800)]
MLK-17385: dma: imx-sdma: update sdma script for multi fifo on SAI
update sdma script for multi fifo SAI on i.mx8MQ.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Laurentiu Palcu [Fri, 12 Jan 2018 13:23:38 +0000 (15:23 +0200)]
MLK-17368-4: drm: imx: dcss: add modifier checks
This patch activates modifiers in CRTC and adds checks in the
atomic_check() callback so that only the allowed modifiers are accepted.
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
Laurentiu Palcu [Fri, 12 Jan 2018 13:18:51 +0000 (15:18 +0200)]
MLK-17368-3: drm: imx: dcss: Add support for tiled formats
This patch effectively enables DTRC module in DCSS to decode tiled
formats from VPU:
* uncompressed G1;
* uncompressed G2;
* compressed G2;
Compressed G2 formats need to pass on the decompression table offsets,
by using the 'dtrc_dec_ofs' property. This is a 64 bit value like below:
64--------48----------32---------16---------0
|<- chroma table ofs ->|<- luma table ofs ->|
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
Laurentiu Palcu [Fri, 12 Jan 2018 11:56:58 +0000 (13:56 +0200)]
MLK-17368-2: drm: imx: dcss: split dcss_ctxld_write
In order for DTRC to work properly, we need to be able to write the DCTL
registers (to switch banks), just before activating CTXLD. However,
__dcss_ctxld_enable() function is usually called from irq context, or
whn the mutex is taken. Hence, create a function the can be called from
irq context.
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
Bing Song [Fri, 5 Jan 2018 06:33:51 +0000 (08:33 +0200)]
MLK-17368-1: drm: add fourcc codes for Verisilicon tiled formats
These formats will be used by VPU and DCSS.
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
Richard Liu [Mon, 15 Jan 2018 17:22:43 +0000 (01:22 +0800)]
MA-11120 Fix screen mess with colorful grids issue on mx6dl ard board
The issue is reported on mx6dl ard board after add ion cacheable memory
support in patch "MA-10928 Add system contiguous heap to ion", root cause
is GPU will enable MMU when physical address large than 0x80000000.
ARD board has 2GB memory if not set base address GPU MMU will be enabled
and when GPU mapped address pass to 2D there will have problem. Fix the
issue by set phys_baseaddr=256M in mx6dl board dts, mx6q board already
set phys_baseaddr.
Change-Id: I11935900801ffe811a2c12f37ecbac13a34245f6
Signed-off-by: Richard Liu <xuegang.liu@nxp.com>
Fancy Fang [Mon, 15 Jan 2018 07:34:13 +0000 (15:34 +0800)]
MLK-17370 video: fbdev: mxc_edid: change '640x480' mode clock
For the '640x480' cea mode, change the 'pixclock' from
39722 ps to 39683 ps to satisfy the imx7ulp hdmi display
requirement.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Liu Ying [Fri, 12 Jan 2018 09:42:21 +0000 (17:42 +0800)]
MLK-17371 gpu: imx: dpu: framegen: Use better timeout value to wait for ENSTS
The DPU spec tells us that we need to wait for all pending frames to
be completed when a display stream is disabled. It turns out
that the hardcoded 60-microsecond timeout value is not enough for
some low refresh rate video modes, e.g., 1920x1080@24, which makes
the display stream be disabled incorrectly(leave the hardware an
incorrect machine status). The SoC design indicates that there are
two pending frames to complete in the worst case. This patch waits
for at most three frame duration(which is enough for sure) so that
the hardware may flush out all the pending frames. In case the clock
subsystem provides us a pixel clock with wrong rate and causes the
timeout value be unreasonably long, we truncate it to wait for at
most three seconds.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Oliver Brown [Fri, 12 Jan 2018 16:56:11 +0000 (10:56 -0600)]
MLK-17369: soc:imx8qm/qxp: Add controls for display controller resets
"
commit
cfdb9821531da523fd1f01536eb67c8b8451477f
Author: Oliver Brown <oliver.brown@nxp.com>
Date: Tue Jan 2 07:46:06 2018 -0600
dc: Add controls for display controller resets.
"
Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
Dong Aisheng [Fri, 12 Jan 2018 10:38:09 +0000 (18:38 +0800)]
MLK-17367 imx8: pm-domains: fix restore parent for clk_stat_may_lost case
imx8_rsrc_clk->parent may be cleared during last probe failure.
So we need explicitly call CLK APIs clk_get_parent to get the cached
parent for the later restore. Otherwise, it may reparent to NULL parent
which results in 0 clk rate.
Fixes:
05caa1390f88cb (" MLK-17363-1 imx8: pm-domain: fix clock parent restore issue after suspend/resume")
Reviewed-by: Anson Huang <anson.huang@nxp.com>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Robert Chiras [Tue, 9 Jan 2018 09:18:34 +0000 (11:18 +0200)]
MLK-17275-15: arm64: dts: fsl-imx8qxp-lpddr4-arm2: Remove dsi/lvds specific dts files
Delete the dst files specific to dsi/lvds nodes for the 8QXP LPDDR4
platform.
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Robert Chiras [Tue, 9 Jan 2018 09:13:27 +0000 (11:13 +0200)]
MLK-17275-14: arm64: dts: fsl-imx8qm-lpddr4-arm2: Remove dsi/lvds specific dts files
Delete the dst files specific to dsi/lvds nodes for the 8QM LPDDR4 platform.
Also, update the existing it6263 dts files accordingly.
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Robert Chiras [Thu, 4 Jan 2018 12:43:45 +0000 (14:43 +0200)]
MLK-17275-13: arm64: dts: fsl-imx8qxp-mek: Remove dsi/lvds specific dts files
Delete the dst files specific to dsi/lvds nodes for the 8QXP MEK platform.
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Robert Chiras [Thu, 4 Jan 2018 12:41:49 +0000 (14:41 +0200)]
MLK-17275-12: arm64: dts: fsl-imx8qm-mek: Remove dsi/lvds specific dts files
Delete the dst files specific to dsi/lvds nodes for the 8QM MEK platform.
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Robert Chiras [Tue, 9 Jan 2018 08:52:28 +0000 (10:52 +0200)]
MLK-17275-11: dts: imx8qxp-lpddr4: Enable IT6263 and ADV7535
Final step for the OF_DYNAMIC support: enable the LVDS and MIPI-DSI to
HDMI converter nodes by default in the main DTS file for each platform.
This patch enables these nodes for i.MX8QXP LPDDR4 board.
Also, use adi,dsi-channel = <1> for ADV7535, since the panel can only work
on channel 0. By using channel 1 for ADV7535, we can have them work
simultaneously: one on DSI0 and the other on DSI1.
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Robert Chiras [Mon, 8 Jan 2018 14:39:43 +0000 (16:39 +0200)]
MLK-17275-10: dts: imx8qm-lpddr4: Enable IT6263 and ADV7535
Final step for the OF_DYNAMIC support: enable the LVDS and MIPI-DSI to
HDMI converter nodes by default in the main DTS file for each platform.
This patch enables these nodes for i.MX8QM LPDDR4 board.
Also, use adi,dsi-channel = <1> for ADV7535, since the panel can only work
on channel 0. By using channel 1 for ADV7535, we can have them work
simultaneously: one on DSI0 and the other on DSI1.
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Robert Chiras [Thu, 4 Jan 2018 11:25:38 +0000 (13:25 +0200)]
MLK-17275-9: dts: imx8qxp-mek: Enable IT6263 and ADV7535
Final step for the OF_DYNAMIC support: enable the LVDS and MIPI-DSI
to HDMI converter nodes by default in the main DTS file for each
platform.
This patch enables these nodes for i.MX8QXP MEK board.
Also, use adi,dsi-channel = <1> for ADV7535, since the panel can
only work on channel 0. By using channel 1 for ADV7535, we can have them
work simultaneously: one on DSI0 and the other on DSI1.
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Robert Chiras [Thu, 21 Dec 2017 12:19:15 +0000 (14:19 +0200)]
MLK-17275-8: dts: imx8qm-mek: Enable IT6263 and ADV7535
Final step for the OF_DYNAMIC support: enable the LVDS and MIPI-DSI to
HDMI converter nodes by default in the main DTS file for each platform.
This patch enables these nodes for i.MX8QM MEK board.
Also, use adi,dsi-channel = <1> for ADV7535, since the panel can only
work on channel 0. By using channel 1 for ADV7535, we can have them work
simultaneously: one on DSI0 and the other on DSI1.
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
Robert Chiras [Thu, 21 Dec 2017 12:10:42 +0000 (14:10 +0200)]
MLK-17275-7: drm/bridge: adv7511: Add dsi-channel property
Add a new property "adi,dsi-channel" to allow the user specify the DSI
channel to be used when communicating with DSI peripheral.
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
Robert Chiras [Thu, 21 Dec 2017 09:34:56 +0000 (11:34 +0200)]
MLK-17275-6: arm64: defconfig: Add support for OF_OVERLAY
Enable CONFIG_OF_OVERLAY, so we can use the OF_DYNAMIC API in order to
dynamically reconfigure the devicetree at runtime, based on i2c probing.
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
Robert Chiras [Thu, 21 Dec 2017 09:14:16 +0000 (11:14 +0200)]
MLK-17275-4: drm/imx: nwl_dsi-imx: Update driver for reconfig
Initially, this driver was designed to work with NWL driver as a
drm_bridge and it is required for this to work, otherwise it will defer.
When CONFIG_OF_DYNAMIC is used, the NWL bridge can be disabled by it's
remote endpoint, it that endpoint is an i2c capable device and it fails
to find a physical device on the expected i2c address.
If the NWL drm_bridge is disabled, since this driver it is required by
the master DRM device, just do nothing, so the drm_encoder won't be
created. So, if the NWL drm_bridge is missing, this driver will just do
nothing, in order to not interfere with the other available devices
required by the DRM master.
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
Robert Chiras [Thu, 21 Dec 2017 09:06:44 +0000 (11:06 +0200)]
MLK-17275-3: drm/bridge: nwl-dsi: Fix remove/detach
Add a check in detach function, so that the mipi_dsi_host_unregister
will occur only if the host was registered.
Also, remove the unnecessary calls to host_unregister from probe and
remove functions.
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>