Andy Duan [Sat, 31 Dec 2016 08:01:32 +0000 (16:01 +0800)]
MLK-13712 dmaengine: fsl-edma: restore edma registers for i.MX7ULP VLLS mode
EDMA controller will loss power on i.MX7ULP VLLS mode, then registers
are set to HW reset default value that cause EDMA cannot work after
system wake up. So the patch is to restore eDMA registers status after
system exit from VLLS mode.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
(cherry picked from commit:
bc15f814383d)
Conflicts:
drivers/dma/fsl-edma.c
Andy Duan [Fri, 24 Mar 2017 05:47:41 +0000 (13:47 +0800)]
dts: arm64: imx8qm: add lpuart0 ipg clock and correct interrupt number
Add lpuart0 ipg clock and correct interrupt number.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Robert Chiras [Thu, 16 Mar 2017 10:20:45 +0000 (12:20 +0200)]
MLK-14473: touchscreen: Fix return type
The touchscreen driver, max11801, which is on 12c2 bus, won't be probed
when using the hdcp specific DTS (this is disabling 12c2, since it
will acquire it for DDC communications). Since this driver won't be
probed, it will spam the dmesg with the pr_err from max11801_read_adc()
function. This function is periodically called by the battery driver. For
this reason, I removed the pr_err() call.
Also, to be noticed that the function signature is u32, but in case of an
error it will return a negative integer. In order to correctly propagate
errors, I changed the function signature to int. This is safe, since the
read value from i2c is on 16 bits (MSB and LSB on 8 bits).
Also, the function calibration_voltage is calling max11801_read_adc from
touchscreen driverm which can return negative values in case of an
error. I case of an error, just stop reading ADC data and return 0 as
voltage_data.
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Robert Chiras [Thu, 16 Mar 2017 10:15:50 +0000 (12:15 +0200)]
MLK-14473: hdmi: Fix ioctl implementation
The function mxc_hdmi_ioctl is passing kernel memory to user-space. The
case for HDMI_IOC_GET_CPU_TYPE is passing the memory directly, which is
not permitted. Fixed this, by using put_user().
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Xianzhong [Tue, 28 Mar 2017 06:04:20 +0000 (14:04 +0800)]
MGS-2752 [#imx-303] integrate 6.2.2 snapshot release
Integrate 6.2.2 coverity fix and snapshot patches
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
Anson Huang [Tue, 28 Mar 2017 16:10:50 +0000 (00:10 +0800)]
MLK-14534-3 arm64: defconfig: enable i.MX8 cpufreq
Enable i.MX8 cpu-freq by default for defconfig.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Anson Huang [Tue, 28 Mar 2017 16:09:35 +0000 (00:09 +0800)]
MLK-14534-2 soc: imx8: register cpu-freq platform driver
Register cpu-freq platform driver for i.MX8.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Anson Huang [Tue, 28 Mar 2017 16:07:57 +0000 (00:07 +0800)]
MLK-14534-1 cpufreq: imx8: add cpu-freq support
Add multi-clusters cpu-freq driver support for i.MX8,
only support cpu-freq get now.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Frank Li [Wed, 5 Oct 2016 19:54:42 +0000 (14:54 -0500)]
MLK-14379: drivers: perf: Add DDR perf count support
perf stat -a -e ddr0/cycles/,ddr0/read-bytes/,ddr0/write-bytes/,ddr1/cycles/,d
dr1/read-bytes/,ddr1/write-bytes/ dd if=/dev/zero of=/dev/null bs=10M count=1
1+0 records in
1+0 records out
Performance counter stats for 'system wide':
7236174 ddr0/cycles/ (99.97%)
8573 ddr0/read-bytes/ (99.99%)
163628 ddr0/write-bytes/
7256543 ddr1/cycles/ (99.99%)
9308 ddr1/read-bytes/ (100.00%)
165039 ddr1/write-bytes/
0.
008990125 seconds time elapsed
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Tiberiu Breana <andrei-tiberiu.breana@nxp.com>
Peter Chen [Tue, 28 Mar 2017 03:32:07 +0000 (11:32 +0800)]
MLK-14527 ARM: dts: Makefile: remove duplicate entry
Remove duplicate entry for imx6sx-sabreauto-m4.dtb
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Yuchou Gan [Tue, 28 Mar 2017 10:00:05 +0000 (18:00 +0800)]
MGS-2767 [#imx-320] i.MX7ULP GPU suspend/resume problem
This commit reverts the patch from VSI and use the fix from commit
ba8592e6d791cd5ab81dcd872eab610d3b232934. As the patch VSI provided did not fix this issue tested on 6q.
Date: Mar 27, 2017
Signed-off-by: yuchou.gan <yuchou.gan@nxp.com>
Tiberiu Breana [Wed, 22 Mar 2017 09:58:25 +0000 (11:58 +0200)]
MLK-14505: dts: imx6ull-14x14-evk: Remove imx6ul-evk function node
Removed the unnecessary imx6ul-evk function node, as it was causing
a kernel panic at boot time due to an enumeration error.
Signed-off-by: Tiberiu Breana <andrei-tiberiu.breana@nxp.com>
Peng Fan [Fri, 24 Mar 2017 08:24:11 +0000 (16:24 +0800)]
MLK-14479 clk: imx: scu mux: fix gpr mux settings
sc_misc_set/get_control use mutex lock/unlock internally,
so using spin lock/unlock to protect sc_misc_set/get_control is
wrong. So drop the spin lock.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Prabhu Sundararaj [Thu, 23 Mar 2017 21:49:50 +0000 (16:49 -0500)]
MGS-2133 GPU kernel driver bring-up on i.MX8QM
Add GPU support for i.M8QM.
Signed-off-by Meng Mingming <mingming.meng@nxp.com>
Signed-off-by: Prabhu Sundararaj <prabhu.sundararaj@nxp.com>
Prabhu Sundararaj [Thu, 23 Mar 2017 19:29:09 +0000 (14:29 -0500)]
MGS-2437 mxc: add gpu-viv driver configuration for i.MX8
gpu-viv driver is common for ARCH_MXC and MX8
Signed-off-by: Prabhu Sundararaj <prabhu.sundararaj@nxp.com>
Prabhu Sundararaj [Thu, 23 Mar 2017 19:26:21 +0000 (14:26 -0500)]
MGS-2437 gpu: Add support for i.MX8QXP
Add the GPU configuration for i.MX8QXP
Signed-off-by: Yong Gan <yong.gan@nxp.com>
Signed-off-by: Prabhu Sundararaj <prabhu.sundararaj@nxp.com>
Robin Gong [Fri, 24 Mar 2017 08:46:52 +0000 (16:46 +0800)]
MLK-14514-2 dma: sdma: use dma_pool_free instead of dma_free_coherent
Some drivers may call terminate dma channel in interrupt, thus
we'd better use dma_poo_free.(Documentation/DMA-API-HOWTO.txt)
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Robin Gong [Fri, 24 Mar 2017 08:58:56 +0000 (16:58 +0800)]
MLK-14514-1 ARM: dts: imx6/7: revert 'enable ocram for sdma'
Revert "MLK-14498-12 arm: dts: imx6/7: enable ocram for sdma"
This reverts commit
51b2a6f6d70c.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Richard Zhu [Wed, 22 Mar 2017 02:19:57 +0000 (10:19 +0800)]
MLK-14501 ARM: imx: mu: pass real dev id when request shared irq
Pass the real dev id when the shared irq is request.
Otherwise, the request_irq would be failed.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Robin Gong [Thu, 23 Mar 2017 03:34:40 +0000 (11:34 +0800)]
MLK-14510: ARM: dts: imx6ull-14x14-ddr3-arm2: fix pfuze200 probe error
SW3B fused to high voltage 0.8v~3.3v and the low voltage setting in
dts cause pfuze200 driver probe failed as below even if the pfuze
driver have already updated the voltage to the right 0.8v~3.3v.But the
issue not caught on v4.1 since it's common regualtor framework behavior.
Correct the SW3B into the right voltage in v4.9
fuze100-regulator 0-0008: pfuze200 found.
SW3B: Bringing 3300000uV into
1975000-1975000uV
SW3B: failed to apply
1975000-1975000uV constraint(-22)
pfuze100-regulator 0-0008: register regulatorSW3B failed
pfuze100-regulator: probe of 0-0008 failed with error -22
2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 19, base_baud =
5000000) is a IMX
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Anson Huang [Wed, 22 Mar 2017 10:16:21 +0000 (18:16 +0800)]
MLK-14502 drivers: build mxc drivers by default
Build mxc drivers by default for both ARMv7 and ARMv8
platforms.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Daniel Baluta [Mon, 20 Mar 2017 09:57:26 +0000 (11:57 +0200)]
MLK-14277: ASoC: codec: wm8960: Relax bit clock computation
WM8960 derives bit clock from sysclock using BCLKDIV[3:0] of R8
clocking register (See WM8960 datasheet, page 71).
There are use cases, like this:
aplay -Dhw:0,0 -r 48000 -c 1 -f S20_3LE -t raw audio48k20b_3LE1c.pcm
where no BCLKDIV applied to sysclock can give us the exact requested
bitclk, so driver fails to configure clocking and aplay fails to run.
Fix this by relaxing bitclk computation, so that when no exact value
can be derived from sysclk pick the closest value greater than
expected bitclk.
Suggested-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Daniel Baluta [Mon, 13 Mar 2017 16:57:23 +0000 (18:57 +0200)]
MLK-14277: ASoC: codec: wm8960: Refactor sysclk freq search
Add a separate function for finding (sysclk, lrclk, bclk)
when the clock is auto or mclk. This makes code easier to
read and reduces the indentation level in wm8960_configure_clocking.
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Robin Gong [Wed, 22 Mar 2017 08:29:46 +0000 (16:29 +0800)]
MLK-14503: ARM: dts: imx6qdl: correct ecspi sdma script type
Correct the ecspi sdma script type, since the workaroud sdma script
NOT work in SPBA bus, just sync with v4.1.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Robin Gong [Thu, 24 Dec 2015 09:44:31 +0000 (17:44 +0800)]
MLK-12076-4: spi: spi-imx: add imx6ul device type
Add imx6ul device type in spi driver to enable the ERR008517 workaround
or not by dts easily.
Signed-off-by: Robin Gong <b38343@freescale.com>
(cherry picked from commit
85c6cc2243919f2c46b335ec8b5be70294942e4d)
(cherry picked from commit
296305f200abd5982a4934b82e7aaf11a3dfc354)
Conflicts:
drivers/spi/spi-imx.c
Robin Gong [Wed, 11 Mar 2015 06:58:18 +0000 (14:58 +0800)]
MLK-10404-1 spi: spi-imx: use XCH mode even in DMA mode
To workaroud the TKT238285, the safe way is use XCH mode in SDMA
script to simulate as PIO mode which never report such issue. Meanwhile,
set tx threashold as 0. But this workaroud will bring performance impacted,
below performance data is collected by 'dd' with SPI-NOR flash on i.mx6dl
sabresd board:
mode write data read data
--PIO 194KB/s 644KB/s
--DMA normal
(SMC, tx_thresh=32) 222KB/s 1.4MB/s
--DMA(XCH, tx_thresh=0) 210KB/s 1.0MB/s
Signed-off-by: Robin Gong <b38343@freescale.com>
(cherry picked from commit
01be65fa5617aa192307ca38b6fc6128f3f0c3f7)
(cherry picked from commit
646a751a4d1d0e227a762b461d9b8f92605c26b1)
(cherry picked from commit
b334993950b24ced30fcfc70c126b65bf4cb4cff)
Conflicts:
drivers/spi/spi-imx.c
Andy Duan [Wed, 22 Mar 2017 08:40:09 +0000 (16:40 +0800)]
MLK-14498-13 tty: serial: imx: use tty_port_suspended() instead of ASYNC_SUSPENDED
tty_port flag "ASYNC_SUSPENDED" has been discarded from kernel upgrade, then
use .tty_port_suspended() instead of the flag check.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Andy Duan [Wed, 22 Mar 2017 08:30:23 +0000 (16:30 +0800)]
MLK-14498-12 arm: dts: imx6/7: enable ocram for sdma
Add ocram for sdma BDs memory.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Acked-by: Robin Gong <yibin.gong@nxp.com>
Andy Duan [Wed, 22 Mar 2017 03:33:38 +0000 (11:33 +0800)]
MLK-14498-11 reset: gpio-reset: use the cansleep variant of the GPIO API
Use the cansleep variant of the GPIO API.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Andy Duan [Wed, 22 Mar 2017 02:31:04 +0000 (10:31 +0800)]
MLK-14498-10 dma: imx-sdma: fix wrong chn_real_count in cyclic mode
The sdmac->chn_real_count is equal to sdmac->period_len in dma cyclic
mode that is not correct, correct it to real count in current BD transfer.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Andy Duan [Tue, 21 Mar 2017 10:08:04 +0000 (18:08 +0800)]
MLK-14498-9 dts: imx6/imx7: add modem device reset node
Add BT modem device reset node.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Andy Duan [Tue, 21 Mar 2017 09:59:20 +0000 (17:59 +0800)]
MLK-14498-8 tty: serial: imx: add modem device reset
Add modem device reset, wthether to reset depend on dts configuration.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Andy Duan [Tue, 21 Mar 2017 09:51:39 +0000 (17:51 +0800)]
MLK-14498-7 dma: imx-sdma: pass ->dev to dma_alloc_coherent() API
Pass ->dev to dma_alloc_coherent() API.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Andy Duan [Mon, 20 Mar 2017 08:04:15 +0000 (16:04 +0800)]
MLK-14498-6 tty: serial: imx: pass ->dev to dma_alloc_coherent() API
Pass ->dev to dma_alloc_coherent() API to avoid kernel dump.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Fugang Duan [Wed, 20 Jan 2016 08:33:54 +0000 (16:33 +0800)]
MLK-12294 tty: serial: imx: init sport->flags before tx DMA ready
Before then DMA tx path, init the DMA tx path synchronal flags
sport->flags.
Signed-off-by: Fugang Duan <B38611@freescale.com>
Fugang Duan [Fri, 8 Jan 2016 05:36:05 +0000 (13:36 +0800)]
MLK-12161 tty: serial: imx: only enable RTSD interrupt for hw flow control
Only enable RTSD interrupt for hw flow control, otherwise RTS_B signal
has some external signal disturbance without config RTS_B select input.
Signed-off-by: Fugang Duan <B38611@freescale.com>
(cherry picked from commit:
471e8c43aca3)
Conflicts:
drivers/tty/serial/imx.c
Fugang Duan [Wed, 11 Nov 2015 01:31:04 +0000 (09:31 +0800)]
MLK-11851 tty: series: imx: add dma memory check before freeing
Add dma memory check before free it.
Signed-off-by: Fugang Duan <B38611@freescale.com>
Andy Duan [Tue, 21 Mar 2017 09:32:56 +0000 (17:32 +0800)]
MLK-14498-6 tty: serial: imx: align tx path with kernel 3.14
Align tx path with kernel 3.14, otherwise there have data loss.
The patch is cherry-picked from commit:
47c1570ac934, and merge
the patch
1afe15219403.
Signed-off-by: Fugang Duan <B38611@freescale.com>
Andy Duan [Tue, 21 Mar 2017 09:22:20 +0000 (17:22 +0800)]
MLK-11665 tty: serial: imx: move dma init to .startup() function
Kernel upgrade to 4.1.8 from 4.1.4 has one conflict: commit:
3cd6a7db4c2c and
commit:
4eede03b97bf, and there introduces one issue during the merge. The issue
cause pio mode cannot work.
The patch fix the error that move the dma init function to .startup().
Signed-off-by: Fugang Duan <B38611@freescale.com>
Andy Duan [Tue, 21 Mar 2017 09:14:39 +0000 (17:14 +0800)]
MLK-10274 tty: serial: clear AWAKE bit after resume back
When uart port (non-console port) in dma mode and use uart as remote wakeup
source, after resume back, the AWAKE bit is not cleared most of interrupts
are disabled. And then let system suspend state, system resume back immediately
without any wake up action. So we need to clear the AWAKE bit after resume
back in DMA mode.
Merge comments: it is necessary to clear AWAKE or RTSD bit.
Signed-off-by: Fugang Duan <B38611@freescale.com>
(merge patch from commit:
d4b6b6b20eb2c5cca47292f89ab588b15d3be0a9)
Andy Duan [Tue, 21 Mar 2017 07:01:57 +0000 (15:01 +0800)]
MLK-14498-5 tty: serial: imx: fix the DMA issue
The commmunity driver uart DMA don't work, it better to use
4.1.y DMA process mechanism, so there have many conflict during
code merging. Decisively, to use 4.1.y commit
f00cf8855eaa in the
merge point for DMA implemention.
In DMA mode, don't involve CPU interrupt, remove .imx_dma_rxint()
function.
After the patch, DMA and CPU mode both work fine with the current
SDMA driver.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Andy Duan [Tue, 21 Mar 2017 06:25:25 +0000 (14:25 +0800)]
MLK-14498-4 dma: imx-sdma: remove the redundant clock operation
Remove the redundant clock operation.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Andy Duan [Tue, 21 Mar 2017 06:17:49 +0000 (14:17 +0800)]
MLK-14498-3 dma: imx-sdma: avoid dead lock in cyclic case
Avoid dead lock in DMA cyclic case.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Andy Duan [Mon, 20 Mar 2017 07:45:18 +0000 (15:45 +0800)]
MLK-14498-2 ARM: imx7d: clk: select uart clock parent and rate
Currently, it is failed to set clock rate in dts file that maybe some clock
patch miss. Now just set the clock parent and rate in clock driver.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Andy Duan [Mon, 20 Mar 2017 07:44:11 +0000 (15:44 +0800)]
MLK-14498-1 dts: imx7s: add uart dma chans
Add uart dma chans.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Gao Pan [Wed, 14 Oct 2015 09:24:36 +0000 (17:24 +0800)]
MLK-11709 dma: imx-sdma: fix build error
Commit:
872ee3f9d4c1 introduce build error.
The patch just fix the build error.
Signed-off-by: Gao Pan <b54642@freescale.com>
(cherry picked from commit
06a01760df40fbffe37e6a053a40308240224cb2)
Robin Gong [Mon, 12 Oct 2015 04:46:14 +0000 (12:46 +0800)]
MLK-11689: dma: imx-sdma: correct channel context restore
Before, checking SDMA_H_C0PTR register to know whether sdma controller turned
off in DSM, if yes restore channel context back. Unfortunatly, this checking
is wrong, because SDMA_H_C0PTR has been initialized as non-zero value in
sdma_resume, which means channel context will never be restored back if mega/
fast off on i.mx6sx or i.mx7d. Using 'suspend_off' flag to keep this 'restore
needed' requirement.
Signed-off-by: Robin Gong <b38343@freescale.com>
(cherry picked from commit
565d4c45926a03029d7750a57f3e3f2404de7301)
(cherry picked from commit
70dbe82f8fb504497ab5d544ce0c30cfca15c515)
Robin Gong [Mon, 17 Aug 2015 09:29:06 +0000 (17:29 +0800)]
MLK-11358-6: dma: imx-sdma: reload context once sdma channel terminated
Some driver may call dmaengine_terminate_all firstly, and then start next by
calling dmaengine_prep_* without dmaengine_slave_config. In this case sdma
transfer failed since no context loaded, take this case in this patch.
Signed-off-by: Robin Gong <b38343@freescale.com>
(cherry picked from commit
51ff948df543dc273fefeb86608e7d6d28ca8090)
Robin Gong [Fri, 17 Mar 2017 09:31:11 +0000 (17:31 +0800)]
MLK-14482-2: dma: imx-sdma: add virt-dma support
This patch cherry-pick the blow patch from v4.1.y, and resove
conflicts.
commit
70805e9da3fd25eebf0e141a5cda48fba310c5f5
Author: Robin Gong <b38343@freescale.com>
Date: Mon Aug 17 16:04:48 2015 +0800
MLK-11358-3: dma: imx-sdma: add virt-dma support
Old sdma can't support multi instances, because next transfer will return
error if the last transfer not done(sdmac->status == DMA_IN_PROGRESS). virt
dma is a common framework for versus dma drivers, and it's support multi
instances, driver can dynamicly alloc description and add it to list which
will be handled in the last sdma transfer done later.
Another advantage of this patch is to clean up the constrain of max bd numer:
--#define NUM_BD (int)(PAGE_SIZE / sizeof(struct sdma_buffer_descriptor))
in other words, now sdma driver can support any length data now.
Meanwhile, remove sdma_load_context() in prep_* everytime, since it can do
only once in config channel.
Signed-off-by: Robin Gong <b38343@freescale.com>
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Robin Gong [Fri, 17 Mar 2017 03:44:31 +0000 (11:44 +0800)]
MLK-14482-1: dma: imx-sdma: fix memory_2_memory copy failed
emi_2_emi have to be set in memory_2_memory case, code miss during
rebase, fix up it now.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Richard Zhu [Tue, 21 Mar 2017 02:17:36 +0000 (10:17 +0800)]
MLK-14487-2 rpmsg: imx: validate the rpmsg on imx7ulp
- add the .data into the imx_rpmsg_dt_ids table, thus
the driver can distinguish the different platforms.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Tested-by: Daniel Baluta <daniel.baluta@nxp.com>
Richard Zhu [Tue, 21 Mar 2017 02:15:40 +0000 (10:15 +0800)]
MLK-14487-1 rpmsg: imx: validate the rpmsg on imx7ulp
- change the module_init to subsys_initcall.
Otherwise, the pf1550-rpmsg would be invoked before
the rpmsg bus driver on imx7ulp.
Then, sdhc wouldn't be powered up properly if pf1550
isn't functional.
- remove the no longer used imc_rpmsg_exit.
- pass the real device id if the shared irq is requested.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Tested-by: Daniel Baluta <daniel.baluta@nxp.com>
Tiberiu Breana [Thu, 16 Mar 2017 09:30:17 +0000 (11:30 +0200)]
MLK-14426: ARM: dts: imx6ul-evk-btwifi: Remove imx6ul-evk-murata-v2 function node
Removed the unused imx6ul-evk-murata-v2 function node which was
causing a kernel panic at boot time.
Signed-off-by: Tiberiu Breana <andrei-tiberiu.breana@nxp.com>
Xianzhong [Sun, 19 Mar 2017 02:47:38 +0000 (10:47 +0800)]
MGS-2698-6 [#imx-188] fix device node reference
remove the duplicated of_node_put for imx gpu subsystem,
this change only fix the gpu driver problem for i.mx8.
Date: Mar 19, 2017
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
Leonard Crestez [Wed, 15 Mar 2017 14:34:45 +0000 (16:34 +0200)]
MLK-14454: video: mipi_dsi_northwest: Fix leaking a reset_control
The mipi_dsi_disp_init function takes a reference to a reset_control
during initialization and does not release it.
This becomes a problem on 4.9 because reset_control_get has been split
into exclusive mode(default) and shared(which need to be marked).
Leaking a reference counts looks like attempting to fetch a second
reference to a controller and this WARNs and returns -EBUSY.
Fix by releasing it at the end of the function.
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
xlin [Wed, 8 Feb 2017 21:49:01 +0000 (15:49 -0600)]
MLK-14373-5: ARM: dts: imx6ul-evk-btwifi: Add OOB IRQ support for imx6ul, imx6ull
Added new DTS files for:
imx6ul-9x9-evk
imx6ul-14x14-evk
imx6ull-9x9-evk
imx6ull-14x14-evk
with support for Wifi OOB interrupts.
Signed-off-by: xlin <xlin@murata.com>
Signed-off-by: Tiberiu Breana <andrei-tiberiu.breana@nxp.com>
xlin [Tue, 7 Feb 2017 20:35:20 +0000 (14:35 -0600)]
MLK-14373-4: ARM: dts: imx6ul-evk-btwifi: Fix SN8000CMK bringup error
Fix SN8000CMK bring-up error on i.MX6UL/ULL EVK’s: BT_REG_ON line pulled
low prior to SDIO initialization. This fix applies to all modules: i.e.
default operation for all modules is that both WL_REG_ON and BT_REG_ON
lines are pulled low (0V) during power-on-reset.
Signed-off-by: xlin <xlin@murata.com>
Signed-off-by: Tiberiu Breana <andrei-tiberiu.breana@nxp.com>
Tiberiu Breana [Wed, 8 Mar 2017 11:48:41 +0000 (13:48 +0200)]
MLK-14373-3: bcmdhd: Add workaround for "HT avail failure"
Murata work-around code for HT Avail failure
(due to no external slow clk).
Signed-off-by: xlin <xlin@murata.com>
Signed-off-by: Tiberiu Breana <andrei-tiberiu.breana@nxp.com>
Tiberiu Breana [Wed, 8 Mar 2017 11:33:09 +0000 (13:33 +0200)]
MLK-14373-2: bcmdhd: BCM43340: Add support for edge interrupts
Remove HW_OOB define from BCM43340 config, enabling it to
handle edge interrupts.
Signed-off-by: xlin <xlin@murata.com>
Signed-off-by: Tiberiu Breana <andrei-tiberiu.breana@nxp.com>
Tiberiu Breana [Wed, 8 Mar 2017 10:02:35 +0000 (12:02 +0200)]
MLK-14373-1: ARM: dts: Enable Bluetooth interface for imx6sl-evk
Enable the Bluetooth interface for i.MX 6SoloLite EVK.
Signed-off-by: xlin <xlin@murata.com>
Signed-off-by: Tiberiu Breana <andrei-tiberiu.breana@nxp.com>
Xianzhong [Tue, 14 Mar 2017 09:05:16 +0000 (17:05 +0800)]
MGS-2698-5 [#imx-188] enable gpu subsystem for i.MX8 only
add imx8-gpu-ss to support imx8 gpu with super-device structure,
need keep the old gpu device configuration for the legacy i.MX6 SoCs,
improve fslcma allocator to allow normal buffer if no limit request.
add of_node_put to fix the deivce reference problem.
Date: Mar 15, 2017
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
Xianzhong [Thu, 9 Mar 2017 08:34:58 +0000 (16:34 +0800)]
MGS-2698-4 [#imx-188] the code refining
remove the obsolute code for dual gpu setup
Date: Mar 09, 2017
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
Xianzhong [Mon, 6 Mar 2017 03:13:36 +0000 (11:13 +0800)]
MGS-2698-3 [#imx-188] remove IMX8_CMA_LIMIT build config
mScale has 32bit DDR and should disable CMA limit feature,
cannot distinguish mScale from DV/QM/QXP with the build config.
thus add runtime check to switch CMA allocator workaround for iMX8.
enable CMA limit workaround when system RAM has 4G above address.
Date: Mar 06, 2017
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
Xianzhong [Fri, 3 Mar 2017 02:36:32 +0000 (10:36 +0800)]
MGS-2698-2 [#imx-188] improve imx8 scu control for gpu
need set scu pid config in gpu_3d0 and gpu_3d1 entry
fsl,sc_gpu_pid = <SC_R_GPU_0_PID0>;
Date: Mar 03, 2017
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
Xianzhong [Mon, 27 Feb 2017 04:02:15 +0000 (12:02 +0800)]
MGS-2698 [#imx-188] the unified imx gpu platform driver
implemented the unified gpu clock structure for all imx devices,
removed the specific codes for _SetClock_imx8x and _SetPower_imx8x.
Date: Feb 27, 2017
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
Xianzhong [Mon, 6 Mar 2017 01:58:16 +0000 (09:58 +0800)]
MGS-2619-3 [#imx-188] fix kernel panic with rmmod
should unregister platform driver before device driver
Date: Mar 06, 2017
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
Prabhu Sundararaj [Wed, 22 Feb 2017 22:59:44 +0000 (16:59 -0600)]
MGS-2619-2 [#imx-188] Use imx-gpu-subsytem method to probe GPU Devices
Use component_add menthod to initailize GPU devices. component_add helps
to load after power domains are loaded.
For more reference on the deferred loading
https://patchwork.kernel.org/patch/
7683421/
Date: Feb 22, 2017
Signed-off-by: Prabhu Sundararaj <prabhu.sundararaj@nxp.com>
Prabhu Sundararaj [Thu, 16 Feb 2017 23:01:17 +0000 (17:01 -0600)]
MGS-2619 [#imx-188] Use imx-gpu-subsytem method to probe GPU Devices
Mainline kernel already implements each GPU device as separate node
and gpu-subsystem is being used.
This method will suit better for i.MX8QM where each GPU have different
power domains and need for a separate node. By this way calling of direct
SCFW API can be avoided and use the linux call.
Date: Feb 16, 2017
Signed-off-by: Prabhu Sundararaj <prabhu.sundararaj@nxp.com>
Yuchou Gan [Fri, 17 Mar 2017 16:11:22 +0000 (00:11 +0800)]
MGS-2740 [#imx-456] i.mx6qp: gpu hang with repeat insmod/rmmod galcore
i.mx6qp has hardware problem with fabric design for gpu reset,
add the workaround in gpu driver to avoid gpu hang on i.mx6qp.
updated gpu chip model and revision from original 5.x patch.
Date: Mar 17, 2017
Signed-off-by: Yuchou Gan<yuchou.gan@nxp.com>
Tiberiu Breana [Thu, 16 Mar 2017 14:40:31 +0000 (16:40 +0200)]
MLK-14477: arm: dts: imx6qp-sabresd-btwifi: Enable build
Add imx6qp-sabresd-btwifi.dtb to the Makefile, as it was missing.
Signed-off-by: Tiberiu Breana <andrei-tiberiu.breana@nxp.com>
Richard Zhu [Thu, 16 Mar 2017 10:13:14 +0000 (18:13 +0800)]
MLK-14475 soc: imx: fix build error after enable rpmsg
- fix the wrong path of header file
- select MU/RPMSG when iMX8 is configured
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Gao Pan [Sat, 11 Mar 2017 12:23:10 +0000 (20:23 +0800)]
MLK-14471-2 arm: dts: imx7ulp: change pad setting for touch
Set OBE for touch RST pin, set IBE for touch RST.
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
(cherry-pick from
815e6828ba53a9849974b63a7f3024896aa54cb8)
Gao Pan [Fri, 10 Mar 2017 11:52:36 +0000 (19:52 +0800)]
MLK-14471-1 arm: dts: restore touch pin when exit VLLS mode
restore touch pin when exit VLLS mode
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
(cherry-pick from
807fdc794af9b6ec15673d5e70cb03065b80f9fd)
Gao Pan [Wed, 8 Mar 2017 14:37:23 +0000 (22:37 +0800)]
MLK-14394 i2c: imx-lpi2c: change default bitrate
Due to the eviation i2c clk settings, the result may less than
100KBps. As a result, some i2c slave works in wrong condition.
This patch changes i2c bitrate to 200KBps
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
(cherry-pick from
e8001d5993b9be81a872a0d93106e71050dced24)
Gao Pan [Wed, 8 Mar 2017 14:29:22 +0000 (22:29 +0800)]
MLK-14393 i2c: imx-lpi2c: directly retrun ISR when detect a NACK
A NACK flag in ISR means i2c bus error. In such codition,
there is no need to do read/write operation. It's better
to return ISR directly and then stop i2c transfer.
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
(cherry-pick from
839d59e48b6fdbd882776a48a88ce26ff14d8b86)
Gao Pan [Thu, 2 Mar 2017 07:52:17 +0000 (15:52 +0800)]
MLK-14407 arm: dts: enable lpi2c7 & disable lpi2c4
lpi2c4 is not used on imx7ulp platform, disable it;
lpi2c7 is used for touch, enable it;
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
(cherry-pick from
9137ed6de38513c585206febe7ce6c8279674f1b)
Gao Pan [Wed, 8 Mar 2017 09:40:47 +0000 (17:40 +0800)]
MLK-14392-3 arm: dts: imx7ulp: add swap property for touch device node
add swap property for touch device node
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
(cherry-pick from
7bf0bd714098affe65ecc0a1d80921a367b7dc1c)
Gao Pan [Fri, 10 Mar 2017 06:54:32 +0000 (14:54 +0800)]
MLK-14392-2 arm: dts: imx7ulp: add focaltech touch sopport
add focaltech touch sopport
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
(cherry-pcik from
c4f54a91769229e0fb4944929b2f116aa8e70ae8)
Gao Pan [Thu, 16 Mar 2017 08:31:56 +0000 (16:31 +0800)]
MLK-14392-1 input: touch: add focaltech touch screen support
add focaltech touch screen support
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
(cherry-pick from
595cefbee5586e77ceb9ad900c256177a98367c7)
Andy Duan [Mon, 13 Mar 2017 04:43:59 +0000 (12:43 +0800)]
MLK-14405 bcmdhd: replace WL_ERR() with WL_INFO() in some normal code slice
Replace WL_ERR() with WL_INFO in some normal code slice to avoid confusion.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Andy Duan [Tue, 14 Mar 2017 07:50:41 +0000 (15:50 +0800)]
MLK-14438-06 net: fec: add property to define exclusive MII bus
In defalut, most of i.MX boards share one MII bus in boards design to reduce
pins utilize, but others each MAC use their exclusive MII bus. To solve the
problem, user can select to define the mii-exclusive property in board dts file.
The patch also update binding doc.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Andy Duan [Tue, 14 Mar 2017 07:04:12 +0000 (15:04 +0800)]
MLK-14438-05 net: fec: register Athreos phy AR8031 fixup
Register Athreos PHY AR8031 fixup.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
(cherry picked and merged from commit:
676bf1d92b3e6babdab623694fd83d54f881fc2f)
Andy Duan [Tue, 14 Mar 2017 06:09:29 +0000 (14:09 +0800)]
MLK-14438-04 net: fec: add phy-reset-gpios PROBE_DEFER check
Add dts property "phy-reset-gpios" PROBE_DEFER check, and use
gpio_set_value_cansleep() due to the FEC PHY reset gpio may be on
an I2C expander.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
(cherry picked from commit:
3b63e39f460d239c19a5afaf281d9a512b958cf7)
Andy Duan [Mon, 13 Mar 2017 09:03:51 +0000 (17:03 +0800)]
MLK-14438-03 dts: arm64: imx8qm: add enet node
Add enet node for imx8qm.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Andy Duan [Tue, 14 Mar 2017 05:23:01 +0000 (13:23 +0800)]
MLK-14438-02 arm64: defconfig: enable freescale FEC ethernet
Enable freescale FEC ethernet controller.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Andy Duan [Tue, 14 Mar 2017 03:23:10 +0000 (11:23 +0800)]
MLK-14438-01 net: fec: add FEC support for NXP i.MX8x chips
Add FEC support for NXP i.MX8x chips.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Richard Zhu [Wed, 15 Mar 2017 04:36:02 +0000 (12:36 +0800)]
MLK-14439-4 rpmsg: imx: setup the imx rpmsg driver
- move imx_rpmsg from arch/arm/ to drivers/rpmsg.
- use the new MU generic APIs in the rpmsg implementation.
- Validated the pingpong test on both imx6sx and imx7d sdb boards.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Richard Zhu [Thu, 9 Mar 2017 09:12:15 +0000 (17:12 +0800)]
MLK-14439-3 arm: imx: support amp soc pm on 4.9
- let the arch/arm/mach-imx/mu.c do the
AMP PM only, add the IRQF_SHARED to its isr.
- remove the rpmsg implementations in this
mu driver.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Richard Zhu [Thu, 9 Mar 2017 09:06:02 +0000 (17:06 +0800)]
MLK-14439-2 soc: imx: enhance the mu driver
- add the MU version1.0 (introduced by 7ulp)
support.
- add the MU_SetFn and MU_ReadStatus APIs.
- fix one mispell bug when enable the RX INTs.
Otherwise, the RX INTs wouldn't be configured
correctly.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Richard Zhu [Wed, 15 Mar 2017 04:57:45 +0000 (12:57 +0800)]
MLK-14439-1 soc: imx: rename imx8 to imx in soc driver
- rename the drivers/soc/imx8 to drivers/soc/imx
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Han Xu [Wed, 15 Mar 2017 05:57:59 +0000 (00:57 -0500)]
MLK-14444: mtd: fsl-quadspi: fix logic error when reading dummy cycle
Fix the logic error when reading dummy cycle for qspi ddr quad mode
Signed-off-by: Han Xu <han.xu@nxp.com>
Octavian Purdila [Wed, 15 Mar 2017 06:43:48 +0000 (08:43 +0200)]
MLK-14440 tty: serial: fsl_lpuart: add compatible for 7ulp
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Dong Aisheng [Thu, 16 Mar 2017 05:15:38 +0000 (13:15 +0800)]
MLK-14472-2 dts: imx7s: add flexcan stop mode wakeup support
Add stop-mode property which is required by stop mode wakeup feature.
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Dong Aisheng [Thu, 16 Mar 2017 05:13:34 +0000 (13:13 +0800)]
MLK-14472-1 dts: imx6ul: add flexcan stop mode wakeup support
Add stop-mode property which is required by stop mode wakeup feature.
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Tiberiu Breana [Mon, 13 Feb 2017 16:46:27 +0000 (18:46 +0200)]
ARM: imx: Add AXI address filter support for MMDC profiling
Add support for an extra config parameter for perf commands:
axi_id, which will be written in the MMDC's MADPCR1 register,
to filter memory usage profiling (see i.MX6 reference manual,
chapter 44.7 MMDC Profiling for AXI id usage).
Signed-off-by: Tiberiu Breana <andrei-tiberiu.breana@nxp.com>
Tiberiu Breana [Mon, 13 Feb 2017 16:43:50 +0000 (18:43 +0200)]
ARM: imx: Fix mmdc_pmu_write_accesses event definition
Fixed an error in the "write-accesses" event definition.
Signed-off-by: Tiberiu Breana <andrei-tiberiu.breana@nxp.com>
Peter Chen [Tue, 14 Mar 2017 05:57:39 +0000 (13:57 +0800)]
MLK-14396 usb: chipidea: add mutex for concurrent running
The ci_handle_id_switch is called at two places, at very rare situations,
it may be running at the same time. Eg, when the system is back from
the resume, the id event is occurred from extcon driver, as well as
power_lost work item is called due to the controller is poweroff at
the suspend.
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Li Jun [Fri, 3 Mar 2017 16:30:44 +0000 (00:30 +0800)]
MLK-14256 usb: chipidea: udc: update gadget state after bus resume
Gadget state is set to be suspended when bus suspened, but not updated
after resume, this patch saves the gadget state before suspend and
restores it after resume.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Radu Solea [Wed, 8 Mar 2017 14:34:15 +0000 (16:34 +0200)]
Add missing NULL checks in CAAM sm
Missing NULL checks in CAAM sm_store and sm_test cause kernel
crashes if caam init fails.
Signed-off-by: Radu Solea <radu.solea@nxp.com>
Leonard Crestez [Mon, 13 Mar 2017 10:35:24 +0000 (12:35 +0200)]
ARM: cpuidle-imx*: Report the entered state index
When a cpuidle driver is called it can choose to enter a different state
that what was asked from above. When this happens it should return the
actual entered_state index for proper accounting.
This fixes the various imx cpuidle drivers which depend on low busfreq
for LOW-POWER-IDLE to correctly report that they entered WAIT instead.
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>