Juan Gutierrez [Thu, 3 Nov 2016 23:06:21 +0000 (18:06 -0500)]
MXSCM-217 imx: keep weak 2p5 power up when ENET WOL wakeup is enabled
When ENET wake up is enabled by wake-on-lan (WOL), the weak 2P5
ldo needs to keep power up even for LPDDR2 due to the ENET_PLL is
feed by the weak 2p5 ldo during DSM. If the weak 2P5 ldo is power
down the ENET module is power off hence it is not able to sense the
WOL interrupt and trigger the system resume.
Signed-off-by: Juan Gutierrez <juan.gutierrez@nxp.com>
Juan Gutierrez [Thu, 24 Nov 2016 21:48:18 +0000 (15:48 -0600)]
MXSCM-235 dts: add support for scm qwks rev3
Add support for SCM i.MX6DQ 1Gb QWKS rev3
Support the next features for 1Gb qwks rev3 boards:
- Support for fix lpddr2 mode
- hdcp and enetirq
- bluetooth and wifi for Murata ZP SDIO dongle
Signed-off-by: Juan Gutierrez <juan.gutierrez@nxp.com>
Juan Gutierrez [Sat, 3 Dec 2016 17:05:08 +0000 (11:05 -0600)]
MXSCM-234 dts: imx: adjust the sd3 drive strength for 6sxscm evb
For some SD Ultra (40MB/s) the drive strength/speed settings
on the iomux ctrl pads for SD3 is not enougn causing some
error by transfering data as below:
mmcblk2: error -84 transferring data, sector
2250553, nr 151,
cmd response 0x900, card status 0x0
Updating the DSE and Speed on the pad ctrl fixes the issue.
Signed-off-by: Juan Gutierrez <juan.gutierrez@nxp.com>
Song Bing [Wed, 30 Nov 2016 07:37:59 +0000 (15:37 +0800)]
MLK-13563 ion: Enable ion driver on imx7ulp
Enable ion driver on imx7ulp
Signed-off-by: Song Bing <bing.song@nxp.com>
Song Bing [Wed, 30 Nov 2016 08:41:21 +0000 (16:41 +0800)]
MLK-13562 ion: Add devicetree bindings for mxc ion
Add devicetree bindings for mxc ion
Signed-off-by: Song Bing <bing.song@nxp.com>
Anson Huang [Thu, 8 Dec 2016 16:17:53 +0000 (00:17 +0800)]
MLK-13583 ARM: imx: fix build warning on i.mx7ulp clock driver
This patch fixes below build warning:
CC arch/arm/mach-imx/clk-imx7ulp.o
LD init/built-in.o
arch/arm/mach-imx/clk-imx7ulp.c:42:20: warning: 'cm4_periph_plat_sels' defined but not used [-Wunused-variable]
LD arch/arm/mach-imx/built-in.o
CC kernel/module.o
GZIP kernel/config_data.gz
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Anson Huang [Thu, 8 Dec 2016 14:40:35 +0000 (22:40 +0800)]
MLK-13580 ARM: imx: update DGO register to SNVS domain on i.MX7ULP
On i.MX7ULP, the resume entry and parameter are saved
in DGO_GP registers, it has two power domains, one
is normal domain, the other is SNVS domain, if M4 also
enters VLLS mode, DGO needs to be updated into SNVS
domain to avoid power lost and lead to resume fail.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Anson Huang [Thu, 8 Dec 2016 12:12:49 +0000 (20:12 +0800)]
MLK-13579-2 ARM: imx: update suspend ocram location on i.mx7ulp
Adjust i.MX7ULP suspend ocram location from
SRAM_U to SRAM_L, occupy last 16K.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Anson Huang [Thu, 8 Dec 2016 11:46:41 +0000 (19:46 +0800)]
MLK-13579-1 ARM: dts: imx7ulp: adjust suspend ocram location
Adjust suspend ocram location for i.MX7ULP, since previous
location is used by M4.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Peng Fan [Thu, 8 Dec 2016 01:18:32 +0000 (09:18 +0800)]
MLK-13557 imx6sll: add fsl,wdog_b and pinmux settings
Add fsl,wdog_b and pinmux settings.
We need to use wdog_b to trigger pmic reset, when we trigger
wdog_b reset, we should not trigger wdog_reset_b_deb.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
0400ecd8fb3a3772dfb3a68c55960419a63f1650)
Robin Gong [Wed, 7 Dec 2016 03:46:13 +0000 (11:46 +0800)]
MLK-13577-5: ARM: dts: imx7ulp-evk: add pf1550 pmic
add pf1550-regulator-rpmsg driver node in dts.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Robin Gong [Wed, 7 Dec 2016 03:45:09 +0000 (11:45 +0800)]
MLK-13577-4: ARM: configs: imx_v7_defconfig: enable pf1550-regulator-rpmsg driver
enable pf1550-regulator-rpmsg driver by default.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Robin Gong [Wed, 7 Dec 2016 03:41:42 +0000 (11:41 +0800)]
MLK-13577-3 regulator: pf1550-regulator-rpmsg: add pf1550 regulator rpmsg driver
add pf1550 regulator rpmsg driver to control pf1550 on the m4 side
by rpmsg.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Robin Gong [Wed, 16 Nov 2016 07:39:31 +0000 (15:39 +0800)]
MLK-13577-2 ARM: imx7: mu: set ABF0 of MU_CR to notify M4 MU finish initialization
set ABF0 of MU_CR to let M4 know MU is ready, thus MU can initialize rpmsg
later.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
(cherry picked from commit
4969903fc8d32c5e6dfc4fe5f2f68e52aef080bc)
Robin Gong [Wed, 7 Dec 2016 03:28:45 +0000 (11:28 +0800)]
MLK-13577-1: ARM: imx: mu: support rpmsg/mu on i.mx7ulp
Enable rpmsg/mu support on i.mx7ulp, since some mu register and
rmpsg buffer different as before
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Gao Pan [Tue, 6 Dec 2016 08:03:51 +0000 (16:03 +0800)]
MLK-13575 defconfig: enable lpi2c in defconfig
Enable lpi2c in defconfig, CONFIG_I2C_IMX_LPI2C=y
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Gao Pan [Wed, 7 Dec 2016 01:51:50 +0000 (09:51 +0800)]
MLK-13573 arm: dts: add sensors node in imx7ulp-evk.dts
sensor node: fxas2100x, fxos8700, mpl3115
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Juan Gutierrez [Wed, 16 Nov 2016 22:45:11 +0000 (16:45 -0600)]
spi: use sg_next for walking through the allocated scatterlist table
A null dereference or Oops exception might occurs when reading at once the
whole content of an spi-nor of big enough size that requires an scatterlist
table that does not fit into one single page.
The spi_map_buf function is ignoring the chained sg case by dereferenceing
the scatterlist elements in an array fashion. This wrongly assumes that
the allocation of the scatterlist elements are contiguous. This is true as
long as the scatterlist table fits within a PAGE_SIZE. However, for
allocation where the scatter table is bigger than that, the pages allocated
by sg_alloc might not be contigous.
The sg table can be properly walked by sg_next instead of using an array.
Signed-off-by: Juan Gutierrez <juan.gutierrez@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Shengjiu Wang [Mon, 28 Nov 2016 05:38:34 +0000 (13:38 +0800)]
MLK-13574-3: ARM: dts: enable audio in a seperate dts
Audio is in M4 domain, so we need an indepenent dts for audio.
M4 domain is controled by RTOS, this dts is for demo purpose in
linux
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Shengjiu Wang [Mon, 28 Nov 2016 05:38:13 +0000 (13:38 +0800)]
MLK-13574-2: ASoC: fsl_sai: refine driver for ip upgrade
In imx7ulp1, the sai can support two TX channel and two RX
channels, So the usage need to be updated.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Shengjiu Wang [Mon, 28 Nov 2016 05:37:36 +0000 (13:37 +0800)]
MLK-13574-1: ASoC: imx-wm8960: remove the gpr dependency
There is no gpr setting in some board. so we can't return
a fatal error.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Shengjiu Wang [Mon, 28 Nov 2016 05:36:55 +0000 (13:36 +0800)]
MLK-13568: ARM: clk-imx7ulp: Add clock tree for m4 core
SAI in M4 domain, and the clock used by SAI is in M4 domain
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Bai Ping [Wed, 30 Nov 2016 09:07:05 +0000 (17:07 +0800)]
MLK-13548 ARM: dts: imx: Add 1.2GHz setpoint for imx7d
Add 1.2GHz setpoint for i.MX7D.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Bai Ping [Mon, 5 Dec 2016 06:31:53 +0000 (14:31 +0800)]
MLK-13564 driver: watchdog: Add system reboot support on imx7ulp
Add system reboot for i.MX7ULP. As there is no other way to reboot the
system, so use wdog restart handler to trigger the system reboot.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Gao Pan [Wed, 30 Nov 2016 02:40:47 +0000 (10:40 +0800)]
MLK-13572 i2c: imx-lpi2c: add low power i2c bus driver
This patch adds lpi2c bus driver to support new i.MX products
which use lpi2c instead of the old imx i2c.
The lpi2c can continue operating in stop mode when an appropriate
clock is available. It is also designed for low CPU overhead with
DMA offloading of FIFO register accesses.
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Reviewed-by: Fugang Duan <B38611@freescale.com>
Reviewed-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Gao Pan [Wed, 30 Nov 2016 02:40:46 +0000 (10:40 +0800)]
MLK-13571 dt-bindings: i2c: imx-lpi2c: add devicetree bindings
Add a binding document for lpi2c driver.
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Juan Gutierrez [Tue, 22 Nov 2016 18:19:50 +0000 (12:19 -0600)]
MXSCM-226 dts: imx: add pm-ignore-notify option for sd3 on mx6sxscm evb
There is no card-detection pad connected for sd3 on the i.mx6 SX
EVB board. The card is assumed to be non-removable, hence, there is
no need to redetect the card during the pm callbacks. This can be
reached by including the pm-ignore-notify option on the usdhc3 device
on the dtb file.
Signed-off-by: Juan Gutierrez <juan.gutierrez@nxp.com>
Juan Gutierrez [Tue, 22 Nov 2016 21:07:33 +0000 (15:07 -0600)]
MXSCM-225 dts: imx: fix the power gpio for usb otg2 on 6sxscm evb
The usb otg2, on the SXSCM EVB board is powered up directly by the
GEN_V5 signal from the PMIC, so there is no gpio assigned.
The wrong assignation was preventing the busfreq driver to switch
to any other frequency, since the usb otg2 looks to be always
active.
Signed-off-by: Juan Gutierrez <juan.gutierrez@nxp.com>
Juan Gutierrez [Wed, 16 Nov 2016 00:56:53 +0000 (18:56 -0600)]
MXSCM-224 dts: imx: not use mdio device for enet phy configuration
Using the mdio and ethphy device that is referenced as a phy_handle
by the fec device is not properly handling the resume from suspend.
Signed-off-by: Juan Gutierrez <juan.gutierrez@nxp.com>
Juan Gutierrez [Tue, 8 Nov 2016 19:18:50 +0000 (13:18 -0600)]
MXSCM-220 dts: imx: add missing properties for wifi on imx6 scm boards
BCM WiFi driver needs to take care of card detect by itself. Using cd-post
property tells the mmc core to not detect the card automatically during
host driver probe and post it untill the client driver notifies to do it.
The non-removable option is also required to fix a NULL dereference
occurred when resuming from suspend. The pm-ignore-notify parameter is
also included.
Signed-off-by: Juan Gutierrez <juan.gutierrez@nxp.com>
Anson Huang [Mon, 5 Dec 2016 15:26:32 +0000 (23:26 +0800)]
MLK-13567 ARM: dts: imx7ulp: disable iomuxc by default
Disable i.MX7ULP's IOMUXC now since there is no module
using it and after kernel boot up, below failed message
will come out:
imx7ulp-pinctrl
4103d000.iomuxc: fail to probe dt properties
imx7ulp-pinctrl: probe of
4103d000.iomuxc failed with error -22
Any module who needs it can enable it anytime.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Anson Huang [Mon, 5 Dec 2016 15:12:05 +0000 (23:12 +0800)]
MLK-13566 ARM: imx: update LPDDR3 script on imx7ulp som board
Update i.MX7ULP SOM board LPDDR3 script according to
u-boot script change.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Anson Huang [Mon, 5 Dec 2016 14:33:43 +0000 (22:33 +0800)]
MLK-13565 ARM: dts: imx7ulp: enable debug uart for 14x14 arm2 board
i.MX7ULP's lpuart4 is disabled in dtsi, need to enable it in
14x14 arm2 board for console.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Gao Pan [Tue, 29 Nov 2016 06:46:14 +0000 (14:46 +0800)]
MLK-13560 arm: imx: imx6sll: add oob support for sdio wifi
Add oob support for imx6sll sdio wifi to improve
the performance.
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Nitin Garg [Thu, 1 Dec 2016 16:00:49 +0000 (10:00 -0600)]
MLK-13556: ARM: Enable CONFIG_FHANDLE
CONFIG_FHANDLE=y is needed when running
systemd with version >=210, so that it can
spawn a serial tty via getty.
Signed-off-by: Nitin Garg <nitin.garg@nxp.com>
Andy Duan [Thu, 1 Dec 2016 06:10:21 +0000 (14:10 +0800)]
MLK-13554-03 ARM: configs: enable eDMA by default
Enable eDMA by default.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Andy Duan [Thu, 1 Dec 2016 06:31:46 +0000 (14:31 +0800)]
MLK-13554-02 dmaengine: fsl-edma: enable the correct the DMAMUX
- correct DMAMUX enable bit.
- correct mapping the DMAMUX source and slot.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Andy Duan [Thu, 1 Dec 2016 05:38:22 +0000 (13:38 +0800)]
MLK-13537-02 dts: arm: imx7ulp-evk: remove the lpuart6 dummy node
Remove the lpuart6 dummy node.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Andy Duan [Tue, 29 Nov 2016 08:45:48 +0000 (16:45 +0800)]
MLK-13537 dts: arm: imx7ulp-evk: enable Murata 1DX wifi/bt for evk board
Add Murata 1DX wifi/bt for evk board.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Andy Duan [Wed, 30 Nov 2016 10:58:57 +0000 (18:58 +0800)]
MLK-13550 net: wireless: bcmdhd: add firmware parse support
Add fw/nv path parse from dts support to support multiple modules
with build in.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Shengjiu Wang [Wed, 30 Nov 2016 09:48:17 +0000 (17:48 +0800)]
MLK-13549: ARM: imx7d-pinfunc: fix sai input sel option value
SAI input select value is not correct for some pins. This patch
is to correct these values
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Andy Duan [Wed, 21 Sep 2016 15:54:40 +0000 (23:54 +0800)]
MLK-13529-2 dmaengine: fsl-edma: calculate the real count for sg
Calculate the rela count for the case that eDMA stop after get eeop signal.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Robin Gong [Mon, 28 Nov 2016 09:28:47 +0000 (17:28 +0800)]
MLK-13529-1 dmaengine: fsl-edma: support edma2 on ULP1
Updated the edma driver to support edma2 on ULP1.
Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com>
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Bai Ping [Tue, 29 Nov 2016 06:52:46 +0000 (14:52 +0800)]
MLK-13535 driver: watchdog: fix wdog reset after resume from vlls mode
When resuming from VLLS mode, the wdog will be reset, the first we configure
the wdog, an initial timeout value should be write into the TOVAL register,
otherwise, the wdog will not be initialized successfully.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Anson Huang [Tue, 29 Nov 2016 13:48:31 +0000 (21:48 +0800)]
MLK-13534-2 ARM: dts: imx7ulp: add 14x14 arm2 board
Add i.MX7ULP 14x14 arm2 board support.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Anson Huang [Tue, 29 Nov 2016 13:45:48 +0000 (21:45 +0800)]
MLK-13534-1 ARM: dts: imx7ulp: add usdhc1 node
There are 2 usdhc instances on i.MX7ULP, previous
usdhc1 should be usdhc0, now add the correct usdhc1 node.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Peter Chen [Mon, 21 Nov 2016 06:51:27 +0000 (14:51 +0800)]
MLK-13485-4 clk: imx7ulp: add gpio port control clocks
Add gpio port control clocks, and add them to init table.
If the gpio clock is controlled by gpio driver, the watchdog
reset will occur due to unknown reason, we need to debug it
if we need driver to control its clocks.
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Bai Ping [Wed, 9 Nov 2016 02:43:45 +0000 (10:43 +0800)]
MLK-13485-3 pinctrl: imx: modify the imx pinctrl to support imx7ulp gpio
On i.MX7ULP, the IOMUXC PAD register has IBE and OBE bit to control
the input/output buffer if a PIN wants to use as GPIO function.
Additonally, on i.MX7ULP, the MUX reg and CONFIG reg is shared in one
register and the GPIO function select in the MUX is not index zero as
on I.MX6 SOC, add support in code for i.MX7ULP GPIO function.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Andy Duan [Wed, 9 Nov 2016 01:48:30 +0000 (09:48 +0800)]
MLK-13485-2 ARM: dts: imx7ulp: add GPIO support
Add GPIO (PCTLC,D,E,F) support
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Andy Duan [Wed, 9 Nov 2016 01:39:08 +0000 (09:39 +0800)]
MLK-13485-1 gpio: vf610: add direction set for imx7ulp
Add direction set for mx7ulp.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Bai Ping [Mon, 28 Nov 2016 06:02:23 +0000 (14:02 +0800)]
MLK-13522 ARM: dts: enable tempmon node in dts
In commit:
b1a04e6ed63,(MLK-13413), the tempmon node is
wrongly disabled. so fix it in this patch.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Bai Ping [Thu, 24 Nov 2016 06:56:51 +0000 (14:56 +0800)]
MLK-13520-04 ARM: defconfig: enable imx7ulp wdog driver in defconfig
Enable wdog driver in defconfig.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Bai Ping [Thu, 24 Nov 2016 06:50:16 +0000 (14:50 +0800)]
MLK-13520-03 ARM: imx: remove wdog disable in pm function
When the wdog driver is added for i.MX7ULP, it is no need to
do wdog driver disable when resume from VLLS mode as wdog driver
will handle it.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Bai Ping [Thu, 24 Nov 2016 06:44:38 +0000 (14:44 +0800)]
MLK-13520-02 driver: watchdog: Add watchdog driver for imx7ulp
Add watchdog driver for i.MX7ULP.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Bai Ping [Mon, 28 Nov 2016 03:09:29 +0000 (11:09 +0800)]
MLK-13520-01 ARM: dts: Add 'timeout-sec' property for wdog node
Add 'timeout-sec' property for wdog node of i.MX7ULP.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Bai Ping [Tue, 22 Nov 2016 09:14:32 +0000 (17:14 +0800)]
MLK-13504 ARM: imx: imporve the fractional divider calculation
Improve the fractional divider calculation accuracy use
continued fraction method.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Xianzhong [Fri, 25 Nov 2016 07:04:13 +0000 (15:04 +0800)]
MGS-2424: integrate gpu 6.2.0.p2 offiical release
integrate official 6.2.0.p2 for kernel driver part
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
Anson Huang [Wed, 23 Nov 2016 11:17:48 +0000 (19:17 +0800)]
MLK-13524 ARM: imx: enable RBB for i.mx7ulp VLPS mode
RBB needs to be enabled for VLPS mode to save
power, it can save ~0.4mA on VDD_DIG1.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Anson Huang [Thu, 24 Nov 2016 16:28:30 +0000 (00:28 +0800)]
MLK-13510-1 ARM: dts: add rtc node
Add RTC node for i.MX7ULP, re-use SNVS RTC.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Anson Huang [Tue, 22 Nov 2016 14:32:23 +0000 (22:32 +0800)]
MLK-13501 ARM: imx: correct i.mx7ulp clock tree setting
On i.MX7ULP, there are options to select SPLL or SPLL PFD
as SPLL output clock SPLL_SEL, so the SPLL option for
sys_sel mux should be from SPLL_SEL, NOT from SPLL directly.
Previous:
spll_pre_sel 1 1
24000000 0
spll_pre_div 1 1
24000000 0
spll 2 2
531648000 0
sys_sel 1 1
531648000 0
core_div 2 2
531648000 0
plat_div 1 1
531648000 0
spll_pfd3 0 0
979729408 0
spll_pfd2 0 0
979729408 0
spll_pfd1 0 0
979729408 0
spll_pfd0 1 1
503666526 0
spll_pfd_sel 0 0
503666526 0
spll_sel 0 0
503666526 0
After fixed:
spll_pre_sel 1 1
24000000 0
spll_pre_div 1 1
24000000 0
spll 1 1
531648000 0
spll_pfd3 0 0
979729408 0
spll_pfd2 0 0
979729408 0
spll_pfd1 0 0
979729408 0
spll_pfd0 2 2
503666526 0
spll_pfd_sel 1 1
503666526 0
spll_sel 1 1
503666526 0
sys_sel 1 1
503666526 0
core_div 1 1
503666526 0
plat_div 1 1
503666526 0
CORE_DIV clock will be enabled automatically when PLAT_DIV
is enabled, so we can skip it in clks_init_on.
Now that sys_sel clock tree is correct, no need to have SPLL_PFD0
in clks_init_on, as it will be enabled automatically because of
PLAT_DIV.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Anson Huang [Tue, 22 Nov 2016 13:38:01 +0000 (21:38 +0800)]
MLK-13500 ARM: imx: disable all pll/pfd before entering low power mode on i.mx7ulp
Per design request, all PLLs/PFDs need to be disabled before
entering low power mode, here for VLPS/VLLS mode, add this
procedure.
For VLPS mode, DDR is also in self-refresh mode, so NVCC_DRAM_SW
can be turned off as well, add this support.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Robby Cai [Mon, 21 Nov 2016 09:08:04 +0000 (17:08 +0800)]
MLK-13497 clock: make an accurate pixel cock rate for epdc on i.mx6sll
change parent clock to pll3_pfd2 and calculate out a desired pixel clock
rate. This patch fixed the following warning.
"imx_epdc_v2_fb
20f4000.epdc: Unable to get an accurate EPDC pix clkdesired =
40000000, actual =
63529412"
Signed-off-by: Robby Cai <robby.cai@nxp.com>
Haibo Chen [Mon, 21 Nov 2016 10:33:14 +0000 (18:33 +0800)]
MLK-13498 ARM: dts: add eMMC support for ulp-evk board
Add eMMC support (8 bit mode) for ulp-evk board.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Anson Huang [Mon, 21 Nov 2016 13:00:05 +0000 (21:00 +0800)]
MLK-13487-2 ARM: imx: add NVCC_DRAM_SW control for i.mx7ulp
When enter VLLS mode, DRAM is in self-refresh, NVCC_DRAM_SW
can be off to save power.
As the static io-map formula is no longer feasible on i.MX7ULP,
here we change it to ioremap for creating iram tlb.
Remove the physical module base address in pm_info structure
to save iram space.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Anson Huang [Mon, 21 Nov 2016 12:55:37 +0000 (20:55 +0800)]
MLK-13487-1 ARM: dts: imx7ulp: add PTC1 pin as GPIO
Add PTC1 pin as GPIO on i.MX7ULP SOM board, it is
to control NVCC_DRAM_SW during suspend/resume.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Peng Fan [Fri, 18 Nov 2016 09:04:42 +0000 (17:04 +0800)]
MLK-13482 drivers: char: otp: support i.MX6SLL
Support i.MX6SLL OTP.
There are 4 works in bank7/bank8.
When read, use address offset.
When prog, use bank/index, note that bank7/bank8 we treat
them a single bank when prog.
Tested GP41 and GP31 read/write on eng sample chip.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
f8698b66fcbec7409b738a4c5b05ba87f0342cf8)
Andy Duan [Wed, 26 Oct 2016 07:34:01 +0000 (15:34 +0800)]
MLK-13484 ARM: imx: imx6ul: add PHY KSZ8081 new silicon revision fixup setting
The previous code only support i.MX6UL EVK RevA, RevB, RevC PHY KSZ8081
with fixed silicon revision.
Different silicon revision may have different phy fixup init setting.
i.MX6UL EVK RevC1 apdate new silicon revision PHY. After debug and tune,
the revision still need the same phyfix setting.
So, add Ethernet PHY KSZ8081 new silicon revision fixup setting.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Andy Duan [Thu, 17 Nov 2016 09:13:14 +0000 (17:13 +0800)]
MLK-13483 ARM: imx6sll-evk-btwifi: fix typo of iomux wifi function
Fix typo of iomux wifi function.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Anson Huang [Fri, 18 Nov 2016 14:01:33 +0000 (22:01 +0800)]
MLK-13480-3 clocksource: imx-tpm: increase TPM clock frequency to 3MHz
As TPM default clock parent is changed to OSC which is 24MHz,
to keep its frequency as 3MHz, need to update its divider
from 16 to 8.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Anson Huang [Fri, 18 Nov 2016 14:00:23 +0000 (22:00 +0800)]
MLK-13480-2 ARM: dts: imx7ulp: change TPM clock parent to OSC
As FIRC may be NOT accurate enough and it also can
be disabled when M4 goes into VLPR mode, so using
OSC as TMP clock parent is better.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Anson Huang [Fri, 18 Nov 2016 13:53:59 +0000 (21:53 +0800)]
MLK-13480-1 ARM: imx: improve composite clk parent index setting
The PCC clock bit field definition is as below:
000b - Clock is off.
001b - Clock option 1
010b - Clock option 2
011b - Clock option 3
100b - Clock option 4
101b - Clock option 5
So previous clock driver sets PCC clock parent to
start from index value 1 by setting CLK_MUX_INDEX_ONE
flag, however it has an issue of getting clock parent
when the register field value is 0, below is the clk
get parent code from clk driver:
if (val && (mux->flags & CLK_MUX_INDEX_BIT))
val = ffs(val) - 1;
if (val && (mux->flags & CLK_MUX_INDEX_ONE))
val--;
The val is 0, so the parent will be returned as first
clock parent in PCC register field which is 001b,
that will cause setting clk parent fail when the
reset value is 0 and we try to set clk parent to
option 1, as clk driver thinks current clk parent
is same as the new parent.
Fix this issue by adding dummy clock as option0, ths
clk gate is controlled by bit 30, so it would NOT impact
gating function.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Robin Gong [Thu, 17 Nov 2016 10:34:08 +0000 (18:34 +0800)]
MLK-13479-2: ARM: dts: imx6qdl: add IPG clock for gpc
add IPG clock for gpc to delay 2us for PU power up.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Robin Gong [Thu, 17 Nov 2016 09:12:22 +0000 (17:12 +0800)]
MLK-13479-1: ARM: imx: gpc: delay 2us instead of sw+sw2iso delay
(sw + sw2iso) delay after raise power up request to pgc is still not
enough stable, so we have to delay 2us to make sure pgc power up
successfully as v3.14. Align the power off flow with v3.14 too.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Guoniu.Zhou [Thu, 17 Nov 2016 08:49:45 +0000 (16:49 +0800)]
MLK-13478: Video: Correct the error macro definition in mxsfb.c
Correct a macro definition in mxsfb.c
In framebuffer driver, a macro define LCDIF_CTRL2n register bits[23-21] value
is 0x3, but according to reference manual, it should be 0x4, so correct it.
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
Bai Ping [Thu, 17 Nov 2016 01:31:36 +0000 (09:31 +0800)]
MLK-13475 ARM: dts: Fix typo in compatible string on imx6sll
Fix typo in compatible string.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Robin Gong [Thu, 17 Nov 2016 08:21:48 +0000 (16:21 +0800)]
MLK-13477: ARM: dts: imx6sll-evk: add charger driver
Add charger driver in dts.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Haibo Chen [Mon, 14 Nov 2016 10:22:09 +0000 (18:22 +0800)]
MLK-13405-2 ARM: dts: add usdhc2 support for imx6sll-lpddr3-arm2
Add usdhc2 support for imx6sll-lpdr3-arm2 board.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Haibo Chen [Wed, 19 Oct 2016 09:48:24 +0000 (17:48 +0800)]
MLK-13405-1 ARM: dts: add usdhc2 support for imx6sll-evk
For imx6sll-evk board, if eMMC connected, all the pad of
eMMC should be fixed to 1.8v. Otherwise the current leakage
will pull up the VCCQ to 2.6v, which will impatch usdhc1
and usdhc3 SD3.0 voltage switch.
This patch set the LVE of pad SD2_RST and SD2_STROBE, and
config the vqmmc to fixed 1.8v, make sure the driver set
pad I/O voltage of usdhc2 fixed to 1.8v, not impact the
VCCQ which support usdhc1 and usdhc3 SD3.0 1.8v voltage.
And accord to IC suggestion, clock and strobe pad need to
config as pull-down. So change all the clock/strobe pad's
PUS to 0.
eMMC data4/5 has branch on evk board, which make the data
signal quality very bad, need to cut off these branch of
data4/5, this hardware rework is hard to do on all the evk
board. So currently HS400 do not enable, just support eMMC
HS200 mode.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Bai Ping [Fri, 4 Nov 2016 07:05:58 +0000 (15:05 +0800)]
MLK-13420 ARM: dts: imx: Correct the i2c3 pin's voltage setting
On i.MX6SLL EVK and ARM2 board, the pins for I2C3 should be set
to 1.8V voltage(set the LVE bit to 1) to decrease the current
leakage from these pins.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Anson Huang [Tue, 15 Nov 2016 17:38:22 +0000 (01:38 +0800)]
MLK-13455 ARM: imx: need to wait apll ready before operating MMDC on i.mx7ulp
When resume from VLPS mode on i.MX7ULP, APLL is NOT
valid yet, but MMDC clock is from APLL, so need to
wait for it valid before operating MMDC.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Anson Huang [Tue, 8 Nov 2016 12:28:58 +0000 (20:28 +0800)]
MLK-13441-17 ARM: imx: add cpuidle support for i.mx7ulp
Add i.MX7ULP cpuidle support, 3 levels idle as below:
1. patial stop mode 3;
2. patial stop mode 2;
3. patial stop mode 1.
PSTOP1 - Partial Stop with system and bus clock disabled
PSTOP2 - Partial Stop with system clock disabled and bus clock enabled
PSTOP3 - Partial Stop with system clock enabled and bus clock enabled
All drivers has DMA function need to add pm_qos
API to prevent cpuidle from entering PSTOP 1/2.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Anson Huang [Tue, 8 Nov 2016 12:33:16 +0000 (20:33 +0800)]
MLK-13441-16 mmc: host: imx: add pm_qos to interact with cpuidle
On some SoCs such as i.MX7ULP, there is no busfreq
driver, but cpuidle has some levels which may disable
system/bus clocks, so need to add pm_qos to prevent
cpuidle from entering low level idles and make sure
system/bus clocks are enabled when usdhc is active.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Peter Chen [Thu, 20 Oct 2016 01:36:39 +0000 (09:36 +0800)]
MLK-13441-15 ARM: dts: vfxxx.dtsi: fix below build error
arch/arm/boot/dts/vfxxx.dtsi:256.20-28 syntax error
FATAL ERROR: Unable to parse input tree
scripts/Makefile.lib:293: recipe for target
'arch/arm/boot/dts/vf500-colibri-eval-v3.dtb' failed
make[2]: *** [arch/arm/boot/dts/vf500-colibri-eval-v3.dtb] Error 1
arch/arm/Makefile:327: recipe for target 'dtbs' failed
make[1]: *** [dtbs] Error 2
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Anson Huang [Fri, 4 Nov 2016 17:06:38 +0000 (01:06 +0800)]
MLK-13441-14 pinctrl: imx: support i.mx7ulp new iomux format
On i.MX7ULP, IOMUX's mux and pad config are in
same register, but mux field is different, add
support in pinctrl driver.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Andy Duan [Mon, 9 May 2016 09:48:35 +0000 (17:48 +0800)]
MLK-13441-12 pinctrl: pinctrl-imx: add property to define mux register mask bits
Add property to define mux register mask bits when SHARE_MUX_CONF_REG
flag is added.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Andy Duan [Mon, 9 May 2016 09:58:15 +0000 (17:58 +0800)]
MLK-13441-11 pinxtrl: freescale: pinctrl-imx7ulp: add support for iomux controller
Add support for imx7ulp iomux controller.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Anson Huang [Mon, 7 Nov 2016 16:50:08 +0000 (00:50 +0800)]
MLK-13441-10 ARM: imx: add suspend support for i.mx7ulp
Add suspend/resume support for i.MX7ULP,
standby mode will enter VLPS mode, can be waked
up by any interrupt which is enabled in GIC,
and mem will enter VLLS mode, can only be waked up
by NMI currently.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Anson Huang [Mon, 7 Nov 2016 16:07:58 +0000 (00:07 +0800)]
MLK-13441-8 ARM: configs: enable i.mx7ulp by default
Enable i.MX7ULP SoC by default.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Anson Huang [Mon, 7 Nov 2016 16:06:50 +0000 (00:06 +0800)]
MLK-13441-7 ARM: imx: add i.mx7ulp MSL support
Add i.MX7ULP MSL support.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Anson Huang [Mon, 7 Nov 2016 16:05:46 +0000 (00:05 +0800)]
MLK-13441-6 ARM: imx: add i.mx7ulp clock driver
Add i.MX7ULP clock driver.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Anson Huang [Mon, 7 Nov 2016 16:03:54 +0000 (00:03 +0800)]
MLK-13441-5 ARM: imx: add new clk types
Add below new clock types to support new SoC:
composite clk;
frac-divider;
pfdv2;
pllv4.
These clock types are for i.MX7ULP and maybe
following SoCs.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Bai Ping <ping.bai@nxp.com>
[Octavian: fix build warning by using u64 in do_div ops]
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Anson Huang [Mon, 7 Nov 2016 15:44:39 +0000 (23:44 +0800)]
MLK-13441-4 clocksource: tpm: add i.mx tpm driver
Add i.MX TPM support for clock source.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Anson Huang [Mon, 7 Nov 2016 14:39:06 +0000 (22:39 +0800)]
MLK-13441-3 ARM: dts: imx7ulp: add evk board support
Add i.MX7ULP EVK board support.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com>
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Signed-off-by: ye li <ye.li@nxp.com>
Anson Huang [Mon, 7 Nov 2016 14:25:37 +0000 (22:25 +0800)]
MLK-13441-2 ARM: dts: imx7ulp: add dtsi file
Add i.MX7ULP dtsi support.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Signed-off-by: Gan Yuchou <yuchou.gan@nxp.com>
Signed-off-by: Ye.Li <ye.li@nxp.com>
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Signed-off-by: Han Xu <han.xu@nxp.com>
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
Andy Duan [Mon, 9 May 2016 09:54:12 +0000 (17:54 +0800)]
MLK-13441-1 ARM: imx7ulp: iomux: add imx7ulp header file
Add imx7ulp header file.
Two changes base on original header file from iomux tool team:
- Remove the mux register column since mux and conf is shared in
one register.
- IOMUX_0 part:
The register address: 0x4103_d000 ~ 0x4103_d0cc, the header file
offset is 0xdxxx, now change it to 0x0xxx. The common base address
0x4103_d000 is defined by dts file.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Robby Cai [Tue, 8 Nov 2016 00:54:14 +0000 (08:54 +0800)]
MLK-13439 ARM: dts: imx6sll: correct clock property for pwm
PWM driver expects two clocks, so correct it to meet this requirement.
Otherwise pwm can not work properly, neither does the backlight (using pwm1).
Signed-off-by: Robby Cai <robby.cai@nxp.com>
Xianzhong [Mon, 7 Nov 2016 02:02:20 +0000 (10:02 +0800)]
MGS-2302-4 [#imx-225] free the record from the right kernel
when the app is killed, the kernel driver will free database from the gpu0.
if the app is running on gpu1, its database may be freed by gpu0 unexpectely.
free the record from the right kernel, this patch is refined from MGS-2302-1.
also Revert "MGS-2302-1 [#imx-225] fix the gpu1 hang with independent mode"
This reverts commit
39472fb8b1b30a047c637c82be1b59e0b975bc03.
Date: Nov 07, 2016
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
Xianzhong [Mon, 31 Oct 2016 07:52:44 +0000 (15:52 +0800)]
MGS-2302-3 [#imx-225] disable power management for gpu profiler
GPU power management is disabled by force for performance.
The porifler will enable GPU1 power management after affinity tests.
When run openvg conformance later, GPU0 has no power management, GPU1 is
with power management and will become OFF often.
Hence this lead to GPU1 hang after openvg conformance test.
Date: Oct 31, 2016
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
Xianzhong [Mon, 17 Oct 2016 07:58:52 +0000 (15:58 +0800)]
MGS-2302-1 [#imx-225] fix the gpu1 hang with independent mode
when the app is killed, the kernel driver will free database from the gpu0.
if the app is running on gpu1, its database may be freed by gpu0 unexpectely.
need check kernel pointer in record to prevent the incorrect database free.
Date: Oct 17, 2016
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
Xianzhong [Fri, 4 Nov 2016 04:47:03 +0000 (12:47 +0800)]
MGS-2388 [#ccc] integrate 6.2.0 post patch
apply the gpu hang patch for multiple instances
001-IMX101-15870-04-cl81286-Fixed-ES31-CTS.core.tessellation_shader.tessellation_shader_tc_barriers.barrier_guarded_write_calls-hang.patch
apply the debug patch for gpu module clock
0014-cl83047-added-debug-control-for-new-module-s-clock-gating.patch
Date: Nov 11, 2016
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>