Commit Graph

839790 Commits

Author SHA1 Message Date
Sugar Zhang
34fc732a77 ASoC: rockchip: pdm: change dma burst to 8
This patch is to avoid fifo xrun in some timing case.

Change-Id: I511ebc4c443f1c3369fff1c4b4eb5faf145d5ae5
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2019-03-28 22:13:27 +08:00
Sugar Zhang
ea6b48b571 ASoC: rockchip: i2s: change dma burst to 8
Change-Id: I0231030d054e4d3cb861dce8702898decc8ea0af
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2019-03-28 22:13:27 +08:00
Chris Zhong
de0d15f6cb ASoC: es8328: Enabling support for 12Mhz sysclk
Change-Id: If9dea6039ab562023c81c2394c9286b7adc4a8c5
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
2019-03-28 22:13:27 +08:00
zain wang
a6ddb2896a ALSA: usb-audio: Add SNDRV_PCM_TRIGGER_SUSPEND/RESUME to trigger functions
Missing SNDRV_PCM_TRIGGER_SUSPEND/RESUME, usb-audio can not enter suspend
since pcm was always running.

Change-Id: I0f7be7345f2b5c1bd42dad4c6fc4647c8636eed8
Signed-off-by: zain wang <wzz@rock-chips.com>
2019-03-28 22:13:27 +08:00
Sugar Zhang
c2fc451481 ASoC: rockchip: i2s: fixup clk div
we found mclk maybe not precise as required because of PLL,
but it still can be used and no side effect. for example, if we
require mclk 11289600, but get 11289598, it doesn't matter.
so using DIV_ROUND_CLOSEST to fix it.

Change-Id: If8453a7a08b319da81b07d572b02247bd7e7bd27
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2019-03-28 22:13:27 +08:00
LuoXiaoTan
ba77f77aee ASoC: rt5651: add alc5651 ASRC switch for HDMIIn
Change-Id: I447228656d5ee56b2c4b04c515ad71f34e107ba0
Signed-off-by: LuoXiaoTan <lxt@rock-chips.com>
2019-03-28 22:13:27 +08:00
Sugar Zhang
0e676ff2b0 ASoC: rockchip: i2s: add support for i2s bclk fs configuration
this patch add support for i2s bclk fs configuration, we can
configure bclk_fs by devicetree as required.

Change-Id: I7e034e0466793b5b9eab6566a43e90213f219bb0
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2019-03-28 22:13:27 +08:00
wjh
eb85bf1ab7 drivers: sound: usb: fix disvr usb Audio bug
The disvr usb audio sampling rate is through nanoc reported to
the kernel, so don't need the kernel again set the sampling rate.

Change-Id: I60409fc579952a196c4fe40f678e87d505a7508d
Signed-off-by: wjh <wjh@rock-chips.com>
2019-03-28 22:13:27 +08:00
lanshh
d90d0c0a10 sound: usb: add USB ID for nanoc audio codec
Change-Id: I3c25691a74c9cf66e587fd4a5dcb6cef46040eec
Signed-off-by: lanshh <lsh@rock-chips.com>
2019-03-28 22:13:27 +08:00
Xu Jianqun
d9470df401 ASoC: RT5640: make rt5640 driver enable to be selected
Change-Id: I4600f79220ab4faf7bfde1cb75b7fbe7b5fef747
Signed-off-by: Xu Jianqun <jay.xu@rock-chips.com>
2019-03-28 22:13:27 +08:00
Elaine Zhang
a3b184a43a thermal: rockchip: add pinctrl control
Based on the TSADC Tshut mode to select pinctrl,
instead of setting pinctrl based on architecture
(Not depends on pinctrl setting by "init" or "default").
And it requires setting the tshut polarity before select pinctrl.

Change-Id: Iac9ca05073b0181ee13b0048d0c2a54204f82bca
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2019-03-28 19:26:01 +08:00
Sugar Zhang
32ddd2e467 arm64: dts: rockchip: add reset properties for i2s
Change-Id: I1bdc5a417b412d484ba0caccc9e57da6a928de54
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2019-03-28 19:26:01 +08:00
Liang Chen
83d3857559 dt-bindings: soc: rockchip: add coregrf compatible string for rk1808
Change-Id: I55687ca089a43e9b3d8f293717747866e33e77cc
Signed-off-by: Liang Chen <cl@rock-chips.com>
2019-03-28 19:26:01 +08:00
Rocky Hao
a85ad02a4b 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>
2019-03-28 19:26:01 +08:00
Liang Chen
1d36a94941 arm64: dts: rockchip: add some board dts files for rk3328
Change-Id: Ia610b1a657e601aba2c0cc07a031bc18cb52fc18
Signed-off-by: Liang Chen <cl@rock-chips.com>
2019-03-28 19:26:01 +08:00
Shawn Lin
cb6ea56a87 arm64: dts: rockchip: add mmc dt-bindings for rk3328 and evb board
Add dt-bindings for sdio/sdmmc(+ext)/emmc controllers

Change-Id: I1c52b803110c499c58c2c27a1c7488a98b0ca870
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2019-03-28 19:26:01 +08:00
Zain Wang
ba4763735e arm64: dts: rockchip: rk3328-evb: enable rockchip_suspend
Change-Id: I1348d18031557ca6f45826ee6ddf3b6b224a5075
Signed-off-by: Zain Wang <wzz@rock-chips.com>
2019-03-28 19:26:01 +08:00
zain wang
e021aefb1d arm64: dts: rockchip: rk3328-evb: add pinctrl to pwm3
Change-Id: If8ba9ddfe2c600bd747db9a4d8a3f06633bc25f6
Signed-off-by: zain wang <wzz@rock-chips.com>
2019-03-28 19:26:01 +08:00
XiaoDong Huang
31d490c1b0 arm64: dts: rockchip: rk3328: initialize sleep_mode_config
Change-Id: I7e54b5b4ba55a85f967a03bc990640c5d3bdf2e1
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2019-03-28 19:26:01 +08:00
Zain.Wang
b5051bbb81 arm64: dts: rockchip: add rkvdec vcodec-supply for rk3328-evb
Change-Id: I9a3d1203203aa524353eb47ecfc15ffe78b80ccb
Signed-off-by: Zain Wang <wzz@rock-chips.com>
2019-03-28 19:26:01 +08:00
Zain.Wang
e28944adf5 arm64: dts: rockchip: enable dmc for rk3328-evb
Change-Id: I0ddff6ce873c4efb5f1567b2df6dbd29c15422e8
Signed-off-by: Zain Wang <wzz@rock-chips.com>
2019-03-28 19:26:01 +08:00
Zain Wang
e0f680afa0 arm64: dts: rockchip: Add recovery key support for rk3328-evb
Define recovery key for uboot if uboot used kernel dtb

Change-Id: Iad91e1ba5109c82512d125981f0a26aa6cf1ddc2
Signed-off-by: Zain Wang <wzz@rock-chips.com>
2019-03-28 19:26:01 +08:00
Algea Cao
824add65f3 ARM64: dts: rockchip: rk3328: assign dclk parents for vop
Change-Id: Ie3a5d9dc9aad105deb2f7ac1d1d15494512d42f3
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2019-03-28 19:26:01 +08:00
Randy Li
8ceaa498d4 arm64: dts: rockchip: re-order the rk3328 aliase
Making those items in alphabetical order.

Change-Id: I9d2cc45d814107a2bc9e15465b99b88109f23243
Signed-off-by: Randy Li <randy.li@rock-chips.com>
2019-03-28 19:26:01 +08:00
Liang Chen
43e8f73f6d arm64: dts: rockchip: adjust opp-table by leakage for rk3328 SoCs
Change-Id: Ic827fe9f868a71e6f7a69f91df43d5f7a23bc5d3
Signed-off-by: Liang Chen <cl@rock-chips.com>
2019-03-28 19:26:01 +08:00
Huang jianzhi
b97c345ac0 ARM64: dts: rockchip: rk3328: add the pwm0 and pwm1 pull up pinctrl interface
Change-Id: I2e21318a5863a020f104872c803ff2250b84fd7d
Signed-off-by: Huang jianzhi <jesse.huang@rock-chips.com>
2019-03-28 19:26:01 +08:00
Elaine Zhang
f6e5089748 ARM64: dts: rockchip: rk3328: mark xin32k clk as fixed clk
Change-Id: I25ab72ba7af64b7031fb02d30d0cb5cb6798d692
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2019-03-28 19:26:01 +08:00
Jerry Xu
2eff115a98 arm64: dts: rockchip: add tsp support for rk3328
Change-Id: I981d8fb53b44d79bc1a425b93699a30de6982dff
Signed-off-by: Jerry Xu <xbl@rock-chips.com>
2019-03-28 19:26:01 +08:00
Xiao Yao
d3520497e7 arm64: dts: rockchip: add mmc-hs200-1_8v for all rk3328 boards
Change-Id: I74d04e9a047e7622870df42cc41d5c3c752f9207
Signed-off-by: Xiao Yao <xiaoyao@rock-chips.com>
2019-03-28 19:26:01 +08:00
Liang Chen
60ec34385c ARM: dts: add some board dts files for rk3126/rk3128/rk3128h
Change-Id: I454f3434f38317f5e8eb0510fb1f6d8a82af55eb
Signed-off-by: Liang Chen <cl@rock-chips.com>
2019-03-27 18:45:10 +08:00
Jon Lin
3849649f01 drivers: rkflash: fix REQ ops cmd_flag error
Change-Id: I09dea4be626bbe75575ef2de1a9c03277d06a155
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2019-03-27 15:30:42 +08:00
Jon Lin
c436bcdd40 drivers: rkflash: change asm/uaccess.h to linux/uaccess.h
Change-Id: Id161f7fa220944fd8012f4e92029bc967e59f09b
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2019-03-27 15:30:42 +08:00
Ziyuan Xu
607b472f12 drivers: rkflash: sfc: use dev_pm_ops instead of legacy callback
Change-Id: Ic9694d9ca0cb94f8b6fab3115f64dfc83dde2ee8
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
2019-03-27 15:30:42 +08:00
Ziyuan Xu
16c2365eea drivers: rkflash: nandc: use dev_pm_ops instead of legacy callback
If the device has a 'power-domains' property that the power framework
prefer to use dev_pm_ops for suspend&resume. The legacy suspend & resume
callback for nandc driver would not be used.

Anyway, it's better use dev_pm_ops whether 'power-domains' is existent.

Change-Id: I0e2822a44f3f0d458b778636cd84c5ae54505cf5
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
2019-03-27 15:30:42 +08:00
Jon Lin
99ca28d79a drivers: rkflash: use physical continuous memory for flash stress test
otherwise cache flush will cause test fail

Change-Id: I6d4a4be405998bfe68eac0004b5fee407ed62a70
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2019-03-27 15:30:42 +08:00
Jon Lin
101fcda5fc drivers: rkflash: support 8KB page size slc nand
comfirm in MT29F16G08ABABA

Change-Id: I6b1179e7e835b77176aaa0292b162ab08bb38fb7
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2019-03-27 15:30:42 +08:00
Jon Lin
e08c2aee06 drivers: rkflash: reduce print tag
Warning awaits elimination, it's normal.
[   14.568343] g_gc_superblock_free 260 40 0 2f 2f
[   14.597317] lpa=c779, ppa=130000
[   14.921319] g_gc_superblock_free 1ee 40 0 3 3

Change-Id: I4b3721310fcd833152ff8a7576c997b2202bc4f0
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2019-03-27 15:30:42 +08:00
Jon Lin
c5243c0140 drivers: rkflash: don't update vpc when record vpc equals 0 in gc progress
1.don't update vpc when record vpc equals 0 in gc progress
2.increase the number of read retry
3.avoid danger of abnormal power lost
4.change flash_read_page_raw return to error_ecc_bits
5.add nand buildin ecc support
6.skip ECC error page instead of marking as bad block
7.adjust the way of building tables to increase ftl init

Change-Id: I9ba24980c06d61a5a1d66019378075e0171a5887
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2019-03-27 15:30:42 +08:00
Elaine Zhang
13940863ec clk: rockchip: rk1808: export SCLK_32K_IOE clock id
Add clk_32k_ioe to select 32k io as input or output.

Change-Id: Id1d32b913e9739c4462eab6e565b3fcac370e531
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2019-03-27 09:04:45 +08:00
Elaine Zhang
9c9278d549 clk: rockchip: add a clock-type for muxes based in the pmugrf
Rockchip socs often have some tiny number of muxes not controlled from
the core clock controller but through bits set in the pmugrf.
Use MUXPMUGRF() to cover this special clock-type.

Change-Id: Iac962a27a3c88ce188d03c416cb4b3b45a462c0a
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2019-03-27 09:04:45 +08:00
Elaine Zhang
a651a11d16 clk: rockchip: add clock controller for rk1808
Add the clock tree definition for the new rk1808 SoC.

Change-Id: I86e502b27e0695c77e9937dfd7cffa14b5711954
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2019-03-27 09:04:45 +08:00
Tao Huang
b7a15f8858 clk: rockchip: build depends on CPU config
Change-Id: Ia35e7bba3eb7bd37f8f291d7501681a6ccea421f
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2019-03-27 09:04:45 +08:00
Taniya Das
ac2b539a8f clk: add/modify debugfs support for clocks
Update clock debugfs to support the below functionalities.
 - Allow enable/disable a clock.
 - Allow set_rate on a clock.
 - Display available parent of a clock.
 - Allow set_parent on a clock.
 - Display the list of enabled_clocks along with prepare_count,
   enable_count and rate.

Change-Id: Ib67b3a3409c9e7d8adb710bb524f54f543abf712
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2019-03-27 09:04:45 +08:00
Weiwen Chen
531fc5e280 dm: add check target device probe completely
Because some mmc execute tuning should take more time,
so if dm target device is not probe completely before dm verity,
will trigger:

[    0.834803] device-mapper: init: attempting early device configuration.
[    0.836226] device-mapper: init: adding target '0 1031864 verity 1 PARTUUID=cfc90ed7-b23f-459b-896f-8135b56567a1 PARTUUID=cfc90ed7-b23f-459b-896f-8135b56567a1 4096 4096 128983 128983 sha1 d0f6e81bf584217e524e88b023d0c70422fb2f19 e939f8142d39394fb14f0df917de9346cb045b78 10 restart_on_corruption ignore_zero_blocks use_fec_from_device PARTUUID=cfc90ed7-b23f-459b-896f-8135b56567a1 fec_roots 2 fec_blocks 130000 fec_start 130000'
[    0.836341] device-mapper: table: 253:0: verity: Data device lookup failed
[    0.836355] device-mapper: init: starting dm-0 (vroot) failed
[    0.836916] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[    0.843161] pgd = c0004000
[    0.843415] [00000000] *pgd=00000000
[    0.843810] Internal error: Oops: 80000005 [#1] PREEMPT SMP ARM
[    0.844345] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.4.77 #1
[    0.844870] Hardware name: Generic DT based system
[    0.845299] task: de4b0000 ti: de4b8000 task.ti: de4b8000
[    0.845782] PC is at 0x0
[    0.846018] LR is at generic_make_request+0xc8/0x220
[    0.846458] pc : [<00000000>]    lr : [<c03aae2c>]    psr: 60000013
[    0.846458] sp : de4b9b58  ip : 00000004  fp : de4b9d9c
[    0.847466] r10: 00000000  r9 : de7fb020  r8 : c100390c
[    0.847927] r7 : ffffffff  r6 : de4b9b5c  r5 : 00000000  r4 : dde71540
[    0.848508] r3 : 00000000  r2 : dc8ba64d  r1 : dde71540  r0 : de7fb020
[    0.849080] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    0.849714] Control: 10c5387d  Table: 6000406a  DAC: 00000051

Change-Id: Idf9a33fd15adab8aa5e13f74c92b3270c9877035
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
2019-03-27 09:01:28 +08:00
Liang Chen
d6159833ab arm64: dts: rockchip: add many board dts files for px30/rk3326
Change-Id: Ic27f8bc30ec41940c3ffacb079aa22e4974fb686
Signed-off-by: Liang Chen <cl@rock-chips.com>
2019-03-26 20:25:43 +08:00
Liang Chen
038cd02de8 arm64: dts: rockchip: fix include search path for rk3326-863-cif-sensor.dtsi
This is because of the commit form upstream: commit 5ffa2aed38
("of: remove arch/$(SRCARCH)/boot/dts from include search path for CPP")

Change-Id: I6dc9eca4357f3425eb18fdc97b53e9923a421c33
Signed-off-by: Liang Chen <cl@rock-chips.com>
2019-03-26 10:28:09 +08:00
Chen Lei
fa6b6f8ba2 ARM: dts: rk322x: sdmmc add cd-gpios
This modification is to solve the problem of hot plug failure when
SD card is inserted after boot, because det pin is initialized as GPIO

Change-Id: I1cd49faa92fa7502c23dd30c2c35fa712e5d0ea3
Signed-off-by: Chen Lei <lei.chen@rock-chips.com>
2019-03-22 20:01:20 +08:00
Liang Chen
d8dd025582 ARM: dts: rockchip: adjust opp-table by leakage for rk322x
Change-Id: I3758f2915a9eea0febf982c49c9452f17b6eba3c
Signed-off-by: Liang Chen <cl@rock-chips.com>
2019-03-22 20:01:20 +08:00
Zheng Yang
07a373c03d ARM: dts: rk3229: remove redundant hdmi phy table
The property rockchip,phy_table is no longer used.

Change-Id: I11a84a0ffaf85d80c1a850abc666cea74f7f6e35
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2019-03-22 20:01:20 +08:00
Liang Chen
44e6e0a7c6 arm: dts: configure opp-table and cooling-device of vpu for rk322x
Change-Id: I5604126c329b4488b9e262ef1b08d526df715543
Signed-off-by: Liang Chen <cl@rock-chips.com>
2019-03-22 20:01:20 +08:00