Zefa Chen
6ec052094e
media: i2c: sc500ai fixed vflip err
...
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
Change-Id: I184fd7e06514cae76d02a1990086e98fcf3e9a33
2022-04-12 16:31:19 +08:00
Tao Huang
fb89392690
ARM: rv1106_defconfig: Disable IOSCHED_BFQ and MQ_IOSCHED_KYBER
...
before:
text data bss dec hex filename
2507629 1044400 83100 3635129 3777b9 vmlinux
after:
text data bss dec hex filename
2487549 1039912 83596 3611057 3719b1 vmlinux
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
Change-Id: Iace1ecd3f7c26be3b0d7051a1f9929d1d032d3af
2022-04-12 16:08:47 +08:00
Algea Cao
a3c954fda3
phy: rockchip-samsung-hdptx-hdmi: Don't get rate when dclk enable
...
Signed-off-by: Algea Cao <algea.cao@rock-chips.com >
Change-Id: I2aaf01140c681b07823a90ff046fa55621dce181
2022-04-12 15:24:21 +08:00
Zhang Yubing
530d2fa793
drm/rockchip: vop2: get hdmi phy clk rate rate before set
...
hdmi phy clk rate may change by hdmi controller, while clk framework
don't know that, whick may set wrong dclk rate when use hdmi phy pll
as dclk parent. So It necessary to update the hdmi phy pll clk rate
before set a new clk rate.
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com >
Change-Id: I4ca6d5e34f0459ecbcfa894e9a136d05408160a0
2022-04-12 15:24:21 +08:00
Cai YiWei
6a2cb4bacc
media: common: videobuf2: fix heap alloc result check
...
Change-Id: I85529c10e819fcdc026923bcfb3e6664cc12f6d2
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2022-04-12 14:10:02 +08:00
Algea Cao
1e2fd94076
drm/bridge: synopsys: dw-hdmi-qp: Add debugfs node
...
Create two debugfs node to debug hdmi controller and status.
Use following command to debug:
Read hdmi controller register:
cat /sys/kernel/debug/dw-hdmi/ctrl
Write hdmi controller register:
echo <reg> <val> > /sys/kernel/debug/dw-hdmi/ctrl
<reg> and <val> is hexadecimal.
Dump hdmi status:
cat /sys/kernel/debug/dw-hdmi/status
Dump results are as follows:
PHY: enabled Mode: HDMI
FRL Mode Pixel Clk: 1188000000Hz
Color Format: YUV420 Color Depth: 10 bit
Colorimetry: ITU.BT2020 EOTF: HLG
x0: 0 y0: 0
x1: 0 y1: 0
x2: 0 y2: 0
white x: 0 white y: 0
max lum: 0 min lum: 0
max cll: 0 max fall: 0
Signed-off-by: Algea Cao <algea.cao@rock-chips.com >
Change-Id: I385a0871076dc88f007af25cc339e8be352b6772
2022-04-12 14:09:04 +08:00
Finley Xiao
69b9adc8ad
soc: rockchip: power-domain: fix panic when pd power on for rk3588
...
rockchip-pm-domain fd8d8000.power-management:power-controller: failed to set domain 'isp1', target_on= 1, val=0
Kernel panic - not syncing: panic_on_set_domain set ...
CPU: 4 PID: 1 Comm: swapper/0 Not tainted 5.10.66 #1
Call trace:
dump_backtrace+0x0/0x1b4
show_stack+0x24/0x30
dump_stack_lvl+0xc8/0xf8
dump_stack+0x18/0x34
panic+0x170/0x340
rockchip_do_pmu_set_power_domain+0xc0/0xf0
rockchip_pd_power+0x16c/0x1ec
rockchip_pd_power_on+0x28/0x3c
_genpd_power_on+0xbc/0x138
genpd_power_on.part.0+0x54/0x140
genpd_power_on+0x20/0x34
__genpd_dev_pm_attach+0x1a0/0x1f4
genpd_dev_pm_attach+0x6c/0x70
dev_pm_domain_attach+0x24/0x40
platform_drv_probe+0x48/0xb0
really_probe+0x2cc/0x45c
driver_probe_device+0x134/0x144
device_driver_attach+0x50/0x7c
__driver_attach+0x14c/0x150
bus_for_each_dev+0x7c/0xc8
driver_attach+0x30/0x3c
bus_add_driver+0x1b4/0x1fc
driver_register+0xc0/0xf8
__platform_driver_register+0x58/0x64
rk_iommu_init+0x28/0x34
do_one_initcall+0xa0/0x1e8
do_initcalls+0x140/0x144
kernel_init_freeable+0x12c/0x1a0
kernel_init+0x20/0x11c
ret_from_fork+0x10/0x30
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Change-Id: I7252e474c1ae214e2cd79e9e72badb449ef3088b
2022-04-12 10:48:43 +08:00
Tao Huang
d5bc992f3c
ARM: rv1106_defconfig: Disable CONFIG_ARM_CPUIDLE
...
rv1106 only support one idle state.
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
Change-Id: I9aded6fe22a139d41159bea59a5ca9636e7b003e
2022-04-12 09:29:54 +08:00
Tao Huang
8639f37134
ARM: rockchip: support CPU config
...
CACHE_L2X0/TWD/ARM_GLOBAL_TIMER are only available on Cortex-A9.
DW_APB_TIMER_OF only use on rk3066a.
Change-Id: Ied2f49b5d308e961ce5af72eb577aac23e3eb890
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
2022-04-11 20:46:36 +08:00
Yandong Lin
5ead424137
video: rockchip: mpp: Fix av1d reset failed issue
...
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com >
Change-Id: Icab414d04ae6e13c95e62d4c44a4ef50dc23d309
2022-04-11 18:07:18 +08:00
Yandong Lin
cbfd698de1
video: rockchip: mpp: Improve the exit process of the av1
...
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com >
Change-Id: Idbb73bf2b08dc879a7776180420060b9b740a31e
Signed-off-by: Simon Xue <xxm@rock-chips.com >
2022-04-11 18:01:02 +08:00
Cai YiWei
554bc72503
media: rockchip: isp: fix init format for struct no clean
...
Change-Id: I95d3ed7fdcab9347909d0c21bee6084a852ff878
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2022-04-11 17:46:01 +08:00
Sugar Zhang
e9f7fb01ed
ARM: configs: rv1106-ipc: Disable CONFIG_DEBUG_FS
...
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
Change-Id: I6c463e080ecfd43d5dac01317ceb8e5c4a357ebb
2022-04-11 17:35:41 +08:00
Sugar Zhang
8176a3e43b
ARM: configs: rv1106: Disable SUSPEND
...
Before:
text data bss dec hex filename
2722849 1132060 88232 3943141 3c2ae5 vmlinux
After:
text data bss dec hex filename
2691259 1120796 85232 3897287 3b77c7 vmlinux
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
Change-Id: Ifaff6a772e0b4891e6acb22a785da6881f6ec80d
2022-04-11 17:35:13 +08:00
Liang Chen
1d32c1eda0
cpufreq: rockchip: ignore error of rockchip_set_opp_prop_name()
...
Use default opp_prop_name if rockchip_set_opp_prop_name() failed.
Change-Id: If086d8beaab69e35657a9c8e9087a2e20eac67ab
Signed-off-by: Liang Chen <cl@rock-chips.com >
2022-04-11 17:28:32 +08:00
William Wu
f1ac6da358
phy: rockchip: inno-usb2: tuning phy for rv1106 and rv1103
...
This default usb2 phy configuration of rv1106 and rv1103
isn't the best for HS signal quality. We should tuning
phy to get better HS eye height and slew rate.
And this patch also decrease the Rx squelch trigger point
for better compatibility.
Change-Id: Ie0356ac8f1250a820eddc2076c7258c60c0f3910
Signed-off-by: William Wu <william.wu@rock-chips.com >
2022-04-11 12:37:53 +08:00
Jon Lin
4ede567fb0
mtd: spi-nor: core: Info data line
...
Change-Id: If3d05a695ef738438b905564a76af21f69ad7c94
Signed-off-by: Jon Lin <jon.lin@rock-chips.com >
2022-04-11 11:05:55 +08:00
Cai YiWei
8713ec7589
media: rockchip: isp: fix rv1106 clk to 350
...
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
Change-Id: Ic51964325ad49a746f358cab0da83966bb3896cb
2022-04-11 08:51:10 +08:00
Tao Huang
b346fa7155
android: default disable ANDROID_STRUCT_PADDING if NO_GKI
...
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
Change-Id: Ie80bff8b17fee0c574a69119e79a196754c044e8
2022-04-11 08:50:12 +08:00
Qingqing Zhou
4a04b93fc7
UPSTREAM: ANDROID: Configure out the macros in android_kabi and android_vendor
...
Add one CONFIG to control removing the macros or not. On some platform,
configureing out the macros removes the associated members from the
structs, this reduces the object size of the slabs related with the
structs, therefore reduces the total slab memory consumption of system.
Besides, this also reduces vmlinux size a bit, therefore the total
kernel memory size increses a bit.
The macros are ANDROID_KABI_RESERVE, ANDROID_VENDOR_DATA,
ANDROID_VENDOR_DATA_ARRAY, ANDROID_OEM_DATA, ANDROID_OEM_DATA_ARRAY.
Bug: 206561931
Change-Id: I0868d299ccce3c4b39f42af17916828500be6cc4
Signed-off-by: Qingqing Zhou <quic_qqzhou@quicinc.com >
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
(cherry picked from commit b7a6c15a6f )
2022-04-11 08:50:12 +08:00
Liang Chen
fb16e65a3d
cpufreq: dt-platdev: Add rv1103 project into blacklist
...
Change-Id: I813b2cb95d908313281882e01784b53571b4394f
Signed-off-by: Liang Chen <cl@rock-chips.com >
2022-04-09 15:56:08 +08:00
Yu Qiaowei
c5666b7c9e
video: rockchip: rga3: Fix the physical contiguous memory can not get iova
...
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
Change-Id: Iadf28d87e77bb29581420a18e2e4a688d8973c47
2022-04-08 21:31:53 +08:00
Frank Wang
89826f50a8
usb: gadget: uac: add mute and volume uevent support
...
Send uevent for application when mute or volume was changed.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com >
Change-Id: I482ee595fae893c6ae7a0d040588fa9ffcbc5538
2022-04-08 21:31:17 +08:00
Jon Lin
0e31ad550f
UBI: Force write recheck
...
At the moment of power lost, flash maybe work in a unkonw state,
and result in page write fail.
Using Reset IC 2.93v threshold to detect 3.3V IO can improve the
situation and revert this commit.
Change-Id: I0dbc4c971b4be13b0137269515a68e6593937087
Signed-off-by: Jon Lin <jon.lin@rock-chips.com >
2022-04-08 21:31:02 +08:00
William Wu
b26a8f8ccc
phy: rockchip: inno-usb2: add helpers to update bits of registers
...
Add three helpers phy_clear/set/update_bits() for registers operation.
Change-Id: Ie11d355ca1d8856baced39c2caf82e143284e5a3
Signed-off-by: William Wu <william.wu@rock-chips.com >
2022-04-08 21:29:22 +08:00
Jon Lin
9514fbc87b
mtd: spi-nor: Enable w25q128 SPI_NOR_QUAD_READ
...
Change-Id: I79e2b7c7c987328a2ae524108142e44718d26304
Signed-off-by: Jon Lin <jon.lin@rock-chips.com >
2022-04-08 21:25:03 +08:00
Jason Zhu
62a4f41407
ASoC: codecs: rv1106_codec: disable pop sound
...
If enable pop sound with DAC, pop sound may be recorded when the
ADC is opened to record sound with intermittent opening DAC.
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com >
Change-Id: I8cec66b9c62fafa404a6a016d33d15680d5b780a
2022-04-08 21:22:22 +08:00
Sugar Zhang
46a05a3661
ARM: dts: rockchip: rv1106: Change uart console baudrate to 115200
...
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
Change-Id: If5336b6dc32fdfd1a5f9c823e03afd15bcaffed6
2022-04-08 21:21:11 +08:00
Liang Chen
75b7e91ee6
ARM: dts: rockchip: rv1106-evb-v10: add cpu-supply for cpu node
...
Change-Id: I2c442bbd715e8dc184b207b9e41373d86233c0cf
Signed-off-by: Liang Chen <cl@rock-chips.com >
2022-04-08 21:19:40 +08:00
Liang Chen
1f70aa07f7
ARM: dts: rockchip: rv1106: add opp-table for cpu
...
Change-Id: Ia1f9b8b3a68da741199258a04ea58002307afe40
Signed-off-by: Liang Chen <cl@rock-chips.com >
2022-04-08 21:19:19 +08:00
Liang Chen
098afc57a1
clk: rockchip: rv1106: add pvtpll support
...
Change-Id: I8e96bc9f6f9c1694d96c8bb3ab0db1689a746709
Signed-off-by: Liang Chen <cl@rock-chips.com >
2022-04-08 21:17:49 +08:00
Jianwei Fan
320a7be3f6
media: i2c: add max96714 GMSL2/GMSL1 to CSI-2 Deserializer driver
...
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com >
Change-Id: Ia7c19e83a9135cc4a800df32def110c1a1e3796d
2022-04-08 15:07:38 +08:00
Liang Chen
ff40d01889
cpufreq: dt-platdev: Add rv1106 project into blacklist
...
Change-Id: Iba91e872a57c00e7443c3731727ed8fa7e324b29
Signed-off-by: Liang Chen <cl@rock-chips.com >
2022-04-08 14:59:23 +08:00
Zefa Chen
823502ed08
media: rockchip: cif: build depends on CPU config
...
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
Change-Id: I0dee5f7f43da3eb58a65342319ccb77b5501e0ce
2022-04-08 14:54:53 +08:00
Zefa Chen
ca56ba4d64
media: i2c: sensor adapter support config dphy param
...
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
Change-Id: Ia9b4bac3f809fc870a024dfff5b92e14d9bc07fa
2022-04-08 14:52:52 +08:00
Zefa Chen
0ea608c497
media: i2c: sensor adapter fixed get_selection error
...
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
Change-Id: I97601673c032e9e83af305010063806aaa6db355
2022-04-08 14:50:04 +08:00
Zhenke Fan
19a8e6183b
media: i2c: jx_k17: add jx_k17 sensor driver
...
Signed-off-by: Zhenke Fan <fanzy.fan@rock-chips.com >
Change-Id: I0afa06161013cab5fa719af26ee8e8d526ba8594
2022-04-08 14:32:18 +08:00
Zefa Chen
280f919d43
media: i2c: sc500ai fix compile error
...
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
Change-Id: I2c77e19dfe67e943bf18d6f775d30b4180f59b95
2022-04-08 14:29:45 +08:00
Zefa Chen
2b4692408b
media: rockchip: vicap: rv1106 support set fps
...
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
Change-Id: Ia31e6ef65a638cb7860c15c8425a2e835d33acb1
2022-04-08 14:29:24 +08:00
Zefa Chen
354a15b789
phy: rockchip: csi2-dphy: rk3588 dcphy tx/rx combine to one driver
...
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
Change-Id: I5c28feef615dd4a6b8d7e8ec0514c32625da567b
2022-04-08 14:11:07 +08:00
Zefa Chen
58b77814a2
arm64: dts: rockchip: combine dcphy tx/rx for rk3588
...
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
Change-Id: I3c4f3f539cc906258ad36e7627575da6a78c6e23
2022-04-08 14:09:34 +08:00
Sandy Huang
4764cd7c19
drm/rockchip: debugfs: fix dump 10bit afbc yuv format error
...
Signed-off-by: Sandy Huang <hjc@rock-chips.com >
Change-Id: I2aa75d691de794d62c2eada5419ab441da69f471
2022-04-08 10:55:51 +08:00
Andy Yan
4559374ca9
drm/rockchip: vop2: Check activated vp when power off a internal PD
...
A internal PD can only power off by vsync when it attached
to a activated VP.
This fix this log:
[drm:vop2_crtc_atomic_disable] *ERROR* unexpected power on pd7
Signed-off-by: Andy Yan <andy.yan@rock-chips.com >
Change-Id: Ia6694ccc761f93e36dca3218a455f8ef73d04e86
2022-04-08 10:54:02 +08:00
Tony Xie
b6cd8cd681
firmware: arm_sdei: add some functions for fiq debugger.
...
1. add sdei_event_routing_set()
2. add sdei_event_routing_set_nolock()
3. add sdei_event_enable_nolock() and sdei_event_disable_nolock()
Signed-off-by: Tony Xie <tony.xie@rock-chips.com >
Change-Id: Ia2471a3ac6a9189888a465a529875957ab9661b6
2022-04-08 10:52:35 +08:00
Zefa Chen
b05b62da92
include: rk-camera-module: add dphy param control
...
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
Change-Id: I3914f8af1eb469f8d57c9d59f28826cd7d8e2156
2022-04-08 10:49:08 +08:00
Tao Huang
dc02893714
fiq_debugger: FIQ_DEBUGGER_FIQ_GLUE depends on ARM
...
Hide this option for arm64.
Fixes: f6e083bcf5 ("ARM: fiq_glue: Add fiq_glue")
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
Change-Id: I2006f74b0ee590f8de813268082cdabbe2438e6f
2022-04-08 10:42:25 +08:00
Zefa Chen
8eb5d8beab
include: rkcif-config: add cmd RKCIF_CMD_SET_FPS
...
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
Change-Id: Iee6c419795c04b7b1ecee2b726e7f38418a6d719
2022-04-07 17:57:06 +08:00
Zefa Chen
dd3c020416
media: rockchip: vicap disables DMA capture when there is no active buffer
...
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
Change-Id: I38a705b8b495473acb1f3cfdf50eabda9e61330e
2022-04-07 17:56:35 +08:00
Zefa Chen
3435f139fd
media: rockchip: vicap add shutdown function
...
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
Change-Id: I957415449aa3f6efc3832a10cee049135d4c76af
2022-04-07 17:55:02 +08:00
Huibin Hong
f4d48b8c25
ARM: configs: rv1106: enable FIQ_GLUE
...
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com >
Change-Id: Ied16bb6f7909b1be6c061e331dd4c4eaa9da7c6d
2022-04-07 17:11:15 +08:00