Commit Graph

615349 Commits

Author SHA1 Message Date
Wyon Bi
361ae22ff9 arm64: dts: rockchip: remove lvds bus format comment
Change-Id: I0693ef2a36222df0eca676837662e41972b9706b
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2019-02-19 14:12:30 +08:00
Wyon Bi
48a6e78673 drm/rockchip/rk618: lvds: Add support for MEDIA_BUS_FMT_RGB666_1X7X3_JEIDA bus format
Change-Id: I2d173633373137ac103946aceedc39bb8118d35a
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2019-02-19 14:12:29 +08:00
Wyon Bi
1688ac79be drm/rockchip: vop: Add support for MEDIA_BUS_FMT_RGB666_1X7X3_JEIDA bus format
Change-Id: Ie615fe85d8e0500033b0e876e00ed923756b5898
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2019-02-19 14:12:28 +08:00
Wyon Bi
58ef97d6a9 drm/rockchip: lvds: Add support for MEDIA_BUS_FMT_RGB666_1X7X3_JEIDA bus format
Change-Id: I1aaa9d6ea899704b784e97450441bcdeabb095a6
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2019-02-19 14:12:27 +08:00
Wyon Bi
346a749a73 dt-bindings: display: media-bus-format: Sync with include/uapi/linux/media-bus-format.h
Change-Id: I3f6deb2e264956205da725aa78f79ee7404d13a8
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2019-02-19 14:10:11 +08:00
Wyon Bi
fb2e95bef9 media: Add MEDIA_BUS_FMT_RGB666_1X7X3_JEIDA media bus code definitions
This patch adds a new RGB media bus formats that describe
18-bit samples transferred over an LVDS bus with three
differential data pairs, serialized into 7 time slots,
using standard JEIDA data ordering.

Change-Id: Ia0bedd53e57aa34829a0d61b144aa99a1c98cffd
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2019-02-19 14:08:12 +08:00
Wyon Bi
85a84917d5 video/drm: lvds: Correct P2S_EN register field on px30
Change-Id: Ia82a463437fbcf0b45805f65647e9bbfd0cdf43e
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2019-02-19 12:54:25 +08:00
XiaoDong Huang
f611ec6c1c arm64: dts: rockchip: rk1808-evb: change pmic pinctrl of the pmic_sleep pin
For sleep function, switch gpio0_a4 iomux to gpio;
For reset function, switch gpio0_a4 iomux to pmic_sleep;

Change-Id: I2f49eaa1522bc2af01d1c6a8061af7fc60915b3d
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2019-02-18 16:06:38 +08:00
Longjian Lin
b5dc63f92c arm64: dts: rockchip: pulldown BT irq gpio for rk3399pro evb
Change-Id: I0426e9335154b9069fa3d73068250745b8481053
Signed-off-by: Longjian Lin <llj@rock-chips.com>
2019-02-18 16:06:20 +08:00
Caesar Wang
d8bc92af0a regulator: core: Fix device link error when registering regulator
The sysfs device link can only be created after regulator device
registered.

Otherwise, the regulator always have some warning logs.
...
[    1.033024] DCDC_REG1: supplied by vcc5v0_sys
[    1.033427] vcc5v0_sys: could not add device link regulator.3 err -2
[    1.034302] vdd_center: 750 <--> 1350 mV at 900 mV
[    1.034862] rk808 0-0020: Looking up vcc2-supply from device tree
[    1.034907] DCDC_REG2: supplied by vcc5v0_sys
[    1.035298] vcc5v0_sys: could not add device link regulator.4 err -2
[    1.036301] vdd_cpu_l: 750 <--> 1350 mV at 900 mV
[    1.036837] rk808 0-0020: Looking up vcc3-supply from device tree
[    1.036880] DCDC_REG3: supplied by vcc5v0_sys
[    1.037271] vcc5v0_sys: could not add device link regulator.5 err -2
[    1.037985] vcc_ddr: at 500 mV
[    1.038508] rk808 0-0020: Looking up vcc4-supply from device tree
[    1.038550] DCDC_REG4: supplied by vcc5v0_sys
[    1.038941] vcc5v0_sys: could not add device link regulator.6 err -2
[    1.039657] vcc3v3_sys: 3300 mV
[    1.040179] rk808 0-0020: Looking up vcc9-supply from device tree
[    1.040223] DCDC_REG5: supplied by vcc5v0_sys

Fixes: c438b9d017 ("regulator: core: Move registration of regulator device")

Change-Id: Ie20421eab45f3f8229a5bedf3fecf99c757160bb
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2019-02-18 16:03:19 +08:00
Wang Panzhenzhuan
5e0baa55b6 media: rockchip: isp1: fix high fps preview blurred bug
fix following camera err:
    rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000002)

Change-Id: I6168d352d521cf75d7537ffe70a9af6f2ec07282
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
2019-02-18 09:45:40 +08:00
Liang Chen
83ad402c20 arm64: dts: rockchip: adjust opp-table for rk1808 SoCs
Auto select opp-table level by pvtm value.

Change-Id: I6043bd768452c84290715428500e4f72068eac0d
Signed-off-by: Liang Chen <cl@rock-chips.com>
2019-02-15 18:05:25 +08:00
Simon Xue
9642bc8824 PCI: rockchip: fix failed to enter L2 link state
The ioremap operation for the msg_region move to the bottom of the
rockchip_cfg_atu to make msg_region make sense which used for sending
PME_TURN_OFF message to make PCIe link enter L2 state

Change-Id: I50d1bef5d534102ed5b7db474c3f819e656fd626
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2019-02-15 17:53:20 +08:00
Shunqian Zheng
646ffe1fc1 ARM: dts: rk3128/px3se: enable video phy node for linux dts
Change-Id: I6a1e5139709c8d367e636c80533cc85ddb1e496e
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
2019-02-15 14:24:13 +08:00
Cai YiWei
931422cb12 media: i2c: add imx327
Change-Id: Idffad2860d824ba445d4fecd08b7f000d77bf980
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2019-02-15 11:09:24 +08:00
Cai YiWei
555ccf739b dt-bindings: Document add imx327
Change-Id: I4f174e1c6fa49692138035909cef6534fa35fcab
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2019-02-15 11:09:24 +08:00
Wyon Bi
42eab4ff2f drm/bridge: analogix_dp: fix spelling mistake "suspend" -> "suspend_late"
Fixes: 0b8c593910 ("BACKPORT: drm/bridge: analogix: Do not use device's drvdata")
Change-Id: I4b4bd81e895022ddee0bbfd727bf05eb4d7864f2
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2019-02-15 09:53:23 +08:00
Huibin Hong
5f289855ae serial: 8250: enable Programmable THRE Interrupt for tx
Programmable THRE Interrupt mode in order to increase system
performance.

Change-Id: Ic1ef9ecae0c6feb00170ad97ee3c6245ca3bf068
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2019-02-14 17:49:31 +08:00
Huibin Hong
11850f5985 serial: 8250: support rx dma mode only
Most SOCS have only 8 or 6 channels, but have more than 16
peripherals. If those peripherals work together, some
fails to request dma channel, because there are no enough
channels. And maybe it's unnecessary to use dma for uart
tx. It is necessary for uart rx when hardware auto flow
control is not used.

&uart0 {
	dma-names = "!tx", "rx";  // disable uart tx with dma
	status = "okay";
};

Change-Id: Ia74477514ba57300a4d19a5c2565ae7b5b8ab521
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2019-02-14 17:49:31 +08:00
Wang Panzhenzhuan
656576327b arm: dts: rockchip: rk3288-th804 9.0 add gc2145 and ov8858 support
Change-Id: Ia8d480fe12e4ee9eee19a5bb147cf564fb2b468b
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
2019-02-14 15:33:47 +08:00
Wang Panzhenzhuan
f9f18ded32 arm: dts: rockchip: rk3288 add rkisp1
rk3288.dtsi add rkisp1 node &&
pinctrl isp_dvp_d2d9 remove cif_clkout

Change-Id: I823579e02dc81e54c9a7f8e2e9760be66a2a820c
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
2019-02-14 15:02:24 +08:00
David Wu
af32e02ec9 iio: adc: rockchip: Don't return fail at probe when the regulator is dummy
If the referenced regulator is a dummy, the voltage is invalid,
but someone doesn't need the voltage, just need the adc value,
so don't return fail at probe when the regulator is dummy. If
he wants the voltage, configures the actual referenced regulator
at dts.

Change-Id: I8eaecc1a8e7e57c3a87aa69b9b852735bf4a025a
Signed-off-by: David Wu <david.wu@rock-chips.com>
2019-02-14 14:48:26 +08:00
Wang Panzhenzhuan
6e34d6d8e2 arm64: dts: rockchip: rk3368-xikp 9.0 add gc2145 and ov8858 support
Add camera sensor gc2145 and ov8858 &&
rk3368-android.dtsi pinctrl isp_dvp_d2d9 remove
needless cif_clkout for rk3368-xik-avb 9.0

Change-Id: Iee5b5f412abb36c28b6266cdc27106994b9aac00
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
2019-02-14 09:38:59 +08:00
Wang Panzhenzhuan
beedfb0451 media: i2c: add sensor ov8858
support R2A two lane

Change-Id: I36d09e83d5320c53e44ca34edf9255c2adcab29a
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
2019-02-14 09:36:41 +08:00
Caesar Wang
a209651073 arm64: dts: rockchip: fixes incorrect wifi chip on rk3399pro evb
As the wifi module used the ap6398s on rk3399pro evb, not the ap6255.
Even though the wifi chip name isn't effect to load wifi module, at least
it won't be misunderstand.

Change-Id: Icd44ce27d9aebcdb0d252f7c8c1dabce657cd573
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2019-02-13 20:19:19 +08:00
Caesar Wang
ba93e854dd arm64: dts: rockchip: enable ramoops for rk3399-linux.dtsi
This patch enables the ramoops to fetch some logs for debugging and
testing, the log will save on /sys/fs/pstore/console-ramoops*.

Change-Id: I47c9efbd1a0e17228e07fd6ad87a446babb265ab
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2019-02-13 18:02:04 +08:00
Cai YiWei
44cd19a79c media: rockchip/cif: support input raw/y format
dvp input raw/y, will output 16bit per pixel,
so output format shuold be raw16/y16.

Change-Id: I13e05ebe62b8802fa3a4c51f603c420e8127b929
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2019-02-13 09:46:20 +08:00
Cai YiWei
af31f3c99d media: rockchip: isp1: rk3368 only support mainpath
Change-Id: Ieb819cec2869a18b5343d39bf950d154bae96964
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2019-02-13 09:46:07 +08:00
Cai YiWei
d9c5282a8a media: rockchip: isp1: add check for get_remote_sensor
Change-Id: Ic09b394daa96aa8227b327f1e59713a359be8c18
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2019-02-13 09:43:32 +08:00
William Wu
dca0c15a2d usb: dwc3: rockchip: use devm_extcon_register_notifier
This patch uses the devm_extcon_register_notifier to
manage the resource automatically.

Change-Id: I427c54d59283ee97623ad829e42dac40516c3df4
Signed-off-by: William Wu <william.wu@rock-chips.com>
2019-02-12 15:22:28 +08:00
William Wu
323ccc3640 usb: dwc3: rockchip: fix rk3399 dwc3 host power on fail
RK3399 Excavator Board has an USB 3.0 PHY power on issue
when Type-A USB 3.0 Host port connects with an USB 3.0
device and do system PM suspend/resume test.

When the issue happens, we gets the following error log:

phy phy-ff800000.phy.4: phy poweron failed --> -110
dpm_run_callback(): platform_pm_resume+0x0/0x54 returns -110
PM: Device fe900000.dwc3 failed to resume: error -110
xhci-hcd xhci-hcd.12.auto: port 0 resume PLC timeout

It's because that the Type-C PHY docs say that the DWC3
controller "needs to be held in reset to set the PIPE
power state in P2 before initializing the Type-C PHY",
but actually the PIPE is in P0 state because an USB 3.0
device is connected, and the current code doesn't reset
the DWC3 controller upon PM resume.

This patch prevents powering off the USB 3.0 PHY of
RK3399 Type-A USB 3.0 Host port when system enters
syspend. As a side effect, the power consumption in
standby mode will increase. However, if you want to
optimize the power consumption in standby mode and
allow the USB device to be reenumerated upon PM resume,
you can add a property "needs-reset-on-resume" in
DWC3 DTS like this:

&usbdrd3_1 {
	needs-reset-on-resume;
};

Change-Id: Ia1cdf6e09cac520e99931a15423b8de7be2ba52b
Signed-off-by: William Wu <william.wu@rock-chips.com>
2019-02-12 15:22:27 +08:00
William Wu
b2c584c65b dt-bindings: usb: dwc3: add needs-reset-on-resume property
This patch adds a new property "needs-reset-on-resume" for
Rockchip DWC3 IP. We can use it if we want to reset the DWC3
controller upon PM resume.

Change-Id: I8ae7f8fe46388cdc9e265e758d9edeb82840d284
Signed-off-by: William Wu <william.wu@rock-chips.com>
2019-02-12 15:22:07 +08:00
XiaoDong Huang
f9d77e7b33 arm64: dts: rockchip: rk1808: support cpu idle
Change-Id: Ic72e2f01e81c0e8853b90158675092595973b94a
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2019-02-12 09:55:16 +08:00
Yifeng Zhao
6dfc7913e7 drivers: rk_nand: support SKHynix 14nm 2D 16GB Nand Flash
support SKHynix 14nm 2D 16GB NAND FLASH H27TDG8T2D8R.

Change-Id: Ic465d325e6660cf1dc6db686391005529dd8fbeb
Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
2019-02-12 09:30:03 +08:00
Yifeng Zhao
f7468ce49e drivers: rk_nand: fix the exception of f2fs execution discard function
If the discard_granularity of the NAND flash block device has not
been initialized, then the DM device will not set max_discard_sectors
while it is created,and f2fs will have exceptions when it performs
the discard function.

bug:
WARNING: at fs/f2fs/segment.c:1212
[   28.075747] Hardware name: Rockchip rk3326 863 avb board (DT)
[   28.075767] task: ffffffc03b08d100 task.stack: ffffffc02f0b4000
[   28.075802] PC is at __submit_discard_cmd+0x1b4/0x4ec
[   28.075840] LR is at __issue_discard_cmd+0x1b8/0x248
[   28.075859] pc : [<ffffff800831f218>] lr : [<ffffff800831f8d0>] pstate: 60400145
[   28.075874] sp : ffffffc02f0b7be0

Change-Id: I940728a675e7a30a05742bf2a7dcace92f7a2354
Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
2019-02-12 09:29:48 +08:00
Wyon Bi
bc4c7f125e ARM: dts: rockchip: rk3288: assign clock rate for ACLK_VIO0 and ACLK_VIO1
Change-Id: I87fbbe3e043b040f8b9b9c79f21a8327b8e32bd0
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2019-02-01 17:03:07 +08:00
Xing Zheng
fb55546177 ARM: dts: rockchip: enable 2 micbias properties for rk3308 amic boards
Change-Id: I163f1a09cdaf9e9b4e6bb4c0d78e8a9af72acfa9
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2019-02-01 11:51:37 +08:00
Xing Zheng
fa272563f2 arm64: dts: rockchip: enable 2 micbias properties for rk3308 amic boards
Change-Id: I183025bebe9c6d041c7a883ab4c2ae06fe8f82ca
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2019-02-01 11:51:32 +08:00
Xing Zheng
9c163ef822 ASoC: rk3308_codec: Add the range of MICBIAS voltages
Change-Id: Ie9d1d4fc8854cc4111cbb1a324525f849c5c470a
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2019-02-01 11:51:21 +08:00
Xing Zheng
fdff04d652 ASoC: rk3308_codec: Add controls for main MICBIAS switch
Change-Id: I8a2a113df7fd427634e1a1f81632725d7d4ecdc0
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2019-02-01 11:51:16 +08:00
Xing Zheng
bfcfeef064 ASoC: rk3308_codec: Add controls for MICBIAS1 and MICBIAS2 Switch
Change-Id: I64dcc55a993e00eee91a6fdf9ec6cd18ef40d3e1
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2019-02-01 11:51:10 +08:00
Xing Zheng
c22df0a44e dt-bindings: sound: rk3308_codec: rename internal-micbias to rockchip,micbias1(2)
Change-Id: I2302100c4b4ebf1e4a38db8a3949c7dcbfaad711
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2019-02-01 11:51:05 +08:00
Xing Zheng
55aebfa23b ASoC: rk3308_codec: To clairfy micbias1 and micbias2
Change-Id: I38ce7b06ff265213908e45edcda38f146e78a736
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2019-02-01 11:50:59 +08:00
Xing Zheng
1feeff8758 ASoC: rk3308_codec: Clean up ADC MIC gains
From the TRM, the MIC PGA gains for 8 ADCs:
- version A:
0dB, 20dB
- version B:
0dB, 6.6dB, 13dB, 20dB

Change-Id: I9cf758708ec80afe06340f48a2f71f24654f36fe
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2019-02-01 11:50:42 +08:00
Xing Zheng
5f13e3c4ea ASoC: rk3308_codec: Clean up the order of enable_micbias by alphabetically
Change-Id: I35cd9fc3e237b5abd6c9a81099b3a35a01f427c0
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2019-02-01 10:56:39 +08:00
Shengfei Xu
eefa54c0db mfd: rk808: restore the OTP value to POWER_EN register of rk817/rk809
rk817/rk809 must restore the PMIC_POWER_EN OTP value before the system reboot.

Change-Id: I2ccfbb4d47eb41cdcea048111873b6ab85477d64
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2019-02-01 10:29:53 +08:00
Wyon Bi
e57a003936 ARM: dts: rockchip: rk3288-th804-avb: assign clock parent for DCLK_VOP0 and DCLK_VOP1
Change-Id: Ibfaf29a1f78c0fbfd538dc8bc2bc97075b77849e
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2019-02-01 09:11:52 +08:00
Wyon Bi
466b1dd984 ARM: dts: rockchip: rk3288-evb-android-rk808-edp-avb: assign clock parent for DCLK_VOP0 and DCLK_VOP1
Change-Id: I8712a64b56d7da9033e798e3dbfb435a70972b88
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2019-02-01 09:11:30 +08:00
Joseph Chen
af6ef89d6f arm64: dts: rockchip: set pwm regulator in default voltage for rk3308k
rk3308k supports wide temperature feature, it makes system suspend
stable in extrem low temperature.

Change-Id: I07427c21263e5a48bc07c935291f8494e50ec9e3
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-01-31 18:32:40 +08:00
Joseph Chen
c57746b0bb dt-bindings: suspend: rk3308: add pwm regulator voltage state configure
Change-Id: I7f90cb93c1bd82def832aa930daa0de4983af90e
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-01-31 18:30:07 +08:00