Commit Graph

608940 Commits

Author SHA1 Message Date
Finley Xiao
f422b3370a clk: rockchip: px30: Set max parent rate for pdm fractional divider
Change-Id: I4a2fc90070d380fed280494784f46005f2b5b18d
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-05-14 10:28:58 +08:00
Sugar Zhang
9019a912de arm64: dts: rockchip: px30: add reset control for i2s0_8ch
Change-Id: I6fb0224f36ade0701c3c0561b996cfdf99379030
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-05-14 10:27:59 +08:00
CanYang He
18bd7e66b7 arm64: dts: rockchip: rk3399 lpddr4 dts add center-supply
rk3399-evb-rev3-android-lp4.dts add center-supply, otherwise customer
follow this dts file may leave out it. and cause
rockchip_dmcfreq_probe() fail, then lpddr4 lose scale frequency function
and cannot find /sys/class/devfreq/dmc

Change-Id: I05f36a80fd5f95e29f1083f956a799149e88b1f3
Signed-off-by: CanYang He <hcy@rock-chips.com>
2018-05-14 10:26:33 +08:00
Wyon Bi
537d489142 arm: dts: rockchip: specify a 'bpc' property for the 6bit edp panel
Change-Id: I0a266015a1e62f10a181c9a66088335cae44ee05
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-05-11 14:48:41 +08:00
Wyon Bi
c04b581894 arm64: dts: rockchip: specify a 'bpc' property for the 6bit edp panel
Change-Id: Ifdd366eb9c2566f5b9b402a7041af539a5460944
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-05-11 14:48:41 +08:00
Zhen Chen
98d4505e1b arm64: dts: rockchip: modify 'gpu_power_model' for Midgard DDK r18 on rk3399
The values of the coefficients are the ones in px30.dtsi,
according to Rocky Hao.

Change-Id: I1843b999a3b93fd5791e556db8733596c75ef8ac
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2018-05-11 14:45:47 +08:00
Joseph Chen
b053b22930 arm64: dts: rockchip: rk3308: add rockchip_suspend node
Change-Id: Ib3a2d78da9a1c6a093b1c49c6393f098b2e03a8a
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-05-11 14:44:53 +08:00
Joseph Chen
418ecc848d soc: rockchip: support rk3308 pm config
Change-Id: Icf51062e9c1ce27244c8a3744b61a5baab7e7024
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-05-11 14:44:53 +08:00
Sugar Zhang
1363f914b1 arm64: dts: rockchip: px30: add reset control for pdm
Change-Id: I7381a0436f0946efd8662218b1ef795bac3b048c
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-05-11 14:42:43 +08:00
Sugar Zhang
aca2ab632c arm64: dts: rockchip: rk3308: add reset control for pdm
Change-Id: I9c35dff559f15486c9d41a978b78b53473c028a9
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-05-11 14:41:39 +08:00
Sugar Zhang
98de205efe ASoC: rockchip: pdm: fixup pdm fractional div
Change-Id: I4fa9172e5738f03ad5050965db23f9a72abf7bae
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-05-11 14:41:25 +08:00
Sugar Zhang
dfb335eac4 arm64: dts: rockchip: rk3399-evb-rev3-android-lp4: enable rockchip,force-iram
Change-Id: I41a4eff53fd2ad8ec4f4e62b6c877e088e68a6da
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-05-11 14:28:55 +08:00
Sugar Zhang
57fae85633 ASoC: rockchip: add support for "rockchip,force-iram"
This patch handle the force-iram function by devicetree.

Change-Id: I95fe96091c560507a37cd0833cf2507e4d2bc636
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-05-11 14:28:55 +08:00
Xing Zheng
8ed5fc3749 ASoC: rk3308_codec: fix both of LINEOUT and HPOUT output
Change-Id: I6967ccd8bbf4117e8e6ac83ecfd145b4eae1b117
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-05-11 14:13:22 +08:00
Xing Zheng
ae1fccebe1 ASoC: rk3308_codec: add supports switch the DAC path directly
For now, many users would like to switch to HPOUT or
LINEOUT when the headphone plugged or unplugged, we
need to switch path directly.

Change-Id: I7e81396ac42519b1101a8c8757069ac0d8bc65ea
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-05-11 14:12:44 +08:00
Xing Zheng
941cc5cb98 ASoC: rk3308_codec: fix the missing 20us between DAC step 7 and 8
Change-Id: I7e0545d7166c56e57b8c632e701f2c66ac841a6b
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-05-11 09:32:18 +08:00
Sugar Zhang
9d42663346 arm64: configs: rockchip_defconfig: enable multicodecs and dummy codec
Change-Id: Ie37468ec3f9350115f6eacabd900478df3560986
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-05-11 09:30:00 +08:00
Finley Xiao
ee63aafed5 clk: rockchip: rk3308: Change apll to boost pll
Change-Id: I34d445e65181e09a3069b48059ef7283f01c194f
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-05-11 09:20:28 +08:00
Finley Xiao
2e21f345c3 clk: rockchip: Add a boost summary tree in debugfs
Change-Id: I19544927e4535f8d6e6fe9cfbfa75c2dbb95cf03
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-05-11 09:20:28 +08:00
Finley Xiao
493fd66ce2 arm64: dts: rockchip: rk3308: Add cpu boost device node
Change-Id: Id218fce81d87c103d9b3d4650f66633c6855a26e
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-05-11 09:20:28 +08:00
Finley Xiao
fb208ef145 arm64: dts: rockchip: px30: Add cpu boost device node
Change-Id: I3b7e37238fad55e7d300f47db937d20a177fe894
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-05-11 09:20:28 +08:00
Finley Xiao
e04294acdf clk: rockchip: Remove pll_px30 pll type
Change-Id: I96068286edc8e79aa1150553fed16b42b446fc3f
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-05-11 09:20:28 +08:00
Finley Xiao
eb715d2b4e clk: rockchip: Separate boost address from cru
Change-Id: I3e632b7f6769568ade18aad2fa000bc3f6ff8c2f
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-05-11 09:20:28 +08:00
Finley Xiao
8a838cde7c clk: rockchip: Add support to configurate boost for pll clock
Change-Id: I15841da7266b1b0fbc3407f0c23608c99209fb11
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-05-11 09:20:28 +08:00
Wyon Bi
230f7f0610 drm/bridge: Add support for Lontium LT8912
The Lontium LT8912 MIPI-DSI to LVDS and HDMI/MHL bridge features a
single-channel MIPI D-PHY receiver front-end configuration with 4 data
lanes per channel operating at 1.5Gbps per data lane and a maximum
input bandwidth of 6Gbps.

Change-Id: I7733ea5f33094151bb62e62406561cc0025cf900
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-05-10 18:24:26 +08:00
Wyon Bi
95f103b0f1 drm/rockchip: dsi: support external bridge
Change-Id: Ie1abd3fb50c5202607b080d0197bed1f93094931
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-05-10 18:24:26 +08:00
Zorro Liu
076ac2c0e8 arm: dts: rockchip: modify vcca_codec vccio_sd vcc_sd voltage in suspend of rk3288-evb-android-rk808-edp board
Change-Id: Ie26229080c6b9a787962d1dcbf0d060bd8a33555
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2018-05-10 18:23:30 +08:00
Lukasz Luba
f3cbd5a1bb UPSTREAM: devfreq_cooling: make the structs devfreq_cooling_xxx visible for all
Currently the protection #ifdef CONFIG_DEVFREQ_THERMAL cuts the needed
structures devfreq_cooling_ops and devfreq_cooling_device.
The functions which are supposed to provide the empty implementation complain
about unknown structures.
Similar solution is present in include/linux/devfreq.h.

Change-Id: I4ed7161734944799443fd43c56394e62eb3c499f
Reviewed-by: Ørjan Eide <orjan.eide@arm.com>
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 1cea4e7776)
2018-05-10 15:56:41 +08:00
Xing Zheng
5e52d77889 ASoC: rockchip: multicodecs: fix the missing return 0 at hw_param
Here the -ENOTSUPP is not an error if there is no set_sysclk
implement in codec_dai and cpu_dai, we need to return 0 that
it's correct.

Change-Id: I969e3eacba39ac8d6c94ddcc27c60cc110d66156
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-05-10 14:03:48 +08:00
Bin Yang
a43e4e60c8 arm64: dts: rockchip: gpu vd always on for rk3399 mid board
Add the 'regulator-always-on' property for vdd_gpu on rk3399-tve1030g/
rk3399-tve1205g/rk3399-mid-818-android

Change-Id: I22938c7041bc56b53983447a00e83144411b4cca
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
2018-05-10 10:45:15 +08:00
Xing Zheng
4ea2cc2a65 ASoC: rk3308_codec: clear ADC/DAC digital registers before configuration
We need to clear previous residual configuration for
ADC/DAC digital registers before enable them, otherwise,
the acodec maybe abnormal.

Change-Id: I2eeb6ccf1508cf10d214d97c29273d70d16f3417
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-05-10 10:39:54 +08:00
Andy Yan
97802925c1 power: wakeup_reason: show total wfi time in suspend get via smcc
Show a accumulation of wfi time of every suspend sate
since system bootup:

$ cat /sys/kernel/wakeup_reasons/total_suspend_wfi_time

Change-Id: I2856faabe2e883a7120931ed49bc0c4f0776600d
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2018-05-09 20:24:39 +08:00
Finley Xiao
a1c6b16f07 clk: rockchip: rk3308: Set max parent rate for fractional divider
Change-Id: I90af3fad0689b65d25c328c001163882a5198ac3
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-05-09 18:30:46 +08:00
Huibin Hong
a1a5dd3f0e serial: 8250: modify warning log about dma request fail
Change-Id: Ib26ef05bb04542ff8d4527a8e7a79cae4dcaa31d
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2018-05-09 18:29:03 +08:00
Joseph Chen
1024a16839 firmware: rockchip: add sip_smc_get_suspend_info()
Change-Id: I976984c571ee7938d74129e99560c4c1505a7299
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-05-09 18:27:42 +08:00
Sandy Huang
2903fe52c7 drm/rockchip: fix mistake for disable_vblank
Change-Id: Ib3b4bef2122a472289be347dc64f91ce32d65fb6
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-05-09 17:23:21 +08:00
Huibin Hong
b67987fa85 serial: 8250: set fifo rx trigger 1/2 of fifo
To reduce the uart interrupts, which may cause:

serial8250: too much work for irq xx

Change-Id: I89e0d990677e4cffae431e60521b3e16e8381f05
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2018-05-09 16:39:55 +08:00
Tony Xie
9c1bdbf2af arm64: dts: rockchip: Set pmic-reset-func to 1 for px30 and rk3326
config reset registers only for rk817 and rk809.

Change-Id: I761fdc891b24812de43251538b1c2af8b7c92d68
Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
2018-05-09 16:39:50 +08:00
Elaine Zhang
8bc905863a clk: rockchip: rk3288: add the condition of the call register_syscore_ops
The pwm clk parent is GPLL,PWM clk not allowed to change freq,
so the GPLL not allowed change mode and freq  when pwm is used.
If have trust is need't rk3288_clk_suspend and rk3288_clk_resume.

Change-Id: I4845fda89d7ae7713e8c0e94747c3f4dfd140c6a
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-05-09 14:09:55 +08:00
Wyon Bi
d046d136f2 drm/panel: simple-panel: get bpc from DT when available
Change-Id: I04eb7af19f30383132c3bc465a8b6589f7e99592
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-05-09 11:12:23 +08:00
Putin Lee
7c1beeafdf video/rockchip: rga2: Fixup warning "-Wmissing-prototypes"
Change-Id: I504d8615a8dae1f3b348c11ee1c0018d9c4d4e41
Signed-off-by: Putin Lee <putin.li@rock-chips.com>
2018-05-09 11:06:54 +08:00
Elaine Zhang
11094e35c3 regulator: rk808: fix up the set voltage overshoot of Buck1/2
modify the rk808 max steps for increase voltage of Buck1/2,
equal 25mv.

Change-Id: Ic6c016e99ce67f5773d5f5df0b65fa1de10f557a
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-05-09 10:01:40 +08:00
XiaoDong Huang
193ebe85ae arm64: dts: rockchip: rk3308: add CPU_SLEEP
Change-Id: I99c4209bdac9fbc9af33fa883b796852d0c41e40
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2018-05-09 09:29:19 +08:00
Xing Zheng
fefcebe591 ASoC: rk3308_codec: put more delay in enable DAC steps
There is still the issue that loud and small on some
EVBs. For mass production consistency, we need to
increase and put more delay in enable DAC steps.

The suggest from vendor, we need to use 50 us instead
of 20 us for the key step 2 and step 4, insert 20 us
in other every steps.

Therefore, the total delay in enable DAC is about:
50 * 2 + 20 * 16 = 420us
It looks okay.

Change-Id: Ibc02930271a8a21bc279ee4323e66852f2d58086
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-05-09 09:28:00 +08:00
Finley Xiao
40a9912f2f arm64: dts: rockchip: px30: Assign sclk_gpu to 200MHz
Change-Id: If6c6ef0a739e681564e7702f327f563c0745c89a
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-05-09 09:25:52 +08:00
Finley Xiao
716dd4d54e video: rockchip: Ensure that set voltage when update devfreq for the first time
Sometimes the regulator is shared between several devices, if target rate
and target voltage are equal to initial rate and iniital voltage , the
min_uV and max_uV of regulator will be always equal to zero, other devices
may set a low voltage.

Change-Id: I561971844296ffcada823d741710aba808167e3f
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-05-09 09:25:24 +08:00
Finley Xiao
5d88f40f5a MALI: rockchip: Ensure that set voltage when update devfreq for the first time
Sometimes the regulator is shared between several devices, if target rate
and target voltage are equal to initial rate and iniital voltage , the
min_uV and max_uV of regulator will be always equal to zero, other devices
may set a low voltage.

Change-Id: Ibf82f335ce0739776286e3733be5415f84bf035b
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-05-09 09:25:07 +08:00
Finley Xiao
211ccb244c PM / devfreq: rockchip_dmc: Fix low voltage when probe
If initial rate is greater than opp rate and initial voltage isn't qeual
to opp volatge, the opp voltage may too low for initial rate, so it's
inappropriate to update voltage when initial voltage isn't qeual to
opp volatge.

In order to solve this problem and consider that the regulator is shared
between several devices on some platforms, make the following two changes.

If the driver doesn't support to change frequency, the opp table should
contain an opp whose rate is geater than or equal to initial rate, so that
the voltage is enough for initial rate and the min_uV and max_uV of
regulator aren't equal to zero after update voltage.

If the driver supports to change frequency, let devfreq framework update
rate and voltage.

Change-Id: I4004f55f2cfd3b87f734844a0cdf8e9619d785d2
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-05-09 09:25:00 +08:00
Bin Yang
d574809aed arm64: dts: rockchip: modify pmu_io_domains for rk3399-tve1030g
pmu_io_domains voltage is 1.8V for rk3399-tve1030g board

Change-Id: Iffba406ca1e88f346fc9e436b7b4ea4878b19e92
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
2018-05-09 09:22:50 +08:00
Nickey Yang
a095d204d9 arm: rockchip_linux_defconfig: enable ov13850
Enable ov13850 sensor on rk3288-evb-rk808-linux

Change-Id: Ie1ca04280eefbc26f99b4ec71ee2b1a77159e594
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
2018-05-08 17:29:10 +08:00