when switching resolutions, the switching speed can be improved
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I4b31894274dc3238675ece907ba1682d965e71bf
linux-4.4 the trip-point name is trip-point-x, but linux-5.10
the trip-point name is trip-point@x in rk3308.dtsi
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
Change-Id: I1f484ad5081e76c18d2ab380ba2c0c13b66485e2
The RK356X DWC3 supports to set the USB 2.0 PHY enter
suspend mode if the DWC3 core suspend conditions are
valid (as per DWC3 controller databook 6.3.46 GUSB2PHYCFG
register bit6). This cause xHC driver failed to send
USB resume signal to USB 2.0 device in xhci_bus_resume().
This patch adds a quirk "xhci-u2-broken-suspend" to force
the xHC to set the link state to XDEV_RESUME and send USB
resume signal to USB 2.0 device.
Change-Id: I24c017867f80728890c0562a12e4554625913e67
Signed-off-by: William Wu <william.wu@rock-chips.com>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Rockchip SNPS xHC 3.0 set USB 2.0 PHY enter suspend mode
from DWC3 core if the suspend conditions are valid (as per
DWC3 controller databook 6.3.46 GUSB2PHYCFG register bit6).
In this case, it needs to set the bus_suspended bit for
USB 2.0, so that in xhci_bus_resume, it can set the xHC
link state to XDEV_RESUME and send USB resume signal to
USB 2.0 device.
Test on RK3568 USB 3.0 Host interface with USB 2.0 Camera
or USB 2.0 HUB which support USB auto suspend. Without this
patch, the xHC fails to send USB resume signal on the USB
bus to wakeup the USB 2.0 devices, and cause xHC died.
Change-Id: Icb5a553d71a5f3144d77f8d5a5132892a5795285
Signed-off-by: William Wu <william.wu@rock-chips.com>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
CONFIG_BCMDHD_PCIE and CONFIG_BCMDHD_SDIO can only be selected
from two configurations, since that bcmdhd driver cannot be compatible
with it at present. That just enable the CONFIG_BCMDHD_PCIE by default on
rk3588 SoCs.
Also, CONFIG_MALI_CSF_SUPPORT need be enabled by default on rk3588 SoCs.
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I053a704f6374cf7c43cd6dfa733d3d0d4214f256
1.340M_edid:remove deep color support, config 4K50/60 YUV420 only.
2.600M_edid:remove deep color support.
Signed-off-by: Dingxian Wen <shawn.wen@rock-chips.com>
Change-Id: I3e11397670aa87abea6c13d606cd2fac466e989a
make an option to compile Rockchip HW Spinlock driver.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I6f51901f1787acd5ea15dcb1a0892a065b16aa98
All the pages are freed to the system heap page pools, it is a error for
pages came from the dma32 heap pools.
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I96e50c6b741e6fdbee7e358b939658809059f421
Copy from system_heap.c.
In order to make a smooth change, CONFIG_DMABUF_HEAPS_SYSTEM
will build rk_system_heap.
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I7176b6bfecb483c87128857293be67f3e19a101a
1. sys/class/hdmirx/hdmirx/status show connected or disconnected
2. echo on/off to control hpd
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: Ib7fecdb7d227158e5278270b166b69ec2beaf8c4
Follow Documentation/devicetree/bindings/reserved-memory/ramoops.txt
This is a child-node of "/reserved-memory".
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I3f06deb6e3a49edebc03de4684c44d52d13c37e0
Follow Documentation/devicetree/bindings/reserved-memory/ramoops.txt
This is a child-node of "/reserved-memory".
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I02055d58b2e1f57f07030dbb1e1dbf74e1b37ff6
when result of --get-compose is success, but width/height equal 0,
may cause v4l2-ctl unable to save image
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ibe572b53da346aef233a15c70c6050ad2207a21d
In order to be compatible with deep color mode.
Signed-off-by: Dingxian Wen <shawn.wen@rock-chips.com>
Change-Id: I37ccb5d1130d3c30145e6c0a45632bda4542c2ac
Fixes: 2abd3af02c ("drm/bridge: analogix_dp: Use video format information from register")
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Ia48058d9f4341adaa35fb4311911c557f0b162b8
Add the companion ohci controller for usb_host0_ehci
and usb_host1_ehci. Then we can use device_link to
enforce suspend/resume and shutdown ordering for them.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I8bc7c21b257beed40163178e4a1fced0763dddd9
Rockchip ehci controller has companion ohci controller,
and the ohci depends on the ehci, if the ehci controller
has been suspend or shutdown, it shouldn't access the ohci
controller, otherwise, the system may hang in ohci_readl
or ohci_writel on Rockchip platforms.
In order to enforce suspend/resume and shutdown ordering,
this commit creates link between the ehci and ohci. This
link avoids to suspend or shutdown ehci before its companion
ohci.
Corresponding, DL_FLAG_AUTOREMOVE_CONSUMER can't be added,
then device_link_removed should be added explicitly.
Meanwhile, the ehci must not be resumed after its companion
if the companion is the consumer device of ehci.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: If2935c651341917251c2178a6833357a73b71079
Default target_load is 80% and change it by the follow command:
echo 65 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/target_load
Change-Id: Icb02c36eab345a3f2e2d065fba76fdc015f47fa4
Signed-off-by: Liang Chen <cl@rock-chips.com>
The max width and height have been set as default value(16384x16384).
If HDMI sets it to a fixed value, it will cause no output in
Debian's CMD mode.
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I2180109b285a9efd562864c6dd3c808b5667232e
isp20 mi config no save to cache and reg write to hw
Change-Id: I3cefcf26cbd7df7e63ca8fea903999d70ca34b78
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
CONFIG_BCMDHD_PCIE and CONFIG_BCMDHD_SDIO can only be selected
from two configurations, since that bcmdhd driver cannot be compatible
with it at present. SDIO interfaces are widely used by default, at least
on our EVB boards.
Tested on RK3399 EVB IND boards:
export CROSS_COMPILE=aarch64-linux-gnu-
make ARCH=arm64 rockchip_linux_defconfig rk3399_linux.config
make ARCH=arm64 rk3399-evb-ind-lpddr4-linux.img -j8
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I7c1c416b58f618e1cee8f76608c24f750437bfa1
CONFIG_MALI_CSF_SUPPORT is not used on RK356X Socs, that will cause
the mali is abnormal with RK356x Socs.
CONFIG_BCMDHD_PCIE and CONFIG_BCMDHD_SDIO can only be selected
from two configurations, since that bcmdhd driver cannot be compatible
with it at present. SDIO interfaces are widely used by default, at least
on our EVB boards.
Tested on RK3568 EVB1 boards:
export CROSS_COMPILE=aarch64-linux-gnu-
make ARCH=arm64 rockchip_linux_defconfig rk3568_linux.config
make ARCH=arm64 rk3568-evb1-ddr4-v10-linux.img -j8
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: Iea3c3d70fabe9920b95d6b096028b4d73c5b39f1
It's allowed to run without firmware protected mode entry.
While the customer of RK3588 might be troubled by the log.
Change-Id: I9f1b7c795f2095f1851692c93a7f4598acf702fc
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>