Sandor Yu [Fri, 14 Sep 2018 05:26:15 +0000 (13:26 +0800)]
MLK-19583-1: hdmi rx: Add HPD support
Add HPD support.
Add s_param function that may needed by user application.
Add mutex protect for hdp register access.
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Shengjiu Wang [Fri, 8 Jun 2018 10:36:03 +0000 (18:36 +0800)]
MLK-18578: hdmi_rx: wait longer time for audio info frame
The wait time is short that cause recording failed sometimes
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Sandor.yu <sandor.yu@nxp.com>
Shengjiu Wang [Fri, 8 Jun 2018 09:59:53 +0000 (17:59 +0800)]
MLK-18578: hdmi_rx: fix issue that ARC can't work in 4k.
After changing the deemphasis to 0dB in TX_DIG_CTRL_REG_1
the issue that ARC can't work with 4k resolution is fixed
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Sandor.yu <sandor.yu@nxp.com>
Shengjiu Wang [Fri, 25 May 2018 02:37:51 +0000 (10:37 +0800)]
MLK-18397-1: hdmi_rx: turn on aux_ana for rx arc
turn on aux_ana for rx arc
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Shengjiu Wang [Tue, 22 May 2018 07:43:41 +0000 (15:43 +0800)]
MLK-18368-6: hdmi_rx: avoid blocking in audio config
add delay count in audio auto config to avoid blocking
change the justify to right
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Shengjiu Wang [Tue, 22 May 2018 07:31:49 +0000 (15:31 +0800)]
MLK-18368-5: hdmi_rx: add hdmi rx audio clock
add clock for hdmi audio rx
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Shengjiu Wang [Tue, 22 May 2018 07:32:51 +0000 (15:32 +0800)]
MLK-18368-4: hdmi_rx: add generic hdmi audio rx driver
Register generic hdmi audio rx driver.
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Sandor Yu [Tue, 22 May 2018 03:28:38 +0000 (11:28 +0800)]
MLK-18366: hdmi_rx: return error when HDMI PHY failed initialized
return error state when HDMI PHY failed initialized.
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Sandor Yu [Mon, 21 May 2018 02:58:46 +0000 (10:58 +0800)]
MLK-18355-8: hdmi rx: Add HDMI RX CEC function
Add HDMI RX CEC function in hdmi rx driver.
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Sandor Yu [Mon, 21 May 2018 02:48:03 +0000 (10:48 +0800)]
MLK-18355-7: hdmi_rx: Enable HDMI RX CEC clock
Enable HDMI RX CEC clock when hdmi rx driver initialized.
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Sandor Yu [Mon, 21 May 2018 02:45:00 +0000 (10:45 +0800)]
MLK-18355-6: hdmi_rx: move startup function to probe function
Move startup function from s_power to probe function,
HDMI RX controller keep in running state after driver probe.
The startup function should move to cable plugin handle.
When iMX8QM B0 silicon HDMI RX hot plug function is ready.
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Sandor Yu [Mon, 21 May 2018 02:41:08 +0000 (10:41 +0800)]
MLK-18355-5: hdmi_rx: Add timeout for check HDMI 5V
Add timeout for HDMI 5V check.
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Sandor Yu [Thu, 10 May 2018 03:25:40 +0000 (11:25 +0800)]
MLK-18267-4: hdmi rx: hdmi rx driver for imx8qm
Enable hdmi rx driver for imx8qm.
Driver implement with V4L2 architecture.
RGB32 and YUV444 are verified.
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Sandor Yu [Thu, 12 Apr 2018 02:59:21 +0000 (10:59 +0800)]
MLK-18267-3: hdp api: Add HDMI RX API function
Add HDMI RX video and audio API function and head files.
This API base on CDN_API_1_0_36.
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Li Jun [Thu, 18 Apr 2019 09:21:41 +0000 (17:21 +0800)]
MLK-21478-25 Revert "MLK-16013-9 usb: typec: add interface to get port type and role"
This reverts commit
ccbf06406704c52d5146c9f28cbc8907429b92ce.
As we will use fwnode API to get typec properties, those APIs to be
reverted are not required, this will also fix below build warnings:
drivers/usb/typec/class.c: In function ‘typec_register_port’:
drivers/usb/typec/class.c:1591:2: warning: enumeration value
‘TYPEC_PORT_TYPE_UNKNOWN’ not handled
in switch [-Wswitch]
switch (cap->type) {
^~~~~~
Reported-by: Fugang Duan <fugang.duan@nxp.com>
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Wed, 17 Apr 2019 09:44:32 +0000 (17:44 +0800)]
MLK-21478-24 usb: typec: support source only port with dual data
In case source only for power, but dual data role on USB, we
enable drp toggling for detect source(host), this is mainly for
get orientation, then keep it at SNK_ATTACHED state.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Anson Huang [Mon, 28 Jan 2019 15:54:57 +0000 (15:54 +0000)]
nvmem: imx-ocotp: add i.MX7ULP support
i.MX7ULP is a new SoC of i.MX family which has 8 kbit eFuse OTP,
enable ocotp driver support for this SoC.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit
c8b63ddc91190d4022d456bf6abbc2085b4f56b5)
Robert Chiras [Fri, 1 Mar 2019 08:39:19 +0000 (10:39 +0200)]
MLK-20718-4: arm64: dts: imx8qm: Use DSI PHY_REF clk
Until now, the DSI PHY_REF clock was by default ON in SCFW, which made
this clock unusable in kernel, therefore, this clock was set as
CLK_DUMMY in DSI device nodes.
Sinnce this clock was set to OFF in SCFW, now it can be used from
kernel, so add it to device nodes so that the driver can use it
properly.
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
Robert Chiras [Fri, 1 Mar 2019 08:35:32 +0000 (10:35 +0200)]
MLK-20718-3: arm64: dts: imx8dx: Use DSI PHY_REF clk
Until now, the DSI PHY_REF clock was by default ON in SCFW, which made
this clock unusable in kernel, therefore, this clock was set as
CLK_DUMMY in DSI device nodes.
Sinnce this clock was set to OFF in SCFW, now it can be used from
kernel, so add it to device nodes so that the driver can use it
properly.
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
Robert Chiras [Fri, 1 Mar 2019 08:30:02 +0000 (10:30 +0200)]
MLK-20718-2: clk: imx8qxp: Add DSI phy_ref clk for second instance
The DSI PHY_REF clock for the second DSI instance was missing from the
clock driver, so add it now.
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
Robert Chiras [Fri, 1 Mar 2019 08:27:25 +0000 (10:27 +0200)]
MLK-20718-1: clk: imx8qm: Add DSI phy_ref clock
Add the missing clocks for the DSI PHY_REF:
IMX8QM_MIPI0_DSI_PHY_CLK and IMX8QM_MIPI1_DSI_PHY_CLK.
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
Robby Cai [Thu, 6 Dec 2018 10:17:35 +0000 (18:17 +0800)]
MLK-20558 media: camera: add QVGA 30fps support for ov5640
Add QVGA @30fps support for ov5640
Signed-off-by: Robby Cai <robby.cai@nxp.com>
(cherry picked from commit
c2dd4525e766355076e8fb8f0ae40fe98c27130a)
Mirela Rabulea [Wed, 12 Sep 2018 08:50:54 +0000 (11:50 +0300)]
MLK-19362: media: csi: Fix "Hresponse" and "Rx fifo overflow" camera errors
When the register setting for fifo_send_level is set to high, some residual
data of a frame which cannot fill up to the send_level, will be sent with
the next frame data. In this case, for CSI receive dma, sometimes,
the vertical blanking is too short to finish the storage of the previous
frame before the next frame start, depending on the system bandwidth.
Tested on imx8mq-evk rev B4 and B3, with OV5640 camera.
This patch was proposed by Tom Zheng <haidong.zheng@nxp.com>
Signed-off-by: Mirela Rabulea <mirela.rabulea@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
(cherry picked from commit
12f811f934b53008a445c3af67f1f22baea98a86)
Robby Cai [Tue, 11 Sep 2018 07:01:10 +0000 (15:01 +0800)]
MLK-19537-2 media: mipi_csi: use PHY slave reset for MIPI CSI
Remove PHY master reset and only need to use PHY slave reset for MIPI CSI.
Use regmap framework for cleanup.
Signed-off-by: Robby Cai <robby.cai@nxp.com>
Reviewed-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit
6968f84ad8ee1613ff90d90e19e7434d5dd95126)
(cherry picked from commit
8a93a78c9bee1b456961a6d611f31d7708089798)
Robby Cai [Mon, 11 Jun 2018 02:38:43 +0000 (10:38 +0800)]
MLK-18552-2 media: mipi_csi: enable disp_axi and disp_apb before the access
On i.MX8MM, IC design uses registers from CSI to do MIPI PHY reset. Need enable
disp_axi and disp_apb before the access, otherwise meet hang issue.
Signed-off-by: Robby Cai <robby.cai@nxp.com>
Reviewed-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
(cherry picked from commit
86ff2008b5a33d4233c33c2e662f8391cc474db2)
Robby Cai [Wed, 23 May 2018 13:03:27 +0000 (21:03 +0800)]
MLK-18362-2 midea: mipi_csi: add mipi phy reset on imx8mm
on imx8mm, use different way rather than via SRC. so use different
device id to distinguish different MIPI-PHY reset method.
Signed-off-by: Robby Cai <robby.cai@nxp.com>
(cherry picked from commit
59e5fa6d4e8ad5c3d4fcd54aa8fa0a0d98e148b6)
Gao Pan [Mon, 4 Jun 2018 07:47:21 +0000 (15:47 +0800)]
MLK-18485 emvsim: enable CWT for ATR
Enable CWT for ATR, and switch to RX_DATA_IM to detect receiving data
in fifo.
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
(cherry pick from:
d6807ed26c531ef50c23fb8575ff07dd778de2df)
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Gao Pan [Fri, 19 Jan 2018 03:12:15 +0000 (11:12 +0800)]
MLK-17416 imx8: sim: add usleep_range() before reading SPDP Bit
Card Presence Detect Status Bit SPDP in EMV_SIM_PCSR is
synchronized by two posedge of low_ref_clk which is 32KHz.
So there should be 1.5 low_ref_clk cycles(about 90us) before
reading SPDP Bit.
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
(cherry pick from:
42a733a62525725d145ce6b55dfc94f1f5ff0a9d)
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Gao Pan [Thu, 18 Apr 2019 05:38:57 +0000 (13:38 +0800)]
MLK-17319-3 defconfig: enable EMVSIM in defconfig
enable EMVSIM in defconfig
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Reviewed-by: Andy Duan <fugang.duan@nxp.com>
(cherry pick from:
497b081ed407c592ea68f7b988629c10fafa1734)
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Gao Pan [Mon, 8 Jan 2018 09:10:31 +0000 (17:10 +0800)]
MLK-17319-1 imx8: sim: add driver to support EMVSIM module
The EMVSIM module is designed to facilitate communication to
Smart Cards compatible to the EMV ver4.3 standard and compatible
with ISO/IEC 7816-3 Standard.
This patch adds driver to support EMVSIM module for imx8.
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Reviewed-by: Andy Duan <fugang.duan@nxp.com>
(cherry pick from:
2cac9c1e36676af7e3964d93b2aaea4991bc3c53)
(Fixed conflicts and added "#include <linux/pinctrl/consumer.h>")
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Joakim Zhang [Thu, 18 Apr 2019 08:54:34 +0000 (16:54 +0800)]
MLK-21415 can: flexcan: add Tx support for variable payload size
Now the FlexCAN driver always use last mailbox for TX, it will work well when
MB payload size is 8/16 bytes. TX mailbox would change to 13 when MB payload
size is 64 bytes to support CANFD. So we may need to set iflag register to add
support for variable payload size.
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Joakim Zhang [Mon, 8 Apr 2019 06:55:19 +0000 (14:55 +0800)]
MLK-21414 can: flexcan: use callback for mailbox read/write function
Add callback for mailbox read/write function and clean up the code.
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Joakim Zhang [Mon, 8 Apr 2019 05:04:32 +0000 (13:04 +0800)]
MLK-21413 can: flexcan: use CBT register to set bitrate for normal mode on i.MX8
We need to add property in DTS node before when we want to use normal
mode on i.MX8 platform. Check in RM, we also can use CBT register not
must CTRL1 register to set bitrate for normal mode.
This patch intends to use CBT register to set bitrate for normal mode on
i.MX8. After this, we don't need to modify the DTS node to support
normal mode.
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Joakim Zhang [Mon, 8 Apr 2019 04:56:35 +0000 (12:56 +0800)]
MLK-21412 can: flexcan: add ISO CAN FD feature support
ISO CAN FD is introduced to increase the failture detection capability
than non-ISO CAN FD. The non-ISO CAN FD is still supported by FlexCAN so
that it can be used mainly during an intermediate phase, for evaluation
and development purposes.
Therefore, it is strongly recommended to configure FlexCAN to the ISO
CAN FD protocol by setting the ISOCANFDEN field in the CTRL2 register.
Test Command:
ISO FD MODE:
ip link set can0 type can bitrate
1000000 dbitrate
4000000 fd on
fd-non-iso off
non-ISO FD MODE:
ip link set can0 type can bitrate
1000000 dbitrate
4000000 fd on
fd-non-iso on
NOTE: if you only set fd on, driver will use ISO FD MODE by default.
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Joakim Zhang [Mon, 8 Apr 2019 05:32:28 +0000 (13:32 +0800)]
MLK-21411 can: flexcan: fix CAN can't suspend/resume when CAN is only capable of wakeup
When dev->power.can_wakeup set to true, device_prepare() may runtime resume the device:
dpm_suspend_start()
dpm_prepare(state);
dev->driver->pm->prepare()
pm_genpd_prepare()
if (resume_needed(dev, genpd))
pm_runtime_resume(dev);
And imx8qm/qxp power domain driver don't implement the active_wakeup() callback, then
resume_needed() always return "true" when dev->power.can_wakeup is true.
Once CAN device is runtime active status, then CAN's clock's count is 1 during system
suspend. And CAN0/CAN1/CAN2 share the same module clock, so we can say all CAN's module
clock is enabled during system suspended.
flexcan_runtime_resume()
flexcan_clks_enable(priv);
i.MX8QM/QXP SCU code clock logic requires linux kernel clocks should be disabled during
suspend, otherwise SCU don't enable them after system resume back.
There are two ways to fix the issue:
1. CAN driver should check the runtime status to ensure all clocks are disabled during
system suspend.
2. Don't set CAN wakeup capability during probe, move it into flexcan_open().
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Joakim Zhang [Mon, 8 Apr 2019 04:50:28 +0000 (12:50 +0800)]
MLK-21410 can: flexcan: add CAN wakeup function for MX8
This patch is to add CAN wakeup function on MX8 platforms and update the
binding file fsl-flexcan.txt.
For MX8, the function "flexcan_irq()" should not call "flexcan_exit_stop_mode()"
due to firmware(SCU) cannot make SC IPC calls from an interrupt context.
If not exit stop mode in ISR, it will continuously enter wakeup ISR for the reason
that system will respond IRQ before call CAN system resume.
To fix the issue, we can exit stop mode during noirq resume stage.
For wakeup case, it should not set pinctrl to sleep state by
pinctrl_pm_select_sleep_state.
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Joakim Zhang [Mon, 8 Apr 2019 04:31:53 +0000 (12:31 +0800)]
MLK-21409 can: flexcan: enable flexcan driver for i.MX8
Add support flexcan on imx8 platforms, mailbox as default
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Joakim Zhang [Mon, 8 Apr 2019 05:55:12 +0000 (13:55 +0800)]
MLK-21408-2 can: flexcan: enable flexcan defconfig
Add support in defconfig file to enable flexcan module on imx8qm/qxp boards
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Joakim Zhang [Mon, 8 Apr 2019 05:53:48 +0000 (13:53 +0800)]
MLK-21408-1 can: flexcan: enable flexcan support for arm64
Modify Kconfig file to enable flexcan support for arm64
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Fugang Duan [Thu, 18 Apr 2019 08:21:20 +0000 (16:21 +0800)]
MLK-21493 brcmfmac: move .brcmf_bus_preinit() after changing bus state
Moving the brcmf_bus_preinit() call allows the bus code to do some
required initialization before handling firmware control messages.
.brcmf_bus_preinit() already is called in .brcmf_bus_started() when
bus is ready. So remove it from .brcmf_c_preinit_dcmds().
Fixes:
383c26d2ea2f(MLK-18675-20 brcmfmac: Support wake on ping packet)
Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Fugang Duan [Thu, 18 Apr 2019 06:50:34 +0000 (14:50 +0800)]
MLK-21492 brcmfmac: remove func0 that is not provied by mmc stack
func0 is not provided by the mmc stack as a function when probing.
commit
99d7b6fdfc8c(brcmfmac: Remove func0 from function array)
already remove the func0.
But commit
c37fa19e0128(brcmfmac: Remove array of functions) add
fun0 again. That cause NULL pointer issue.
Fixes:
c37fa19e0128(brcmfmac: Remove array of functions)
Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Fugang Duan [Wed, 17 Apr 2019 12:44:44 +0000 (20:44 +0800)]
MLK-21491 serial: imx: add pm_qos to interact with cpu idle
Add pm_qos to prevent cpuidle from entering low level idles
for uart DMA mode when the uart port is active.
Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Fugang Duan [Wed, 17 Apr 2019 07:12:20 +0000 (15:12 +0800)]
MLK-21490 arm64: dts: imx8qxp: use power-on-gpio to power on EP device
Pcie driver power-on-gpio pin to control EP device's power,
firstly power down, then power up when it registers pcie port.
So using the pin for PCIe wlan EP device is better.
Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Fugang Duan [Tue, 16 Apr 2019 06:58:32 +0000 (14:58 +0800)]
MLK-21357 arm64: dts: imx8qm/imx8qxp: remove the 32KHz pin config
No need to set the 32KHz PIN except pcie brcmfmac driver
is loaded that requires to reserve these pin groups for
pin->init_state and pin->idle_state to support multiple
differents wlan cards.
Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Viorel Suman [Tue, 16 Apr 2019 11:25:55 +0000 (14:25 +0300)]
MLK-21460: ASoC: imx-audmix: fix dummy device DMA ops
The device is not created from a device tree node, so arch_setup_dma_ops
is not called, thus leaving the device with dummy DMA ops. Fix this by
calling of_dma_configure() with a NULL node to set default DMA ops.
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Haibo Chen [Tue, 16 Apr 2019 11:03:09 +0000 (19:03 +0800)]
MLK-21473-3 Documentation: fsl-imx-esdhc: Add new compatible string for imx8mm
Add "fsl, imx8mm-usdhc" for imx8mm
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Haibo Chen [Tue, 16 Apr 2019 10:54:43 +0000 (18:54 +0800)]
MLK-21473-2 ARM64: dts: fsl-imx8mm: change to use new compatible for usdhc
Use the new compatible "fsl, imx8mm-usdhc" for imx8mm SoC.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Haibo Chen [Tue, 16 Apr 2019 10:48:50 +0000 (18:48 +0800)]
MLK-21473-1 mmc: sdhci-esdhc-imx: add esdhc_soc_data for i.MX8MM
i.MX8MM contains USDHC which support eMMC V5.1 (including CMDQ and
HS400ES), besides i.MX8MM also support bus frequency, so add a new
esdhc_soc_data for i.MX8MM.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Shengjiu Wang [Tue, 16 Apr 2019 07:17:06 +0000 (15:17 +0800)]
MLK-21461: ASoC: fsl_rpmsg_i2s: clear buffer pointer in i2s_send_message
Reset the buffer pointer to be zero in i2s_send_message, actully we have
set the buffer pointer to be zero in imx_rpmsg_terminate_all.
But if there is timer task (I2S_TX_POINTER) queued in queue, after it is
executed the buffer pointer will be changed, this is timing issue that
the task in the queue is delayed. so need to reset it with TERMINATE
command.
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
(cherry picked from commit
0a07dd454cbf85744677812e53fc5e86a48706bf)
Mirela Rabulea [Tue, 16 Apr 2019 14:36:28 +0000 (17:36 +0300)]
MLK-21459: mxc-jpeg: Jpeg encoder/decoder multi-instance crash
Reserve a slot for each context and allocate the slot data at open,
deallocate slot data at release and free that slot.
The device was already holding the array of slots.
The maximum number of slots allowed per device is currently limited to 1
for encoder and 1 for decoder, but the hardware supports 4+4.
Use GFP_ATOMIC for dma_zalloc_coherent, as we are holding a lock.
Also fix potential decoder bug when stm_ctrl is not properly cleared before
setting a new image format. This could be observed when decoding an
yuv420 image (img_fmt=0000b) after an yuv444 image (0011b), but only if
the descriptor is being reused.
Removed some debug logs and updated a comment.
Signed-off-by: Mirela Rabulea <mirela.rabulea@nxp.com>
Reviewed-by: Robert Chiras <robert.chiras@nxp.com>
Andy Duan [Wed, 2 Jan 2019 09:55:44 +0000 (17:55 +0800)]
MLK-20684 PCI: Disable MSI on CYW4356 and CYW4359 chips
MSI is broken on CYW4356/4359 chips. This causes CYW4356 1CX not
work on i.MX8x platforms with bandwidth test. It is known issue
that i.MX8x PCIe host driver MSI interrupt lost.
Disable MSI completely for this chipset to let wifi can stable work
until PCIe RC driver fix the issue.
Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
(cherry picked from commit
d99766187fb99d4a6655a1e0fdf5dc9451a8e4a0)
Stefan Wahren [Wed, 12 Dec 2018 19:20:06 +0000 (20:20 +0100)]
brcmfmac: Fix access point mode
commit
861cb5eb467f ("brcmfmac: Fix access point mode") upstream.
Since commit
1204aa17f3b4 ("brcmfmac: set WIPHY_FLAG_HAVE_AP_SME flag")
the Raspberry Pi 3 A+ (BCM43455) isn't able to operate in AP mode with
hostapd (device_ap_sme=1 use_monitor=0):
brcmfmac: brcmf_cfg80211_stop_ap: setting AP mode failed -52
So add the missing mgmt_stypes for AP mode to fix this.
Fixes:
1204aa17f3b4 ("brcmfmac: set WIPHY_FLAG_HAVE_AP_SME flag")
Suggested-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Wright Feng [Mon, 18 Mar 2019 05:09:44 +0000 (13:09 +0800)]
MLK-21161-04 brcmfmac: fix 43455 CRC error under SDIO 3.0 SDR104 mode
This patch fixes 43455 CRC error while running throughput test with
suspend/resume stress test.
The continuous failure messages before system crash:
brcmfmac: brcmf_sdiod_sglist_rw: CMD53 sg block read failed -84
brcmfmac: brcmf_sdio_rxglom: glom read of 25600 bytes failed: -5
brcmfmac: brcmf_sdio_rxfail: abort command, terminate frame
brcmfmac: brcmf_sdiod_sglist_rw: CMD53 sg block read failed -84
brcmfmac: brcmf_sdio_rxglom: glom read of 24576 bytes failed: -5
brcmfmac: brcmf_sdio_rxfail: abort command, terminate frame
Signed-off-by: Wright Feng <wright.feng@cypress.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
(cherry picked from commit
d6e37c2eb0f6fc2b50172321a464337073038228)
Wright Feng [Thu, 7 Mar 2019 07:37:27 +0000 (01:37 -0600)]
MLK-21161-03 brcmfmac: add sleep in bus suspend and cfg80211 resume functions
With asynchronous suspend/resume feature, suspend and resume callbacks to
be executed in parallel with each other. It makes bus changes the state to
BRCMF_BUS_DOWN before all brcmf_cfg80211_suspend IOVAR executions.
The same situation also happens in resume procedure and causes PM mode
keeps in PM_MAX after resume. In order to fix the race condition, We add
one second sleep in bus suspend and cfg80211 resume function.
Signed-off-by: Wright Feng <wright.feng@cypress.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
(cherry picked from commit
fdb676ce002039d7359b200b6c2cc728f41c05fa)
Wright Feng [Wed, 21 Nov 2018 09:16:55 +0000 (03:16 -0600)]
MLK-21161-02 brcmfmac: validate ifp pointer in brcmf_txfinalize
We got ifp null pointer kernel panic in brcmf_txfinalize after removing
Wi-Fi USB dongle when data was transmitting, The root cause is that
interface was removed before calling brcmf_txfinalize in
brcmf_fws_dequeue_worker and finally caused kernel panic.
Signed-off-by: Wright Feng <wright.feng@cypress.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
(cherry picked from commit
3f94bfe6febc9762e340a69b6520242f27d20c85)
Raveendran Somu [Tue, 13 Nov 2018 02:32:11 +0000 (20:32 -0600)]
MLK-21161-01 brcmfmac: To fix kernel crash on out of boundary access
To trunkcate the addtional bytes, if extra bytes are received.
Current code only have a warning and proceed without handling it.
But in one crash dump reported by DVT, these causes the
crash intermittently. So the processing is limit to the skb->len.
Signed-off-by: Raveendran Somu <raveendran.somu@cypress.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
(cherry picked from commit
f7112c027e0c7447b05474b72934589bbbb8e298)
Andy Duan [Fri, 4 Jan 2019 06:48:59 +0000 (14:48 +0800)]
MLK-20681 brcmfmac: add brcmfmac platform device pinctrl state support
Add brcmfmac platform device pinctrl state support. That is useful
for dynamically configurate pin group for different wlan chips.
Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
(cherry picked from commit
88f2834cd5b8cb8864af68d265b5bdee3000c4bf)
Andy Duan [Wed, 2 Jan 2019 10:05:00 +0000 (18:05 +0800)]
MLK-20680 brcmfmac: add time delay for pcie device exit D3 mode
- The current timeout value is not enough for MB transaction read
when modem enter D3 mode, so increase the timeout value to match
the D3 mode timing requirement.
- Add 10 ms delay for pcie device to exit D3 state and enter D0 state.
- Remove the duplicated code for SBMBX register access.
Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
(cherry picked from commit
05601af462145e27142e3d140e10a66d4a493d40)
Wright Feng [Mon, 3 Dec 2018 09:39:33 +0000 (17:39 +0800)]
MLK-20679 brcmfmac: reset two D11 cores if chip has two D11 cores
There are two D11 cores in RSDB chips like 4359. We have to reset two
D11 cores simutaneously before firmware download, or the firmware may
not be initialized correctly and cause "fw initialized failed" error.
Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Wright Feng <wright.feng@cypress.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
(cherry picked commit from
8f50bea9357af3088dba0103f0017d56763b0ae9)
Andy Duan [Mon, 24 Dec 2018 04:50:14 +0000 (12:50 +0800)]
MLK-20678 brcmfmac: avoid the error log print when get the wowl_wakeind failed
Not all chips support wowlan, then get wowlan wakeup event failed.
Change the log into debug level.
Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
(cherry picked from commit
47b205952ca6be6216e19a121f1fb400c5fcf7e7)
Li Jun [Wed, 17 Apr 2019 01:51:45 +0000 (09:51 +0800)]
MLK-21478-23 arm64: defconfig: add imx8mq usb phy and typec driver
This patch enable imx8mq usb phy driver and typec related drivers.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Wed, 17 Apr 2019 05:51:09 +0000 (13:51 +0800)]
MLK-21478-22 arm64: dts: imx8qxp-mek-rpmsg: use typec connector sub-node
As the new kernel introduces the standard usb connector properties,
so use connector sub-node for typec.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Wed, 17 Apr 2019 05:50:24 +0000 (13:50 +0800)]
MLK-21478-21 arm64: dts: imx8qxp-mek: use connector sub-node for typec
As the new kernel introduces the standard usb connector properties,
so use connector sub-node for typec.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Wed, 17 Apr 2019 05:49:19 +0000 (13:49 +0800)]
MLK-21478-20 arm64: dts: imx8qm-mek: use connector sub-node for typec
As the new kernel introduces the standard usb connector properties,
so use connector sub-node for typec.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Wed, 17 Apr 2019 05:48:26 +0000 (13:48 +0800)]
MLK-21478-19 arm64: dts: imx8qm-mek-domu: use typec connector sub-node
As the new kernel introduces the standard usb connector properties,
so use connector sub-node for typec.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Wed, 17 Apr 2019 05:47:14 +0000 (13:47 +0800)]
MLK-21478-18 arm64: dts: imx8qm-mek-domu-dpu1: use connector sub-node
As the new kernel introduces the standard usb connector properties,
so use connector sub-node for typec.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Wed, 17 Apr 2019 05:46:09 +0000 (13:46 +0800)]
MLK-21478-17 arm64: imx8mm-ddr4-val: use connector sub-node for typec
As the new kernel introduces the standard usb connector properties,
so use connector sub-node for typec.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Mon, 15 Apr 2019 12:03:42 +0000 (20:03 +0800)]
MLK-21478-16 arm64: dts: imx8mq-evk: use connector sub-node for typec
As the new kernel introduces the standard usb connector properties,
so use connector sub-node for typec.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Wed, 10 Apr 2019 05:18:02 +0000 (13:18 +0800)]
MLK-21478-15 arm64: dts: imx8mm-evk: use connector sub-node for typec
As the new kernel introduces the standard usb connector properties,
so use connector sub-node for typec.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Mon, 15 Apr 2019 12:10:40 +0000 (20:10 +0800)]
MLK-21478-14 arm64: dts: fsl-imx8mq-ddr4-arm2: remove deprecated usb node
As we don't need 2 nodes for usb controller, so remove the nodes not
required.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Mon, 15 Apr 2019 12:02:39 +0000 (20:02 +0800)]
MLK-21478-13 arm64: dts: imx8mq-evk: remove deprecated node for usb
As we don't need 2 nodes for usb controller, so remove the nodes not
required.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Mon, 15 Apr 2019 11:59:30 +0000 (19:59 +0800)]
MLK-21478-12 arm64: dtsi: imx8mq: use one node for usb dwc3 controller
New dwc3 driver force to use one node for controller node, so switch
to use one node for dwc3 controller.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Tue, 16 Apr 2019 06:02:38 +0000 (14:02 +0800)]
MLK-21478-11 usb: dwc3: use suspend clock from dt to set power down scale
Since the new dwc3 use bulk clks including the suspend clk, so we can
use it to calculate the power down scale value.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Wed, 17 Apr 2019 04:03:50 +0000 (12:03 +0800)]
MLK-21478-2 usb: typec: tcpci: disable typec irq before register port
Disable tcpci irq before tcpci_register_port() to make sure resource
ready before irq hanlding.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Wed, 17 Apr 2019 04:31:06 +0000 (12:31 +0800)]
MLK-21478-1 usb: typec: tcpci: use correct driver data
As the driver data is tcpci_chip in new kernel, so correct this.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Thu, 15 Nov 2018 14:12:47 +0000 (15:12 +0100)]
phy: add driver for Freescale i.MX8MQ USB3 PHY
This is a cleaned up port of the downstream i.MX8MQ USB3 PHY driver.
Signed-off-by: Li Jun <jun.li@nxp.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
(cherry picked from commit
efe81bea891586680a928ea5dde40eb1fff34be2)
Lucas Stach [Thu, 15 Nov 2018 14:12:46 +0000 (15:12 +0100)]
dt-bindings: phy: add binding for Freescale i.MX8MQ USB3 PHY
This adds the binding for the USB3 PHY found on the i.MX8M SoC.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
(cherry picked from commit
3c2ce40b2fbb52b5e861f8664f5422d39f11b39e)
Leonard Crestez [Tue, 16 Apr 2019 13:25:51 +0000 (16:25 +0300)]
MLK-21118 arm64: defconfig: Enable CONFIG_VIDEO_MXC_CSI_CAMERA
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Acked-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
Richard Zhu [Wed, 17 Apr 2019 07:02:53 +0000 (15:02 +0800)]
MLK-21479 PCI: imx: refine the power on gpio manipulation
Turn on the power on gpio once is enough and this pin shouldn't be
re-configured in resume procedure again and again.
Thus, move the turn on operation of the power_on_gpio to the proper
place.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
Leonard Crestez [Tue, 16 Apr 2019 14:47:14 +0000 (17:47 +0300)]
MLK-21474-2 arm64: defconfig: Enable MXC_MLB150
Missed during initial porting due to Kconfig logic
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
Leonard Crestez [Tue, 16 Apr 2019 14:45:47 +0000 (17:45 +0300)]
MLK-21474-1 mxc mlb: Allow compilation on imx8
Upstream rejected ARCH_FSL_IMX8QM so just depend on ARCH_MXC or
COMPILE_TEST.
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
Peng Fan [Wed, 6 Mar 2019 05:56:13 +0000 (13:56 +0800)]
MLK-21063 ARM64: dts: imx8qm-domu-car: fix lvds-pwm usage
Fix lvds-pwm usage, it needs to be under vehicle_rpmsg_m4 node for
android auto.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
31db2776c4cf4b27417c57f3c7c013085cee1528)
(cherry picked from commit
24f984a95e5043a50aea24f35b02d3737355b4e2)
Peng Fan [Tue, 26 Feb 2019 11:42:57 +0000 (19:42 +0800)]
MLK-20990 ARM64: dts: imx8qm: domu: switch to use rpmsg i2c
Switch to use rpmsg i2c to support android auto, because
android auto change to use rpmsg i2c.
Also add the alias node to let m4 could use it successfully, because
M4 side use the alias id as the BUSID.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
(cherry picked from commit
d67968b6d6a583590a9e737f4a3d732dca5b078f)
Peng Fan [Mon, 25 Feb 2019 13:25:37 +0000 (21:25 +0800)]
MLK-20977-3 ARM64: dts: imx8qm: update domu car
Update domu car dts according to android auto changes.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
(cherry picked from commit
8c3bc5b19ddc3fbac9fe04c504a7f0282b82beeb)
Peng Fan [Thu, 28 Feb 2019 10:36:51 +0000 (18:36 +0800)]
MLK-21013 ARM64: dts: imx8qm: passthrough lvds pwm
Passthrough lvds pwm, otherwise dom0 will panic when reboot if
domu started and shutdown, because LVDS_1_PWM_0 is assigned
to domu and when domu shutdown, the resource will be powered
off, however dom0 still think it is powered on.
since lvds1_pwm is expected for domu, so let's passthrough it.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
(cherry picked from commit
abb243aba12a6649fad8114e298ff075b0a8399d)
(cherry picked from commit
9644178aeb4fc2a5b04824e7f6fb9cd9b5f7477f)
Peng Fan [Tue, 26 Feb 2019 08:07:39 +0000 (16:07 +0800)]
MLK-20977-5 ARM64: dts: remove MIPI for m4
The resources are wrongly added.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
af14fdef3b810f436582f3ff70822ebf05b8d361)
Peng Fan [Tue, 26 Feb 2019 01:19:42 +0000 (09:19 +0800)]
MLK-20977-4 ARM64: dts: cleanup resources for SMMU
Cleanup the resources that not could be set SID and remove the UNUSED
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
(cherry picked from commit
e9d5d3b1056082b7eb1d8a6e1628c38d78c33933)
Peng Fan [Mon, 25 Feb 2019 07:02:54 +0000 (15:02 +0800)]
MLK-20977-2 ARM64: dts: add resources for M41 usage
When resources are owned by M41, we need to handle that correctly in
xen.
Also drop power doamins for xen,shared gpio, xen will power up the gpio.
gpio1 is owned by M41, so we also need to check its power status in xen.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
(cherry picked from commit
0c75f57c8fe13005e9c1c28940cc1f66fc613fdd)
Peng Fan [Mon, 25 Feb 2019 06:57:11 +0000 (14:57 +0800)]
MLK-20977-1 ARM64: dts: remove cm41 from smmu
CM41 runs before CortexA, we should not use smmu to restrict it, because
smmu is owned by xen. Also remove MU_13/12 which is wrongly added
before.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
(cherry picked from commit
25c3a75e1566fe3c53002ed3fee698840e207245)
Peng Fan [Fri, 29 Mar 2019 09:09:52 +0000 (17:09 +0800)]
MLK-21292 ARM64: dts: imx8mm: introduce inamte linux
Introduce inmate linux support for jailhouse, we need to benchmark
inmate OS, so choose linux. The clock/pin are preconfigured by 1st
root cell linux.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Acked-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
00bf8b5eea2213896acf4e244ef1b63fb7abea85)
Han Xu [Tue, 16 Apr 2019 19:28:41 +0000 (14:28 -0500)]
MLK-21121-2: arm64: config: enable flexspi in defconfig
enabled the flexspi driver by default in defconfig
Signed-off-by: Han Xu <han.xu@nxp.com>
Han Xu [Tue, 16 Apr 2019 19:26:00 +0000 (14:26 -0500)]
MLK-21121-1: mtd: flexspi: enable quad_only quirk
enable the quad_only quirk for the platforms only support up to Quad
I/O.
Signed-off-by: Han Xu <han.xu@nxp.com>
Anson Huang [Tue, 16 Oct 2018 03:17:36 +0000 (11:17 +0800)]
MLK-19947-2 soc: imx: select CLKSRC_IMX_GPT for i.MX8QXP
Select CLKSRC_IMX_GPT for i.MX8QXP by default.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Acked-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
(cherry picked from commit
73f73e4d11292f0342cdeb747b8c440806f464f1)
Anson Huang [Tue, 16 Oct 2018 03:15:06 +0000 (11:15 +0800)]
MLK-19947-1 clocksource: gpt: add i.MX8QXP support
i.MX8QXP will use GPT timer as platform broadcast time for waking
up CPUs when cluster is off, GPT timer needs to be probed after
clock driver ready, and GPT suspend is at syscore suspend phase,
to make the clock & power management as well as GPT save/restore
easy, all these things are done in TF-A.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Acked-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
(cherry picked from commit
567a017241e1fe68be096d556c1088296f8d2068)
Anson Huang [Thu, 23 Aug 2018 03:13:48 +0000 (11:13 +0800)]
MLK-19305-3 arm64: enable gpio PAD wakeup for i.MX8 platforms
Select gpio PAD wakeup for those i.MX8 platforms with
system controller present.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
(cherry picked from commit
61f3cc34747e5c8db1578c8aba5bd9592533cede)
(cherry picked from commit
9140333d00ff27da34b4e5abd6cf8cf6a3a0db6c)
Leonard Crestez [Fri, 12 Apr 2019 16:26:54 +0000 (19:26 +0300)]
MLK-21455-3 arm64: defconfig: Enable NVMEM_IMX_OCOTP for imx8m fuses
The NVMEM_IMX_OCOTP driver can be used for fuse access on imx8m*
platforms but was missed during initial porting.
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Lucas Stach [Thu, 28 Feb 2019 07:01:37 +0000 (08:01 +0100)]
MLK-21455-2 nvmem: imx-ocotp: broaden Kconfig dependency
The i.MX OCOTP controller is used in numerous Freescale/NXP
SoCs from the MXC family, so the strict dependency on the
i.MX6 SoC is too narrow. Broaden it to cover all the MXC
familiy members.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
(cherry picked from commit
af6e0fd10a116fa8756171a2fe53e00b1d55ae96)
Stefan Agner [Sun, 3 Feb 2019 09:43:37 +0000 (09:43 +0000)]
MLK-21455-1 nvmem: allow to select i.MX nvmem driver for i.MX 7D
The imx-ocotp nvmem driver supports the i.MX 7D SoC too. Allow to select
the imx-ocotp driver even if only the i.MX 7D SoC has been selected.
Fixes:
711d45477931 ("nvmem: octop: Add i.MX7D support")
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit
9f23379c67fa20b367ea53cfd989da5212316e6f)
Peng Fan [Fri, 18 Aug 2017 03:19:08 +0000 (11:19 +0800)]
MLK-16204-4 nvmem: imx-ocotp: add i.mx8mq support and fix read
Add i.MX8MQ support and Fix read.
When offset is not 4 bytes aligned, directly shift righty by 2 bits
will cause reading out wrong data. Since imx ocotp only supports
4 bytes reading once, we need handle offset is not 4 bytes aligned
and enlarge the bytes to 4 bytes aligned. After finished reading,
copy the needed data from buffer to caller and free buffer.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
23bcfaac856f3f0de9f3113c9c447a6133157019)
Anson Huang [Fri, 14 Sep 2018 02:59:21 +0000 (10:59 +0800)]
ARM: dts: imx6ul: use nvmem-cells for cpu speed grading
On i.MX6UL, accessing OCOTP directly is wrong because the ocotp clock
needs to be enabled first, so use the nvmem-cells binding instead.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
(cherry picked from commit
44dca5db09efe6e03e5c50e2e093d823d9f0ffee)