Commit Graph

609771 Commits

Author SHA1 Message Date
chenjh
6c93daca40 power: rk816-battery: otg switch to dc charger power when init
Without this, otg supply is always provided by PMIC and PMIC
can not enter charge mode, because charge or otg supply output
is exclusive, only one choice at one time.

Change-Id: I4c00392d93abdf55b2b663e8a6a8822249c64d74
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-06-06 15:00:42 +08:00
Joseph Chen
72d2f69981 power: rk816-battery: use otg_pmic5v to record otg power supply state
without this patch, we use otg_in to stands for otg attach and power
supply state(from dc or pmic), there is something wrong with code logic,
let's make it clear.

Change-Id: I080e6b137811b2335e0985e786ddfc4eed52e8d6
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-06-06 15:00:42 +08:00
Joseph Chen
93c6099369 power: rk816-battery: fix CDP charger recoginze as DCP charger
CDP charger should be treat as SDP charger, but charge current 1.5A(not 450mA).

Change-Id: I9892e8ce7cb26a1990b344a9ea83ce55a9a1b81a
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-06-06 15:00:42 +08:00
Joseph Chen
6f4998696e power: rk818-battery: fix CDP charger recoginze as DCP charger
CDP charger should be treat as SDP charger, but charge current 1.5A(not 450mA).

Change-Id: I3091ba599ffbb417ea89169d9ab59853f8280f53
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-06-06 15:00:42 +08:00
Joseph Chen
efe2ccf9f4 power: rk818-charger: otg switch to dc charger power when init
Without this, otg supply is always provided by PMIC and PMIC
can not enter charge mode, because charge or otg supply output
is exclusive, only one choice at one time.

Change-Id: I445c1ec6aac9520593bfb53aa7681352417f0543
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-06-06 15:00:42 +08:00
Joseph Chen
62a9f46448 power: rk818-charger: use otg_pmic5v to record otg power supply state
without this patch, we use otg_in to stands for otg attach and power
supply state(from dc or pmic), there is something wrong with code logic,
let's make it clear.

Change-Id: I1cdcd3be521039b75badc3b805e70f202ebcac77
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-06-06 15:00:42 +08:00
Zorro Liu
be49c6964e drivers: input: sensor: update for akmxxxx compass chips
Change-Id: Iba164016e01c7741d5cf99f207829e6654ab43ff
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2018-06-06 14:31:23 +08:00
Liang Chen
d362c39d5d arm64: dts: rockchip: adjust opp-table by leakage for rk3328 SoCs
Change-Id: Ic827fe9f868a71e6f7a69f91df43d5f7a23bc5d3
Signed-off-by: Liang Chen <cl@rock-chips.com>
2018-06-06 10:54:26 +08:00
zain wang
b72c852580 mfd: fusb302: fix dp can't be recognized through typec.
Add notify state to the struct vdm_state, otherwise, we
couldn't notify DP because vdm_state_ready would be ignored
by IS_VDM_ACTIVE.

Change-Id: Ib03dae2ebdfbfba0061af0e9ae2928c0c9123192
Signed-off-by: Wenping Zhang <wenping.zhang@rock-chips.com>
Signed-off-by: zain wang <wzz@rock-chips.com>
2018-06-06 09:39:23 +08:00
Tao Huang
f9c6555008 ARM: dts: rockchip: add rk3308-evb-dmic-i2s-v10-aarch32
Add RK3308 EVB demo dts for ARM.

Change-Id: I6ffcf84289fc15a6479335e21c0d598e0520d4b1
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-06-06 09:34:31 +08:00
Xing Zheng
57c9f73233 arm64: dts: rockchip: remove useless 'rockchip,adc-grps' for RK3308 EVB
Change-Id: I69eb2ac35feb9b0fb0957f94b6f68761e9481378
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-06-05 15:08:12 +08:00
Xing Zheng
b0884beee4 ASoC: rk3308_codec: update properties
Remove 'rockchip,adc-grps' and add 'rockchip,enable-all-adcs'

Change-Id: Ic838df1b26fa4d5837368025b5c335b8cad5226c
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-06-05 15:08:12 +08:00
Xing Zheng
12324e6c5c ASoC: rk3308_codec: configure ADC/DAC flexibility on hw_params
We need to know how many channels that are needed
to enable on hw_params for ADC groups, it's more
reasonable and more flexible.

By the way, clean up some coding styles.

Change-Id: Ia13b1667492dd60a63fc17130ff09b6b1b01b8df
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-06-05 15:08:12 +08:00
Sugar Zhang
738f93c0ab ASoC: rockchip: multi_dais: add support for parse dai format
Change-Id: Ib877400965bbe07de527a0ac95cc8193c61dbd87
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-06-05 14:29:34 +08:00
Lin Huang
109adf2267 arm: dts: rockchip: rk3288: fix console output to FIQ for linux
To keep consistent to other platform, we use FIQ as console output
in rk3288 linux.

Change-Id: I36c53b12a872d8f282addd16d0cad8cabfc8a5d6
Signed-off-by: Lin Huang <hl@rock-chips.com>
2018-06-05 14:18:41 +08:00
Elaine Zhang
bfacad511d clk: rockchip: rk3328: Set max parent rate for i2s fractional divider
Set I2S clk parent to CPLL.

Change-Id: I2eaa920c6ab02cbec944b11f3aea2e7fe8551659
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-06-05 14:17:00 +08:00
Elaine Zhang
f2a73282ea Revert "clk: rockchip: fix up the freq overshoot"
This reverts commit c64eb759a8.
This commit make i2s clk setting error when
integer divider switching integer divider.

Change-Id: I927d6995d7b215fd412e147dff6a64c8fc4e2211
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-06-05 14:16:50 +08:00
Tao Huang
ca74123c69 Merge tag 'lsk-v4.4-18.05-android' of git://git.linaro.org/kernel/linux-linaro-stable.git
LSK 18.05 v4.4-android

* tag 'lsk-v4.4-18.05-android': (605 commits)
  ANDROID: sdcardfs: Don't d_drop in d_revalidate
  goldfish: pipe: ANDROID: mark local functions static
  UPSTREAM: ANDROID: binder: prevent transactions into own process.
  goldfish: pipe: ANDROID: Add DMA support
  UPSTREAM: f2fs: clear PageError on writepage - part 2
  UPSTREAM: f2fs: avoid fsync() failure caused by EAGAIN in writepage()
  ANDROID: x86_64_cuttlefish_defconfig: Disable KPTI
  UPSTREAM: mac80211: ibss: Fix channel type enum in ieee80211_sta_join_ibss()
  UPSTREAM: mac80211: Fix clang warning about constant operand in logical operation
  UPSTREAM: nl80211: Fix enum type of variable in nl80211_put_sta_rate()
  UPSTREAM: sysfs: remove signedness from sysfs_get_dirent
  UPSTREAM: tracing: Use cpumask_available() to check if cpumask variable may be used
  BACKPORT: clocksource: Use GENMASK_ULL in definition of CLOCKSOURCE_MASK
  UPSTREAM: netpoll: Fix device name check in netpoll_setup()
  FROMLIST: staging: Fix sparse warnings in vsoc driver.
  FROMLIST: staging: vsoc: Fix a i386-randconfig warning.
  FROMLIST: staging: vsoc: Create wc kernel mapping for region shm.
  goldfish: pipe: ANDROID: Replace writel with gf_write_ptr
  goldfish: pipe: ANDROID: Use dev_ logging instead of pr_
  goldfish: pipe: ANDROID: fix checkpatch warnings
  ...

Conflicts:
	fs/f2fs/node.c
	scripts/Makefile.lib

Change-Id: Ib92d11938a383464249fe6f2dad3ab2a05bc4770
2018-06-04 20:16:28 +08:00
Rocky Hao
90d074f764 arm: dts: rockchip: thermal: update soc's sw/hw over temperature power off degree
to cope with Wide Temperature Range test, we maxamize
soc's sw/hw over temperature power off degree.

fow now, 115 degree Celsius is set to trigger sw powering off.
if sw function does not work and temperature is continuing to
grow up, and till 120 degree Celsius, hw powering off/reset
is triggered.

Change-Id: I751e9ea754f434bc20df39fdbdb40216a1582c39
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
2018-06-04 17:17:38 +08:00
Dingqiang Lin
ba67486670 soc: rockchip: fix flash_vendor_storage _flash_read pointer null error
Change-Id: Ie7e8a937f9439aec6922b178026f3381c772a26f
Signed-off-by: Dingqiang Lin <jon.lin@rock-chips.com>
2018-06-04 16:49:14 +08:00
Ziyuan Xu
9bc2be6181 rtc: hym8563: fix the incorrect initialization
The **valid** is always false in __probe__ function, so that the time
will be invalid at the first time.

Fixes: 66af9943e3 ("rtc: hym8563: add initialization data")
Change-Id: Id7a245159ab0fc4e9980db5e538b05ff17a02d89
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
2018-06-04 16:39:41 +08:00
Andy Yan
b8154f1fba Revert "arm64 Kconfig: Move LIST_POISON to a safe value"
This reverts commit 4003f6b715.

This is a redefine of commit bf0c4e047 (arm64: kconfig: Move LIST_POISON
to a safe value)

Change-Id: Ibde683271af2bc982f3727a98ebd1530fc503dd1
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2018-06-04 10:45:33 +08:00
Liang Chen
4d5707c35c arm: dts: adjust opp-table for rk3288
Change-Id: Ic5efeaf47883255072182aa8d1fdc1f1266c7dc8
Signed-off-by: Liang Chen <cl@rock-chips.com>
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-06-01 17:10:17 +08:00
Finley Xiao
37c0570133 cpufreq: rockchip: implement get_soc_info() for rk3288 SoCs
Change-Id: Idefa7baa977cb062c0030538e24b555b9df58b0a
Signed-off-by: Liang Chen <cl@rock-chips.com>
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-06-01 17:09:58 +08:00
Finley Xiao
71e634507f soc: rockchip: opp_select: Add support to adjust power scale
Change-Id: I2358d75c2fdada7cfe385e85d2106370f9aa5ea3
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-06-01 16:58:27 +08:00
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