The "struct device *dev" in sd_resume is for the hard disk, and
the correct device needs to be initialized for pm_stay_awake.
Fixes: da1c2c4a2c ("scsi: sata: re enter sleep is prohibited during wake-up")
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Ic6c4a340672605ac64fc0778f6938898dee1b8eb
"struct pt_regs" is big data structure, so pass a "struct pt_regs *"
parameter is a better choice.
Change-Id: I2bef0f2cf4332c61bc6a5a0717de66db221b836d
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
"fiq_pt_regs" is a big data structures, so it'll save
lots of stack space if define "fiq_pt_regs" as a global
variable instead of a local variable.
Change-Id: Id447c41009fc4454bc821c194e9d50ec00087754
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
The MAX96745 convert DP1.4 and eDP1.4a to single or dual GMSL2 serial.
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I63951d28b4f8e6be6d1671650cee208ff0760e95
The MAX96745 and MAX96747 convert DP1.4 and
eDP1.4a to single or dual GMSL2 serial. They also send
and receive control channel and peripheral control data,
enabling bidirectional transmission of video and data over
cables in excess of 15 meters in length.
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I59a338b0ef092bde1d1a444600acd92348cc9443
The MAX96752F deserializers convert a single- or
dual-link GMSL2 serial input to single or dual OLDI.
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Ic0582fa9ce077e0af79ecd0d63af38b23feb7265
The MAX96752F/MAX96754F deserializers convert a
single- or dual-link GMSL2 serial input to single or dual
OLDI. They also send and receive side-channel and
peripheral control data, enabling full-duplex, single wire,
bidirectional transmission of video and data over 15
meter cables.
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Ibac9f881bd832e96a8606b9f6492e80f8d2494c6
The dvbm does not work, so there is no need to poweron.
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I5405e884ddec28da2796e7ce1a5bb0f96d663f11
When a video port just connect to dp and without hdmi, it still
can use hdmi phy pll as clk source if the pixel clk more than
600MHz.
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I975a0faaad867361c0888b795e9369ca1381634f
Current code only supports parsing the first CEA block.
But CTS requires parsing multiple blocks.
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I3c4b15fd5f0f08419aa540007722387bee921286
Tuning pre-emphasis and other properties for RK3308BS SoCs.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: If7bb89c04a487c54bcca81d2cdaa9ee9bb26533f
This adds the necessary data for handling otp on the rk3308bs.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: If146859d4c275bbd9ef80653d8ef206b573e0b77
This adds the necessary data for handling efuse on the px30s.
Change-Id: Iaa509d8d22102ff4d054e855d330792f0da8f382
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
SC8886 will shutdown the output off in these cases
when battery was removed:
1. INPUT CRRENT is set to 0. In Battery system, battery
would take over system supply, but in no battery system,
it would restart due to system poweroff.
2. VBat is higher than VSysmin, sc8886 would switch
system supply to VBat, But in no battery system, there
is just a capacitance, the voltage of capacitance would
be pull down quickly when supply switch and it make
system restart.
Signed-off-by: Zain Wang <wzz@rock-chips.com>
Change-Id: I0398d55d511254821744c4e7d4448ef4605af509
The value of bit[15:14] in DDR_GRF_BASE1 define px30/px30s.
px30: bit[15:14]=0x00
px30s: bit[15:14]=0x03
Change-Id: I07e31e8fd56ee2eea7883a5f5de012740ec0e98a
Signed-off-by: Liang Chen <cl@rock-chips.com>
On rockchip platforms (e.g. RK3588/RV1106), the dwc3 drd port
can be designed with Type-A interface, and when the drd work
as device mode, the vbus may be set to always on (RK3588 EVB2)
or the vbus is supplied by host.
The current code sets the desired sw_mode to device (peripheral)
when the dwc3 controller is initialized with no usb cable/device
connected, this sets the usb2 phy stay in normal mode. For device
mode with vbus always on (RK3588 EVB2), it's not standard design,
we can allow the usb2 phy to stay in normal mode to detect whether
usb device is connecting to host. But for device mode with vbus
is supplied by host (RV1106 EVB1), we can use the vbus to detect
whether usb device is connecting to host, in this case, the usb2
phy needs to be put in suspend mode by default.
In order to make the usb2 phy in suspend mode by default for
Type-A interface when drd in device mode and vbus isn't always
on, we only set the desired sw_mode to peripheral if the state
of EXTCON_USB it true.
Fixes: 58780864ccc4 ("usb: dwc3: drd: fix desired sw_mode when drd init for rockchip")
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I14a1bda0d80c71616007ca983840f3c585c1e6ef
The otg port on Rockchip platforms can be designed in
three different hardware circuits with Type-A interface.
1. RK3588 EVB2 Type-A OTG0 port with vbus is controlled
by gpio, and vbus is always in high level.
2. RV1106 EVB1 Type-A OTG port with standard vbus designed
that vbus isn't always on, and just depends on the OTG
mode, that is, when the OTG port work as device mode,
the vbus is supplied by Host, when the OTG port work
as host mode, the vbus is always on.
3. RV1103 EVB1 Type-A OTG port has no vbus pin, and we set
the utmi_bvalid of phy to high from GRF software control.
In this case, the utmi_bvalid status register is in low
level, so we can't use the utmi_bvalid status to check the
utmi_bvalid for RV1103.
In order to support the above three application scenarios
for Type-A OTG port, especially phy runtime suspend control
for device mode, we need this patch.
With this patch, we can fix the following two issues:
1. RV1106 EVB1 Type-A OTG port can't enter phy suspend if
no usb cable connected.
2. RV1103 failed to switch to device mode by "otg_mode"
node, because phy enter suspend unexpectedly.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Ia0d388345a4768a721a7e289956bca9684f69a36
RV1103 USB has no VBUS pin and we set the utmi_bvalid of phy
to come from PERI_GRF_USBPHY_CON2[14], and at the same time
set the utmi_bvalid to high by default. This case like VBUS
pin always on high level, so we need to add "vbus-always-on"
property for RV1103 USB OTG port.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Iae9297b5b9166976bc5d1f8d3a9b8f110a9e5e34
drm_bridge_attach called by a kms driver to link the bridge to
an encoder's chain, mipi driver shall init a drm_connector when
DRM_BRIDGE_ATTACH_NO_CONNECTOR is set which the bridge shall
not create a drm_connector.
Change-Id: I83f16976ce506a38d80d3595c352e7bc263a50b1
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
The voltage of MICBIAS is 0.975*AVDD, it makes the transistors
close to saturation, and appropriately reducing the voltage
can make the transistor work in a linear amplification state.
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: Ie7713176204d4c5164c2bb2f4597930748413649