XiaoDong Huang
67209dfb7d
soc: rockchip: Kconfig: delete ROCKCHIP_SUSPEND_MODE depends on ROCKCHIP_SIP
...
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com >
Change-Id: I4e4112951a018628687b888b75cddd10e9d31620
2023-12-19 17:22:11 +08:00
Zhang Yubing
ad8f45b6ce
mfd: rkx110_x120: support pattern generator for V1
...
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com >
Change-Id: I0fef8a64dd5602ac8642142b247b4198baef56cb
2023-12-19 17:11:43 +08:00
Sandy Huang
c17a354602
arm64: dts: rockchip: px30: fix vopb register length error
...
Change-Id: Id3972d03297542ca1738f0b13fe6fb1075f1af42
Signed-off-by: Sandy Huang <hjc@rock-chips.com >
2023-12-19 14:44:25 +08:00
Finley Xiao
44dec9b035
soc: rockchip: opp_select: Add support to parse rockchip,pvtm-voltage-sel-<name>
...
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Change-Id: Icc29a8f8b3791dc9cb899dde4c2755d181a4c0c4
2023-12-19 14:43:01 +08:00
Finley Xiao
feecbd010e
soc: rockchip: rockchip_system_monitor: Add support to use low temp pvtpll config
...
Change-Id: Ifa96a101008587309ca10ae6c2bd76424da6039b
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
2023-12-19 14:43:01 +08:00
Finley Xiao
4df54d5e56
cpufreq: rockchip: Add support to init pvtpll table
...
This patch adds support to parse pvtpll config from devicetree, and
change config through sip smc interface.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Change-Id: I74f2127d862db005433d0a9da2703629f80b0faa
2023-12-19 14:43:01 +08:00
Finley Xiao
4149cbb903
soc: rockchip: opp_select: Implement rockchip_init_pvtpll_table()
...
This patch adds support to parse pvtpll config from devicetree, and
change config through sip smc interface.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Change-Id: I5f23b9eb1d358a95b690ca214e35927e74451af1
2023-12-19 14:43:01 +08:00
Finley Xiao
ee4a8d1396
firmware: rockchip_sip: support pvtpll config
...
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Change-Id: I37f96edc8a97eaed2399c4ec4e7e1b17fc1f98ce
2023-12-19 14:43:01 +08:00
Finley Xiao
7fc3233fd1
soc: rockchip: opp_select: Add missing of_node_put()
...
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Change-Id: Ibb6afa022bffc74ef3ecedd40ba7fc47dd4b0b7f
2023-12-19 14:43:01 +08:00
Jon Lin
f12596a9ba
PCI: rockchip: dw: Adding a retry mechanism to the enumeration process
...
When there is a small probability of signal abnormality, try resetting
and enumerating again.
Change-Id: Id37950dc62a497dd1c4703c42de036ce50aaec68
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com >
Signed-off-by: Jon Lin <jon.lin@rock-chips.com >
2023-12-19 09:23:28 +08:00
Lin Jianhua
a16a112165
ARM: dts: rockchip: add rk3308-evb-audio-v10-display-rgb-aarch32.dts
...
Change-Id: I33346b330dcb617069d3ca0e787d14dadd89d400
Signed-off-by: Lin Jianhua <linjh@rock-chips.com >
2023-12-18 20:09:59 +08:00
Sandy Huang
eefe952b3c
drm/rockchip: vop: remove unused PLANE_MASK prop for vop
...
We can get the binding relationship between plane and vop from the standard
prop possible crtcs, so we remove the unused PLANE_MASK prop from vop.
Signed-off-by: Sandy Huang <hjc@rock-chips.com >
Change-Id: I2c68ed60447024f4f5f379fa39b28ae0da065eae
2023-12-18 19:56:04 +08:00
Chaoyi Chen
69e02ae984
drm/rockchip: vop: fix vop dynamic debug crash
...
If the old plane state is invalid, no printing should be performed,
otherwise panic will occur.
Fixes: 2e409456c1 ("drm/rockchip: add dynamic debug for vop")
Change-Id: I0687f9231c49bc068322f555f95af96a214b049d
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com >
2023-12-18 14:29:51 +08:00
Damon Ding
923f3eaa06
dt-bindings: display: panel: add more properties with descriptions
...
cherry-pick from patches of file in kernel-4.19:
Documentation/devicetree/bindings/display/panel/simple-panel.txt
bb34dd00f4 ("drm/panel: simple: support positive/negative driven supply")
dab71decfd ("dt-bindings: panel: Document more property")
405fb07849 ("drm/panel: simple: support transmit DSI packet")
968a5ee200 ("drm/panel: simple: Add reset gpio")
a966346935 ("drm/panel: simple: Get panel-desc data from DT")
Change-Id: I8eeefd637640ddfa1848f74d1daea7d462f956eb
Signed-off-by: Damon Ding <damon.ding@rock-chips.com >
2023-12-18 14:24:02 +08:00
Arnaud Pouliquen
ffdcf653d8
BACKPORT: tty: rpmsg: Fix race condition releasing tty port
...
The tty_port struct is part of the rpmsg_tty_port structure.
The issue is that the rpmsg_tty_port structure is freed on
rpmsg_tty_remove while it is still referenced in the tty_struct.
Its release is not predictable due to workqueues.
For instance following ftrace shows that rpmsg_tty_close is called after
rpmsg_tty_release_cport:
nr_test.sh-389 [000] ..... 212.093752: rpmsg_tty_remove <-rpmsg_dev_
remove
cat-1191 [001] ..... 212.095697: tty_release <-__fput
nr_test.sh-389 [000] ..... 212.099166: rpmsg_tty_release_cport <-rpm
sg_tty_remove
cat-1191 [001] ..... 212.115352: rpmsg_tty_close <-tty_release
cat-1191 [001] ..... 212.115371: release_tty <-tty_release_str
As consequence, the port must be free only when user has released the TTY
interface.
This path :
- Introduce the .destruct port tty ops function to release the allocated
rpmsg_tty_port structure.
- Introduce the .hangup tty ops function to call tty_port_hangup.
- Manages the tty port refcounting to trig the .destruct port ops,
- Introduces the rpmsg_tty_cleanup function to ensure that the TTY is
removed before decreasing the port refcount.
Fixes: 7c0408d805 ("tty: add rpmsg driver")
Cc: stable <stable@vger.kernel.org >
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com >
Link: https://lore.kernel.org/r/20220104163545.34710-1-arnaud.pouliquen@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Change-Id: I5616481fa97807c954f03cd1dfdff206605b65d3
(cherry picked from commit db7f19c0aa )
[Jiahang: Resolving type conflict in drivers/tty/rpmsg_tty.c ]
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com >
2023-12-15 17:39:26 +08:00
Andy Shevchenko
43494d8e80
UPSTREAM: tty: rpmsg: Define tty name via constant string literal
...
Driver uses already twice the same string literal.
Define it in one place, so every user will have this
name consistent.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20211025135148.53944-5-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Change-Id: I7d5b4b0f9a47a6c37d58c208782ca2f6d26650c8
(cherry picked from commit 73a3d4f418 )
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com >
2023-12-15 17:39:26 +08:00
Andy Shevchenko
5cd2ae076a
UPSTREAM: tty: rpmsg: Add pr_fmt() to prefix messages
...
Make all messages to be prefixed in a unified way.
Add pr_fmt() to achieve this.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20211025135148.53944-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Change-Id: I1c60691dcc28dc043fec9295741d0d7445688740
(cherry picked from commit 88af70be4a )
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com >
2023-12-15 17:39:25 +08:00
Andy Shevchenko
9bc81cd09d
UPSTREAM: tty: rpmsg: Use dev_err_probe() in ->probe()
...
It's fine to use dev_err_probe() in ->probe() even if we know
it won't be deferred.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20211025135148.53944-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Change-Id: I5b7de289136281184fe7413ff0346c845ebd2cd9
(cherry picked from commit 8673ef7bd9 )
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com >
2023-12-15 17:39:25 +08:00
Andy Shevchenko
e13a4a299f
UPSTREAM: tty: rpmsg: Unify variable used to keep an error code
...
In some ret is used, in the other err. Let's unify it across the driver.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20211025135148.53944-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Change-Id: Ib7ab7f1f0a90091db4d454c0cbc168b850a03619
(cherry picked from commit 408a507996 )
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com >
2023-12-15 17:39:25 +08:00
Andy Shevchenko
4d7d1e0854
UPSTREAM: tty: rpmsg: Assign returned id to a local variable
...
Instead of putting garbage in the data structure, assign allocated id
or an error code to a temporary variable. This makes code cleaner.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20211025135148.53944-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Change-Id: Ib7e969cd2bee7d050ae49d4949bd75980a8aed4c
(cherry picked from commit 0572da285d )
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com >
2023-12-15 17:39:25 +08:00
Arnaud Pouliquen
c5fc6d2f7b
UPSTREAM: tty: add rpmsg driver
...
This driver exposes a standard TTY interface on top of the rpmsg
framework through a rpmsg service.
This driver supports multi-instances, offering a /dev/ttyRPMSGx entry
per rpmsg endpoint.
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org >
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com >
Link: https://lore.kernel.org/r/20211015094701.5732-3-arnaud.pouliquen@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Change-Id: I1207564bf55cdf5a717bb4572c198e17767f9be8
(cherry picked from commit 7c0408d805 )
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com >
2023-12-15 17:39:25 +08:00
Arnaud Pouliquen
7fc4635adb
BACKPORT: rpmsg: core: add API to get MTU
...
Return the rpmsg buffer MTU for sending message, so rpmsg users
can split a long message in several sub rpmsg buffers.
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org >
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org >
Acked-by: Suman Anna <s-anna@ti.com >
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com >
Link: https://lore.kernel.org/r/20211015094701.5732-2-arnaud.pouliquen@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Change-Id: I978024488709916034606d78d00ce935f26e3fbc
(cherry picked from commit e279317e9a )
[Jiahang: Resolving merge conflicts ]
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com >
2023-12-15 17:39:25 +08:00
Lin Jianhua
246ee6e4ef
arm64: dts: rockchip: rk3308-evb-audio-v10-display-rgb: modify cma size from 8M to 16M
...
Change-Id: I6d9b4e3be4231530531fd99df966fa5b175c0265
Signed-off-by: Lin Jianhua <linjh@rock-chips.com >
2023-12-15 17:12:07 +08:00
Weiwen Chen
33a438dabd
ARM: dts: rockchip: add rv1103g-evb2-v10.dts
...
Change-Id: Ib1129a170917fc2a575a984f615217b09e61814a
Signed-off-by: Weiwen Chen <cww@rock-chips.com >
2023-12-15 17:06:07 +08:00
Wu Liangqing
eb131b8fbe
arm64: dts: rockchip: rk3399-android: add debug support
...
Change-Id: I0000d1cdff85a0989abacadef2cae48980ad2035
Signed-off-by: Wu Liangqing <wlq@rock-chips.com >
2023-12-15 16:52:43 +08:00
Luo Wei
e15cb33d56
arm64: dts: rockchip: rk3588-vehicle-evb: add maxim display dtsi to support split mode
...
Signed-off-by: Luo Wei <lw@rock-chips.com >
Change-Id: I19821aac62ab544fdfa6253ee3cda553a5bfc629
2023-12-15 14:16:57 +08:00
Lin Jianhua
955e34ae99
arm64: rk3308_linux_defconfig: sync from savedefconfig
...
Change-Id: Id078d38495de8f5ee792adfc7bd7bde7f8c42b1f
Signed-off-by: Lin Jianhua <linjh@rock-chips.com >
2023-12-15 14:14:57 +08:00
Zhang Yubing
786d004588
mfd: rkx110_x120: fix compile no previous prototype warning
...
Fixes: e0a3fc8778 ("mfd: rkx110_x120: register 2 panel when attach 2 screen")
Change-Id: Iccc663b6f523c1b4e3307712628406bf10163030
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com >
2023-12-15 14:13:44 +08:00
Jon Lin
8b565da34c
misc: rockchip: pcie-rkep: Select PCIE_DW_DMATEST as default
...
Change-Id: I23d3fe2e1ba7a6726b888432fa86b646867c0d61
Signed-off-by: Jon Lin <jon.lin@rock-chips.com >
2023-12-15 09:49:14 +08:00
Jon Lin
231360c3df
PCI: rockchip: dw-dmatest: Bind the dma transmission code with the device
...
Change-Id: Ida6d0b66c259bb4ddd8e84662f3df4ff0c37987c
Signed-off-by: Jon Lin <jon.lin@rock-chips.com >
2023-12-15 09:48:59 +08:00
Zefa Chen
031478d665
media: i2c: gc8034 add delay after power on
...
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
Change-Id: I1af45405869ff05f52318ea9237d9cf2f9906ccd
2023-12-15 09:17:45 +08:00
Zhang Yubing
e0a3fc8778
mfd: rkx110_x120: register 2 panel when attach 2 screen
...
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com >
Change-Id: I9469fd964871ca26484f95d532a87db7a936937d
2023-12-14 19:04:35 +08:00
Wang Panzhenzhuan
339c882a12
media: i2c: add vcm driver dw9800v
...
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com >
Change-Id: Ic63a1bd40e4b6d209abe935a25552ccf6804f2a1
2023-12-14 18:56:41 +08:00
Wang Panzhenzhuan
fae86dd645
media: i2c: ov16885: add camera sensor driver
...
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com >
Change-Id: I40ffcac0d695e11a561fb65c344b62643ee12f80
2023-12-14 18:45:53 +08:00
Luo Wei
22e7707be9
mfd: display-serdes: modify function definition for maxim chips
...
Signed-off-by: Luo Wei <lw@rock-chips.com >
Change-Id: I4a304304df468ad00e2bcf49f0d6bd5617d6757e
2023-12-14 18:34:14 +08:00
Su Yuefu
239e5e386f
media: i2c: add os04d10 sensor driver
...
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com >
Change-Id: Icbfdde0ccb54d014fa58ea13b562abcc10f25390
2023-12-14 15:50:07 +08:00
Huang zhibao
a0526a852a
arm64: dts: rockchip: rk3308-evb: Add rk3308 audio v10 board devicetree
...
Change-Id: Iee1408489e71f501563d64d68a0e0cec51426353
Signed-off-by: Huang zhibao <hzb@rock-chips.com >
2023-12-13 18:36:50 +08:00
shengfei Xu
a14b4e1f4c
regulator: rk806: fixes return value when read register failed
...
Signed-off-by: shengfei Xu <xsf@rock-chips.com >
Change-Id: I0163ddf976d6b5b0266ddc4376020e6bcb0522df
2023-12-13 18:29:37 +08:00
Damon Ding
0a70f80c91
mfd: rkx110_x120: add pwm support
...
Signed-off-by: Damon Ding <damon.ding@rock-chips.com >
Change-Id: I6d1ffa9e26ebbec3a06b8cb274227c6cdd420e05
2023-12-13 18:23:45 +08:00
Li Hangyu
b7adbc93a7
ARM: dts: rockchip: rv1106g-cvr: Supports dual-channel sensors
...
Change-Id: Ifdadb74d6670d18de4299d179c6c6dd72cb70316
Signed-off-by: Li Hangyu <hangyu.li@rock-chips.com >
2023-12-13 18:10:17 +08:00
Li Hangyu
371e924377
ARM: dts: rockchip: rv1106-mcu-v20: Added MCU panel general configuration
...
Separate some configuration items of "rv1106g-evb1-mcu-display-v20.dts"
so that they can be used as common configurations
Change-Id: I72323b9342235f1c1e9b1c131ead3aabbe9dd51e
Signed-off-by: Li Hangyu <hangyu.li@rock-chips.com >
2023-12-13 18:09:29 +08:00
Rimon Xu
7c4a3b6468
video: rockchip: vtunnel: do not fput fence file after fd install
...
Signed-off-by: Rimon Xu <rimon.xu@rock-chips.com >
Change-Id: I2d596aa981dac5a32267f4f08935fb0401186ead
2023-12-13 09:47:17 +08:00
Damon Ding
3aa5acec15
drm/rockchip: vop2: move crtc_clock check to mode_fixup for rk3528
...
Signed-off-by: Damon Ding <damon.ding@rock-chips.com >
Change-Id: I207dbe09f17991e9a107cc2df5e7b130600be7b7
2023-12-13 08:47:47 +08:00
Sandy Huang
58e55eb624
drm/rockchip: vop2: add rockchip_drm_dclk_set_rate for some special pll
...
Signed-off-by: Sandy Huang <hjc@rock-chips.com >
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com >
Signed-off-by: Damon Ding <damon.ding@rock-chips.com >
Change-Id: I12f1e797d02253ce97b46e6845144f09db101485
2023-12-13 08:47:37 +08:00
Elaine Zhang
842ad2732d
clk: rockchip: rk35xx: fix dclk_vop flags for drm dclk set rate
...
The specify dclk setting rules in drm.
Change-Id: I802b28005ca76b13836d2ead04954d67ee3f625b
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com >
2023-12-13 08:45:21 +08:00
Li Hangyu
243648ee57
ARM: dts: rockchip: rv1106g-dual: Swap front and rear road positions
...
Change-Id: I8c4824a7593efa4062d07495070a0a320361bcc4
Signed-off-by: Li Hangyu <hangyu.li@rock-chips.com >
2023-12-12 20:05:01 +08:00
Dingxian Wen
588c040ed1
media: rockchip: hdmirx: low latency support fence
...
Signed-off-by: Dingxian Wen <shawn.wen@rock-chips.com >
Change-Id: I1d86ace09f73e7794b6e682a1438ad691a24ab59
2023-12-12 19:09:47 +08:00
Dingxian Wen
6d8b5b33d5
media: rockchip: hdmirx: support hdmirx low latency function
...
Signed-off-by: Dingxian Wen <shawn.wen@rock-chips.com >
Change-Id: I6a03bdfae6436972c3875711c8c2e75aa24c4c82
2023-12-12 19:09:47 +08:00
Steven Liu
507366b5f1
arm64: dts: rockchip: px30: add gpio aliases
...
Signed-off-by: Steven Liu <steven.liu@rock-chips.com >
Change-Id: I0929e68947f720534e212bf4da360ea4ef64f9c1
2023-12-12 15:50:33 +08:00
Jon Lin
7f71d2776b
PCI: rockchip: dw: Support IRQ user
...
In order to expand the number of interrupts and achieve independent
services, a specific IRQ USER concept is proposed.
For user:
ioctl PCIE_EP_RAISE_IRQ_USER to raise a dedicated IRQ event
ioctl PCIE_EP_POLL_IRQ_USER to check IRQ event status
Change-Id: I2dd5792a6245d3918dc3d555fccd1601fb9fb22e
Signed-off-by: Jon Lin <jon.lin@rock-chips.com >
2023-12-12 15:05:04 +08:00