]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
soc: rockchip: grf: Set pwm2/xin32k pad default to xin32k for rk3368
authorWeiHao Li <cn.liweihao@gmail.com>
Sat, 6 Sep 2025 14:21:25 +0000 (22:21 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 21 Oct 2025 09:19:53 +0000 (11:19 +0200)
commitfc3d701f0d75ffbd788991cbf84f4937435e504e
treea318fbf0cbc08591093486f8c31b4b97f08427bb
parent3a8660878839faadb4f1a6dd72c3179c1df56787
soc: rockchip: grf: Set pwm2/xin32k pad default to xin32k for rk3368

PWM2 and xin32k share the same pad, but some peripheral need the xin32k
clock to run properly, such as tsadc. I have observed that this pad is
used as xin32k by default on some existing board [1], so it maybe more
appropriate to set it to xin32k by default.

I also tested it on another rk3368 based board [2], without this adjust,
tsadc does not work properly.

[1] https://rockchip.fr/geekbox/Geekbox_V1.23.pdf
[2] https://ieiao.github.io/wiki/embedded-dev/rockchip/rk3368

Signed-off-by: WeiHao Li <cn.liweihao@gmail.com>
Link: https://patch.msgid.link/20250906142125.7602-1-cn.liweihao@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
drivers/soc/rockchip/grf.c