Supports charging via docking station, but connected devices will
undergo a power cycle (temporary power loss followed by reconnection)
when the charger is unplugged from the docking station.
Change-Id: Ia24f1dc976f73cebb1758e069a4c49131d7a85f3
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
This ensures all device settings are properly preserved across
suspend/resume cycles and improves error handling robustness.
Change-Id: I7624236c67b8cfb8ef7f7dcb15b3fa49dd9b16a2
Signed-off-by: LiuDiMing Lin <fenrir.lin@rock-chips.com>
The VDD_LOGIC of rk3308-voice-module-v11-aarch32 is fixed,
so do not enable dmc.
Change-Id: I6a8ccedc13f60106a25ee0c38eb40a984a2e3a53
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
The VDD_LOGIC of rk3308b-evb-v10 is fixed, so do not enable dmc.
Change-Id: I8a7478b828fe83c5ec8f06de0a0c4e57ba0d4030
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
1. add reset gpio for control power
2. add delayed register function
3. add suspend & resume support
Change-Id: I70a94d1bbdeee1143380c3d1cc2793fe0fa8114a
Signed-off-by: Eddy Zhang <eddy.zhang@rock-chips.com>
drivers/video/rockchip/rga/rga_drv.c:1691:6: error: no previous prototype for 'rga_ioctl_kernel_imp' [-Werror=missing-prototypes]
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Icb45c96075a5f8cf14d36806aa86a3ee8e52749b
FTS, fast training sequences, is used for exiting from L0s, which
is issued to peers while in TS1 phase. If number of FTS issued is
not enough for PHY itself, FTS timeout would occur and the LTSMM
will fall into recovery leading to longer exit latency.
In theory this value is PHY relevant, especially combophy needs a
bigger FTS that another one. The default value is 210, just increase
it to 255 the max for compatibility.
Another thing should be noted is if EP can't work stable under L0s
or failing to do FTS in requested, just add them to quirk.c and there
were numbers of buggy devices already there who claims to support L0s but
actually not.
Change-Id: I071c27ef6a3ac504b9ed82b748b41ec55bfd5fc5
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
When enable vrr by switch dclk, the dclk source may be vp1 dclk.
In this case, if we want turn off esmart pd, the vp1 dclk should
be enable.
Change-Id: I2ad5a716763607693723fc8af6275444edae3dee
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
drivers/clk/rockchip/clk-rk3128.c:566:6: error: no previous prototype for rkclk_cpuclk_div_setting [-Werror=missing-prototypes]
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I4f6407d9a09085d44de7a40e409b580256f99733
Add crtc post enable and pre disable callback. Setting dsc config
done in crtc post enable callback if dsc is enable.
Change-Id: I6eb5e3c14ba70c90d2f3337c22754a3a7a96ea81
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
DSC has strict constraint with timing output from VOP. If
vp reset dclk after DSC ready, something will be wrong with
DSC. To avoid this issue, it need set dsc config done after
dclk reset.
Fixes: fdcec7349c ("drm/rockchip: vop2: reset dclk after config stream output")
Change-Id: Ied1cddc381eacd86771ae52af82f31f887fdbf89
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
drivers/input/sensors/accel/bma2xx.c:2093:47: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
2093 | DBG("set bandwidth failed!\n");
| ^
Change the empty debug macros to no_printk(), which avoids the
warnings and adds useful format string checks.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I41d3b2eb23fef6f37a7680e869858be27ece3250
sound/soc/codecs/rk312x_codec.c:604:5: error: no previous prototype for rk312x_codec_mute_dac [-Werror=missing-prototypes]
sound/soc/codecs/rk312x_codec.c:2412:6: error: no previous prototype for rk312x_platform_shutdown [-Werror=missing-prototypes]
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I5faa117a8fb6a803bfeffc5c20473e362f4f7ed9
Follow the advice of the Documentation/filesystems/sysfs.rst and show()
should only use sysfs_emit() or sysfs_emit_at() when formatting the value
to be returned to user space.
Fixes: ea074eb627 ("net: phy: add sysfs node for reading PHY's registers")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I642da13c8e4b9351b13592a817c9bf9a9b5c34a7
Building with 'make W=1' shows a harmless -Wempty-body warning:
drivers/video/rockchip/iep/hw_iep_reg.c: In function 'iep_soft_rst':
drivers/video/rockchip/iep/hw_iep_reg.c:1313:49: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
1313 | IEP_DBG("soft reset timeout.\n");
| ^
Change the empty debug macros to no_printk(), which avoids the
warnings and adds useful format string checks.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ifff86aeab7cc988d5af694d8709fb4b9c634b044
Using the "start_decom" node requires complex preparation,
such as modifying UBOOT code, adding partitions, modifying
reserved memory. To quickly set up a testing environment,
we introduced the "dynamic_buf_decom" node which only requires
placing test files in the /data/data/ directory to begin
testing hardware decompression
The testing command similar to "start_decom"
echo mode > /sys/devices/platform/fea80000.decompress/dynamic_buf_decom
Change-Id: Ibfa1ec2a7c3e74b5c58392458827a9542c907e23
Signed-off-by: Simon Xue <xxm@rock-chips.com>
Use preferred device_get_match_data() instead of of_match_device() to
get the driver match data in a single step.
Change-Id: I713eea70b5fc6751a2b1f9cbd1334a5cd32d2611
Signed-off-by: Tao Huang <huangtao@rock-chips.com>