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
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
This patch try to fix this issue by caching the dma-buf attachments and
stores the cache list to dtor_data of dma-buf structor. The dma-buf
attach with cache will try to find cached attachment first and return
the valid instance.
This patch also store the deattch operation to dtor of dma-buf structor
by dma_buf_set_destructor.
Change-Id: I4778c3328825f6c04f5d2608994e62fe3478bf1b
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
dma-buf destructor support is useful as it allows clients an opportunity
to undo any attributes, such as security attributes, they have applied to
the dma-buf's memory.
The destructor is called when the dma-buf is freed, if the destructor
returns an error the dma-buf's exporter release function is not called in
order to ensure that memory which has not been properly cleaned up isn't
returned to the system.
Signed-off-by: Liam Mark <lmark@codeaurora.org>
Signed-off-by: Swathi Sridhar <swatsrid@codeaurora.org>
[surenb: cherry-picked from:
3af4db1543c9 "dma-buf: Add support to set a destructor on a dma-buf"]
Bug: 150611569
Test: build
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I2d435b99fb9b1747bc1b32a4e0d484957614a5a3
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
This patch aims to configure usb for better compatibility.
1. Set ssc downward spread spectrum.
2. Enable the adaptive Continuous Time Linear Equalizer (CTLE).
3. Set ssc to 31.5KHz for 24MHz ref clk.
4. Adjusts the PLL the parameters for USB Rx to pass the
Receiver Jitter Tolerance Test, and it's helpful to
improve the USB 3.0 signal compatibility.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Ide2e2325e9d273c0ebbcd9786eb256e85a042c1a