MLK-16765-2 soc: imx: sc: ipc: add 'group' into notificaiton
Add one more 'group' parameter to notification so that rtc/temperature
driver can check if this MU interrupt is for themselves or not. Worst
case as before, different irq group with the same irq_status can't be
distinguished, such as 'SC_IRQ_BUTTON' and 'SC_IRQ_RTC'(all is 1), which
means both notification will be called once any of both interrupts
triggered. Besides, refine check irq_status code.
Signed-off-by: Robin Gong <yibin....
MLK-16765-1: soc: i.MX8: Update to the latest SCFW API
Update since new button/wdog interface added on scfw:
commit e7d95e1e306a
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
MLK-16835 ARM64: dts: imx8mq-evk-pcie1-m2: enable usdhc2 node
i.MX8MQ EVK RevA0/A1 board PCIe M.2 rework for 1CQ WIFI has
pin conflict with usdhc2 node, so disable the node in the extended
dts file. But for EVK RevB1/B2 board, there have no pin conflict
with usdhc1 node.
The change drop RevA0/A1 board PCIe M.2 WIFI support, and only support
RevB1/B2 or later boards. Then usdhc2 can work now.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
MLK-16833 ARM64: dts: freescale: imx8mq: enable over-drive mode by default
As all the EVK boards except A0 support over-drive mode,
so enable it in default EVK board dtb and remove over
drive mode dtb.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
MLK-16830 PCI: imx: fix boot failulre when the pll is not locked
Return the error when the pll is not locked.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
MLK-16817-1 ARM64: imx: add the pcie per clk for imx8qm/qxp
Add the pcie per clk for imx8qm/qxp.
Since it is mandatory required in imx8qm/qxp pcie pm.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
MLK-16829 ARM64: dts: remove unused cpu idle state on imx8mq
The cluster level can NOT be power down on i.MX8MQ, so the cluster
level idle state can be removed. Only core level power down is used
for cpuidle support.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
MGS-3367 [#imx-809] fix cma_release dump with ctrl-c
need release user memory before close the drmfb handle,
there is no galcore kernel interface for immediate free.
add new interface to release the user memory by force,
[ 112.487090] [<ffff0000081748c0>] free_contig_range+0xa0/0xc0
[ 112.492757] [<ffff0000081d944c>] cma_release+0x94/0xc0
[ 112.497900] [<ffff0000085e344c>]
dma_release_from_contiguous+0x2c/0x38
[ 112.504432] [<ffff000008095ab8>]
__dma_free_coherent.isra.14+0x50/0xb8
[ ...
MGS-1633-2 [#imx-811] fix build for gpu bus frequency
need remove IMX8_SCU_CONTROL to include busfreq-imx.h
Date: Nov 15, 2017
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
MLK-16821 ARM64: dts: freescale: imx8mq: increase CMA size to 1GB
Increase CMA size to 1GB to support dual 4K video playback.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
MGS-1633 [#2235] Replace CONFIG_PM_RUNTIME with CONFIG_PM
Since 4.1, linux kernel has dropped CONFIG_PM_RUNTIME macro. And
CONFIG_PM is used instead. GPU driver should be synced with the change.
Date Feb 22, 2016
Signed-off-by: Shawn Xiao <b49994@freescale.com>
MLK-16813 drm/imx: core: Set driver data to NULL when we bailout from ->bind()
We need to set driver data to NULL when we bailout from ->bind(),
otherwise it would be leaked to the system power management operations
and cause invalid driver data being used there.
Reported-by: Anson Huang <Anson.Huang@nxp.com>
Fixes: 54db5decce17 ("drm/imx: drop deprecated load/unload drm_driver ops")
Signed-off-by: Liu Ying <victor.liu@nxp.com>
MLK-16810 ARM64: dts: freescale: imx8mq: set timer stop flag in suspend
System counter's clock is disabled in suspend, set flag
for arch timer driver's awareness.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
MLK-16812 drm/imx: ldb: Let system PM behave properly when we are unbinded
The system power management operations should get correct driver data
before going on to further handling. When the component is unbinded,
driver data should be set to NULL so that the system power management
may be bypassed(return early). This way, we may prevent the system power
management from using any invalid driver data.
Fixes: 915ac0ad7369 ("MLK-16581-7 drm/imx: ldb: Add system power management support")
Sig...
MLK-16695-3: mipi_csi: Change printk to dev_dbg
Messages in ISI irq handler are for debugging, so
change printk to dev_dbg for this purpose.
The width and height of image information need output
in debug process.
Reviewed-by: Sandor Yu <sandor.yu@nxp.com>
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
(cherry picked from commit e254c8408f69eca9b668af58d911f27a4fefc121)
MLK-16695-2: mipi_csi: Add pm suspend and resume support
Add power manager suspend and resume support for ISI
Reviewed-by: Sandor Yu <sandor.yu@nxp.com>
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
(cherry picked from commit 4af299fed1568551d2e8c4696ec33d87cc873510)
MLK-16798-2: arm64: defconfig: CONFIG_AHCI_IMX=y
Enabling sata on imx8qm was done by adding "default y", this should just
be modified in config instead.
Fixes: 1d09794d6387 ("MLK-16684-3 ata: imx: enable imx8qm sata")
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
MLK-16798-1: ata: imx: Fix AHCI_IMX Kconfig dependency
Enabling sata on imx8qm was done by adding "default y", this should just
be modified in config instead.
Also fix the dependency list to include SOC_IMX53 || COMPILE_TEST.
Fixes: 1d09794d6387 ("MLK-16684-3 ata: imx: enable imx8qm sata")
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
MLK-16801-1: arm64: dts: fsl-imx8qm-lpddr4-arm2: Add DTS for 4 displays.
Add DTS for 4 displays: 2 LVDS with it6263 and 2 MIPI with adv7535.
Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
MLK-15473-7: crypto: caam: Fix CAAM driver build for i.MX6
Add a check for CONFIG_HAVE_IMX8_SOC befor imx8_get_soc_revision() call
to avoid i.MX6 build fail. The generic imx_get_soc_revision() call is
not ready to use.
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Aymen Sghaier <aymen.sghaier@nxp.com>
MLK-16698-5: arm64: defconfig: Build in RM67191 panel driver
Enable the Raydium RM67171 drm panel driver as built-in in defconfig.
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
MLK-16698-4: arm64: dts: fsl-imx8qxp-mek: Enable mipi-dsi with rm67191
Enable the MIPI-DSI to RM67191 OLED display panel path on the MX8QXP MEK
board.
Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
MLK-16698-3: arm64: dts: fsl-imx8qxp-lpddr4-arm2: Enable mipi-dsi with rm67191
Enable the MIPI-DSI to RM67191 OLED display panel path on the MX8QXP
LPDDR4 board.
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
MLK-16698-2: arm64: dts: fsl-imx8qm-lpddr4-arm2: Enable mipi-dsi with rm67191
Enable the MIPI-DSI to RM67191 OLED display panel path on the MX8QM
LPDDR4 development board.
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
MLK-16698-1: drm/panel: Add panel driver for Raydium RM67191
Add support for the OLED display based on MIPI-DSI protocol from Raydium:
RM67191.
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
MLK-16804-08 driver: soc: Reduce NOC/AHB/MAIN_AXI to save SOC power for audio playback
reduce the NOC, main AXI and AHB bus clock frequency to save power when DDR enter low
frequency mode. VDDSOC is ~195mA during video play, and ~180mA in idle.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Bai Ping <ping.bai@nxp.com>
MLK-16804-07 ARM64: dts: Add cpuidle state info node for imx8mq
Add cpuidle states node for imx8mq.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
MLK-16804-06 driver: soc: Optimize the DDR frequency in audio playback case
If audio device is the only that access to ddr memory, the DDR
frequency can be reduce to 25MHz to save power. when DDR run in
25MHz frequency, the memory bandwidth is about 66MB/s, it can
meet the performance requirement for audio only case.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
MLK-16804-05 driver: soc: add the irq affinity call for child irqchip on imx8mq
On i.MX8MQ, we need the handle the correspoding IMR registers in gpc
to make sure the IRQ affinity to the specific core can be wakeup
successfully from power down idle state.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
MLK-16804-04 driver: irqchip: Add IPI SW workaround for imx8mq
On i.MX8MQ, when the CPU core is in power down state,
the IPI can NOT wakeup the core anymore(ERR011171), so using the
external IRQ32 to wakeup the core in power down idle
state successfully.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
MLK-16804-03 driver: clk: Add video pll2 output gate clk on imx8mq
The Video PLL2 has a output enable bit to do clk gate,
So we need to register this gate to save power.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
MLK-16804-02 arm64: configs: enable the system counter timer for nxp imx8
Enable the system counter timer by default.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
MLK-16804-01 driver: clocksource: Add nxp system counter broadcast timer
On NXP i.MX8MQ SOC, it has system counter module for ARM
generic timer implementation. In this system counter module
it also has compare frame module to provide timer support.
So we can use it as an alternative clockevent device for
broadcast timer purpose when CPU core enter power down state
with local timer stopped.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
MLK-16806 - [i.MX8QXP/Malone]: segment fault in gdb environment
function wait_event_interruptible_timeout may return some special value
in gdb debug environment, so we need to add additional check to these
return values, otherwise, interrupt will reported wrongly
Signed-off-by: Zhou Peng-B04994 <eagle.zhou@nxp.com>
MLK-16805 - [i.MX8MQ/Hantro]: Enable runtime bus frequency
Add operation to request/release bus in runtime suspend/resume functions
Signed-off-by: Zhou Peng-B04994 <eagle.zhou@nxp.com>
MLK-16803 arm64: dts: imx8mq-evk: removed the reserved ATF space
ATF has been moved to OCRAM, there is no need to reserve space
for ATF in DRAM space.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
MLK-16799-2: mtd: flexspi: support runtime pm for flexspi
enabled runtime pm for flexspi, also removed the redundant clock.
Tested with the latest SCFW and ATF.
BuildInfo:
- SCFW 15d20cde, IMX-MKIMAGE ff9860c5, ATF
- U-Boot 2017.03-00003-gd09f5db
Signed-off-by: Han Xu <han.xu@nxp.com>
MLK-16799-1: arm64: dts: remove the unnecessary clock for flexspi
flexspi only need one clock source, removed the redundant one from
device tree.
BuildInfo:
- SCFW 15d20cde, IMX-MKIMAGE ff9860c5, ATF 0
- U-Boot 2017.03-00003-gd09f5db
Signed-off-by: Han Xu <han.xu@nxp.com>
MLK-15473-2: fsl-sec4.txt: Update CAAM device-tree documentation
Add a new property in device tree specific to i.MX8 only: first-jr-index.
Signed-off-by: Aymen Sghaier <aymen.sghaier@nxp.com>
MLK-15473-1: crypto: caam: Add CAAM driver support for iMX8 soc family
Enable CAAM driver for i.MX8 family:
- Use a Job ring for RNG instantiation rather than DECO, even
for i.MX6/7 families.
- Use of aliased CAAM registers instead of original registers in page 0
since page 0 is no more accessible in i.MX8 family except mScale.
Signed-off-by: Aymen Sghaier <aymen.sghaier@nxp.com>
drm: Add four ioctls for managing drm mode object leases [v7]
drm_mode_create_lease
Creates a lease for a list of drm mode objects, returning an
fd for the new drm_master and a 64-bit identifier for the lessee
drm_mode_list_lesees
List the identifiers of the lessees for a master file
drm_mode_get_lease
List the leased objects for a master file
drm_mode_revoke_lease
Erase the set of objects managed by a lease.
This should suffice to at least cre...