MLK-17232-3: dts: arm64: imx8mq: remove APB clock for rm67191 DTS
According to commit:
<8c9aa9e83e37> "MLK-16942-2: dts: Remove disp_apb clock rate setting"
APB clock is configured by ROM code and it should be 133MHz. Remove the
setting from this DTS.
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
MLK-17232-2: drm: imx: dcss: ignore SB_PEND_DISP_ACTIVE interrupt
There is a logic error in the DCSS B0 silicon and this interrupt does
not behave as it's supposed to. Ignore for now.
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
MLK-17232-1: drm: imx: dcss: Fix context loader settings for LCD panel
If the vfront/vback porches are small are vsync length is small, the
dis_ulc_y is also small. Hence, the DB trigger setting will be
inappropriate and the DB context will not be able to load in time.
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
MLK-17231-3: drm: imx: dcss: drop runtime autosuspend feature
This was needed when using the mode_set_nofb() callback. Since
everything was moved to crtc_enable() callback, runtime autosuspend
can be dropped.
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
MLK-17231-2: drm: imx: dcss: Do not use mode_set_nofb callback
This callback is not suitable for drivers using runtime PM. Move
everything in the crtc_enable() callback.
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
MLK-17231-1: drm: imx: dcss: set own KMS commit_tail callback
According to documentation, for the default commit_tail helper:
* Note that the default ordering of how the various stages are called is to
* match the legacy modeset helper library closest. One peculiarity of that is
* that it doesn't mesh well with runtime PM at all.
*
* For drivers supporting runtime PM the recommended sequence is instead ::
*
* drm_atomic_helper_commit_modeset_disables(dev, state);
*
* drm_at...
MLK-17204-2 drm/imx: dpu: Set driver data as null when to unbind device
Set driver data as null when to unbind device.
Signed-off-by: Meng Mingming <mingming.meng@nxp.com>
MLK-17237 staging: typec: return error when tcpci_parse_config has failed
Otherwise, the probe would be considered successfully, and without
do any destroy jobs, eg, the interrupt has still registered.
Acked-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
MLK-17062 usb: cdns3: gadget: add test mode support for USB2
Add USB2 device test mode support for CDNS3 IP
Acked-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
MLK-17242-3 arm64: dts: fsl-imx8qm-mek: remove properties for power sink
As imx8qm MEK typec port only can support power source on power role,
remove those properties for power sink after we add fixed power sink
settings.
Tested-by: Peter Chen <peter.chen@nxp.com>
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
MLK-17242-2 arm64: dts: fsl-imx8qxp-mek: remove properties for power sink
As imx8qxp MEK typec port only can support power source on power role,
remove those properties for power sink after we add fixed power sink
settings.
Tested-by: Peter Chen <peter.chen@nxp.com>
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
MLK-17242-1 staging: typec: tcpci: add sink setting for sink-disable
Adding fixed sink power settings for sink-disable case, which
is only for PD protocol talk to know the cc orientation if connects
to a PD capable host, HW doesn't really sink any power in this case.
Tested-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
drm: fix possible_crtc's type
drm_universal_plane_init() and drm_plane_init() take "unsigned long
possible_crtcs" parameter, but then stuff it into uint32_t. Change the
parameter to uint32_t.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
(cherry picked from commit 5cd57a46e3e3dc088b50bbfcdc85d9e0d9c22159)
drm_fourcc: Fix DRM_FORMAT_MOD_LINEAR #define
We need to define DRM_FORMAT_MOD_VENDOR_NONE for the fourcc_mod_code()
macro to work correctly.
Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1481657272-25975-1-git-send-email-hoegsberg@google.com
(cherry picked from commit af913418261d6d3e7a29f06cf35f04610ead667c)
drm_fourcc: Document linear modifier
Not setting the fb modifiers flag is something different from setting
the fb modifiers to 0 (which means explicitly linear). We kinda failed
to document that properly. Spotted by Kristian.
Cc: hoegsberg@google.com
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1478694996-4200-1-git-send-email-daniel.vetter@ffwll.ch
(cherry picked from comm...
MLK-17206 hdp: Disable firmware hdp loading
Disabling HDP firmware loading except for debug.
Added simple checks to test HDP firmware status.
Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
MLK-17111-4: crypto: caam: Fix RNG Kernel oops on i.MX8QXP
Seen on i.MX8QXP board by reboot test, that Kernel oops occurs
due to failing RNG instantiation with default entropy delay.
The fix is to disable all job rings if RNG failed to prevent
Kernel crash. And print an error message saying that this is
a known limitation on REV A0 SoC.
Signed-off-by: Aymen Sghaier <aymen.sghaier@nxp.com>
MLK-17088: mipi_csi: improve the compatiblility of S_FMT
1) When app call S_FMT ioctl, they may only set width, height
and format of image. So driver can't determine whether it
support the specified format by checking the format fourcc
value and the plane number.
2) Driver should also fill plane and sizeimage member in S_FMT
ioctl, because some apps use this information after they call
S_FMT ioctl, such as gstreamer.
Reviewed-by: Sandor.Yu <sandor.yu@nxp.com>
Signed-off-by: ...
MLK-16879-3 can: flexcan: add notes for avaliable fd mode rate combinations
CAN FD can only support some specific bitrate combinations in FD mode
due to HW limitations. See below info mentioned in RM:
"To minimize errors when processing FD frames, use the same value
for FPRESDIV and PRESDIV (in CAN_CBT or CAN_CTRL1)."
Add notes in driver to let user know easily:
CAN FD supported rates combinations
* Combination 1:
* Bitrate: 225000 375000 400000 425000 500000 875000
* Data rate: 1000000
...
MLK-16879-2 can: flexcan: allow user to disable can fd mode from device tree
Normally CAN FD capable device must work on FD mode as it has different
statically claimed bittiming capability.
This patch provides users to disable CAN FD capability if users want
to only work at normal mode.
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
MLK-16879-1 can: flexcan: improve can fd bittiming setting
The CAN bit timing variables (PRESDIV, PROPSEG, PSEG1, PSEG2 and RJW)
can also be configured in CAN_CBT register, which extends the range of
all these variables. It can improve the bittiming accuracy.
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
MLK-17159 dts: imx8qm-mek: fix can regulator name
Fix can regulator names which may cause the debugfs creation fail
due to the duplicated regulator-name of can0/1.
No functions affect.
root@imx8qmmek:~# dmesg | grep Fail
[ 3.276839] can01-en: Failed to create debugfs directory
[ 3.292414] can01-stby: Failed to create debugfs directory
Fixes: 90cd72423ed5 ("MLK-16606-4 arm64: dts: imx8qm-mek: add flexcan support")
Reported-by: Jason Liu <jason.hui.liu@nxp.com>
Reviewed-by: Jason Liu <...
MLK-17224 arm64: dts: jdi-wuxga-lvds1-panel.dts: disable ldb1
current dts supports dual channel LVDS panel connected with ldb2, while it
also needs the cable connected with ldb1 for example need LVDS-HDMI covert
connect with LVDS0_CH0 on the board, otherwise, the LVDS panel not work.
This is not user friendly. This patch removes the limitation by disable the
ldb1 interface by default.
Signed-off-by: Jason Liu <jason.hui.liu@nxp.com>
Acked-by: Liu Ying <victor.liu@nxp.com>
MLK-17225 gpu: imx: imx8_dprc: Directly map color component for 32bit RGB pixels
The DPR prefetch engine has the A/R/G/B_COMP_SEL fields in the
MODE_CTRL0 register to control the color component position
mapping from input to output. We may choose to use direct mapping
and leave the pixel format to be handled by the display controllers.
Fixes: a0a3a82f90e9 ("MLK-15110-3 gpu: imx: Add i.MX8 DPR(Display Prefetch Resolve) support")
Reported-by: Richard Liu <xuegang.liu@nxp.com>
Signed-off-by:...
MLK-17223-2: dts: Add eight cameras dts for imx8qm arm2 board
Enable mipi csi 1 in the dts.
MAX support eight cameras for imx8qm arm2 board with the dtb.
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
MLK-17223-1: dts: Add eight cameras dts for imx8qm mek board
Enable mipi csi 1 in the dts.
MAX support eight cameras for imx8qm mek board with the dtb.
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
MLK-17215-3 video: fbdev: mipi_dsi_northwest: refine 'phy-ref-clkfreq' get to support all socs
Move the code slice of getting 'phy-ref-clkfreq' property
to probe function to support arm32 socs besides arm64.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
MLK-17215-1 video: fbdev: mipi_dsi_northwest: fix an integer overflow issue
On ARM32 socs, the 'UL' and 'ULL' postfix are different.
And if using a 64bit constant integer, 'ULL' is the right
postfix.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
MGS-3506 [#imx-805] Support compression for GPU no resolve
Support compression for GPU no resolve between client and compositor.
Enable gcdENABLE_RENDER_INTO_WINDOW_WITH_FC,
Implement enable_tile_status in viv protocol.
Signed-off-by: Yong Gan yong.gan@nxp.com
Reviewed-by: Xianzhong Li xianzhong.li@nxp.com
Reviewed-by: Y.c. Gan yuchou.gan@nxp.com
Reviewed-by: Prabhu Sundararaj prabhu.sundararaj@nxp.com
MGS-3464 [#imx-811] fix busfreq build break
only include busfreq header when CONFIG_PM is enabled
Date: Nov 29, 2017
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
Reviewed-by: Prabhu Sundararaj <prabhu.sundararaj@nxp.com>
Reviewed-by: Yuchou Gan <yuchou.gan@nxp.com>
MLK-17208-1: mipi sensor: Reorder mipi CSI-2 sensor output
Reorder sensor to support different cameras combination.
Driver can support 1 ~ 4 cameras when device bootup.
And cameras should be connected according camera daughter marked.
For example:
one camera case: connected camera to IN0 on board.
two cameras case: Connected cameras to IN0 and IN1 on board.
...
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
MLK-17107-03: hdp: return unknow status if cable detect failed
Return unknow status to connector if hdp cable detect function
failed to get cable status.
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
(cherry picked from commit d16c633b1be1326b3583632c5279ea6b34ed3ec2)
MLK-17107-02: hdmi: Add api function return check
Add api function return check to hdmi api call.
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
(cherry picked from commit cba6f4fc6f382731fabf938fb9e03db1c17b1666)
Conflicts:
drivers/gpu/drm/imx/hdp/imx-hdmi.c
MLK-17107-01: hdp api: Add return value check for hdmi api
Add return value check for hdmitx api.
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
(cherry picked from commit fa29a23b5327e2739389c12e3d6ae54298c10c2f)
Conflicts:
drivers/mxc/hdp/API_HDMITX.c
MLK-17221 clk: imx8mq: Add shared gate for apbh-dma and gpmi clocks
The CCGR RAWNAND is shared by apbh-dma and gpmi clocks, so must use
imx_clk_gate2_shared2 to produce two clocks. Otherwise, apbh-dma clock
won't be enabled individually.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
MLK-17218 tty: serial: imx: add lock for register save/restore
The driver save/restore registers in system suspend/resume noirq stage
to support no_console_suspend in power lost case.
In noirq stage with no_console_suspend, .imx_console_write() _maybe_
called to print out log_buf message in .printk() or console_unlock()
called by other drivers.
It should add port.lock to protect the registers save/restore in noirq
stage since .imx_console_write() also access them.
Reported-by: Anson Huang ...
drm/drm_lease: Prevent deadlock in case drm_lease_create() fails
This case can been seen when creating the lease with the same objects passed.
[ 605.515097] 2 locks held by testapp/3337:
[ 605.519027] #0: (&dev->mode_config.idr_mutex){......}, at: [<ffff0000085f1664>] drm_mode_create_lease_ioctl+0x384/0x858
[ 605.530045] #1: (&dev->mode_config.idr_mutex){......}, at: [<ffff0000085f11bc>] drm_lease_destroy+0x2c/0x110
Which was causing the process to hang:
[ 605.398827] [<ffff000008...
MLK-17220: ASoC: fsl_rpmsg_i2s: restore original lock context
Restore original lock context and unlock the mutex in case if
info->rpdev is uninitialized.
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
MLK-17220: ASoC: fsl_rpmsg_i2s: unlock mutex on error
Mutex must be unlocked when i2s_send_message method
fails.
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
MLK-17217 staging: typec: tcpci: system wakeup source support
As GPIO normally can be system wakeup source, so enable typec events
as system wakeup source if user requested.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
MLK-17128-3 staging: typec: reading max_snk_mw setting from OF
It's missing while do typec related properties read, sink
needs it to check if the provided PDO can match the required
power.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
MLK-17128-2 ARM64: dts: imx8mq-evk: add max_snk_mw property for typec
Add the max_snk_mw property to specify the max power of i.MX8MQ EVK
power limit is 18W, also change the max current to be 2A, which is
more matching the actual HW design.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>