dsc config done only can by config one time when enable, otherwise will
lead to display splash screen.
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I242d5a992b4981d2fde1b9cdb8aae6ffe9e39c4d
For Type-C interface with PD chip (e.g FUSB302), the vbus-det
pin is always pulled up. So the A-valid and B-valid registers
art not change in this case, however, we still want to check
the usb hotplug in otg_sm_work, so let's check the vbus valid
software control registers which are set in typec_switch ops
(e.g udphy_orien_sw_set() on RK3588 Type-C).
Furthermore, schedule the otg_sm_work immediately after phy
init for charger detection before usb enumeration.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I00d2e3e1094e35e9cb34632a9607b372d593e62a
Add new property "rockchip,typec-vbus-det" for the RK3588 and
RK3588S boards which support Type-C interface and the vbus det
pin is always pulled up.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I0cc1bc339238f41b0dc05c374fa69bf3daeeb42a
This patch adds "rockchip,typec-vbus-det" property for
Type-C interface with vbusdet pin always pulled up.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Ib56e107456ad32ae6e1b87aaf530070884b71f84
When query vop internal power domain on/off
status from PMU BISR_STS3, 1 is for power up,
0 is for power down, this is different from
the pd status in vop.
Fixes: edf7edcdee29("drm/rockchip: vop2: Check PMU_BISR_STATUS register
for pd status when bisr enabled")
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: I25d7dbe777511571e9b156aeafba94a5bdfe26da
NV21/NV61/NV42 are uv swap format for NV12/NV16/NV24
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: I5bffb542bcaacde38089880e7738ab00e32d27d3
Registering orien switch only when "orientation-switch" property
is configured in DT.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: Ic2701911583d8ad047d596c3c91ba32b56d62fff
The uboot Type-C PD driver needs to poll the interrupt gpio level,
but the uboot code does not have a suitable interface to convert the
attributes of "interrupt-parent" and "interrupts" to standard gpio,
so add int-n-gpios configure for uboot to analyze and use.
Change-Id: Ib415902f11a35f8f8ee141297a53aa80dbb1cbaa
Signed-off-by: Wang Jie <dave.wang@rock-chips.com>
Register a virtual drm connector driver to
replace the real hardware connector like HDMI/DP/MIPI.
This can be used for some vop test.
When a virtual connector is enabled, the corresponding
real hardware connector should be disabled.
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: Ic10436e97208cafe3013a4ff800c9b4168bf6e7e
Ensure that the device registers system monitor successfully when use
scmi clk or read margin, so that the volt_adjust_mutex is available.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ieecaa763f0c423658259a05d9f843c7860673e44
If the devices had been used by firmware and the resource had
been assigned to them but not from the kernel. It won't work for all
as not all devices allowed to reassign resource except for reset it.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: Ica9ff9f52e1099aafdc03ae686788f8d8818ddd0
Enable wakeup in the hym8563 driver if the IRQ was successfully
requested or if wakeup-source is set in the devicetree.
As per the description of device_init_wakeup(), it should be enabled
for "devices that everyone expects to be wakeup sources". One would
expect this to be the case with a real-time clock.
Tested on rk3288-rock2-square, which has an IRQ configured for the
RTC. As a result, wakeup was enabled during driver initialisation.
Change-Id: I1e0c3f99d38c84ba7e6c15bf8919a3f30289e7ae
Fixes: dcaf038493 ("rtc: add hym8563 rtc-driver")
Reported-by: kernelci.org bot <bot@kernelci.org>
Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/1ea023e2ba50a4dab6e39be93d7de3146af71a60.1604653374.git.guillaume.tucker@collabora.com
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit c56ac7a0f4)
This patch sets iddig_en to 1 for RK3588 USB3_0 and
USB3_1 by default, then it can handle the id irq in
rockchip_usb2phy_irq() if the mode is USB_DR_MODE_HOST
when the PD_BUS is power off.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Ifee1155c72eead4d9faf74b7808c4dd2f6f719eb
When the ‘reg’ of the debugger is turned on, since the RGA has been
executed, after turning off the pd in the interrupt, the register
may continue to be read.
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Ic23e5e5bfe879ea6879a9322972500988415966d
standby vop2 to ensure dsi2 core not busy when DSI2_MODE_CTRL
change from data stream to command mode.
Change-Id: Id46d1a199ae1b9421b61622dd9fca6dda08c2781
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>