Commit Graph

1072891 Commits

Author SHA1 Message Date
Finley Xiao
e9b2f6ce99 clk: rockchip: rk3288: add ddrc clock support
Add a ddrc clock into clk branches, so we can do ddr frequency
scaling on rk3288 platform in future.

Change-Id: Ia6c93e5ce82fa30475eddf051bc9ea2512b0cc07
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2022-11-07 15:25:36 +08:00
Frank Wang
2550716315 clk: rockchip: rk3288: add gate id of hclk_usb_peri for usb otg
Change-Id: Ib45f6d97ec81329ec9a4a19e9e836efa0ea61fe2
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2022-11-07 15:25:26 +08:00
Lin Jianhua
0f4a6a32c2 ARM: dts: rockchip: rk3128-evb-ddr3-v10-linux: remove pmic_sleep from rk805
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
Change-Id: Ib84d0d6ab5a740a7e672ea3f1cc51c2125b85164
2022-11-07 15:24:22 +08:00
Lin Jianhua
aec29a2f9d ARM: dts: rockchip: add rk3128-evb-ddr3-v10-linux.dts
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
Change-Id: Ica49fa12b90fbf731b3b3b95a297a83f67b76cb5
2022-11-07 15:19:46 +08:00
Jun Zeng
e11f71a131 ARM: dts: rockchip: Add rk3126c-evb-ddr3-v10-linux-slc
add: rk3126c-evb-ddr3-v10-linux-slc.dts
modify: Makefile add rk3126c-evb-ddr3-v10-linux-slc.dtb

Change-Id: I1cc79bb73ade9f69b30f1f00cdcb714053c1d12c
Signed-off-by: Jun Zeng <jun.zeng@rock-chips.com>
2022-11-07 15:19:40 +08:00
Lin Jianhua
06486f152f ARM: dts: rockchip: add rk3126c-evb-ddr3-v10-linux
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
Change-Id: Icacbe216c1095d9f92dfc7e29502d4911b628d34
2022-11-07 15:19:32 +08:00
Jianlong Wang
7097afabc8 ARM: dts: rockchip: rk312x: fix erroneous spi bus dtc warnings
Change-Id: I613a502c81805b46f5c147b1644fad6666fe9ed6
Signed-off-by: Jianlong Wang <jianlong.wang@rock-chips.com>
2022-11-07 14:53:21 +08:00
Shiqin Chen
f2b9e1026b media: i2c: sc301iot fix for hdr error
Signed-off-by: Shiqin Chen <chensq@rock-chips.com>
Change-Id: I70b6317c9bc24bcb4fd2e61392e250a49e8bca5a
2022-11-07 12:01:31 +08:00
Cai YiWei
5235b51909 arm64: dts: rockchip: rk3588: fix fec reg config
fec aclk and core >= 3 * hclk
core min is 300M, and aclk 750M default, so set hclk to 100M

Change-Id: Ic218b3c692060d92a7b77e4e5933c6ed22e0c812
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-11-07 12:00:51 +08:00
Su Yuefu
f3a285069f media: i2c: add gc3003 sensor driver
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
Change-Id: I5002cc0e12a202a2935e42bd9609f9e78ec0b2d8
2022-11-07 10:02:59 +08:00
shengfei Xu
42a083153f power: supply: sc8551: delete POWER_SUPPLY_PROP_ONLINE property
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: Ia0f6452a43fcd8dd60ec512d791a2fd3c91ac181
2022-11-07 09:56:55 +08:00
Jianlong Wang
9980fe5261 arm64: configs: px30_linux_defconfig: update for kernel5.10
1/ update rk3326_linux.config to kernel5.10 by follow steps:
    make ARCH=arm64 px30_linux_defconfig
    cp .config tmp.config
    make ARCH=arm64 px30_linux_defconfig rk3326_linux.config
    ./scripts/diffconfig -m tmp.config .config > \
        arch/arm64/configs/rk3326_linux.config

2/ no change in rk3358_linux.config for LTE_RM310 \
        doesn't support in kernel5.10

Change-Id: Ib365b412c9443a763e08ee24c68370901ba297f3
Signed-off-by: Jianlong Wang <jianlong.wang@rock-chips.com>
2022-11-07 09:45:13 +08:00
shengfei Xu
fd6e755a70 power: supply: cw221x: update the battery profile
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I50f27d70c03fc81456485e1523ebd816de25775d
2022-11-04 12:41:22 +00:00
shengfei Xu
ab22095c19 power: supply: sgm41542: enable watchdog
If the watchdog timer expires (WATCHDOG_FAULT bit = 1), the
device returns to default mode and charger disable.

Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: Ieaa8287f6b1662e07446b9aecedb46b6770814b4
2022-11-04 19:03:09 +08:00
Su Yuefu
fd05cece13 media: i2c: sc3336 fix brightness change
1、Fixes brightness is increasing to a stable value when
   sensor’s exp reg is fixed value
2、Fixes cross stripe in the first 15 frame

this patch will delay 650us before frame start

Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
Change-Id: I95dc0f1e5ca8d5493665aa3911e84d306b8b78dd
2022-11-04 17:04:59 +08:00
Su Yuefu
2079123a91 media: i2c: change sc3336 gain times from 1000 to 128
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
Change-Id: I1f184bf1128db98fd770a5922262374c89adaa8e
2022-11-04 17:04:57 +08:00
Liang Chen
4f53a57027 arm64: rockchip_linux_defconfig: enable CONFIG_ROCKCHIP_PERFORMANCE
Change performance level command:

    echo 1 > /sys/module/rockchip_performance/parameters/level

0 for low-performance.
1 for normal performance(default).
2 for high-performance.

Change-Id: I82be1e3dc030d1b2021cf982dadcb9d067d18ad5
Signed-off-by: Liang Chen <cl@rock-chips.com>
2022-11-04 15:00:48 +08:00
Liang Chen
dfa1ca37e6 arm64: rockchip_defconfig: enable CONFIG_ROCKCHIP_PERFORMANCE
Change performance level command:

    echo 1 > /sys/module/rockchip_performance/parameters/level

0 for low-performance.
1 for normal performance(default).
2 for high-performance.

Change-Id: I4a5447097af9ce73ddc3f7437efb7b5953ef3f53
Signed-off-by: Liang Chen <cl@rock-chips.com>
2022-11-04 15:00:48 +08:00
Liang Chen
bba1b62967 sched/fair: optimize find_energy_efficient_cpu() for EAS scheduler
When EAS can not find a best_energy_cpu, consider a idlest cpu as
a backup if it is a little power increased(<3.1%).

Test NenaMark2.apk on RK3588 EVB1 board:
without this patch: min-fps=57, avg-fps=59.4
with this patch:    min-fps=60, avg-fps=60

Change-Id: Ibc99282c21fa32cbed1d4f5dcc66c76a6b120b70
Signed-off-by: Liang Chen <cl@rock-chips.com>
2022-11-04 15:00:48 +08:00
Weixin Zhou
57dcba155e arm64: dts: rockchip: rk3588s-tablet-single: fix uboot deepsleep
vcc_1v8_s0: osc_1v8
vcc_3v3_s3: vcc3v3_FLASH

Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: I5653dc7e79e1478b0152527b52bb8aa00414b966
2022-11-04 14:47:45 +08:00
Finley Xiao
fdeae5cfbf arm64: dts: rockchip: Add opp table for rk3588j
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ia9fe418f87fafb211c61869d58506bf272dbe0cd
2022-11-04 10:21:45 +08:00
David Wu
4ba7057cbf ethernet: stmmac: dwmac-rk-tool: Fix dma unmap for tx buffer
It is possible that there is no correct unmap for txbuffer, which may
cause some unknown problems.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Ibbbe4d541c6bdd695c862a51a66b9ab511a74c0a
2022-11-04 09:58:22 +08:00
shengfei Xu
0ef32578d2 power: supply: rockchip-charger-manager: support battery temperature monitoring
the battery TS pin is connected to an NTC thermistor for
battery temperature monitoring and protection in charge
mode according to JEITA profile.

Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I4b07938438084a401db199ad6b660cb3335155df
2022-11-03 18:39:57 +08:00
Liang Chen
41297ecf6e soc: rockchip: rockchip_performance: correct cpub_mask for rk3588
The max frequency of A76 is 2.2GHz to 2.4GHz for rk3588, so make
sure all A76 is added to cpub_mask if the frequency is less than 2.4G.

Change-Id: I7d2e4a607acb127aafe385acc2840bdc6489d961
Signed-off-by: Liang Chen <cl@rock-chips.com>
2022-11-03 18:04:53 +08:00
Liang Chen
a2b1191434 arm64: dts: rockchip: adjust opp-table for rk3358
Change-Id: Ib4684438506e3397973a6c36f5ff0d1b11830eb8
Signed-off-by: Liang Chen <cl@rock-chips.com>
2022-11-03 16:33:56 +08:00
Nickey Yang
10b0c3e60b arm64: dts: rockchip: add rk3358m vehicle board support
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Change-Id: Ic9afcd765b11dbad143d767f01fe4d7088eb954f
2022-11-03 16:33:56 +08:00
Caesar Wang
6295871c7e arm64: dts: rockchip: add rk3358 evb for linux
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I64fd77f17c4df93dc1ba14b19a054ec551500ba8
2022-11-03 16:33:56 +08:00
Jianlong Wang
79e86a7536 arm64: dts: rockchip: px30: add media-bus-format.h
Change-Id: If4dae6bdd393a3161ee115be2294b24830818e92
Signed-off-by: Jianlong Wang <jianlong.wang@rock-chips.com>
2022-11-03 16:33:56 +08:00
Yandong Lin
e60ac2564f video: rockchip: mpp: fix 64-bit division compile issue
err note:
undefined reference to `__aeabi_uldivmod''

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I2572d1a89edfbf3a6fb347318b7e031ff2bc48d1
2022-11-03 16:19:36 +08:00
Xing Zheng
36564e2a80 ASoC: rockchip: rk817-codec: enable ADC dither by default
For most scenarios, especially when a usb cable is connected,
enabling the ADC dither can get a better SNR.

Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: Iedc0c6bd6aa9139feea9feb5ffa91a67373964fc
2022-11-02 22:06:14 +08:00
Xing Zheng
40858982b6 ASoC: rockchip: rk817-codec: add checking APLL CFG0/4 with chip_ver during capture power up and reset
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: Ibb3a6a3c3fb8f7c1b1715913a046f5a951c4fd78
2022-11-02 22:06:10 +08:00
Xing Zheng
bd7cc07158 ASoC: rockchip: rk817-codec: do power down list without playback and capture
Change-Id: Iba2b6ccd6ca5d27f855c10e30a077cb657bf0bc8
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2022-11-02 22:05:06 +08:00
Xing Zheng
1f37099553 ASoC: rockchip: rk817-codec: clear status of ADC sdo and keeping low level during stop stream
Change-Id: I9284c7dce0c5f3e42b8fdea5d2be273c578735f9
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2022-11-02 21:50:42 +08:00
Mark Huang
778353e257 usb: gadget: uvc: support nv12 format
Change-Id: Iafa6bdb1540ef9f3ac766bf25e917a76069f942b
Signed-off-by: Mark Huang <huangjc@rock-chips.com>
2022-11-02 18:51:31 +08:00
Simon Xue
da4d118936 PCI: rockchip: dw: add standard ep mode driver
Change-Id: Id365b71acaa1db846b619fedd7397a9256d8e13f
Signed-off-by: Simon Xue <xxm@rock-chips.com>
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2022-11-02 17:35:14 +08:00
Tao Huang
92574a636c mfd: rk808: Constify static struct resources and regmap_irq_chip
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I3d23d66be5586d9f14e62910e540151e66fac5a9
2022-11-02 16:26:57 +08:00
Shunhua Lan
537b439591 arm64: dts: rockchip: rk3588: add hdmirx alias
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: Id9f7f884f0aacad0bb91e5bf37126d4ae06e64b5
2022-11-02 16:26:10 +08:00
James_Lin
82befae92c UPSTREAM: media: uvcvideo: Add UVC_GUID_FORMAT_H265
This patch aims to add UVC_GUID_FORMAT_H265
High Efficiency Video Coding (HEVC), also known as H.265 and MPEG-H Part 2.
They describe the same video encoding method.
So for handling their behavior is the same.
However, when external camera device describes this encoding method,
some use hevc, some use h265.
There is no uniform specification to describe this encoding method.
So if an external camera device use h265 to describe this encoding method,
driver will not recognize it.
Therefore, this patch is to enable driver to read HEVC/H265
and convert it to V4L2_PIX_FMT_HEVC.

Change-Id: I8316ccbf09014d38eb1becbc3c5f54f29ad497b6
Signed-off-by: James_Lin <Ping-lei.Lin@mediatek.com>
Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit be938c70e2)
2022-11-02 16:23:08 +08:00
Jianlong Wang
8edddd07cb ARM: configs: rockchip_linux_defconfig: update for kernel5.10
Signed-off-by: Jianlong Wang <jianlong.wang@rock-chips.com>
Change-Id: I5ff5d8f1ad0743bfa140c5400d6c9b6af8fbbedf
2022-11-02 16:13:26 +08:00
Zefa Chen
34849d327b media: rockchip: vicap alloc only one dummy_buf for all dev
use the maximum resolution as the allocated size

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I41d263993245d168b6494bc4139b2e6dac0a6dc9
2022-11-02 11:14:45 +08:00
Sugar Zhang
a2bf1b64e8 ASoC: rockchip: dlp: Add support for XRUN-routine
* support XRUN-routine digital loopback
* support up to 16 ch digital loopback

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I179ab370087bd49452c9ecbfa9b1e2ecbb010c5b
2022-11-02 10:28:22 +08:00
Frank Wang
e1288d0f36 usb: typec: tcpm: fusb302: add analog audio cc detect
USB Type-C Specification Release 1.2 March 25, 2016
  A.2 Detail
    A DFP that supports analog audio adapters shall detect the presence
    of an analog audio adapter by detecting a resistance to GND of less
    than Ra on both A5 (CC) and B5 (VCONN).

So check both CC1 and CC2 status when SRC togdone to handle the audio
adapter accessory mode.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: Ied826a8a4b6e80b5406e3d370ef0f8aa31b1b536
2022-11-02 09:55:32 +08:00
Wang Xiaobin
7d7e585f2a ARM: configs: rockchip: add rv1103-rmsl311.config
Generated by:
    make ARCH=arm rv1106_defconfig rv1106-tb.config
    cp .config tmp.config
    make ARCH=arm menuconfig
    bala...
    ./scripts/diffconfig -m tmp.config .config > \
        arch/arm/configs/rv1103-rmsl311.config

Signed-off-by: Wang Xiaobin <xb.wang@rock-chips.com>
Change-Id: I7cb6a4b95c6a3f513f8d348a48d9c97b150b2798
2022-11-02 09:44:25 +08:00
Su Yuefu
ba38d5f2f5 media: i2c: sc3338 fixs brightness change
1、Fixes brightness is increasing to a stable value when
   sensor’s exp reg is fixed value
2、Fixes cross stripe in the first 15 frame

this patch will delay 650us before frame start

Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
Change-Id: Ic57a7dfa7340c859aed5ddd250744d3802bf313f
2022-11-01 15:54:46 +08:00
Yu Qiaowei
79893a8747 video: rockchip: rga3: add more error logs for hardware behavior.
1. Add job-state to detect hardware interrupt behavior. Easy to distinguish
   the timeout of hardware interrupt top-half/bottom-half.
2. Print more error description according to register.

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I0179bb59ae6a467fdb1e28643c2c19f7eb4bc5d5
2022-10-31 17:15:55 +08:00
Yu Qiaowei
19805cc2b8 video: rockchip: rga3: move rga*_ops to rga*_reg_info.h
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I8f81e5b11873af76e32dc112dd89a1bc0ef4bcf5
2022-10-31 17:15:55 +08:00
Yu Qiaowei
1514f2ab39 video: rockchip: rga3: add backend-ops read_back_reg()
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I2b24271214f8beeda06f7da0e97f009967a7d83e
2022-10-31 17:15:55 +08:00
Yu Qiaowei
21624c6edb video: rockchip: rga3: add definitions for sys_ctrl and intr registers
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Ib25837d9807de75b62e9c8258ff440c86fdab609
2022-10-31 17:15:55 +08:00
Yu Qiaowei
7c55f51007 video: rockchip: rga3: modify the debug log of irq
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I18f4d02e22c0a2afb0754d3ed92ec2539037d10e
2022-10-31 17:15:55 +08:00
Cai YiWei
fd961d3e69 media: rockchip: ispp: fec remove useless function
Change-Id: I0450622a44804e2170af8fd195c3fa051596477c
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-10-31 17:12:41 +08:00