Commit Graph

605706 Commits

Author SHA1 Message Date
Jacob Chen
cbd77317fe FROMLIST: media: ov2685: add support for OV2685 sensor
This patch adds driver for Omnivision's ov2685 sensor.
Though the ov2685 can output yuv data, this driver only
supports the raw bayer format, including the following features:
  - output 1600x1200 at 30fps
  - test patterns
  - manual exposure/gain control
  - vblank and hblank
  - media controller
  - runtime pm

Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>

BUG=b:36227021
TEST=Camera works on Scarlet with the whole series
(am from https://patchwork.linuxtv.org/patch/46251/)

Conflicts:
	drivers/media/i2c/Kconfig
	drivers/media/i2c/Makefile

Change-Id: Ia73ea2ff1d01226824f98bf4a45b98303223eed8
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
2018-01-05 17:57:22 +08:00
Shunqian Zheng
403111b2f4 FROMLIST: [media] dt/bindings: Add bindings for OV5695
Add device tree binding documentation for the OV5695 sensor.

Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>

BUG=b:36227021
TEST=Camera works on Scarlet with the whole series
(am from https://patchwork.linuxtv.org/patch/46249/)

Change-Id: Id4c9b1c6a576f82a1c6a0119aa2017c46a552b46
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
2018-01-05 17:57:22 +08:00
Shunqian Zheng
c94b420594 FROMLIST: media: ov5695: add support for OV5695 sensor
This patch adds driver for Omnivision's ov5695 sensor,
the driver supports following features:
 - supported resolutions
   + 2592x1944 at 30fps
   + 1920x1080 at 30fps
   + 1296x972 at 60fps
   + 1280x720 at 30fps
   + 640x480 at 120fps
 - test patterns
 - manual exposure/gain(analog and digital) control
 - vblank and hblank
 - media controller
 - runtime pm

Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>

BUG=b:36227021
TEST=Camera works on Scarlet with the whole series
(am from https://patchwork.linuxtv.org/patch/46248/)
Conflicts:
	drivers/media/i2c/Makefile

Change-Id: Iaeb971c609d4a6d62fb23ae3b5c7881d4d3481f7
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
2018-01-05 17:57:22 +08:00
Wyon Bi
db8a437fd3 drm/panel: simple: Add support for BOE MV270QUM-N10
This adds support for the BOE Corporation MV270QUM-N10 27"
eDP(HBR2, 5.4Gbps) UHD TFT LCD panel, which can be supported
by the simple panel driver.

Change-Id: Ib7df60a7c9a5cd4755a67bedef35a95bcc16a498
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-01-05 17:38:15 +08:00
Algea Cao
b7a227a37d arm64: dts: rockchip: add HDMI cec support for rk3328
Change-Id: I28a77d09a6cd21aff9099247594323b8bff595dc
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2018-01-05 17:37:57 +08:00
Ruoming, Wang
083714b03a rtl8189fs: Solve rtl8189fs compile error
Change-Id: I591c9d381d2eb983578eaadb4d27f66a256b12ec
Signed-off-by: Ruoming, Wang <wrm@rock-chips.com>
2018-01-05 17:37:22 +08:00
Xinhuang Li
e66561316f video: rockchip: vpu: clk_core is not necessary
if the combo is avsd and vdpu,clk_core is not necessary;
others case,the DTS will set the clk_core and here will
get the clk as well.

Change-Id: I5e33375e4655763791b9c4418bce7cbe0f5ac530
Signed-off-by: Xinhuang Li <buluess.li@rock-chips.com>
2018-01-05 17:36:49 +08:00
Jung Zhao
4157aa8e4d video: rockchip: vpu: rk3328 use sip_smc_vpu_reset to reset
Change-Id: I0ad285da9a611e26b678d8ecfbfa8c6c69dace58
Signed-off-by: Jung Zhao <jung.zhao@rock-chips.com>
2018-01-05 15:38:54 +08:00
Sandy Huang
f73ce8e085 drm/rockchip: vop: add support overscan for TV
Change-Id: Id4e37862df2b8acd0012469eb3793aa550491fb0
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-01-05 14:19:52 +08:00
Sandy Huang
c6fc59e97a drm/rockchip: vop: fix win2 area0 mst register config error
Change-Id: If122fb253090c4a613f9d5a63f9fcf9f75f31db6
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-01-05 14:19:21 +08:00
Rocky Hao
945db3d053 arm64: dts: rockchip: rk3328: add thermal control for dmc
add power model for dmc and add dmc as a cooling device in thermal
control

Change-Id: I175e503b671be27e777693745a127a7830c6e829
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
2018-01-05 11:06:03 +08:00
Rocky Hao
b7402ccd73 arm64: dts: rockchip: rk3328: add thermal control for rkvdec
add power model for rkvdec and add rkvdec as a cooling device in thermal
control

Change-Id: I4560f9b2a6b395d565652549a8f0dbcc1903da6f
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
2018-01-05 11:03:34 +08:00
Rocky Hao
5e0e5276e3 video: rockchip: vpu: add thermal control support
add vpu module as a cooling device in thermal control

Change-Id: Ib71d925b32dbf861f62abf38b84b92c9f5bf9e3e
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
2018-01-05 11:03:16 +08:00
Xu Xuehui
f4b0c45cc4 net: wireless: rockchip_wlan: fix ap6212a/ap6212 connect ap fail
The ap6212a/ap6212 firmware can not support MFP protocol

Change-Id: I9835e7da0e7dbac6554f75ff28c3c3e9e785f39d
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
2018-01-05 11:01:54 +08:00
Caesar Wang
72d9dd355e ARM: dts: rockchip: update rk808's regulators for rk3036 kylin
According to the actual schematic designed by kylin board, update and
rename the regulators for rk808 node information.

Especially gpu regulator voltage, the schematic didn't have this
regulator, this regulaor should be applied by cpu regulator since the
cpu/gpu/ddr are belong to the same logic power supply.

Change-Id: I39e4cf18969391da396cc775f8660701e42977bd
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2018-01-05 11:00:55 +08:00
Zorro Liu
b930443d8c arm64: dts: rockchip: disabled sdmmc for rk3368-p9 board, we need uart2 to debug
Change-Id: I3e23ec65e78534abfc67b33eea25f06b9966b541
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2018-01-05 11:00:09 +08:00
Joseph Chen
2d9a3c1125 rockchip: sip: sm_nsec_ctx adds fiq spsr, sp and lr
due to optee os bugfix patch for FIQ:
	cf6a4d8 arm: sm: [bugfix] save/restore fiq core registers

we have to update sm_nsec_ctx to keep same with optee os, otherwise
FIQ debugger "bt" command is abnormal.

Change-Id: I950cfacd1c34abd88fbee2862c593b5fa59387bd
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-01-05 10:59:37 +08:00
Shunqing Chen
07f3a9425f power: rk818-charger: disable irq after otg power off
Change-Id: I5af9ad74d9f863427846c4b3da747ca7945b1a07
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
2018-01-05 10:55:26 +08:00
Jung Zhao
0a27ad80d8 video: rockchip: vpu: fix some bugs
1. fix scaling list write overflow
2. add reset lock when vpu_reset

Change-Id: Iead232b6469f4f8a37b464c50086934931f0747f
Signed-off-by: Jung Zhao <jung.zhao@rock-chips.com>
2018-01-05 09:22:15 +08:00
Jung Zhao
87e3d09740 video: rockchip: vpu: fix page fault crash
Change-Id: I71c3629cec0ee7903770170de15acb73e67298d2
Signed-off-by: Jung Zhao <jung.zhao@rock-chips.com>
2018-01-05 09:22:00 +08:00
Jianqun Xu
1d4da5168e soc/rockchip: rk_fiq_debugger register as platform device
Register rockchip fiq debugger as platform device, also do some
codingstyle for the driver.

Change-Id: I78e6c3365275e3d45e37eee86378c350a18f259d
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2018-01-05 09:21:23 +08:00
Zhou weixin
0e1602046c ARM: dts: rockchip: rk3126-bnd-d708: remove unused gpio cd-gpios from sdmmc node
Change-Id: I39fd391be0674116e0e329ab950e341eb37cdf60
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
2018-01-04 20:40:13 +08:00
Tao Huang
31cc257056 arm64: dts: rockchip: fix interrupts property of rk3399
Change-Id: Ifed5ba59ba2ca7d527e1747ccfa962b353062c0d
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-01-04 20:31:26 +08:00
Tao Huang
7f4dca3e62 arm64: dts: rockchip: fix interrupts property of rk3368
Change-Id: I5eae4d300fe8f2057ce4ee9fcbb5144cdae1a4d9
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-01-04 18:55:36 +08:00
Tao Huang
82f0d683a3 arm64: dts: rockchip: fix interrupts property of rk3366
Change-Id: I832fe95e886b5c33cc618edb24fffc2bfbb3b25f
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-01-04 18:52:48 +08:00
Tao Huang
699b3ebf6f arm64: dts: rockchip: fix interrupts property of rk3328
Change-Id: I456a74303595c33ec66e9c2aa19af1f9b68155b2
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-01-04 18:52:31 +08:00
Tao Huang
69cfeb75c0 arm64: dts: rockchip: fix interrupts property of px30
Change-Id: I97ed22688ab57cdc602f07b3226622cae8b09910
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-01-04 18:46:13 +08:00
Jung Zhao
485c608fd1 video: rockchip: vpu: add rk3328 reduce freq
Change-Id: I0bee9324bd439772e6eedc9045cd9fa6730379e2
Signed-off-by: Jung Zhao <jung.zhao@rock-chips.com>
2018-01-04 16:49:23 +08:00
Sandy Huang
15b5ecbc01 arm64: dts: rockchip: update for px30/rk3326 evaluate board display
Change-Id: I8773926b52e1e3be8ea967ffc93a85777417c520
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-01-04 15:50:11 +08:00
Zorro Liu
48ce086873 drivers: input: sensors: reset sensor rate if rate is out of range
Change-Id: I7d78b0bf3bab24c18a13ba72b0868fb609a6ceb3
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2018-01-04 14:28:21 +08:00
Jung Zhao
26c69f0334 arm64: dts: rockchip: rk3328: rename reset clock of rkvdec
Change-Id: Ie9ad47027f474b0b07f7c3979b5a83184ac5091a
Signed-off-by: Jung Zhao <jung.zhao@rock-chips.com>
2018-01-04 11:51:33 +08:00
Simon Xue
94d27447dd iommu/rockchip: use status register instead of flags as parameter
When iommu fall into interrupt, status register indicate more information
than read or write flag, so use status register as parameter when callback
report_iommu_fault

Change-Id: I07c6b9996f305eb970bd1d1d2b0f2a7db53cc6ba
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2018-01-04 11:51:33 +08:00
Javi Merino
5dcb4226bb BACKPORT: devfreq_cooling: pass a pointer to devfreq in the power model callbacks
When the devfreq cooling device was designed, it was an oversight not to
pass a pointer to the struct devfreq as the first parameters of the
callbacks.  The design patterns of the kernel suggest it for a good
reason.

By passing a pointer to struct devfreq, the driver can register one
function that works with multiple devices.  With the current
implementation, a driver that can work with multiple devices has to
create multiple copies of the same function with different parameters so
that each devfreq_cooling_device can use the appropriate one.  By
passing a pointer to struct devfreq, the driver can identify which
device it's referring to.

Change-Id: I384bf9aafd2391eccab2ca6a76e4e57f2740aa6b
Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Eduardo Valentin <edubezval@gmail.com>
Reviewed-by: Punit Agrawal <punit.agrawal@arm.com>
Reviewed-by: Ørjan Eide <orjan.eide@arm.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Javi Merino <javi.merino@arm.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 3aa5374376)
2018-01-04 09:22:34 +08:00
Marc Zyngier
ece9e5b002 UPSTREAM: ARM: 8488/1: Make IPI_CPU_BACKTRACE a "non-secure" SGI
Having IPI_CPU_BACKTRACE as SGI15 may not work if the kernel is
running in non-secure mode and that the secure firmware has
decided to follow ARM's recommendations that SGI8-15 should
be reserved for secure purpose.

Now that we are "only" using SGI0-6, change IPI_CPU_BACKTRACE
to use SGI7, which makes it more likely to work.

Change-Id: I11e99a59024f1d256b45ede9cc2a89bb4d3dc1ae
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit e7273ff49a)
2018-01-04 09:20:14 +08:00
Marc Zyngier
0b6c94614b UPSTREAM: ARM: 8487/1: Remove IPI_CALL_FUNC_SINGLE
Since 9a46ad6d6d ("smp: make smp_call_function_many() use logic
similar to smp_call_function_single()"), the core IPI handling
has been simplified, and generic_smp_call_function_interrupt is
now the same as generic_smp_call_function_single_interrupt.

This means that one of IPI_CALL_FUNC and IPI_CALL_FUNC_SINGLE has
become redundant. We can then safely drop IPI_CALL_FUNC_SINGLE,
and use only IPI_CALL_FUNC.

This has the advantage of reducing the number of SGI IDs we're using
(a fairly scarse resource).

Tested on a dual A7 board.

Change-Id: I279a90b950c713e822bc4db9844788d7c05e7d77
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 89d798b73d)
2018-01-04 09:20:14 +08:00
Shawn Lin
8b4d925d7d phy: rockchip-emmc: improve calpad busy trimming and dllrdy timeout
It turns out that 5us of caldone isn't enough for all cases, so
let's retry some more times to wait for caldone. And use the API
instead of open-coding for polling dllrdy, but no functional change
intended.

Change-Id: I91e776871a223fc76f76c71ffa0d32c689fcca4e
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2018-01-03 16:44:27 +08:00
Liang Chen
541a9cf6d6 arm: dts: rename cpu0-supply to cpu-supply for rk3288 boards
cpu0-supply is for older DTs, we had better use new name from now on.

Change-Id: Icb80f5ad4718aeb1e112f317883a0cc756a5eaef
Signed-off-by: Liang Chen <cl@rock-chips.com>
2018-01-03 14:13:28 +08:00
Liang Chen
2de91db5d3 arm: dts: add pvtm configuration for rk3288 SoCs
Change-Id: I74fef189bfc0f2a3de683d8ae2fbedfd8fc88c99
Signed-off-by: Liang Chen <cl@rock-chips.com>
2018-01-03 14:12:58 +08:00
Sandy Huang
855ab68dd6 drm/rockchip: fix uninitialized symbol np_connector
Change-Id: If96511d058a94bbe18c63892a569e206559861d3
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-01-03 14:10:33 +08:00
Sandy Huang
f3cbfc89db drm/rockchip: vop: add support vop global alpha
Change-Id: Ifcd61468adcca8e109a3b43534febf4ee80c1d1f
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-01-03 10:58:40 +08:00
Sandy Huang
a7ef991a1f dt-bindings: rockchip: drm: Document for px30 lvds
Change-Id: I7a06e71b4faef90675a6c2e512e8fa6242e2b809
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-01-03 10:56:22 +08:00
Sandy Huang
e15bf20846 arm64: dts: rockchip: add VOP and LVDS config for PX30/RK3326
Change-Id: I6532bf28b905351609a164f1c17898fb8ab1bdea
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-01-03 09:02:10 +08:00
Huibin Hong
c4c2d0c47b serial: 8250: support new dma transfer
The old mode uses soft timer to update received data,
which costs much cpu resource, even though there is no
data. The new mode is based on uart time out, it updates
data only when transfer completes.

Change-Id: Id12e351ff00015e4bfb36f416731ce4af5330001
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2018-01-02 20:29:09 +08:00
Huibin Hong
6d2b99997d serial: 8250_dw: set CPR 0x00023ff2 if it is 0
The UART CPR may be 0 of some rockchip soc,
but it supports fifo and AFC, fifo entry is 32 default.

Change-Id: I44f420c556f703c2848c38dc8449546274ef887d
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2018-01-02 20:28:15 +08:00
Huibin Hong
5c8807eb65 serial: 8250_dw: clear time out interrupt when in dma mode
Change-Id: Iebeacce7cea7be8a71ae0dad17db5bcdeb26d52a
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2018-01-02 20:27:59 +08:00
Sandy Huang
aca6aba688 drm/rockchip: vop: add support px30 afbdc
Px30 afbdc made some improvements base on rk3399:
1. support virth width;
2. support buffer xoffset and yoffset;

Change-Id: I6d5b8bc0a66e468882998c9940da21812896b5c4
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-01-02 11:50:07 +08:00
Sandy Huang
a49729409e drm/rockchip: vop: add support px30
PX30 have two vop(vopb and vopl), the vopb have win0, win1 and win2,
the vopl have win1.

win0: support yuv and scale;
win1: support rgbx and afbdc format(vopb only);
win2: support rgbx and four region;

Change-Id: Ibb0ec88bb6c0a5e031d21432a86734fc9267fd1d
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-01-02 11:49:59 +08:00
Finley Xiao
cf9114cb70 arm64: dts: rockchip: rk3328-evb-android: Add vcodec-supply for rkvdec
Change-Id: I4abce86be1ba2a697145619ffc587da166926717
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-01-02 11:35:51 +08:00
Finley Xiao
1f7aad701b arm64: dts: rockchip: rk3328: Add 200M for rkvdec
Add an intermediate opp so that rkvdec clock rate can be set to
an intermediate rate when temperature is above the trip point.

Change-Id: Ia94910185c708a501072c5da8aaebfcb206ad76b
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-01-02 11:35:31 +08:00
Finley Xiao
5bc582df48 video: rockchip: vpu: Add devfreq feature
Change-Id: Iceadbf2cc39933877732610d59e680b57ac499ad
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-01-02 11:35:06 +08:00