Commit Graph

609139 Commits

Author SHA1 Message Date
XiaoDong Huang
a487158ec0 arm64: dts: rockchip: px30: disable bus0 auto div
Change-Id: Ie96ad61d3069c8045b26c08f336e63c2d4f68fef
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2018-06-01 16:01:42 +08:00
Elaine Zhang
0ac3e9a00b clk: rockchip: rk3288: fix up the 594M pll vco
Modify VCO within safe limits(600M-3200M).

Change-Id: I76b69091ee1ff9a0d88f17a1e4dabda6e267caad
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-06-01 15:49:59 +08:00
Rocky Hao
24d10acefc thermal: rockchip: tune tsadc parameter of temperature prediction
init temp_last with a more suitable value. also we eliminate
the steady state error by ajusting the temp calc fomular.
extra useful log is added to mark tsadc is probed successfully.

Change-Id: If88031c10646437fa7b5152c70aeaebf93e4df05
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
2018-06-01 14:36:32 +08:00
Sugar Zhang
f113aefebc ASoC: rockchip: multi_dais_pcm: prepare dma cyclic buffer
This patch prepare dma cyclic with total buffersize,
and let the dmaengine to handle the interlace buffer.

Change-Id: Ic0ee647e006c72c7eedc77a30d1e2d0eb902f120
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-06-01 11:16:50 +08:00
Sugar Zhang
191583d95b dmaengine: pl330: add support for interlace cyclic xfer
Change-Id: I7336afd2f7c1c501e275cff3e78326111277e2bd
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-06-01 11:16:50 +08:00
Tao Huang
e64bab1c12 mfd: rk818: remove unused rk818 driver
Change-Id: I4390e73f0e4ab6e723ed3a44e93e891204044d85
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-06-01 11:05:38 +08:00
XiaoDong Huang
08f918733a Revert "arm64: dts: rockchip: px30: disable cpu CLUSTER_SLEEP"
This reverts commit 3a13a2ae52.

Change-Id: I2e02f350ffb9b1b39cd21786b3683622729b2ec8
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2018-06-01 10:01:46 +08:00
Huang jianzhi
94b431d697 arm64: dts: rk3328-box-liantong: fixed otg vbus gpio
Change-Id: I40c6b200fb6edf26e651cec697dbd26e24dbba9e
Signed-off-by: Huang jianzhi <jesse.huang@rock-chips.com>
2018-05-31 21:07:35 +08:00
Xing Zheng
41d67a9e2c arm64: dts: rockchip: add rockchip,adc-grps for RK3308 EVB
By default, we enable all of ADC groups on RK3308 EVB.

Change-Id: Id89adab1c7d9cde22fb4ac3d5dcd3b18a8a96da3
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-05-31 20:50:49 +08:00
xiaoyao
ef8edc4005 net: wifi: cypress: fix some issues
1: remove chipvendor id
  2: disable auto sleep
  3: add rockchip_wifi_get_oob_irq_flag

Change-Id: I28161c12ebd6e625815d09a0b670a923eda475d9
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
2018-05-31 18:40:30 +08:00
Huang jianzhi
c416f3aa48 arm64: dts: rk3328-box-liantong: add rtc fake node
Change-Id: If84707460ef0c9b89b62aa89a9213682480d3584
Signed-off-by: Huang jianzhi <jesse.huang@rock-chips.com>
2018-05-31 15:41:32 +08:00
Xing Zheng
6fd65382b4 ASoC: rk3308_codec: add rockchip,adc-grps-route property
Change-Id: Ib59fa2c8693fec5ac006523a2aec36300b34b401
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-05-31 15:07:30 +08:00
Xing Zheng
1b5d8861ab ASoC: rk3308_codec: add supports ADC groups route mapping
There are 3 I2S that can be connected to aocdec on RK3308:
- i2s2_8ch
- i2s3_4ch
- i2s1_2ch

We can change the order of i2s sdis to meet different
customized requirements.

Change-Id: I62b2e953ea76e71590bcd4244883b391a9bec345
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-05-31 14:54:51 +08:00
Xing Zheng
62ef9e37df ASoC: rk3308_codec: add rockchip,adc-grps property
Change-Id: I646ad745f5891a93a172ad17925c5b1d5177dad9
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-05-31 14:54:51 +08:00
Xing Zheng
1796c149f5 ASoC: rk3308_codec: add supports assign ADC groups
This patch supports ADC groups for assignments that
need to be used, we don't need to enable all of ADC
channels, so that the runtime power consumption
will also be improved.

By the way, clean up the useless structure members
and source codes.

Change-Id: I7c559543eb9344f0022ce99a6938114084ac17db
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-05-31 14:54:51 +08:00
Finley Xiao
3c460646d5 PM / devfreq: rockchip_bus: Add support for rk3288, rk3368 and rk3399
Change-Id: I920e220b406f9cfa8d34359465fed4683e3a4eae
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-05-31 14:17:29 +08:00
Finley Xiao
618d89da2b arm64: dts: rockchip: Enable bus_apll node for px30/rk3326
Change-Id: I5b94d18f61daf92414ee5da666674576d6dc0c4d
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-05-31 14:17:29 +08:00
Finley Xiao
9c4e21b035 PM / devfreq: rockchip_bus: Add clkfreq and cpufreq policy
Change-Id: Ibba74a5d6bc4326155b628c8d4238fed93c44b14
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-05-31 14:17:29 +08:00
Finley Xiao
0b318ea183 arm64: dts: rockchip: px30: Add bus_apll device node
Change-Id: I6f2ea99e58069962bd04461b959d208c8453f42b
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-05-31 14:17:29 +08:00
Xing Zheng
f0b53eb6a4 arm64: dts: rockchip: remove #sound-dai-cells for RK3308 EVB acodec
The RK3308 codec is attached with multi-codec machine
driver, not simple-card, so we don't need use the
property #sound-dai-cells any more.

Change-Id: Ie1afdc6bf2820efbb0054ea5e6d91d9c9025351e
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-05-31 14:14:35 +08:00
David Wu
979e825fe8 pwm: pwm-rockchip-i2s: Add the PWM driver for rockchip i2s controller
Make the i2s controller to implement the PWM continuous mode, use
I2S's Left/right two channel, each channel is only 32bits, so the
precision of duty percent is 1/64.

Change-Id: Ie134d964cdf33573e918b2f79cc8e53118f50a1e
Signed-off-by: David Wu <david.wu@rock-chips.com>
2018-05-31 12:56:22 +08:00
Sugar Zhang
da58eea77a arm64: configs: rk3308_linux_defconfig: enable multi-dais
Change-Id: I1a1b2f2b4079646f20a2fbf9e915ac397fb1b846
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-05-31 10:38:51 +08:00
Sugar Zhang
8dc69247be ASoC: rockchip: add support for multi-dais driver
This patch add support for combine several audio digital interface
into a mix-dai, for example, we can combine two 8ch i2s into a 16ch dai.
or combine 6ch pdm and 2ch i2s into a 8ch dai.

Change-Id: I4e920c0cdf9c8d954c12b48938a48926cfe403b0
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-05-31 10:38:51 +08:00
Sugar Zhang
ddd2e87ad4 dmaengine: pl330: add support for interlace size config
Change-Id: Ia1008d689591f80ee2b3c08e1596b83ccd762f63
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-05-31 10:38:51 +08:00
Huang jianzhi
9d1e605ec4 arm: rockchip_defconfig: add fake rtc
Change-Id: I4b6bb5ad61de71a5d7efc7d58ef5b6f478a40d2c
Signed-off-by: Huang jianzhi <jesse.huang@rock-chips.com>
2018-05-31 10:30:54 +08:00
Huang jianzhi
a273cc6746 arm64: rockchip_defconfig: add fake rtc
Change-Id: I8dff1ae3e033f3123ea078fb9d5611680aa4eab6
Signed-off-by: Huang jianzhi <jesse.huang@rock-chips.com>
2018-05-31 10:30:54 +08:00
Huang jianzhi
7160f0aed7 rtc: rtc-fake: add fake rtc driver
Change-Id: Ia06db4f5d967338c3f74fed9d35d2cd05209d746
Signed-off-by: Huang jianzhi <jesse.huang@rock-chips.com>
2018-05-31 10:30:54 +08:00
Binyuan Lan
b62b2da7bd ASoC: rockchip: rk817-codec: fixup spk-volume and pdm bug
Change-Id: Idd7ac0b0a12c75d8c43a57d8c8f9ecfccd399894
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
2018-05-31 10:06:32 +08:00
Algea Cao
af008c375a drm/rockchip: dw-hdmi: Set 4K x 2k 60Hz/50Hz color to YUV420 if tmdsclk over the limit
When 4K x 2k 60Hz/50Hz tmds clock is above the max tmds clock, setting its
color to YUV420. A few TV edid declare that they can't support
4K x 2k 60Hz/50Hz YUV420, we still set color to YUV420 or 4K x 2k 60Hz/50Hz
tmds clock will over the limit.

Change-Id: Id57c9313ab52973927c578d0eb2a7b1b30cb9ec1
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2018-05-31 09:13:53 +08:00
Tao Huang
374318f000 ARM: rockchip: Locate kernel add 0x00058000 if CPU_RK3308
128+64KB at the beginning of RAM reserved for ATF.
128KB for pstore.

Change-Id: I1306daec44c65258ff6668f6760be4981d7ca932
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-05-30 19:44:51 +08:00
Tao Huang
98ff84daa2 ARM: decompressor: fix start of RAM alignment
256KB alignment is not work for (textofs & 0xf0000) > 0x40000.
Change to 1MB.

Change-Id: I9803b22d7d64a244842dcc811e47e214d247fc0c
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-05-30 19:42:44 +08:00
Sugar Zhang
d86472234c ASoC: rockchip: add 'rockchip,no-dmaengine' for i2s/tdm/pdm
This patch add support for property 'rockchip,no-dmaengine'.
it is a boolean property. if present, driver will do not
register pcm dmaengine, only just register dai. if the dai
is part of multi-dais, the property should be present. Please
refer to rockchip,multidais.txt about multi-dais usage.

Change-Id: I9aa2ddb15f5a27202f90bf32804f214435cc0b73
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-05-30 17:53:03 +08:00
Mengdong Lin
51e355f13b UPSTREAM: ASoC: Add kerneldoc comments for snd_soc_find_dai
snd_soc_find_dai() has been exported and so add the kerneldoc comments
for it.

Change-Id: Iaeb085bd8eebc26075558b4db4cfa4fe9d058e83
Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
(cherry picked from commit fbb88b5ca1)
2018-05-30 15:13:53 +08:00
Mengdong Lin
0e9a1da83f UPSTREAM: ASoC: Export snd_soc_find_dai()
This API can be used by topology to find an existing BE dai by name
and further configure it.

Topology will also check DAI ID to avoid wrong match.

Change-Id: I5651b280ef8352dd20bdb9e6ffa747d0b5a4e088
Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
(cherry picked from commit 305e9020f0)
2018-05-30 15:13:19 +08:00
Sugar Zhang
8644cf7f0d ASoC: codec: dummy-codec: change channels_max to 384
Change-Id: I4b7fd55fc01f2c65f1cd5c8c60238957b759566b
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-05-30 15:11:23 +08:00
Tao Huang
cddd5eff01 ARM: Makefile: make [z]boot.img without load addr
Set base and kernel_offset breaks u-boot.

Change-Id: I1e7fdfb722782702d5141f89936127ed340642e6
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-05-30 14:26:09 +08:00
Hans Yang
e2e7ae2203 arm64: defconfig: rk3308_linux_defconfig: enable CONFIG_CYW_BCMDHD
Change-Id: I1b84e84df31f502cdad23b30390f8f0bc24d9c44
Signed-off-by: Hans Yang <yhx@rock-chips.com>
2018-05-30 11:24:47 +08:00
Alex Zhao
6a7eddd528 arm: rockchip_defconfig: remove CONFIG_WIFI_LOAD_DRIVER_WHEN_KERNEL_BOOTUP
Change-Id: I22ff998806919f364d0338415bb585c21d966736
Signed-off-by: Alex Zhao <zzc@rock-chips.com>
2018-05-30 10:28:24 +08:00
Alex Zhao
41dcb2d174 arm64: rockchip_defconfig: remove CONFIG_WIFI_LOAD_DRIVER_WHEN_KERNEL_BOOTUP
Change-Id: I369574059ecb6984596d39c1b8d696eaa41330e5
Signed-off-by: Alex Zhao <zzc@rock-chips.com>
2018-05-30 10:28:24 +08:00
zain wang
4258959427 mfd: fusb302: add DP UFP_D support
Add DP UFP_D support so that we can get the right
DP pin cap for DISCOVERY_MODES cmd.

Change-Id: I564453d2bdf1485acdd65dddb814aae5012c9097
Signed-off-by: zain wang <wzz@rock-chips.com>
2018-05-29 20:31:12 +08:00
Shunqian Zheng
48ec8a809c bluetooth: rfkill-bt: uart-rts gpio can be an optional pin
This patch set uart_rts_gpios as an optional gpio pin.

Some boards (e.g. px3se-sdk) do not use the rts flow control,
and the correspoding uart-rts pin is occupied as some other
functions(e.g. irq pin).

Change-Id: Ia402dc2b74c305d83d3e1ccbedc1c913b270c828
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
2018-05-29 20:28:11 +08:00
Zhen Chen
10c0b6abc7 arm: dts: rockchip: modify 'gpu_power_model' for Midgard DDK r18 on rk3288
The values of the coefficients are the ones in px30.dtsi,
according to Rocky Hao.

Change-Id: I2bcd19f4d9bbddcb02a6ecae743b212778c00178
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2018-05-29 20:27:33 +08:00
Elaine Zhang
93e3d23693 clk: rockchip: px30: Change pll type to pll_rk3328
The clk_rtc32k_pmu is unused for pll on px30 and it will
increase the time to change armclk rate and have a lot waring print.

Change-Id: Iefee34390fbbc2ba4a60a5888806f4e494655fdf
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-05-29 19:54:37 +08:00
Elaine Zhang
88ec34820f clk: rockchip: fix up the frac clk get rate error
support fractional divider with only one level parent clock

Change-Id: I6593f908edf4454ef03255080bf9ac1d72c6f64e
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-05-29 19:54:32 +08:00
Elaine Zhang
c64eb759a8 clk: rockchip: fix up the freq overshoot
When integer divider switch to frac divider,
High frequency burrs that may appeared,
It's deadly to the system

Change-Id: I483449f9a0b980671f90d4c534fad033998deaf7
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-05-29 19:52:49 +08:00
xiaoyao
96f06a1be2 net: wireless: rockchip_wlan: support Cypress wifi
Change-Id: Ib6e95c5106ec23db554fe190f83960e82bca1100
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
2018-05-29 19:52:25 +08:00
Zhangbin Tong
6a0e16e85d ARM: dts: rk3128h-box: Limit vdd_arm minimum voltage to 1.2v during early kernel boot
vdd_arm can supply multiple consumers(arm/dmc/gpu/rkvdec), we need to keep
a voltage meets all consumers before all consumers complete initialization.

Change-Id: Ie5f3c1e879931fe69f8b807385c8e97f5cdf5d93
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
2018-05-29 19:35:02 +08:00
Tang Yun ping
460b5e9a6c ARM: dts: px3se: enable dmc node
Change-Id: Ie52a8bc7017bf3cc2ca4c4aab9335ef64dbcb89a
Signed-off-by: Tang Yun ping <typ@rock-chips.com>
2018-05-29 19:33:32 +08:00
Tang Yun ping
643aa04b24 ARM: dts: rk312x: move dmc node to rk312x.dtsi
Because px3se also need dmc node, move dmc node from rk312x-android.dtsi
to rk312x.dtsi.

Change-Id: I4adb15048bbf092c1389d72d8d669a40a7ad588b
Signed-off-by: Tang Yun ping <typ@rock-chips.com>
2018-05-29 19:33:32 +08:00
Xing Zheng
b509d9189c arm64: dts: rockchip: add loopback node for RK3308 EVB
RK3308 EVB V10: using ADC7 and ADC8 (grp==3) for loopback
RK3308 EVB V11: using ADC1 and ADC2 (grp==0) for loopback

Change-Id: I88a24bddacd25ba54878e97dec8b08b4f38875a2
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-05-29 11:32:17 +08:00