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
Jon Lin
a01ba48fea
misc: rockchip: pcie-rkep: Change to use pci_request_irq apis.
...
Fix error:
[ 517.934944] RIP: 0010:pci_free_cap_save_buffers+0x19/0x30
...
[ 517.935040] ? page_fault_oops+0x136/0x2c0
[ 517.935048] ? search_bpf_extables+0x63/0x80
[ 517.935055] ? pci_free_cap_save_buffers+0x19/0x30
[ 517.935061] ? search_exception_tables+0x5f/0x70
[ 517.935068] ? kernelmode_fixup_or_oops+0xa2/0x120
[ 517.935074] ? __bad_area_nosemaphore+0x15d/0x1a0
[ 517.935080] ? __wake_up_common+0x7e/0x140
Change-Id: Ib0d769dc2ee7428fd289cfbda6a31d28ccb970bd
Signed-off-by: Jon Lin <jon.lin@rock-chips.com >
2023-12-12 15:05:04 +08:00
Shawn Lin
47bfce4123
arm64: dts: rockchip: Covert ciu-drv to ciu-drive for matching the driver
...
The driver is using ciu-drive instead of ciu-drv.
They were converted by:
sed -i "s/ciu-drv;/ciu-drive;/g" `grep ciu-drv -rl arch/arm64/boot/dts/rockchip/*`
Change-Id: I7e5be98a46d7eb5d29b5b0fe0280ea8b91c60406
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com >
2023-12-12 10:00:00 +08:00
Lan Honglin
2a27bd854f
media: i2c: imx415: fix issues for thunderboot
...
Change-Id: I2f61cba2c5f6a4d7d019d3bc0a8d21f191be943f
Signed-off-by: Lan Honglin <helin.lan@rock-chips.com >
2023-12-12 09:53:39 +08:00
Lan Honglin
27061736bc
media: i2c: imx415: add 720P config
...
Change-Id: I2af6b9677ecaf0356f12cbd8e15592d26da134e3
Signed-off-by: Lan Honglin <helin.lan@rock-chips.com >
2023-12-12 09:53:39 +08:00
Finley Xiao
542f25b9ec
Revert "dt-bindings: add binding document for Rockchip cpu avs"
...
Remove unused file.
This reverts commit 21b5ccaf85 .
Change-Id: I01d5c35e03b6b346c8361ce92301e99459d07ab3
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
2023-12-11 21:29:16 +08:00
Chaoyi Chen
71928f92e6
drm/rockchip: vop: correct RK3288/RK3399 VOP WIN register fields
...
In RK3288/RK3399, there is a problem with the definition of the
`fmt_10` field in the VOP WIN register. The original `fmt_10`
definition conflicts with the `lb_mode` definition.
This will cause the `lb_mode` function to be affected, there may be
problems with incorrect colors displayed, incorrect window sizes,
image flickering, etc.
This patch correct `fmt_10` field to the expected value in TRM.
Change-Id: I0f9f23c459dc5870532e28b74053a9b4dc606de0
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com >
2023-12-11 16:38:06 +08:00
Wu Liangqing
a3a9607565
arm64: dts: rockchip: px30-android: add debug support
...
Change-Id: Id36e08c0e5c946b27440c3e841912dfd82b6ec19
Signed-off-by: Wu Liangqing <wlq@rock-chips.com >
2023-12-11 16:31:40 +08:00
Jon Lin
41a3bd108a
spi: rockchip: Support DMA burst 16
...
Change-Id: Ic8b6c0284158d034c3d5ce36810b69588b4b13a2
Signed-off-by: Jon Lin <jon.lin@rock-chips.com >
2023-12-11 16:27:14 +08:00
Jianqun Xu
6834fefbb4
arm64: configs: rockchip_defconfig: enable CONFIG_SND_SOC_ROCKCHIP_SPI_CODEC
...
The RK3588M car audio product uses spi codec
Change-Id: Ibba1affd44ba86a223690a15b5296ae8fe93ccc4
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com >
2023-12-11 16:19:34 +08:00
Jun Zeng
3e396a0fff
arm64: dts: rockchip: rk3588-vehicle-evb: use a spi-codec driver for the remote adsp
...
Change to use a spi-codec driver for the remote adsp, instead of the old
dummy codec driver.
Change-Id: I44a41dbdfe8a7489cc94d9a8f83a5b5f0d99a4c8
Signed-off-by: Jun Zeng <jun.zeng@rock-chips.com >
2023-12-11 16:19:34 +08:00
Jianqun Xu
bf10d7edd8
ASoC: codecs: add rockchip-spi-codec driver support
...
Introduce a codec driver to control a remote audio dsp chip by spi.
This patch is running on a rk3588 board with rk3308 adsp board, while the
rk3308 actually is a SoC without a slave spi controller, so the rk3588
needs connect to rk3308 by spi.
Currently, the host(rk3588) uses the audiocontrol to set volume to the
adsp.
Change-Id: Ia07e9def78cfe7441dc03c97124f0532bc9d72bc
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com >
Signed-off-by: Jun Zeng <jun.zeng@rock-chips.com >
2023-12-11 16:19:34 +08:00
Sandy Huang
e58f2f0f05
drm/rockchip: vop2: add some debug info for ignored crtc
...
For RK356X/RK3588, the VP plane_mask be 0 will have the following two case:
1. The VP is disabled;
2. For some mistake, the VP is enabled but the plane_mask is 0;
This will lead to this crtc register be ignored, So add a few reminders log.
Signed-off-by: Sandy Huang <hjc@rock-chips.com >
Change-Id: Ia49db3051e651095350aeba9c2a27ac7086fe06b
2023-12-11 16:07:08 +08:00
Jon Lin
aeec7a532a
dt-bindings: spi: Document binding for rockchip SPI Slave
...
Add binding documentation for the spi-rockchip-slave driver. This
allows a rockchip SPI to be used to slave interface.
Change-Id: I5bafd86a96f605b97c89b90f647a1bcac0e5f8a9
Signed-off-by: Jon Lin <jon.lin@rock-chips.com >
2023-12-11 15:24:57 +08:00
Jon Lin
a2d5817390
spi: rockchip-slave: Add code
...
1.Implement one msg mechanism
2.Support SRAM extension by dts rockchip,sram property
Change-Id: I0fccc5d4347294488b5382ad3ba5ae72b35610f2
Signed-off-by: Jon Lin <jon.lin@rock-chips.com >
2023-12-11 14:46:56 +08:00
LongChang Ma
b97e3d77e7
ARM: dts: rockchip: add rv1106 dual sensor v11 extboard dts.
...
Signed-off-by: LongChang Ma <chad.ma@rock-chips.com >
Change-Id: Id0c2c72e9484d112958235fc9e10bb626c97737a
2023-12-08 19:00:11 +08:00
Lin Jianhua
1ec01b80a8
ARM: configs: rk3308_linux_aarch32_defconfig: enable rk816 pmic
...
Signed-off-by: Lin Jianhua <linjh@rock-chips.com >
Change-Id: I95d2556a6836fa4ba0b75bc7dcc17dbdc093131f
2023-12-08 17:25:17 +08:00
Lin
967ccfd802
ARM: configs: rk3308_linux_aarch32_defconfig: sync from savedefconfig
...
Signed-off-by: Lin <linjh@rock-chips.com >
Change-Id: I064cef348b469db1e3327465b47d52ea6f56e59d
2023-12-08 17:25:17 +08:00
Chuanhu Sun
be425cca7a
media: rockchip: vicap hw change suspend/resume early
...
Signed-off-by: Chuanhu Sun <aaron.sun@rock-chips.com >
Change-Id: Ic19a8f1540cd2af19f6f921c5cc8eba078ea50fb
2023-12-08 15:22:35 +08:00