Commit Graph

613676 Commits

Author SHA1 Message Date
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
Finley Xiao
e74aaf0711 arm64: dts: rockchip: rk3399pro-npu: Add opp table for npu
Change-Id: I5c301c2323c245300d97868b3ddfdeb27d0220cb
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-11-13 14:06:52 +08:00
Chanwoo Choi
ba65f38c4d UPSTREAM: PM / devfreq: Add dependency on PM_OPP
The devfreq ues the OPP library to handle the voltage and frequency
for the device basically. This patch adds the dependency on CONFIG_PM_OPP
in order to prevent either the build break or the unknow behavior.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>

Change-Id: I06946f5a40266c0e1facc228bdac75390bc46434
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
(cherry picked from commit b9c69e0432)
2018-11-13 14:02:49 +08:00
Xing Zheng
a422ab1cb2 ASoC: rk3308_codec: reset HPMIX and recover their gains
Change-Id: I25b50b8bfe8255e2bf99124334323845a1a24705
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-11-13 10:09:08 +08:00
Dingqiang Lin
ff3e42464c ARM: dts: rk312x: add sfc node
Change-Id: I094e617586098ff7ed96c3fa3c4c3a32c8a8a0b7
Signed-off-by: Dingqiang Lin <jon.lin@rock-chips.com>
2018-11-12 20:40:03 +08:00
jon.lin
f328190c22 drivers: rkflash: dump ret when flash init failed
Change-Id: Id27b92c1b4b91541c1b1766eb8e886be8b963e47
Signed-off-by: jon.lin <jon.lin@rock-chips.com>
2018-11-12 19:44:00 +08:00
Shawn Lin
a04fbe7f3f phy: rockchip-inno-combphy: Remove releasing rst grant from PCIe init
The PCIe controller driver will take over to control this, as it need
more action after link up.

Change-Id: Ie9a690d1addf48855d385162d0d8ba4d0054c544
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2018-11-12 19:30:20 +08:00
Shawn Lin
547144b403 arm64: dts: rockchip: rk1808: Add missing num-lanes
Change-Id: I2eb37320c964fb031a6809f4bae30c69d356d4bc
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2018-11-12 19:28:47 +08:00
Xing Zheng
0783290efe ALSA: aloop: fix clear capture buf at wrong time
We need to use uniform current jiffies to avoid
the delta_capt too fast and the playback data is
cleared.

Change-Id: I15e46a3857d76ca37b01a4af4c4d331ec41febfc
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-11-12 19:23:47 +08:00
Leo Wen
95ed103ede media: i2c: add support for omnivision's ov7725 sensor
Change-Id: I8cac9ff7d40ce01f270e92f78c0f5bb8f7e8d08b
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2018-11-12 14:25:48 +08:00
Leo Wen
f67808f0c1 [media]: dt/bindings: Add bindings for OV7725
Add device tree binding documentation for the OV7725 sensor.

Change-Id: I9a804ba72b1e37b817fbc88dcb1cb44afd155882
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2018-11-12 14:25:48 +08:00
Leo Wen
d7a432f93f media: i2c: add support for omnivision's ov7251 sensor
Change-Id: I8133a2892510f7eb1362f9a9691629b610daf651
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2018-11-12 14:25:48 +08:00
Leo Wen
6b591ac2d2 [media]: dt/bindings: Add bindings for OV7251
Add device tree binding documentation for the OV7251 sensor.

Change-Id: I39774f9018483f768d7dc18207d2f5b2d5a41eef
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2018-11-12 14:25:48 +08:00
Leo Wen
dc191feaf3 media: i2c: add support for omnivision's ov7750 sensor
Change-Id: I223657f429b8d7b503bd3e0c9b1e9e4127e7b423
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2018-11-12 14:25:48 +08:00
Leo Wen
fe416e0541 [media]: dt/bindings: Add bindings for OV7750
Add device tree binding documentation for the OV7750 sensor.

Change-Id: I48acb7fbd0b5537bd16e579fd6edd91777bd64f0
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2018-11-12 14:25:48 +08:00
Leo Wen
d04e44fd89 media: i2c: add support for omnivision's ov2735 sensor
Change-Id: I1a76b48bf934ed40a05d92da3adaa18c6512b2e2
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2018-11-12 14:25:48 +08:00
Leo Wen
9239fb802e [media]: dt/bindings: Add bindings for OV2735
Add device tree binding documentation for the OV2735 sensor.

Change-Id: Ieab6251eefba56141026be56c6b1c7a71551a6ea
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2018-11-12 14:25:48 +08:00
Shawn Lin
38dd956057 arm64: dts: rockchip: rk1808: Add usb_pcie_grf to pcie0 node
The PCIe driver need configure some bits after passing link
trainning, which belongs to the controller driver part but
can not make use of PHY API.

Change-Id: I8c3d5f8a25de6184bee572c7c954c9f3d9df20c2
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2018-11-12 11:12:47 +08:00
Yifeng Zhao
fe3b47bd58 drivers: rk_nand: zftl: fix spectek nand flash read error data issue
fix bug:
[    4.739135] id=24, lpa = 2866c, ppa = aa8f8 spare = 2aa4b 2866b ffffffff 0
[    4.739166] ftl_sblk_dump = 2aa 2 1 1 0
[    4.739176] ftl_sblk_dump = 2aa 2 1 2
[    4.739779] blk= 554, page=0, ppa = aa800, status = 1, data:b00edcd 48e6e14d 4ae749e6 4478a3dd, spare: 2a85d 284e0 ffffffff 0
[    4.740372] blk= 555, page=0, ppa = aaa00, status = 2, data:b00edcd 48e6e14d 4ae749e6 4478a3dd, spare: 2a85e 284e0 aa800 0

Change-Id: Id992fcec771368d2809fd5bb0ecf2448a9d064f1
Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
2018-11-12 10:47:02 +08:00
Nickey Yang
200ac31b90 regulator: act8865: make pm_power_off can be defined.
change to use act8865_power_off instead of psci_sys_poweroff
if the property "system-power-controller" is set.

Change-Id: Ie3a46255419488063b57b2829da2ae8f15f014ae
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
2018-11-12 08:47:58 +08:00
David Wu
d6ca92dc82 ARM: dts: Add bootargs for rk3036-kylin
Add console and UUID in the bootargs.

Change-Id: I69827656752725ac9a0d39d36833f23bf36cab28
Signed-off-by: David Wu <david.wu@rock-chips.com>
2018-11-12 08:34:33 +08:00
David Wu
f088f23ce9 ARM: dts: Remove unused fiq-debugger's property for rk3036-echo
Change-Id: Ief6fbd0840f1122c46ace3672f64908a2f660d99
Signed-off-by: David Wu <david.wu@rock-chips.com>
2018-11-12 08:34:33 +08:00
David Wu
aa1650e179 ARM: dts: Add fiq-debugger support for rk3036-kylin
Change-Id: I2808a8e8a82e5ca31624436d876c5f0a9abdb957
Signed-off-by: David Wu <david.wu@rock-chips.com>
2018-11-12 08:34:33 +08:00
Shawn Lin
ff94067974 arm64: dts: rockchip: Add PCIe node for rk1808 evb
Add PCIe node for rk1808 evb. If actviating PCIe, we
should set usbdrd_dwc3 as disabled.

Change-Id: I807e16d7950cbf76ceb07053c12905ee4566bdaa
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2018-11-08 08:48:31 +08:00
Weixin Zhou
328239e125 arm64: dts: rockchip: rk3399pro-evb: remove rk_key node
Change-Id: I1886083bf1946257830b9914f2eb85c029a465c7
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
2018-11-07 19:23:42 +08:00
Shunqing Chen
fe62614c47 Revert "arm64: dts: rockchip: rk3399pro-evb: enable bq25703"
This reverts commit 7e9c1889d8.

The rk3399pro evb has no battery.

Change-Id: I6d5bc6f17c3335923e34e8d05f2dc1a563b09b00
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
2018-11-07 19:23:25 +08:00
Lin Huang
0c0ec4d4e7 arm64: rk1808_linux_defconfig: enable RTC_DRV_RK808
Change-Id: Ic44c4df3104cde76c47d14f9fb2c5ccfede43c49
Signed-off-by: Lin Huang <hl@rock-chips.com>
2018-11-07 19:17:05 +08:00
Lin Huang
ff7c943b3a arm64: dts: rockchip: rk1808-evb: enable rtc
Change-Id: I719be7fec64312c214d3a2717c3d170d15c70eee
Signed-off-by: Lin Huang <hl@rock-chips.com>
2018-11-07 19:17:05 +08:00
Lin Jianhua
668bafd2e4 arm: dts: rockchip: add rk3308b amic v10
Change-Id: I506b9231859c8837a95c7eb5b2f55759ba204f66
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2018-11-07 19:16:09 +08:00