Fancy Fang [Mon, 6 Jun 2016 06:07:54 +0000 (14:07 +0800)]
MLK_12886-2 video: mxsfb: handle the assert gpio in driver to support deferred probe
The assert gpio comes from 'gpio_spi' module, so the framebuffer
depends on the 'gpio_spi' driver loading. And in the case that
the framebuffer driver is loaded earlier than the 'gpio_spi'
driver, the gpio asserting will fail. So handle this gpio in
the framebuffer driver and add deferred probed support.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Fancy Fang [Mon, 6 Jun 2016 05:49:22 +0000 (13:49 +0800)]
MLK-12886-1 ARM: dts: imx7d-sdb: the assert gpio for lcdif should be active low
According to the 7d sdb schematic, only when the 'LCD_PWR_EN' is
low voltage, the 'LCD_3V3' can has the 3.3V voltage. And 'LCD_3V3'
is used to provide 3.3V power for lcd peripherals.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Sandor Yu [Mon, 13 Jun 2016 06:36:08 +0000 (14:36 +0800)]
MLK-12898: ov5640 mipi: Add more delay to wait sensor stable
Add more delay to wait sensor stable.
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
(cherry picked from commit
c1d7c35b6d2c8b6ec69b90bac6febf673d04acc5)
Shengjiu Wang [Mon, 13 Jun 2016 04:06:19 +0000 (12:06 +0800)]
MLK-12900-2: ARM: dts: fix asrc mqs noise issue
Change the spdif's clock frequency for the frequency is too high
for asrc, which will cause the asrc p2p + mqs noise.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
(cherry picked from commit
e623ad471a46cbe7d12f1ae8a58d5ea53129db22)
Shengjiu Wang [Mon, 13 Jun 2016 04:05:10 +0000 (12:05 +0800)]
MLK-12900-1: ARM: dts: pin confict for spdif and wdog
Disable wdog in wm8958.dts for conflict with spdif
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
(cherry picked from commit
71863bcd34420384f5ef5eeecc2c8ca45389db24)
Han Xu [Fri, 10 Jun 2016 16:04:59 +0000 (11:04 -0500)]
MLK-12897: ARM: dts: add one more dts for all qspi chip support on i.MX6ULL
change the qspi dts for default one qspi scenario and add one more for
all four qspi chip support.
Signed-off-by: Han Xu <han.xu@nxp.com>
Robby Cai [Wed, 8 Jun 2016 06:22:12 +0000 (14:22 +0800)]
MLK-12893 dma-engine: pxp: correct histogram setting
- HIST_A as collision, need set to 1 for wfb_store
- WFE-A flag0~3 changed to WFE-B flag4~7 on i.MX6ULL
This patch fixes the collision issue and some part of
updated region can not display with auto waveform mode.
Signed-off-by: Robby Cai <robby.cai@nxp.com>
Anson Huang [Wed, 8 Jun 2016 10:52:38 +0000 (18:52 +0800)]
MLK-12890 rtc: snvs: update time read function
When CPU/AXI/AHB are running at 24MHz, IPG at
12MHz, two consecutive reads of RTC timer registers
never get same value, so we need to skip the low
15 bits, only make sure the second value are same
during two consecutive reads.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Peng Fan [Fri, 3 Jun 2016 01:30:04 +0000 (09:30 +0800)]
MLK-12740 cpuidle: imx6q: configure CCM to RUN mode when CPU is active
There are two states in i.MX6Q cpuidle driver.
state[1]: ARM WFI mode
state[2]: i.MX6Q WAIT mode
Take i.MX6DL as example, think out such a case:
1. CPU0/1 both run at normal mode
2. On CPU0, `sleep 1` is executed. And there are no workload on CPU1.
3. CPU0 first runs into state[2] and 'wfi' instruction. Switched to use
GPT broadcast.
4. CPU1 runs into state[2] and configure CCM to WAIT MODE,
then 'wfi' instruction. Now arm_clk and local timer clock are
shutdown. Switched to use GPT broadcast
5. GPT broadcast timer interrupt comes to GPC/GIC, then CPU0 wakes up.
CPU0 switched to use arm local timer. CPU1 is still sleeping.
6. No workload on CPU0, CPU0 runs into state[1]. But CCM register
is still not restored to Normal RUN mode. 'wfi' + CCM WAIT will
cause arm_clk and arm core clk.
Now CPU0 stops, which is not correct.
So, need to make sure CCM configured to RUN mode when any cpu exit
state[2].
In this patch,
When CPU exits state[2], it configures CCM to RUN mode.
When all CPUs enters state[2], the last CPU needs to check
whether it's ok to configure CCM to WAIT mode or not.
In imx6q_set_lpm, we only need to unmask GINT when not WAIT_CLOCKED,
so add a check condition.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Shengjiu Wang [Mon, 6 Jun 2016 08:52:52 +0000 (16:52 +0800)]
MLK-12887: ARM: dts: fix noise issue for mono playback
Using pull-up or pull down will cause that codec can get
big data in right channel. using keeper to fix this issue.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Peng Fan [Fri, 3 Jun 2016 03:15:48 +0000 (11:15 +0800)]
MLK-12879 char: otp: support i.MX6ULL
Add ocotp support for i.MX6ULL.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Andy Duan [Fri, 3 Jun 2016 03:18:02 +0000 (11:18 +0800)]
MLK-12880 arm: dts: imx7d: correct the PAD_GPIO1_IO01 pin ctrl setting
PAD_GPIO1_IO01 bit[31:7] are reserved, remove the setting mapping to
this reserved field.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Robin Gong [Wed, 1 Jun 2016 09:35:25 +0000 (17:35 +0800)]
MLK-12864: ARM: dts: imx6ull-14x14-ddr3-arm2: enable WDOG_B reset
enable WDOG_B reset pin on i.mx6ull-14x14-ddr3-arm2 board
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Sandor Yu [Thu, 2 Jun 2016 07:30:26 +0000 (15:30 +0800)]
MLK-12876: mipi csi: Remove regulator enable code when driver probe
Mipi CSI PHY regulator will enabled in function of s_power.
So remove regulator enable code when driver probe.
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
(cherry picked from commit
c29dda8f4092cdeff7f7661f8ac2a05f98a71296)
Peter Chen [Fri, 10 Jul 2015 07:46:04 +0000 (15:46 +0800)]
MLK-12860-4 usb: chipidea: imx: add HSIC support for imx7d
Add HSIC support for imx7d. We have not supported HSIC as system
wakeup as well as HSIC remote wakeup function at DSM mode, since
the 24M OSC can't be off and the SoC internal regulators can't be
off at this mode, that will keep power consumption much higher.
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Peter Chen [Fri, 10 Jul 2015 07:41:30 +0000 (15:41 +0800)]
MLK-12860-3 ARM: imx: gpcv2: add reg_1p2's notifier
In this notifier, we can power on/off the two LDO's which are needed
for USB HSIC.
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Peter Chen [Wed, 25 May 2016 08:46:27 +0000 (16:46 +0800)]
MLK-12860-2 ARM: dts: add imx7d 12x12 ARM2 ddr3 board dts
Add imx7d 12x12 ARM2 ddr3 board dts
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Peter Chen [Thu, 26 May 2016 08:56:01 +0000 (16:56 +0800)]
MLK-12860-1 ARM: dts: imx7d: add vcc-supply at gpc node
It is missing at imx7d.dtsi, but used at source code.
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Shengjiu Wang [Tue, 31 May 2016 01:33:39 +0000 (09:33 +0800)]
MLK-12862: ARM: dts: fix mqs no sound issue
The MQS can only work when the mclk1 is selected as the mclk
of sai. On other hand, the mclk0 use same clock root
(sai_clk_root) as mclk1. so removing mclk0 won't impact the sai
features.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Richard Liu [Tue, 31 May 2016 10:08:39 +0000 (18:08 +0800)]
MA-8225 [#2406] add feature table for gc355_v121_rc5
There is below log when use gpu 6.1 driver on android, root
cause is feature table is missing for VG core.
error log:
Galcore version 6.1.0.60705
[galcore]: Feature database is not found,chipModel=0x355,
chipRevision=0x1215, productID=0x0, ecoID=0x0
Date: May 30, 2016
Signed-off-by: Richard Liu <xuegang.liu@nxp.com>
Anson Huang [Mon, 30 May 2016 19:18:52 +0000 (03:18 +0800)]
MLK-12861-2 ARM: imx: enable necessary clock for RDC resume on i.mx7d
When Mega/Fast Mix off in DSM mode, RDC recovery needs PCIe/PXP/EIM
clock to be enabled, otherwise, with M4 enabled, DSM resume will fail.
We only enable them before entering DSM and hardware will disable
them when DSM is entered and they will be re-enabled after resume,
then in low level resume phase, we will disable them again.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
(cherry picked from commit
e28ae270b6e23a6b5ba86112592bc2b767c68f8d)
Anson Huang [Mon, 30 May 2016 16:34:55 +0000 (00:34 +0800)]
MLK-12861-1 ARM: imx: support runtime clock management on i.mx7d when M4 is enabled
For i.MX7D, current runtime clock management code will skip all
PLL/PFD/GATE enable/disable when M4 is enabled, this is NOT good
for power number in low power idle and audio playback, as M4 only
uses one high speed PFD which is from system PLL, it is never
disabled runtimely, so we can just enable the hardware operation of
PLL/PFD/GATE for A7.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
(cherry picked from commit
02a2e8d73bcb8d2b8362b4328976dfcdc502a19c)
Andy Duan [Wed, 25 May 2016 08:32:22 +0000 (16:32 +0800)]
MLK-12851 ARM: dts: imx6ull: add uart1 as Mega/Fast mix wakeup source
Add uart1 as Mega/Fast mix wakeup source for i.MX6ull.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Robby Cai [Tue, 24 May 2016 09:29:48 +0000 (17:29 +0800)]
MLK-12849 ARM: dts: imx6ull-ddr3-arm2: add a new dts file for TSC
Since TSC has pin conflict with I2C1 which is used by PMIC and Camera,
we need to move TSC setting from LCDIF dts file into a separated one to
achieve the LCDIF and Camera feature in one DTS file. After the change,
we can get the supported features as follows.
-lcdif.dtb: lcd and camera, but no tsc
-tsc.dtb: lcd and tsc, but no camera
Signed-off-by: Robby Cai <robby.cai@nxp.com>
Li Jun [Tue, 17 May 2016 02:45:08 +0000 (10:45 +0800)]
MLK-12781 ARM: dts: imx7d-12x12-lpddr3-arm2: add pinctrl for usb vbus
Add pinctrls for usbotg1 and usbotg2 vbus control. This missing keeps
the vbus enable pin is high after power up, so vbus is on and otg port
will not enter suspend in device mode, as active usb port has high
bus freq requested, this prevents system enter low bus freq.
Signed-off-by: Li Jun <jun.li@nxp.com>
Shengjiu Wang [Thu, 19 May 2016 10:24:06 +0000 (18:24 +0800)]
MLK-12836: ARM: dts: support display in audio dts on imx6ull
support display in audio dts imx6ull-14x14-ddr3-arm2-cs42888.dts
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Robin Gong [Wed, 18 May 2016 07:22:09 +0000 (15:22 +0800)]
MLK-1277: ARM: dts: imx6sx-sabreauto: enable WDOG_B on i.mx6sx-auto board
The same issue: "MLK-9773: warm reset fail in kernel when booting from QSPI
NOR Flash", thus enable WDOG_B on the reworked board to make sure power off
the QSPI-NOR Flash.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Han Xu [Wed, 18 May 2016 20:03:43 +0000 (15:03 -0500)]
MLK-12814: ARM: dts: support NAND on i.MX6UL EVK board
add new dts to support NAND on i.MX6UL 14x14 EVK board.
Signed-off-by: Han Xu <han.xu@nxp.com>
Robby Cai [Wed, 18 May 2016 10:37:38 +0000 (18:37 +0800)]
MLK-12811-4 ARM: dts: fix EPDC register region
privious size is overlapped with iomux_snvs. decrease it to fix it.
Signed-off-by: Robby Cai <robby.cai@nxp.com>
Robby Cai [Fri, 13 May 2016 02:03:35 +0000 (10:03 +0800)]
MLK-12811-3 ARM: dts: add new dts file for EPDC on i.MX6ULL DDR3 VAL board
EPDC has pin conflict with FEC2, LCDIF.
Signed-off-by: Robby Cai <robby.cai@nxp.com>
Robby Cai [Fri, 13 May 2016 01:59:46 +0000 (09:59 +0800)]
MLK-12811-2 ARM: dts: pxp: add compatible property for i.MX6ULL
to accommodate the PXP change on i.MX6ULL over i.MX7D
Signed-off-by: Robby Cai <robby.cai@nxp.com>
Robby Cai [Fri, 13 May 2016 01:18:40 +0000 (09:18 +0800)]
MLK-12811-1 pxp-dma: update PxP driver for i.MX6ULL
on i.MX6ULL, the WFE_A is removed due to die size, but instead use WFE_B
to the task for WFE_A. We may call this version as V3P - V3 patch.
use device_id to differentiate the operations on different version.
Signed-off-by: Robby Cai <robby.cai@nxp.com>
yong.gan [Thu, 19 May 2016 01:02:36 +0000 (09:02 +0800)]
MGS-1685 [#2356] fix vg context buffer memory leak
gcoVGHARDWARE_FreeVideoMemory user space implementation has some problem,
the asynchronous unlock/free is required by kernel memory managment, by not available in this function.
because user command buffer & struct cannot be freed through committing new vg command to hardware,
the new workaround is to double unlock the video memory for gcvHAL_RELEASE_VIDEO_MEMORY,
also removed the database as the asynchronous unlock is not available in vg user space driver.
Date: May 18, 2016
Signed-off-by: Yong Gan <yong.gan@freescale.com>
Bai Ping [Tue, 17 May 2016 05:01:24 +0000 (13:01 +0800)]
MLK-12807 ARM: dts: imx: Add ldo enable support on imx6ull
Add LDO enable dts support on i.MX6ULL ARM2 board.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Bai Ping [Mon, 16 May 2016 09:45:39 +0000 (17:45 +0800)]
MLK-12803 ARM: dts: imx: enable snvs poweroff on 6qdl sabreauto
Enable snvs poweroff on i.MX6Q/DL sabreauto board.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Bai Ping [Mon, 16 May 2016 06:01:06 +0000 (14:01 +0800)]
MLK-12796-02 ARM: dts: imx: Add additional pinfunc define for imx6ull
On i.MX6ULL, the pin MUX and CTRL register of BOOT_MODEx and TAMPERx
pins have been move to the IOMUXC_SNVS. Add additional pinfunc define
and correct the pinctrl binding.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Bai Ping [Mon, 16 May 2016 05:38:02 +0000 (13:38 +0800)]
MLK-12796-01 pinctrl: imx: Add iomuxc_snvs pinctrl driver for i.mx6ull
On i.MX6ULL, the BOOT_MODEx and TAMPERx pin MUX and CTRL register
have been moved from IOMUXC to IOMUXC_SNVS, so the pinctrl driver
should be modified to support the IOMUXC_SNVS.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Haibo Chen [Tue, 17 May 2016 08:14:32 +0000 (16:14 +0800)]
MLK-12808 ARM: dts: imx6ull-14x14-ddr3-arm2.dts: move usdhc pin setting out of hog
Move usdhc1 wp/cd/reset/vselect pin setting and usdhc2 reset pin
setting out of hog. Due to many pin conflict with usdhc1 and usdhc2,
this patch can let other modules do not touch the iomuxc.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Shengjiu Wang [Sat, 14 May 2016 06:50:22 +0000 (14:50 +0800)]
MLK-12794: ASoC: fsl_asrc: fix underrun issue when convert 192k to 96kHz.
The maximum divider of asrc clock is 1024, but there is no judgement
for this limitaion in driver, which may cause the divider setting not
correct.
When IDEAL_RATIO_RATE 200kHZ, the cost time of conversion from 192kHz
to 96kHz is 24ms every 1024 sample, but these sample's playback time
is 1024/96=11ms, so there will be underrun. So need to enlarge this RATE.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Andy Duan [Wed, 11 May 2016 06:47:18 +0000 (14:47 +0800)]
MLK-12792 ARM: dts: imx6ull-14x14-ddr3-arm2: improve enet clock timing
Improve enet data/txc clock timing suggested by HW team.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Shengjiu Wang [Thu, 12 May 2016 10:00:49 +0000 (18:00 +0800)]
MLK-12787-2: ARM: dts: set codec-master as default mode
wm8962 sound card work in codec master mode as before
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Shengjiu Wang [Thu, 12 May 2016 09:56:45 +0000 (17:56 +0800)]
MLK-12787-1: ASoC: imx-wm8962: Add codec-master property
Add codec-master property for imx-wm8962. If set this in device
tree, the codec will work as master, if don't set it, the cpu dai
will work as master.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Shengjiu Wang [Thu, 12 May 2016 09:54:08 +0000 (17:54 +0800)]
MLK-12786-2: ASoC: fsl_sai: correct the clock source for mclk0
mclk0 is assigned through the device tree.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Shengjiu Wang [Thu, 12 May 2016 09:51:53 +0000 (17:51 +0800)]
MLK-12786-1: ARM: dts: add mclk0 clock for sai
SAI has 4 clock source, even the mclk0 is always same as
the mclk1, but it is need to add in device tree.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Shengjiu Wang [Wed, 11 May 2016 08:34:38 +0000 (16:34 +0800)]
MLK-12782: ARM: dts: Add wm8958 sound card in imx6ull-ddr3-arm2-cs42888 dts
Add wm8958 sound card in cs42888 dts, SAI2 conflict with SD1.
So disable usdhc1.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Bai Ping [Wed, 11 May 2016 04:36:32 +0000 (12:36 +0800)]
MLK-12776 ARM: dts: imx: rename the imx6ull dts by adding the die size
Add the dize size info in the ARM2 board dts file name to align with
i.MX6UL, so mfgtool and yocto script can handle the naming rule easily.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Andy Duan [Wed, 11 May 2016 06:59:09 +0000 (14:59 +0800)]
MLK-12763 ARM: imx7d: iomux: correct uart input sel option value
GPIO0~GPIO7 part:
- Commit(
c8cabda5ab07) add some wrong input sel value for uart, return
them to origin setting.
- Add uart DTE pin mode setting.
UART2_TX_DATA pin part:
- RM doc "iMX7D_RM_Rev0_Approval.pdf" (2016.04.25 updated in compass)
updated input sel define for UART2_RX_DATA, then set the correct input
sel for the pin.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
(cherry picked from commit:
90a8b06b9735dd5b8d2023ff3b95886441e0e8d9)
Peter Chen [Fri, 6 May 2016 06:21:21 +0000 (14:21 +0800)]
MLK-12731-2 ARM: dts: Makefile: add dts entry for imx6q-arm2-hsic
This dts is only for USB HSIC controller test which needs
Validation Port Card on it.
Disable controller 3 due to strange signal on it at arm2 board.
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Peter Chen [Fri, 29 Apr 2016 02:42:47 +0000 (10:42 +0800)]
MLK-12731 usb: chipidea: imx: add missing HSIC initialization for imx6qdl/sl
This piece of code is existed at imx_3.10, but missing at imx_3.14 and
imx_4.1, port it from imx_3.10.
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Han Xu [Mon, 9 May 2016 22:36:01 +0000 (17:36 -0500)]
MLK-12769: ARM: dts: fix the optional QSPI pin conflict with SD2
The optional QSPI pin should be only enabled on reworked board, fix the
issue which conflict with SD2.
Signed-off-by: Han Xu <han.xu@nxp.com>
Xianzhong [Mon, 9 May 2016 06:28:54 +0000 (14:28 +0800)]
MGS-1806 integrate VSI 6.1.0 gpu kernel driver
Integrate gles base driver of 6.1.0 gpu release,
hal/security_v1 is the new added feature.
Date: May 09, 2016
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
Anson Huang [Mon, 9 May 2016 06:45:14 +0000 (14:45 +0800)]
MLK-12765 ARM: imx: make sure DLL is locked on i.MX7D
On i.MX7D, per design team's require, need to make sure
DLL is locked after DDR frequency scaled done. Although
normally there should be no issue, but it is better to
add it.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
(cherry picked from commit
07c9f26b19b3ce05719d5634f1f56790b7ecf6af)
Anson Huang [Sun, 8 May 2016 06:26:33 +0000 (14:26 +0800)]
MLK-12748-3 ARM: imx: adjust imx7d lpddr3 retention exit flow
On i.MX7D lpddr3, retention mode exit flow should restore
more registers to make sure the ddr controller and ddr phy
settings restored properly, otherwise, some of the boards
can NOT pass memtester after retention mode exited.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Anson Huang [Wed, 4 May 2016 02:56:40 +0000 (10:56 +0800)]
MLK-12748-2 ARM: imx: remove IOMUXC GPR setting for i.mx7d TO1.2
i.MX7D TO1.2 removes the DDR PAD retention mode setting
in IOMUXC GPR, it is same as TO1.0, so only apply the
IOMUXC GPR setting for TO1.1.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Anson Huang [Wed, 4 May 2016 06:25:35 +0000 (14:25 +0800)]
MLK-12748-1 ARM: dts: imx7d: correct usdhc1 cd pin setting
i.MX7D 19x19 LPDDR2 ARM2 board's uSDHC1 CD pin should be
LOW active, correct it.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Haibo Chen [Wed, 4 May 2016 07:12:32 +0000 (15:12 +0800)]
MLK-12757-3: ARM: dts: imx6ull-ddr3-arm2-emmc.dts: add eMMC support
For imx6ull-ddr3-arm2 board, eMMC and SD1 slot share usdhc1, so
this patch add another dts file imx6ull-ddr3-arm2-emmc.dts to
support eMMC.
eMMC data4~data7 share the same I/O domain with sd2, so this patch
only enable eMMC 4bit mode.
Due to the eMMC on imx6ull-ddr3-arm2 board support HS200 mode, and
need the VCCQ to be 1.8v, this patch keep usdhc vselect, let usdhc
to change the I/O voltage to 1.8v automatically. Otherwise, another
rework needed: remove R95, add R94.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Haibo Chen [Wed, 4 May 2016 06:39:57 +0000 (14:39 +0800)]
MLK-12757-2 ARM: dts: imx6ull-ddr3-arm2.dts: add usdhc2 support
Add usdhc2 support, due to cd/wp pin conflict with usdhc1, this
patch drop these two pins, and make usdhc2 as no removeable.
Moreover, due to VSELECT pin is not connected by default, we also
add no-1-8-v property.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Haibo Chen [Wed, 4 May 2016 06:55:11 +0000 (14:55 +0800)]
MLK-12757-1 ARM: dts: imx6ull-ddr3-arm2.dts: change usdhc2 pad setting
According to Hardware team's suggestion, for usdhc2, this patch change
the drive strength for clock pin and data pin, which can make the signal
meet the requirement for DDR50 mode.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Anson Huang [Thu, 5 May 2016 10:21:10 +0000 (18:21 +0800)]
MLK-12761 ARM: imx: add mu as wakeup source for i.mx7d
When A7 platform is in low power mode while M4 is NOT,
M4 should be able to send message to wake up A7, so
MU must be always as wake up source.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Liu Ying [Wed, 27 Apr 2016 08:40:45 +0000 (16:40 +0800)]
MLK-12721 mxc IPUv3: PRE: Correct irq mask in ipu_pre_irq_mask()
We should do bitwise OR operation for all valid irq enable bits to
get the full irq mask. So, to take the bit4(HANDSHAKE_ERROR_IRQ_EN)
into calculation, the mask should be 0x1f instead of 0xf.
Reported-by: Asim Zaidi <asim.zaidi@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Shengjiu Wang [Tue, 3 May 2016 09:19:13 +0000 (17:19 +0800)]
MLK-12745-3: ARM: dts: add sound card support for imx6ull-ddr3-arm2 board
Add mqs, spdif and wm8958 sound card support in imx6ull-ddr3-arm2-wm8958.dts.
which can use the imx6ul-14x14-ddr3-arm2 socket board.
Add cs42888 sound card support in imx6ull-ddr3-arm2-cs42888.dts. ESAI use the
CSI PAD which conflict with the ov5640, so disable it.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Shengjiu Wang [Tue, 12 Apr 2016 07:26:43 +0000 (15:26 +0800)]
MLK-12745-2: ASoC: fsl_esai: remove the channel swap workaround for imx6ull
In imx6ull, the esai errata ERR008000 for imx6q/dl is fixed, so remove the
workaround from imx6ull.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Shengjiu Wang [Fri, 8 Apr 2016 06:52:03 +0000 (14:52 +0800)]
MLK-12745-1: ASoC: imx-cs42888: add codec master mode support
Add codec master mode support, the default is slave mode.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Han Xu [Tue, 3 May 2016 19:16:25 +0000 (14:16 -0500)]
MLK-12746-2: mtd: fsl-quadspi: add QSPI support for i.MX6ULL
support QSPI on i.MX6ULL. By default, only QSPI1 was enabled, while
reworked board could support all 4 QSPI chips.
Since i.MX6UL and i.MX6ULL QSPI controller are identical, reuse the
i.MX6UL datatype for i.MX6ULL.
Signed-off-by: Han Xu <han.xu@nxp.com>
Han Xu [Tue, 3 May 2016 19:15:29 +0000 (14:15 -0500)]
MLK-12746-1: ARM: dts: add QSPI support on i.MX6ULL
support QSPI on i.MX6ULL. By default, only QSPI1 was enabled, while
reworked board could support all 4 QSPI chips.
Signed-off-by: Han Xu <han.xu@nxp.com>
Dong Aisheng [Tue, 12 Apr 2016 13:07:45 +0000 (21:07 +0800)]
MLK-12744 dts: imx6ull-ddr3-arm2: add flexcan2 support
flexcan2 tx/rx pin conflicts with uart2, so introduce
new dts.
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Haibo Chen [Fri, 29 Apr 2016 02:24:58 +0000 (10:24 +0800)]
MLK-12734 ARM: dts: add TSC support for imx6ull-ddr3-arm2 board.
Add touch support for the LCD screen on imx6ull-ddr3-arm2 board.
Due to the touch pin conflict with usbotg1 and I2C1 bus, so this
patch disable I2C1 bus and usbotg1.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Anson Huang [Mon, 25 Apr 2016 02:35:37 +0000 (10:35 +0800)]
MLK-12705 ARM: imx: add support for i.mx7d TO1.2 busfreq
i.MX7D TO1.2 fix the CKE issue, need to follow TO1.0's
precedure for DRAM frequency scaling.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Haibo Chen [Tue, 26 Apr 2016 04:26:18 +0000 (12:26 +0800)]
MLK-12706-3 arm: imx_v7_defconfig: build in bcmdhd
Set bcmdhd as build in type.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Haibo Chen [Tue, 26 Apr 2016 03:08:32 +0000 (11:08 +0800)]
MLK-12706-2 net: bcmdhd: set the bcmdhd driver default build in
Bcmdhd wifi driver default build as module, now default build in
this wifi driver. To support this build in feature, this patch
add flag ENABLE_INSMOD_NO_FW_LOAD, and use extern function
sdio_reset_comm() as instead.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Haibo Chen [Tue, 26 Apr 2016 03:21:02 +0000 (11:21 +0800)]
MLK-12706-1 mmc: sdio: add sdio reset function for bcmdhd wifi
This patch add function sdio_reset_comm() to support bcmdhd wifi
dirver build-in type.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Adrian Alonso [Thu, 28 Apr 2016 19:02:03 +0000 (14:02 -0500)]
MLK-12733: ARM: imx: imx6q: lppdr2 fix audio freq mode
Fix Audio frequency operation mode (100Mhz), wrong branch
condition was causing to switch to high speed timings settings
if (freq mode <= 100Mhz) use low speed timings settings
On Audio freq mode request
1. Set timings to operate on low speed
2. Switch mmdc clock root to 100Mhz
Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
Signed-off-by: Ranjani Vaidyanathan <ranjani.vaidyanathan@nxp.com>
(cherry-picked from commit
79756d9defae46b67cd37807b859b52e63b18496)
Adrian Alonso [Thu, 28 Apr 2016 19:00:11 +0000 (14:00 -0500)]
MLK-12732: ARM: imx: imx6q: lppdr2 fix wrong timings for lower freq operation
On low frequency operation (freq <= 100Mhz) set self-refresh exit
to next valid command delay to 23 clock cycles (MMDC_MCFG0[tXS] = 0x16)
Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
Signed-off-by: Ranjani Vaidyanathan <ranjani.vaidyanathan@nxp.com>
(cherry-picked from commit
b480c0a99fe722017e1ad04c1de16739c1467e0a)
Fancy Fang [Thu, 28 Apr 2016 02:05:08 +0000 (10:05 +0800)]
MLK-12724 ARM: dts: imx6ull-ddr3-arm2: resolve pin conflicts for pwm3 and lcd touch
Since pwm3 and lcd touch are conflict for one pin, change
backlight to use pwm1 instead. But pwm1 also conflicts with
enet1, so enable backlight in a new dts file.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Shengjiu Wang [Tue, 26 Apr 2016 06:38:35 +0000 (14:38 +0800)]
MLK-12722: ASoC: fsl_spdif: clear the validity bit for TX
Validity bit is set in default, which means the data is not reliable,
The receive device may drop this data. So clear it in default, and
provide a mixer interface for user to control this bit.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Bai Ping [Tue, 26 Apr 2016 10:27:01 +0000 (18:27 +0800)]
MLK-12708 ARM: configs: imx: fix build error for mfg defconfig
Fix the build error for imx_v7_mfg_defconfig.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Ranjani Vaidyanathan [Wed, 29 Apr 2015 15:29:27 +0000 (10:29 -0500)]
MLK-10782-4 ARM:imx6qdl:dts:Add LDB_DI_CLK parent to device tree.
Add the LDB clock parents to the device tree.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@freescale.com>
(cherry picked from commit
1a6cd019c1ab62ca0dc23bbc6b033df3f15850a5)
Sandor Yu [Wed, 20 Apr 2016 10:16:30 +0000 (18:16 +0800)]
MLK-12688-02: arm dts: Add csis-clk-settle property
Add csis-clk-settle property to imx7D SDB mipi csi.
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Sandor Yu [Wed, 20 Apr 2016 09:29:03 +0000 (17:29 +0800)]
MLK-12688-01: mipi csi: Add clk_settle setting
Add clk_settle variable to compliance more mipi sensor.
Mipi controller should setting by followed value
according mipi sensor support D-phy version.
Slave Clock Lane Control Register for TCLK-SETTLE.
2'b0x = 110 ns to 280ns (v0.87 to v1.00)
2'b10 = 150 ns to 430ns (v0.83 to v0.86)
2'b11 = 60 ns to 140ns (v0.82)
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Bai Ping [Thu, 7 Apr 2016 09:20:03 +0000 (17:20 +0800)]
MLK-12868-03 ARM: imx: add busfreq support on imx6ull
Add busfreq support on i.MX6ULL. per to the design
team, there is a 24MHz low power run mode on i.MX6ULL.
the define for this mode is as below:
----------------------------
|cpu DRAM AXI AHB |
24MHz 24MHz 24MHz 24MHz
The mode can be implemented as 'low_bus_mode' in busfreq,
compared to i.MX6UL, the additional code we need to add is
clk change for cpu core. so in low_bus_mode, the cpu will run
at 24MHz.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Bai Ping [Wed, 20 Apr 2016 07:32:36 +0000 (15:32 +0800)]
MLK-12868-02 ARM: imx: add low power idle for imx6ull
Add low power idle for i.MX6ULL.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Bai Ping [Thu, 7 Apr 2016 10:05:08 +0000 (18:05 +0800)]
MLK-12868-01 cpufreq: imx: get old_freq from policy->cur
Get the old_freq from the policy->cur.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Fancy Fang [Fri, 22 Apr 2016 05:42:09 +0000 (13:42 +0800)]
MLK-12695 dma: pxp-v2: fixing the mismatch calls of pm_runtime suspend/resume
The 'pm_runtime_get_sync()' and 'pm_runtime_put_sync_suspend()'
may be called not pairs. And this will cause the 'usage_count'
to be negative.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit
10135c736dfc1b3d5c449adb78118e3642b99276)
Robin Gong [Thu, 21 Apr 2016 03:33:17 +0000 (11:33 +0800)]
MLK-12692 ARM: dts: imx6ull-ddr3-arm2-ecspi: enable ecspi1 on arm2 board
Add new dtb file since ecspi share pins with csi and esai.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Haibo Chen [Wed, 20 Apr 2016 06:00:21 +0000 (14:00 +0800)]
MLK-12685 ARM: dts: imx6sx-sabreauto.dts: improve usdhc4 pad drive strength
For imx6sx-sabreauto board, the usdhc4 is used for the sd slot locate on the
base board, so need to improve the pad drive strength, otherwise we will meet
many CRC error or timeout error when insert a sd card.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Li Jun [Tue, 19 Apr 2016 08:28:33 +0000 (16:28 +0800)]
MLK-12676-2 arm: dts: enable usb otg2 for imx6ull arm2 board
Use a dedicatd dts file to enable both OTG1 and OTG2 ports in OTG mode,
- otg2 ID pin is muxed with SD1 vselect, so move it out of hog and don't
use it in usdhc1 in usb dts.
- otg2 vbus control use GPIO1_IO09 since the original gpio is shared
with i2c1(with pmic chip connected).
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Tue, 19 Apr 2016 01:02:46 +0000 (09:02 +0800)]
MLK-12676-1 arm: dts: enable usb otg for imx6ull arm2 board
Enable otg mode for OTG1 port for imx6ull arm2 board.
Signed-off-by: Li Jun <jun.li@nxp.com>
Andy Duan [Tue, 19 Apr 2016 10:10:45 +0000 (18:10 +0800)]
MLK-12683 ARM: dts: imx6ull: add uart2 support
Enable uart2 port in ddr3 ARM2 board.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Andy Duan [Tue, 19 Apr 2016 09:59:43 +0000 (17:59 +0800)]
MLK-12682 ARM: dts: imx6ull: add adc support
Add extra dts file to enable adc to avoid pin conflict with usbotg1.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Andy Duan [Thu, 7 Apr 2016 08:37:20 +0000 (16:37 +0800)]
MLK-12681 ARM: dts: imx6ull: enable fec1 port in ddr3 ARM2 board
Enable fec1 port in ddr3 ARM2 board.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Han Xu [Tue, 19 Apr 2016 20:28:44 +0000 (15:28 -0500)]
MLK-12684-3: Documentation: gpmi-nand: document the gpmi-nand compatibility
Document the gpmi-nand compatibility for i.MX6ULL
Signed-off-by: Han Xu <han.xu@nxp.com>
Han Xu [Tue, 19 Apr 2016 19:44:27 +0000 (14:44 -0500)]
MLK-12684-2: mtd: gpmi: add NAND support
support NAND on imx6ull
Signed-off-by: Han Xu <han.xu@nxp.com>
Han Xu [Tue, 19 Apr 2016 19:42:48 +0000 (14:42 -0500)]
MLK-12684-1: ARM: dts: imx6ull: add NAND support
Support NAND on imx6ull
Signed-off-by: Han Xu <han.xu@nxp.com>
Fancy Fang [Tue, 19 Apr 2016 05:52:30 +0000 (13:52 +0800)]
MLK-12679 ARM: dts: imx6ull: correct pxp clock settings
Correct pxp clock settings according to the commit
'MLK-12669-2 dma: pxp-v3: add 'ipg' and 'axi' clocks'.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Fancy Fang [Tue, 19 Apr 2016 02:38:49 +0000 (10:38 +0800)]
MLK-12678 ARM: dts: imx6ull-ddr3-arm2: solve pin conflict for pwm3 and otg1
The pwm3 and otg1 share the same pin 'GPIO1_IO04'. And default,
the pin is used for otg1. So create a new dts file to solve
this conflict.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Fancy Fang [Mon, 18 Apr 2016 03:01:28 +0000 (11:01 +0800)]
MLK-12669-2 dma: pxp-v3: add 'ipg' and 'axi' clocks
Add 'ipg' and 'axi' clocks for pxp which should
be used to control runtime power managments.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Fancy Fang [Fri, 15 Apr 2016 10:11:51 +0000 (18:11 +0800)]
MLK-12699-1 ARM: imx7d: clk: add two clocks definition for pxp
The pxp require two clocks to enable when it works, and
they are 'ipg' and 'axi' clocks. Besides, the two clocks
share the same CCGR to control clock gating.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Anson Huang [Mon, 18 Apr 2016 10:00:11 +0000 (18:00 +0800)]
MLK-12675 ARM: dts: imx: keep RTC enabled for software poweroff
SRTC needs to be kept enabled during system poweroff,
SNVS_LP control register bit 0 SRTC_ENV must be set
to enable RTC, for software poweroff, kernel just
read the register offset and value from dtb and write
to SNVS_LP control register to poweroff system, need
to make sure bit 0 SRTC_ENV is set to enable RTC during
system poweroff.
Previous setting did NOT enable it which will cause
RTC stop running if using software poweroff.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Anson Huang [Mon, 18 Apr 2016 06:40:47 +0000 (14:40 +0800)]
MLK-12671 ARM: imx: support single soc config
Need to make sure build pass with single SOC
config, in current build for single SOC config,
if both SOC_IMX7D and SOC_IMX6SX are NOT selected,
below build error will occur, add MU module
config to fix this build issue.
LD init/built-in.o
arch/arm/mach-imx/built-in.o: In function `busfreq_probe':
:(.text+0x5370): undefined reference to `imx_mu_lpm_ready'
arch/arm/mach-imx/built-in.o: In function `bus_freq_pm_notify':
:(.text+0x5d50): undefined reference to `imx_mu_lpm_ready'
:(.text+0x5d68): undefined reference to `imx_mu_lpm_ready'
make: *** [vmlinux] Error 1
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Liu Ying [Mon, 18 Apr 2016 02:12:39 +0000 (10:12 +0800)]
MLK-12670 mxc IPUv3: common: Fix overrun array ->sec_chan_en and ->thrd_chan_en
We've got more than 24 channels defined in ipu_channel_t, which causes
potential overrun on array ipu->sec_chan_en and ipu->thrd_chan_en.
This patch enlarges the array size to IPU_MAX_CH(32) to fix this issue.
This issue is reported by Coverity:
Out-of-bounds read (OVERRUN)
overrun-local: Overrunning array ipu->sec_chan_en of 24 bytes at byte offset
25 using index channel >> 24 (which evaluates to 25).
if ((ipu->sec_chan_en[IPU_CHAN_ID(channel)]) &&
((channel == MEM_PP_MEM) || (channel == MEM_PRP_VF_MEM) ||
(channel == MEM_VDI_PRP_VF_MEM))) {
Out-of-bounds read (OVERRUN)
overrun-local: Overrunning array ipu->thrd_chan_en of 24 bytes at byte offset
25 using index channel >> 24 (which evaluates to 25).
if ((ipu->thrd_chan_en[IPU_CHAN_ID(channel)]) &&
((channel == MEM_PP_MEM) || (channel == MEM_PRP_VF_MEM))) {
thrd_dma = channel_2_dma(channel, IPU_ALPHA_IN_BUFFER);
Signed-off-by: Liu Ying <victor.liu@nxp.com>