Commit Graph

615454 Commits

Author SHA1 Message Date
Jon Lin
cb508201ff drivers: rkflash: don't update vpc when record vpc equals 0 in gc progress
1.don't update vpc when record vpc equals 0 in gc progress
2.increase the number of read retry
3.avoid danger of abnormal power lost
4.change flash_read_page_raw return to error_ecc_bits
5.add nand buildin ecc support
6.skip ECC error page instead of marking as bad block
7.adjust the way of building tables to increase ftl init

Change-Id: I9ba24980c06d61a5a1d66019378075e0171a5887
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2019-03-08 12:01:45 +08:00
Leo Wen
281b14365e arm64: dts: rockchip: Add adc-keys node for px30 robot
Change-Id: Iecf0d89e8b8659b836f6f019b68fa2633009c7bb
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2019-03-08 10:45:24 +08:00
Leo Wen
c53f3a5ea7 arm64: dts: rockchip: Add adc-keys node for rk3326 robot
Change-Id: Ib7bae5b08ad8695359d3fcdea3893e707fdae522
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2019-03-08 10:45:24 +08:00
Leo Wen
20146875d2 arm64: dts: rockchip: Add drm node for px30 robot
Change-Id: I1196cdfe29d2e182490fadf3ef529055573b3a40
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2019-03-08 10:45:24 +08:00
Leo Wen
d2c1611ef9 arm64: configs: Add drm/mpp/initrd configs for px30 robot
Change-Id: I37e443b8ed20ce4a188fd0519996659b40ad8323
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2019-03-08 10:45:24 +08:00
Leo Wen
cf8f9d188e arm64: dts: rockchip: Add drm node for rk3326 robot
Change-Id: Ibe37002afdfa6b306eaef604d0ee2cda5321ec77
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2019-03-08 10:45:24 +08:00
Leo Wen
59294e61a2 arm64: configs: Add drm/mpp/initrd configs for rk3326 robot
Change-Id: Ib6ae122e533b3e9d610db570d15484c803028e3c
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2019-03-08 10:45:24 +08:00
Finley Xiao
b736585b63 soc: rockchip: Change the parameter of power model for cpu and npu
Change-Id: I73724946fce82311d29de4538b8446e87d67dc92
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2019-03-08 10:27:18 +08:00
Finley Xiao
e51ed31ccd cpufreq: dt: Add support to get static power
Change-Id: I1d69fa83c039a5487571901da9b1d3baa3bea3ea
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2019-03-08 10:27:18 +08:00
Finley Xiao
039fa1a285 thermal: trace: Add trace for staitc power
Change-Id: I65fa7e60c606d414e6f5941c5a73347db9874c27
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2019-03-08 10:27:18 +08:00
Finley Xiao
0ef7dd26e3 soc: rockchip: Add support to change static power according to leakage
Change-Id: Ie25e42ab14a46676819711957afa8aef8dfd0785
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2019-03-08 10:27:18 +08:00
Finley Xiao
667aaaf977 cpufreq: dt: Implement rockchip_of_get_leakage()
Change-Id: I6d1bf9ee6957455c2cb6623aa112d918a9fea4d4
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2019-03-08 10:27:18 +08:00
Ville Syrjälä
0c17d3a6a0 UPSTREAM: drm/edid: Set YQ bits in the AVI infoframe according to CEA-861-F
CEA-861-F tells us:
"When transmitting any RGB colorimetry, the Source should set the
 YQ-field to match the RGB Quantization Range being transmitted
 (e.g., when Limited Range RGB, set YQ=0 or when Full Range RGB,
 set YQ=1) and the Sink shall ignore the YQ-field."

So let's go ahead and do that. Perhaps there are sinks that don't
ignore the YQ as they should for RGB?

I wasn't able to find similar text in CEA-861-E, so it would seem
to be a fairly "recent" addition.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170111125725.8086-6-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit fcc8a22cc9)

Change-Id: I355b86175d2b33e88bd384a01f7e6378b21d13fd
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2019-03-08 08:49:30 +08:00
Ville Syrjälä
2b882c1f35 UPSTREAM: drm/edid: Set AVI infoframe Q even when QS=0
HDMI 2.0 recommends that we set the Q bits in the AVI infoframe
even when the sink does not support quantization range selection (QS=0).
According to CEA-861 we can do that as long as the Q we send matches
the default quantization range for the mode.

Previously I think I had misread the spec as saying that you can't
send a non-zero Q at all when QS=0. But that's not what the spec
actually says.

v2: Fix typo in commit message (Jani)

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170111125725.8086-5-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit 779c4c2866)

Change-Id: Ic006e2a2a9ac2f1ab105c595bc4a62c0918c6dff
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2019-03-08 08:49:30 +08:00
Ville Syrjälä
6255a9fe86 UPSTREAM: drm/edid: Introduce drm_hdmi_avi_infoframe_quant_range()
Pull the logic to populate the quantization range information
in the AVI infoframe into a small helper. We'll be adding a bit
more logic to it, and having it in a central place seems like a
good idea since it's based on the CEA-861 spec.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170111125725.8086-4-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit a2ce26f815)

Change-Id: Ic41983b3298461644658d89c31408b06efc33c69
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2019-03-08 08:49:30 +08:00
Ville Syrjälä
738f34027f UPSTREAM: drm/edid: Introduce drm_default_rgb_quant_range()
Make the code selecting the RGB quantization range a little less magicy
by wrapping it up in a small helper.

v2: s/adjusted_mode/mode in vc4 to make it actually compile
v3: Add a comment proposed by Eric

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170111141835.25369-1-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit c8127cf08a)

Change-Id: I33894c6e3a2033b168f78918e4a8dbf167201632
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2019-03-08 08:49:30 +08:00
Zhang Zhijie
6ff461709c OPTEE: do uart port config when driver probe
Some logs may appear before tee-supplicant start,
so uart port config should be done as early as possible.

Change-Id: I51bdb6a9d0f5160a6dc66ad015577a77df6897b4
Signed-off-by: Zhang Zhijie <zhangzj@rock-chips.com>
2019-03-07 10:13:22 +08:00
Zhang Zhijie
7757813f89 OPTEE: check psci state when driver init
Kernel is running in secure mode on some platforms(e.g. rk3128/rv1108),
which has no secure OS to support TEE service.

Change-Id: I275413230b2a8ec3864fc5a5ba043a155d724ced
Signed-off-by: Zhang Zhijie <zhangzj@rock-chips.com>
2019-03-07 10:07:47 +08:00
YouMin Chen
a6a1e20286 PM / devfreq: rockchip-dfi: fix lpddr4 calculation error
Fix lpddr4 calculation error about access.
LPDDR4 BL(burst length) = 16,other DDR type BL(burst length) = 8.

Change-Id: Icc1b4f6764fa0b23ec1f7722bda8ffeff1da4ab7
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2019-03-06 14:58:34 +08:00
Liang Chen
8d976db24b arm: dts: rk3128-fireprime: remove custom cma region@88000000
The address@88000000 is out of memory on rk3128-fireprime, so remove
the cma region@88000000, just delete the property <reg>, so that
system will alloc cma region automatically.

Change-Id: I2b9fdf1cd19d9fcecd59421fd551d709f9054cae
Signed-off-by: Liang Chen <cl@rock-chips.com>
2019-03-06 11:39:07 +08:00
Jianqun Xu
09eb63fae4 arm64: dts: rockchip: rk3399-sapphire remove dvs2
The RK3399 sapphire board hasn't use dvs2 of pmic rk808,
remove it from dts.

Change-Id: I6b18f2ac48d2f32ba53cc6f16303be0f42d74fe5
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2019-03-06 09:24:16 +08:00
Sugar Zhang
96e7d814e7 dt-bindings: sound: add compatible for rk1808es vad
Change-Id: I9eff5ec7ff87f2c26fdd4264cad1169a42889992
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2019-03-05 15:33:10 +08:00
Sugar Zhang
1be8a3602e ASoC: rockchip: vad: compatible with rk1808es/rk1808
Change-Id: I54c968f8fcf37cc4d7a52137ac0aac57d4367dc7
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2019-03-05 15:33:10 +08:00
Tao Huang
43dbf7220c arm64: dts: rockchip: disable uart2 for rk3399 board
Change-Id: I0934141d4a943f9bd21f74652c78a4e2eefc1e57
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2019-03-05 14:48:00 +08:00
Tao Huang
55a2b35ff5 arm64: dts: rockchip: disable uart2 for rk3368-r88-dcdc
ttyS2 and fiq debugger don't use the same uart2

Change-Id: I442bb34a5a9a7c836b01b693b199b82284539ca6
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2019-03-05 14:47:44 +08:00
Tao Huang
5d99473a36 arm64: dts: rockchip: disable uart2 for rk3368-r88
ttyS2 and fiq debugger don't use the same uart2

Change-Id: Id93080187e99089b590cdd29e98713d4e2b50dee
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2019-03-05 14:47:44 +08:00
Tao Huang
2a2fd97236 arm64: dts: rockchip: disable uart4 for rk3368-px5-evb-android
ttyS4 and fiq debugger don't use the same uart4

Change-Id: I9e73cd663b5a16615e727d65d3e67a2368390615
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2019-03-05 14:47:44 +08:00
Tao Huang
f1b9929d7d ARM: dts: rockchip: disable uart2 for rk3288-popmetal
Change-Id: Ib4cc44eabe6711efd91cb79867397479ab799ed9
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2019-03-05 14:26:03 +08:00
Tao Huang
6ba0fc8afd ARM: dts: rockchip: disable uart2 for rk3288-phycore-rdk
ttyS2 and fiq debugger don't use the same uart2

Change-Id: I4ca2df8a763f0dba7a28cd9b8e2b32e885feaa0b
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2019-03-05 14:26:03 +08:00
Tao Huang
56dd8723fd ARM: dts: rockchip: disable uart2 for rk3288-miqi
ttyS2 and fiq debugger don't use the same uart2

Change-Id: I40fc4010624abf6b687bc56b739b81b992f9d61a
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2019-03-05 14:26:03 +08:00
Tao Huang
6de0a2904b ARM: dts: rockchip: disable uart2 for rk3288-fennec
ttyS2 and fiq debugger don't use the same uart2

Change-Id: Id726872e68ef873a77b0a5bf5c60f0525f789b0f
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2019-03-05 14:26:03 +08:00
Tao Huang
746156e739 ARM: dts: rockchip: disable uart2 for rk3288-evb-act8846
ttyS2 and fiq debugger don't use the same uart2

Change-Id: I9c6b26c51174e86621fd8369d9231c7b4d20c89f
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2019-03-05 14:26:03 +08:00
Tao Huang
7d0b5029ca ARM: dts: rockchip: disable uart2 for rk3288 board
ttyS2 and fiq debugger don't use the same uart2

Change-Id: Ia178159f240b30abe29312c8dd94ab4711834bbf
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2019-03-05 14:26:03 +08:00
Tao Huang
1273e50839 ARM: dts: rockchip: disable uart2 for rk3229-at-som
ttyS2 and fiq debugger don't use the same uart2

Change-Id: Ibb9db5ff84d334d77787ea6f39a0802ba489781c
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2019-03-05 14:26:03 +08:00
Huibin Hong
8fe83c079f arm64: dts: rockchip: disable uart2 for rk3328-rock64
Change-Id: Iad59c8564b10d429e2bef4c2fe0fd4a9e9ada761
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2019-03-05 14:09:46 +08:00
Huibin Hong
43d72c2716 ARM: dts: rockchip: disable uart2 for rk3036-kylin
ttyS2 and fiq debugger don't use the same uart2

Change-Id: Ic6d2aa936586869197101593ac9b8056be128406
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2019-03-05 08:35:17 +08:00
Huibin Hong
13f611e70a fiq debugger: ttyS2 and fiq debugger don't use the same uart2
Someone may enable uart2 and fiq debugger, which is illegal.

&uart2 {
	status = "okay";
};

&fiq_debugger {
	status = "okay";
};

Change-Id: Ibecd3c3ca69de1216103d7c373a4d282cf93cb30
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2019-03-04 16:33:09 +08:00
Huibin Hong
4aeda7a47f fiq debugger: support dummy console
Maybe you need to use uart2 as normal ttyS2, firstly disable the
uart2 debug function. Set "rockchip,serial-id" as -1, it means
fiq debugger still have a /dev/ttyFIQ0, but it doesn't have any uart
hardware.

&fiq_debugger {
	rockchip,serial-id = <0xffffffff>;
	status = "okay";
};

Change-Id: I80065eed852eb50139520c5c1fdceb882773d79d
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2019-03-04 16:32:53 +08:00
Leo Wen
33f7355319 arm64: dts: rockchip: Add rk3326-evb-ai-va-v11-linux.dts
Change-Id: I4a363a3f36ac6a7195389b085c59437c2bb66fb6
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2019-03-04 11:54:13 +08:00
Wyon Bi
8a1a974a86 drm/bridge: analogix_dp: add missing calls to drm_panel_{prepare,unprepare}
If the enable-gpios property of a simple panel in device tree is set,
the GPIO is not toggled on/off because of missing calls to
drm_panel_prepare and drm_panel_unprepare.

Change-Id: I0a191c8bdd05ef8c2d3d41259937cb5ad0b29f08
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2019-03-04 11:53:14 +08:00
Wyon Bi
31bc0dca0d drm/bridge: analogix_dp: Add support for SSC (Spread-Spectrum Clock)
DPTX implements the programmable SSC down-spreading with up to
0.5% modulation amplitude and 30k/33k modulation frequency.

Change-Id: I2c3eae8f27c84eb1b22eac8973691e0276c1588e
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2019-03-04 11:53:14 +08:00
Wu Jingchen
1ba631eb8a arm64: dts: rockchip: px30-evb-ext-rk618-avb: Add rule in Makefile
Change-Id: I2b1d636e4be4b7758007ea5d8fbdefb9c040713b
Signed-off-by: Wu Jingchen <oven.wu@rock-chips.com>
2019-03-04 11:47:36 +08:00
Wu Jingchen
2edfd16830 arm64: dts: rockchip: px30-evb-ext-rk618: Create a new dtsi for rk618
Change-Id: I7511599eba331044f8e386dcc5d5840a1eec5457
Signed-off-by: Wu Jingchen <oven.wu@rock-chips.com>
2019-03-04 11:46:43 +08:00
Wu Jingchen
782355187f arm64: dts: rockchip: px30-evb-ext-rk618-avb: Add dts for 9.0 double-screen display
Change-Id: I1d6470d5fe163f8ef59a5ee2593fe2c73e3dbdfa
Signed-off-by: Wu Jingchen <oven.wu@rock-chips.com>
2019-03-04 11:46:04 +08:00
Wu Jingchen
ad8de30335 arm64: dts: rockchip: px30: Add the I2C clock signal strength
Change-Id: I80553627d258e54739af328f01fbacf550da8e5e
Signed-off-by: Wu Jingchen <oven.wu@rock-chips.com>
2019-03-04 10:34:55 +08:00
Hu Kejun
3ce97cd258 media: rockchip: isp1: change version to v0.1.1
Change-Id: I3b13c01a69ea07e15dcf4b2ef1d04d2f46fd1ea2
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2019-03-04 08:29:58 +08:00
Hu Kejun
17b4a53b9e media: rockchip: isp1: change readx_poll_timeout to readx_poll_timeout_atomic
rkisp1_isp_stop() is called in rkisp1_isp_isr() now,
so change readx_poll_timeout in rkisp1_isp_stop() to readx_poll_timeout_atomic

Change-Id: If4cb8628e38d2c774f30d7200b0804f22d4ccc4c
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2019-03-04 08:25:55 +08:00
Hu Kejun
506c7289af media: rockchip: isp1: use tasklet to get 3A states
Change-Id: I48b86cf19dd203bad32e7412c722056a6c917059
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2019-03-04 08:24:54 +08:00
Cai YiWei
3351f423d9 media: rockchip: isp1: raw patch with default sensor fmt&size
Change-Id: I057ee38a9369e8e3f26e5899113f9f88585b1e7a
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2019-03-01 19:47:09 +08:00
Cai YiWei
8f0bbf8ba8 media: rockchip: isp1: check for capture S_FMT
Change-Id: I10e75e18cd9f42ac02b4fd0f049851cdf96e8ccf
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2019-03-01 19:47:09 +08:00