Commit Graph

613704 Commits

Author SHA1 Message Date
Zheng Yang
0d5631a67b drm/edid: support parsing Hybrid Log-Gamma EOTF
Change-Id: Ia017bbd341dbd5e895336a98abe65bee3694085b
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2018-11-21 10:57:53 +08:00
Caesar Wang
51a94209b8 net/rfkill: bt: improve to set the bt power
There is a bt power issue on Debian OS, the blueman app
will callback to enable the bluetooth power during the bringup.

As below log the system bringup about 10s.
[BT_RFKILL]: rfkill_rk_set_power: set bt wake_host pin output high!
[BT_RFKILL]: rfkill_rk_set_power: enable bt reset pin!
[BT_RFKILL]: ENABLE UART_RTS
[BT_RFKILL]: DISABLE UART_RTS
[BT_RFKILL]: bt turn on power
...

So the rfkill-bt driver should judge the power status, otherwise the
blueman app will cause the bluetoolth timeout error. e.g:
root@linaro-alip:/# bluetoothctl
[NEW] Controller 3B:A0:90:48:46:40 linaro-alip [default]
[bluetooth]# scan on
Discovery started
[   33.076522] Bluetooth: hci0 command 0x2005 tx timeout
[   35.080473] Bluetooth: hci0 command 0x200b tx timeout
[   37.084505] Bluetooth: hci0 command 0x200c tx timeout

Change-Id: Ib0dd99a83c64dbaf469c3eb7a9226a2d83c53e6f
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2018-11-21 10:31:11 +08:00
Shunqing Chen
e96d623993 arm64: dts: rockchip: rk3399pro-evb: add hdmi phy table
Change-Id: I8f1308ab2cf37c60c14f15939a5270b75819a475
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
2018-11-21 10:29:55 +08:00
Weixin Zhou
0c8c4b452a arm64: dts: rockchip: rk3399pro-evb: disable hdmiin/pcie/i2c5 by default
Change-Id: I0609cc2a3ad24a0c4dd8f201de8958eda36650c7
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
2018-11-20 18:30:10 +08:00
Cody Xie
1c3bf032dd arm64: dts: rockchip: Add l2 cache topology for rk3308
Commit 5d425c1865 ("arm64: kernel: add support for cpu cache
information") adds cacheinfo support for ARM64. Since there's no
architectural way of detecting the cpus that share particular cache,
device tree can be used and the core cacheinfo already supports the
same.

This patch adds the l2 cache topology on RK3308 SoC based boards.

Change-Id: Iaa0ddb11d02ba9cd42aea59406e02160affd32bf
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2018-11-20 16:18:00 +08:00
Cody Xie
de5746740f ARM64: dts: rockchip: rk3308-evb-dmic-pdm-v11: Enable rk_timer_rtc
Change-Id: Ica312ae075cd81130a26ebe44f8d031f62d8fe48
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2018-11-20 14:26:37 +08:00
Cody Xie
3c62410331 ARM64: configs: rk3308_linux: Enable RTC_DRV_RK_TIMER
Change-Id: Id4eda9e9b00313bdb74580836c396a32cc4159d5
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2018-11-20 14:26:26 +08:00
Wang Panzhenzhuan
4883f31786 arm64: dts: rockchip: rk3399-sapphire-excavator-edp: distinguish isp relate nodes for Android 9.0 & 8.1
rk3399-sapphire-excavator-edp*:
isp0/1 for CameraHal1 in Android8.1 or lower version
rkisp1_0/1 & mipi_dphy_rx0/tx1rx1 for CameraHal3 in Android9.0

Change-Id: I6bae9306d22edaebc6aaf6a3f49129f26977e623
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
2018-11-20 14:24:12 +08:00
Shunqing Chen
fcf4c451bd power: rk816-battery: add POWER_SUPPLY_PROP_CHARGE_FULL for CTS.
Change-Id: Ibffd62eaafd42553f2b739bd5d2b9009ac705880
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
2018-11-20 09:21:57 +08:00
Jianqun Xu
fcd3db3988 arm64: dts: rockchip: sdmmc clk pin driver strength to 4mA for rk1808
According to signal test result, sdmmc 0/1 clk pin driver strength
need to be 4mA.

Change-Id: Ifbd0515bcebe19423c4b110392c8ff8307431a23
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2018-11-19 16:22:31 +08:00
Leo Wen
d51fdb016c media: i2c: Change the format to MEDIA_BUS_FMT_Y10_1X10 for the ov7251.
Change-Id: I72e1f6d0169fd676f46899e36b7ff15ca0946c1a
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2018-11-19 15:52:09 +08:00
Finley Xiao
db21313ab5 arm64: dts: rockchip: rk3399pro-npu-evb-v10: Modify vop-bw-dmc-freq
Make the default configuration support 2048x1536 panel.

Change-Id: Idbcb6628b5697a067b3fa08be082019a1ae011f2
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-11-19 09:32:55 +08:00
Hu Kejun
c95aac07a9 media: soc_camera: rockchip: add platform gpio initialization
Change-Id: I52adfa0fea44806754d8d825a04dd6358fb22381
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-11-17 17:45:30 +08:00
Wyon Bi
27a168dc32 drm/rockchip: lvds: optimized power on/off sequences
we can power off the bandgap to reduce power consumption.

Change-Id: I13be04116cce098e5a3606659a64bc4d96093b44
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-16 19:14:32 +08:00
Feng Mingli
7ecb69d8af usb: dwc2: keep phy power on if current mode is host during probe
The commit e6f2f6d63e ("usb: dwc2: power on/off phy for
otg mode") aimed to control phy power for otg mode, but
it also introduced a new problem, so we fix it.

This patch keep phy power on for otg if current mode is
host during dwc2 probe, otherwise the enumeration will
fail with the following error log:

Cannot enable. Maybe the USB cable is bad?
Cannot enable. Maybe the USB cable is bad?
attempt power cycle
Cannot enable. Maybe the USB cable is bad?
Cannot enable. Maybe the USB cable is bad?
unable to enumerate USB device

Fixes: e6f2f6d63e ("usb: dwc2: power on/off phy for otg mode")
Change-Id: I17a4cab6f0337fdc0923989aea8613bfbe1a9e9b
Signed-off-by: Feng Mingli <fml@rock-chips.com>
2018-11-16 19:11:00 +08:00
YouMin Chen
30362bd199 arm64: dts: rockchip: add rk1808 ddr relate node
Change-Id: I06c40f6c5e2832f79626c3438bed74fbb0551c86
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2018-11-16 15:36:06 +08:00
YouMin Chen
02747fd169 clk: rockchip: rk1808: fix SCLK_DDRCLK for dmc
Change-Id: Ib43c4aa3548609d35748fac23db7b5ec589d69dd
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2018-11-16 15:09:54 +08:00
YouMin Chen
90cf7903d4 PM / devfreq: rockchip_dmc: add support for rk1808
Change-Id: If6a5230f84f8ea293f3d6c84f7586dbff3a02230
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2018-11-16 15:09:32 +08:00
YouMin Chen
c475623bba dt-bindings: memory: add header to define DRAM for rk1808
Change-Id: I963b952d6b694d69b206ef76d09b89d742fb7936
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2018-11-16 14:54:39 +08:00
YouMin Chen
7c5197315c dt-bindings: devfreq: rockchip_dmc: Add rk1808 support
Change-Id: I38d5ab66f5d5345e05db42d16e46ed79973bb4fc
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2018-11-16 14:52:15 +08:00
Weixin Zhou
fd2d29a2ec arm64: dts: rockchip: rk3399pro-evb: fix deepsleep failed
Change-Id: Ibb3efedc073f73924a3c071ed9b5b34cf54eddc6
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
2018-11-16 10:57:36 +08:00
YouMin Chen
fa87c52fb6 PM / devfreq: rockchip-dfi: add support for rk1808 dfi
Change-Id: Id95eca244c666b103ce4f9676e2abbeb304196ac
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2018-11-16 10:08:05 +08:00
YouMin Chen
c5c5b7490b dt-bindings: devfreq: rockchip_dfi: Add rk1808 support
Change-Id: I8bd056dcc93f3c9c94b1b490340f8b040bb77d43
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2018-11-16 10:05:51 +08:00
Cai YiWei
0484eb3224 media: i2c: ov5695: set clk when power on
Prevention clk is changed by other sensor

Change-Id: I4249cfdc32f7250b8656b9d5787735370e63690d
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2018-11-15 17:40:27 +08:00
Sugar Zhang
8362db7ff4 ASoC: rockchip: multi_dais: add support for tdm slot set
Change-Id: I6867569d9dd9dd1a5137cded4f6aa21b802a53d7
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-11-15 17:40:00 +08:00
Cai YiWei
67de53da58 arm64: dts: rockchip: rk1808-evb: vdd1v5_dvp min to 1.2v
Change-Id: I82d9078dd82c78d4e6139bc15164e3ba70908d50
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2018-11-15 14:47:43 +08:00
Cai YiWei
ba37982efb arm64: dts: rockchip: rk1808: add cif iomux and grf to isp
Change-Id: I95f68b5151c76579a88d0ea743e97e55efad29af
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2018-11-15 14:47:05 +08:00
Andy Yan
094228aab4 ARM: config: rockchip_linux: enable DRM_DUMB_VGA_DAC
This enable VGA DAC Bridge support

Change-Id: Ic4795378ed2286de55907e1aa59b558ef493120c
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2018-11-15 14:45:07 +08:00
Andy Yan
3e561bb4f2 ARM: dts: rockchip: Add RGB to VGA bridge nodes for rk3288-popmetal
Change-Id: I1b9af225b718e9b4b29e2720128807ece8bb8fc7
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2018-11-15 14:45:07 +08:00
Wyon Bi
4865eb38b1 drm/rockchip: dsi: Add support for adapted command mode (Auto mode)
Three operating mode are available to convey the graphical data
to the display:
- Video mode streams over the high-speed link the RGB data and the
  associated synchronization signals directly generated by the LCDC.
  The streaming starts as soon as the DSI Host and the LCDC are enabled.
  This continuous refresh is the best way to interface with a display
  without Graphics RAM.
- APB command mode sends commands over the high-speed link for
  configuration as it is done using a legacy serial interface (SPI).
  The commands are launched using the DSI Host APB interface.
- Adapted command mode is the best way to interface with a display
  having its own internal Graphics RAM. The DSI Host captures only
  one full frame coming from the LCDC and transforms it into a series
  of write commands to update the display Graphics RAM.

Change-Id: Id2a9ccf71997f42126a3719bc349576013970158
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-15 14:25:37 +08:00
Wenlong Zhuang
7a93a3d8bf media: rockchip/cif: compatible with old dts config
Maybe not configure 'reg-names' property in dts file for px30/rk3128/rk3288.

Change-Id: I1f415baa51c13438237390794e8265e00bc29ee1
Signed-off-by: Wenlong Zhuang <daisen.zhuang@rock-chips.com>
2018-11-15 14:16:22 +08:00
Zhen Chen
e705e67167 MALI: utgard: RK: use '__GFP_ZERO | GFP_HIGHUSER' as 'flags' of alloc_page()
Just the same as in Midgard device driver.
This could resolve Defect #170228 and #184427 in RK redmine.

In addition, add err log for the case that alloc_page() returns NULL.

Change-Id: Ie1ddfae9429236900e4308e2cfecec2cd75a183a
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2018-11-15 14:14:07 +08:00
Finley Xiao
e9466ededd clk: rockchip: rk3308: Set max parent rate of dclk_vop_frac for rk3308b
The max parent rate of dclk_vop_frac is improved to 800MHz on rk3308b.

Change-Id: Ie36120ac7048fc4c983547539a6bce34d737529d
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-11-15 12:41:01 +08:00
Rimon Xu
f387fa8ab2 video: rockchip: vpu: soft reset only in chip rk3399 rk3328 rk3229
Fixes: d96ea9d580 ("video: rockchip: vpu: add soft reset for rkvdec")
Change-Id: I852309fbf9ee30a2a1dde8364b3535927e3b47e5
Signed-off-by: Rimon Xu <rimon.xu@rock-chips.com>
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2018-11-14 19:13:40 +08:00
kbuild test robot
774e76fa41 UPSTREAM: regulator: tps65132: fix platform_no_drv_owner.cocci warnings
drivers/regulator/tps65132-regulator.c:274:3-8: No need to set .owner here. The core will do it.

 Remove .owner field if calls are used which set it automatically

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Change-Id: Ib866380f61097209fb04421a8c8b4a105ee3111f
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(cherry picked from commit 43594dd453)
2018-11-14 10:44:30 +08:00
Axel Lin
34a769640e UPSTREAM: regulator: tps65132: Fix off-by-one for .max_register setting
TPS65132_REG_CONTROL(0xFF) is the latest valid register.

Change-Id: Iac34a8a9b011664c74ce593e10a93416e308a6a9
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(cherry picked from commit 5abca06c21)
2018-11-14 10:44:30 +08:00
Venkat Reddy Talla
0b2e1d8f68 UPSTREAM: regulator: tps65132: add device-tree binding
Add tps65132 regulator device-tree binding documentation

Change-Id: I176467cd3301e75b211ec76ae1af258ed2c7e33e
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(cherry picked from commit 682d33c65c)
2018-11-14 10:44:30 +08:00
Venkat Reddy Talla
0b0e3ac49b UPSTREAM: regulator: tps65132: add regulator driver for TI TPS65132
Add regulator driver for the device TI TPS65132 which is single
inductor - dual output power supply device. TPS65132 device is
designed to support general positive/negative driven applications
like TFT display panels.

TPS65132 regulator driver supports to enable/disable and set voltage
on its output.

Change-Id: Ia3b6fac8a596657635c1e45e7feb7b99dc25acd3
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(cherry picked from commit 77c129bfef)
2018-11-14 10:44:30 +08:00
Finley Xiao
0f77f53e39 soc: rockchip: Add a simple power model for ipa
This patch adds support to calculate the static power in milliwatts
consumed by devices.

Change-Id: Ied4ba5adecea45ff34b372a6e23c70882000aef3
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-11-14 10:14:15 +08:00
Finley Xiao
28041002fa arm64: rk3399pro_npu_defconfig: Enable CONFIG_CPU_FREQ
Change-Id: I5ab466805fe38dcc9bdda51dbc6e43a4d133bd81
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-11-14 10:11:29 +08:00
Elaine Zhang
7e53b6bd19 arm64: dts: rockchip: rk3399pro-npu: fix up the pd_pcie qos node
add usb2 and usb3 qos node,
set qos_pcie\qos_usb2\qos_usb3 status = "disabled" by default.

Change-Id: I20653cc485c4c923b3b89af8e801634f4d7447a3
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-11-14 10:11:08 +08:00
Wyon Bi
35ccc8e0d0 drm/rockchip: dsi: ignore return value of drm_panel_attach()
drm_panel_attach() return EBUSY if panel->connector already set,
which indicate that panel and connector are already bound.
Because the .bind() function might call multiple times, so it is
unnecessary to check its return value.

Change-Id: I45e82983dc177825561ff4796e585dafe0f7c201
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-14 09:49:00 +08:00
Leo Wen
24cdff3a69 media: soc_camera: add ov9281 sensor driver
Change-Id: Iba0f767497584099b72e36c78b133e70ecdc28c0
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2018-11-13 14:28:22 +08:00
Finley Xiao
2c1523262b arm64: dts: rockchip: Add thermal thermal zone node for rk1808
Change-Id: Ie42fcef7d94829aeb056ac1ead3d5885fc1a30f8
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-11-13 14:22:13 +08:00
Finley Xiao
98a2fcd217 arm64: dts: rockchip: rk1808: Add #cooling-cells to npu node
Change-Id: Ia6fa02863f93d460c0c7d29e7601e97f3bd5dfea
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-11-13 14:21:56 +08:00
Finley Xiao
0473ddf3aa arm64: dts: rockchip: rk1808: Add power-model for npu
Change-Id: I1dfca356a128b43a7790efebb34d731ce443326b
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-11-13 14:21:37 +08:00
Finley Xiao
76c3105d7d arm64: dts: rockchip: rk1808: Add #cooling-cells to CPU node
Change-Id: I75e6312f7da7d6dbded29430f7479bdd6a790bfc
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-11-13 14:21:19 +08:00
Finley Xiao
aadce26622 arm64: dts: rockchip: rk1808: Add dynamic-power-coefficient for cpu
The average value of dynamic-power-coefficient is about 74.

Change-Id: I71906da6bd024022b4b64c4dd4fb9f03182fd4e8
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-11-13 14:21:05 +08:00
jon.lin
ae097f242d ARM: dts: rk312x: sfc frequency reduction
1.It is found that some SPI Nand device run abnormal at 100M frequency in
rk3128 gameplay project

Change-Id: I78f78c7ea5eea5d294d2a195bc68141283c515f3
Signed-off-by: jon.lin <jon.lin@rock-chips.com>
2018-11-13 14:08:09 +08:00
Finley Xiao
fddf48f50a arm64: dts: rockchip: rk3399pro-npu: Add opp table for cpu
Change-Id: Ic74db2d368b0b84ce8a2c8ed79d3084d89dc74da
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-11-13 14:07:15 +08:00