Uboot use the Standard Lz4 format to decompress kernel Image.lz4,
So, we should use the standard one for lz4 compression.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ic299314a6377e68fac477f451d1ffcae9e8466ce
This reverts commit aa5ccab207.
Linux kernel still use Legacy lz4 format for self-decompression.
So, we should use the legacy one('lz4 -l') for lz4 compression.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ic10f9cb65bcc7fadd2071b97f8effb958f54d0a4
The usb2-phy driver needs to know the plug-in and plug-out information
from TCPM (Type-C Port Manager) for USB2.0 Type-C scheme, so adds the
orientation switch support in usb2-phy driver, and the corresponding
DT nodes is required, please refer to the following example.
[...]
&u2phy0 {
orientation-switch;
port {
#address-cells = <1>;
#size-cells = <0>;
u2phy0_orientation_switch: endpoint@0 {
reg = <0>;
remote-endpoint = <&usbc0_orien_sw>;
};
};
};
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I51ca0999dcecaf4aa9f21be453dce2fddb6f9c9f
the pmic_pins(gpio0a2,gpio0a3,gpio0a7,gpio0c1,gpio0c2,gpio0c3,gpio0d6)
are used for pmic dvs and interrupt.
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I0f749e01d2ba7716b705fba8489f0040ae88ac7f
The RK3588 USB OTG controller already supported to switch
Device/Host mode by software, so set dr_mode to otg for
RK3588 EVB2/NVR and RK3588S EVB2.
With this patch, the USB OTG controller still works as
Device mode by default. You can use the following two
methods to switch Device/Host mode.
Method 1.[Legacy]
1. Switch to Host mode
echo 1 > /sys/devices/platform/fd5d0000.syscon/fd5d0000.syscon:usb2-phy@0/otg_mode
or
echo host > /sys/devices/platform/fd5d0000.syscon/fd5d0000.syscon:usb2-phy@0/otg_mode
2. Switch to Device mode
echo 2 > /sys/devices/platform/fd5d0000.syscon/fd5d0000.syscon:usb2-phy@0/otg_mode
or
echo peripheral > /sys/devices/platform/fd5d0000.syscon/fd5d0000.syscon:usb2-phy@0/otg_mode
Methed 2.[New]
1. Switch to Host mode
echo host > /sys/kernel/debug/usb/fc000000.usb/mode
2. Switch to Device mode
echo device > /sys/kernel/debug/usb/fc000000.usb/mode
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I291ac53cb5920c71a631cb76d1167eea8bbf4ee2
type will return an exit status of false when the name is not found.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ia5f719550c5e6eab3373f6d45c63f5f77d29b688
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