Add sysfs interface to control the low-pass filter bandwidth for both
accelerometer and gyroscope.
Change-Id: I7eb0617476b9aa984276ab5a98f50e32e17d4721
Signed-off-by: LiuDiMing Lin <fenrir.lin@rock-chips.com>
The drivers which use shared iommu, bitmask need xor BIT(DRIVER_TYPE), and DRIVER_TYPE
is defined in mpp_common.h. Such as, avsd、vdpu、iep add vdpp use share iommu, then
bitmask = BIT(DRIVER_VDPU1) | BIT(DRIVER_VDPU2) | BIT(DRIVER_IEP2) | BIT(DRIVER_VDPP).
Change-Id: Ifc8de7422eaa11ba33e9f5e93e4f4b094207a72e
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
drivers/video/rockchip/mpp/hack/mpp_rkvdec2_hack_rk3568.c:677:6: error: no previous prototype for function 'rkvdec2_3568_hack_data_setup' [-Werror,-Wmissing-prototypes]
drivers/video/rockchip/mpp/hack/mpp_rkvdec2_hack_rk3568.c:703:6: error: no previous prototype for function 'rkvdec2_3568_hack_fix' [-Werror,-Wmissing-prototypes]
drivers/video/rockchip/mpp/hack/mpp_rkvdec2_link_hack_rk3568.c:184:6: error: no previous prototype for function 'rkvdec2_3568_hack_fix_link' [-Werror,-Wmissing-prototypes]
drivers/video/rockchip/mpp/hack/mpp_rkvdec2_link_hack_rk3568.c:189:6: error: no previous prototype for function 'rkvdec2_link_hack_data_setup' [-Werror,-Wmissing-prototypes]
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Idf6d3b4602ba2c7f8313e6335908ce0870f7f89b
drivers/soc/rockchip/fiq_debugger/fiq_debugger_arm64.c:45:6: error: no previous prototype for function 'fiq_debugger_dump_regs_aarch32' [-Werror,-Wmissing-prototypes]
drivers/soc/rockchip/fiq_debugger/fiq_debugger_arm64.c:64:6: error: no previous prototype for function 'fiq_debugger_dump_regs_aarch64' [-Werror,-Wmissing-prototypes]
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ie44867116113a460c55e6884f51c3671854d7aa2
drivers/input/touchscreen/parade/pt_core.c:10623:5: error: no previous prototype for function '_pt_request_pip2_enter_bl' [-Werror,-Wmissing-prototypes]
drivers/input/touchscreen/parade/pt_core.c:10872:5: error: no previous prototype for function '_pt_pip2_file_open' [-Werror,-Wmissing-prototypes]
drivers/input/touchscreen/parade/pt_core.c:10920:5: error: no previous prototype for function '_pt_pip2_file_close' [-Werror,-Wmissing-prototypes]
drivers/input/touchscreen/parade/pt_core.c:10968:5: error: no previous prototype for function '_pt_pip2_file_erase' [-Werror,-Wmissing-prototypes]
drivers/input/touchscreen/parade/pt_core.c:11039:5: error: no previous prototype for function '_pt_pip2_file_read' [-Werror,-Wmissing-prototypes]
drivers/input/touchscreen/parade/pt_core.c:11081:5: error: no previous prototype for function '_pt_read_us_file' [-Werror,-Wmissing-prototypes]
drivers/input/touchscreen/parade/pt_core.c:11174:5: error: no previous prototype for function '_pt_request_pip2_bin_hdr' [-Werror,-Wmissing-prototypes]
drivers/input/touchscreen/parade/pt_core.c:11312:5: error: no previous prototype for function '_pt_pip2_file_get_stats' [-Werror,-Wmissing-prototypes]
drivers/input/touchscreen/parade/pt_core.c:11381:5: error: no previous prototype for function '_pt_pip2_file_seek_offset' [-Werror,-Wmissing-prototypes]
drivers/input/touchscreen/parade/pt_core.c:11436:5: error: no previous prototype for function '_pt_pip2_file_crc' [-Werror,-Wmissing-prototypes]
drivers/input/touchscreen/parade/pt_core.c:11484:5: error: no previous prototype for function 'pt_pip2_ping_test' [-Werror,-Wmissing-prototypes]
drivers/input/touchscreen/parade/pt_core.c:611:6: error: no previous prototype for function 'pt_toggle_err_gpio' [-Werror,-Wmissing-prototypes]
drivers/input/touchscreen/parade/pt_core.c:634:6: error: no previous prototype for function '_pt_request_toggle_err_gpio' [-Werror,-Wmissing-prototypes]
drivers/input/touchscreen/parade/pt_core.c:6667:5: error: no previous prototype for function '_pt_request_active_pip_protocol' [-Werror,-Wmissing-prototypes]
drivers/input/touchscreen/parade/pt_core.c:8465:13: error: no previous prototype for function 'pt_irq' [-Werror,-Wmissing-prototypes]
drivers/input/touchscreen/parade/pt_core.c:9064:5: error: no previous prototype for function 'pt_pip2_exit_bl_' [-Werror,-Wmissing-prototypes]
drivers/input/touchscreen/parade/pt_core.c:9201:5: error: no previous prototype for function 'pt_pip2_exit_bl' [-Werror,-Wmissing-prototypes]
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ic932fcb8acec2084d36812ac82d6a877ff5a7ca7
drivers/input/sensors/gyro/ewtsa.c:281:6: error: no previous prototype for function 'gyro_dev_reset' [-Werror,-Wmissing-prototypes]
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I95932a5cfbb38cd0f5019d965accfd3d07f79000
drivers/cpufreq/cpufreq_interactive.c:1372:5: error: no previous prototype for function 'cpufreq_interactive_init' [-Werror,-Wmissing-prototypes]
drivers/cpufreq/cpufreq_interactive.c:1463:6: error: no previous prototype for function 'cpufreq_interactive_exit' [-Werror,-Wmissing-prototypes]
drivers/cpufreq/cpufreq_interactive.c:1498:5: error: no previous prototype for function 'cpufreq_interactive_start' [-Werror,-Wmissing-prototypes]
drivers/cpufreq/cpufreq_interactive.c:1525:6: error: no previous prototype for function 'cpufreq_interactive_stop' [-Werror,-Wmissing-prototypes]
drivers/cpufreq/cpufreq_interactive.c:1543:6: error: no previous prototype for function 'cpufreq_interactive_limits' [-Werror,-Wmissing-prototypes]
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I83452d8e7acb41ff4a33a0f9c261208e72c8dad9
when DSI operates in auto calculation mode,it sends a dsc read
get_scanline request to the peripheral devices to automatically
calculate phy_max_rd_time_auto during the auto calculation training.
However,if the peripheral devices,such as a bridge chip or some panel,
lack the capability to respond to read-back requests,they cannot respond
to the DSI host’s BTA,leading to the signal control not being properly
returned to the DSI host,Therefore,the BTA function should be disabled
in such case.
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Change-Id: Iddac487ade3de49e73594e92ad2f7b537ddf2335
Prevent panic caused by the completion not being initialized when the
interrupt is triggered.
Change-Id: I375d38505e1375983e74eadcf957b1d928bee355
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
Prevent panic caused by the completion not being initialized when the
interrupt is triggered.
Change-Id: I797b0ea28a1b04744b0a64d77c00bd5590987420
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
Fixes: a7620fa846 ("drm/rockchip: analogix_dp: add support for color format yuv444/yuv422")
Change-Id: I9f7f498f8c3cf6399142430a9ee984c0f110c2b8
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Per design recommendation, memory clock could be gate if no transfer is
on-flight which could help save power. This feature is introduced along
with internal phase support. This patch enables the feature.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I36b90a17742da63f229e61167277bbbdc676695b
The irq for PWM v1-v3 used to be exclusively associated with oneshot
mode.
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
Change-Id: I6bdb8a176929965675b96ef8310f5f0097a339d6
For some Type-C to DP Adapter, It need reset tcpm state when resume
To avoid some thing wrong with display appear.
Change-Id: Ie23d62ded05cdbc438cd354c5b886ddc45210b42
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
move devm_request_irq() to the end of this function to
make sure rcan and napi is initialized.
Change-Id: I160447fe4f45dedffde9c97f1aa1df536baccb77
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
This driver simulate includes not only the display controller but
also the connector and encoder, name it to vkms as how vmwgfx/amd
name this kind of driver.
Change-Id: If56614c41973549e2120912c91569af27820b15d
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
RK3576 supports calculating the exact dclk from the known hclk rate.
Change-Id: I06f3f59118bc6627b9bb92d0e9aedf1848e5c72c
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
This is extremely useful in diagnosing remote crashes, and is based heavily
on original work by <md@google.com>.
Signed-off-by: San Mehat <san@google.com>
Cc: Michael Davidson <md@google.com>
[ARM] process: Use uber-safe probe_kernel_address() to read mem when dumping.
This prevents the dump from taking pagefaults / external aborts.
Signed-off-by: San Mehat <san@google.com>
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: I7586677c4ea0e064b5a38c7972102db3b5771500
The &vop2_data.nr_layers represents the max number of planes that can
be assigned to one VP. Therefore, when checking the max plane number for
VOP2, it may be incorrect to use the &vop2_data.nr_layers.
And the comparison of assigned plane_mask with &vop2_data.plane_mask_base
can already confirm whether every plane has been assigned to one of all
the VPs.
Fixes: 00424a589d ("drm/rockchip: vop2: add support to assign plane mask by default")
Change-Id: I9c2056dea42897150ef155c7e6fd0ad3a43c8132
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Since &vop2_win.plane_id means the unique plane id based on the
initialization order of planes in vop2_win_init(), it may be better
to rename vop2_plane_id_to_string() to vop2_plane_phys_id_to_string()
based on the definition of &vop2_win.phys_id.
And the movement can help to make more plane related logs more
readable.
Change-Id: If5d362817fc147cbd3a21f67ea44a8c0814899df
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
RK3528/RK3562/RK3576 use the VOP3 architecture, which supports
flexible switching of planes between different VPs. User can switch
planes between different CRTCs based on the &drm_plane.possible_crtcs
in userspace, so the 'PLANE_MASK' property is not required.
Change-Id: Icbd75bc4602fcfd69a10f2be9f5a8375bd7f2abe
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
The RGB interface also supports formats that have multiple cycles per
pixel, such as MEDIA_BUS_FMT_RGB888_3X8, MEDIA_BUS_FMT_RGB565_2X8_LE,
and so on. And the &drm_display_mode.crtc_clock should be multiplied by
the return value of rockchip_drm_get_cycles_per_pixel().
Fixes: 3cb261be89 ("drm/rockchip: drv: fix the dclk calculation of mcu interface")
Change-Id: Idbb6f6ef2ac17dc0dd63d67519733dbd1e29e9dd
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
The RGB interface also supports formats that have multiple cycles per
pixel, such as MEDIA_BUS_FMT_RGB888_3X8, MEDIA_BUS_FMT_RGB565_2X8_LE,
and so on. And the &drm_display_mode.crtc_clock should be multiplied by
the return value of rockchip_drm_get_cycles_per_pixel().
Fixes: 3cb261be89 ("drm/rockchip: drv: fix the dclk calculation of mcu interface")
Change-Id: I85c0168ccfaedbf5566a2c6b8f86e881fbc93ad0
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
VOP sharp/post-scaler/split use the same line buffer.
They must be mutually exclusive, otherwise the picture
will display abnormally.
Change-Id: Ia8e7877826bf2a4484a4060ea4d704a2edc611c3
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Issue:
1. On arm32 platform iommu use the mapping->domain, while use the
group->domain on arm64 platform.
2. __iommu_attach_group use group->default to judge whether new device
in kernel 5.10 branch, while use group->domain in kernel 6.1 branch.
For this change, when two devices share the iommu, the first device
attach success, while the second device failed in kernel 6.1 branch.
Method:
1. Set driver_managed_dma=true to ensure that during the IOMMU probe
phase,
even if attach group failed, the mapping will not be released.
2. After the IOMMU probe succeeds, record info->domain=mapping->domain
and
detach it, ensuring that group->domain is set to NULL. This prevents
the
next device which sharing the IOMMU, not return -EBUSY when attach
the
group.
3. Before hardware running, the shared IOMMU should check whether the
device has been switched. If so, it needs to attach the current
device's info->domain.
4. When removing a shared IOMMU, it must also ensure that group->domain
corresponds to the current device.
Change-Id: If0fec01a0bcf9c49850129bfa5ac28484fece9a2
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
fix the crash caused by interrupt occurring before info->last_chan is ready
Change-Id: I6a57d49d5af6fb35708e009c33422ad936af0d3f
Signed-off-by: Simon Xue <xxm@rock-chips.com>