According to the application scenario, DP0/DP1 may be bind to the
same vp port, or different vp port. The corresponding bit in output_if
needs to be set or cleared correctly.
Change-Id: I880946d0c61a209d5a16ff7d2aada43f87a075c5
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
Because the usb3_0 super-speed phy driver is ready, let's
remove the maximum-speed limit for usb3_0 on nvr demo board.
Add also enable the usbdp_phy1_u3 to force usb3_1 to u2 only.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: If8835a667ad9e561d0291130b8fd1fbbe0fc6206
We should check PMU_BISR_STATUS register for
pd on/off status when bisr memory repair is
enabled.
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: If1d0927551ddea9757c70b3a948367132a83ed5c
It's too late to set the aux channel polarity. Some
sink device will not send attention cmd to indicate
hpd plug event. Setting the aux channel polarity earlier.
When detecting the connected status is disconnected,
Setting the gpio status to low.
Fixes: 8081c70a82: ("phy: rockchip: usbdp-phy: add pointer check, avoid NULL pointer")
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: Ie653a043f9d3cecf489846d7edbd6eca73f5ee28
spi_mem_default_supports_op() rejects DTR ops by default to ensure that
the controller drivers that haven't been updated with DTR support
continue to reject them. It also makes sure that controllers that don't
support DTR mode at all (which is most of them at the moment) also
reject them.
This means that controller drivers that want to support DTR mode can't
use spi_mem_default_supports_op(). Driver authors have to roll their own
supports_op() function and mimic the buswidth checks. See
spi-cadence-quadspi.c for example. Or even worse, driver authors might
skip it completely or get it wrong.
Add spi_mem_dtr_supports_op(). It provides a basic sanity check for DTR
ops and performs the buswidth requirement check. Move the logic for
checking buswidth in spi_mem_default_supports_op() to a separate
function so the logic is not repeated twice.
Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20210204141218.32229-1-p.yadav@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Bug: 207737303
(cherry picked from commit 539cf68cd5)
Change-Id: Iaa3951c2e3f51f265b9bea583a3c8bd4fed80bb7
Signed-off-by: Jindong Yue <jindong.yue@nxp.com>
Enable SPI memory extension to provide high-level
interface to send memory-like commands, which are
used by vendor SPI controllers, like spi-nxp-fspi.
Bug: 207737303
Signed-off-by: Jindong Yue <jindong.yue@nxp.com>
Change-Id: I9ea58edc1407bead42970c4cc74c5d4a93c99d13
PCIe need pipe clock for interface with phy;
Note that pcie controller also need its clock(has been set critical)
ACLK_PHP_GIC_ITS, and ACLK_PCIE_BRIDGE(has been set as parent).
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Change-Id: I98b2c001e8d0568af482cef8702a73a6cbd661f6
enable ROCKCHIP_HDMI ASoC driver to report jack status.
Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Change-Id: I61dd19266747cfa2eb97030c107d95924f80f03d
Compared to 4.19, there are many new algorithm boundary
condition tests in 5.10. Drivers need to be fixed to
pass these tests and increase driver robustness.
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: I597a478a5cfff5fa6c5389f45adec21acb63c68e
Reads the extended DPRX caps (%DP_DP13_DPCD_REV) if present.
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I5c442e4c92917e136665b3dd5554abef9b7c81e5
When use Typc-C Interface, after detect CC connect, we assume
the usbdp phy can be use as multi-function(both usb and dp use)
and init the phy in multi-function mode. If the sink only
support only dp function, we need reinit the usbdp phy only dp
function.
When enter dp mode, config the pin assignment, get the attention
cmd from sink, tcpm will callback the mux set. But we only need
the info when hpd is true.
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I25aa718e4b41b9645aa456a2767addfbd624318c
The tablet only uses edp and dp display interfaces(edp->vp2,dp->vp1),
so remove vp0&vp3
Signed-off-by: Jianhui Wang <wjh@rock-chips.com>
Change-Id: I1c56a95c4bd3c052f18ed43fd3b9962156b59b22
Tablet's rear camera convert fpc decrease the dvdd,
so need raise nldo4 voltage to ensure rear camera ov50c40 normal.
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Id36f920dd80d9072cf3265a6cc992ae648c77142
Generally, bq25700 is only source for USB VBUS, bq25700 should
respond all EXTCON_USB_VBUS_EN requests.
And at OTG mode, there may be no EXTCON_USB_HOST_EN changes,
in this case, USB always keeps vbus output even if it used
as device mode.
Signed-off-by: Zain Wang <wzz@rock-chips.com>
Change-Id: I0b50be90bfc70ad296c1ec67d5a39f2b1c26920d
Prevents mishandling USB requests that are no longer present.
Bug: 161010552
Fixes: 483cb5629e ("ANDROID: usb: gadget: f_accessory: Add Android Accessory function")
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Change-Id: I8ff24d6d49214c3bd10a1b5d5e72814ec2a91c61
Commit 94e5305a38 ("usb: ehci: handshake CMD_RUN instead of STS_HALT")
that got added into 5.10.79, added a new bitfield to the struct ehci_hcd
structure. This bitfield is only used by the ehci core, and does not
change the size of the structure overall at all, so comment it properly
so that the CRC of any ehci functions do not change, and update the .xml
file with the newly added bitfield:
Leaf changes summary: 1 artifact changed
Changed leaf types summary: 1 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 0 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable
'struct ehci_hcd at ehci.h:111:1' changed:
type size hasn't changed
1 data member insertion:
'unsigned int is_aspeed', at offset 15 (in bits) at ehci.h:226:1
one impacted interface
Bug: 161946584
Fixes: 94e5305a38 ("usb: ehci: handshake CMD_RUN instead of STS_HALT")
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Id5d3a9324d9a15f8baaf4aefedda786ed6d949c2