This patch is used for compatible for old style mclk
reference which do not use the "mclkout_x".
Use property 'rockchip,clk-ignore-unused' instead the fixed one.
Suggest to drop this patch for totally new SDK or SoCs
in the future.
Ref: 1255f11b25 ("clk: rockchip: clk-out: Add CLK_IGNORE_UNUSED flag")
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ifa5c0be7f2aad6fc6848b49f4612a160b04d7254
This patch is used for compatible for old style mclk
reference which do not use the "mclkout_x".
Use property 'rockchip,clk-ignore-unused' instead the fixed one.
Suggest to drop this patch for totally new SDK or SoCs
in the future.
Ref: 1255f11b25 ("clk: rockchip: clk-out: Add CLK_IGNORE_UNUSED flag")
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I72797d9fa3f8367c48808489e24f544c34acab39
The clocks property is used to get avs frequency and avs scale on some
platforms, add new property rockchip,opp-clocks for pvtpll and read
margin.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ida795081e199b40a0bdfe3cb079ae8286d006057
fix unexpected exit during execution of llp tasks, The 0th
bit of the work status register indicates whether the current
task in linked-list mode has successfully completed execution.
The 4th bit indicates all tasks has been processed done.
Change-Id: I099c55e2f00cc63e9f4ee0d3e2696ccec9a5ae9a
Signed-off-by: Jacob Chen <cc@rock-chips.com>
rv1106 dual_sensor will call rkisp_hw_enum_isp_size,
if memset isp_size to 0 will cause is_on be false,
when isp pm,isp reg_save/reg_store can't be called
Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com>
Change-Id: If91e3feaf113fe8ca3d22fca92c2800c99f5b55d
On RK3588, the clocks propety in gpu and npu opp table are not pll
clock, when call rockchip_pll_clk_rate_to_scale(), it will get a wrong
pointer from to_rockchip_clk_pll, the pll->rate_count may be a large
value, and do unnecessary for loops.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I1364e8a930cc8cd9e2cb9627709eea0ba198a566
This patch add property "rockchip,dis-u2-susphy" for
u2phy_otg to avoid the usb2 phy driver set the phy
enter suspend mode if the usb is in unconnected state.
It has no side effect for phy suspend in deep sleep.
For self power board, this patch is useful in hot
plug case, it can fix uvc unrecognized issue with
the following error log:
dwc3 ffb00000.usb: failed to enable ep0out
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Ic5ba708201050e12669f098c1b554eeb625b42a2
Most of rv1106 evb1 and evb2 dts set the usbdrd_dwc3
dr_mode to peripheral, it aimed to avoid conflict when
set vbus-supply for otg host mode, likes rv1106g-evb2
v10, the USB_PWREN gpio is shared with usb vbus-supply
and emmc/spi, and set peripheral mode can also simplify
the usb controller initialization process.
However, peripheral mode causes two issues:
1. USB device can't be recognized in hot plug scenario.
The dwc3 driver print err log:
dwc3 ffb00000.usb: failed to enable ep0out
2. The dwc3 driver fails to stop controller in the
function dwc3_gadget_run_stop() when do system reboot,
and it will increase the reboot time because the stop
timeout is set to usleep_range(1000, 2000) * 2000.
If the CONFIG_HIGH_RES_TIMERS is disabled and the
CONFIG_HZ_100 is enabled, the dwc3 stop timeout will
take about 20 seconds.
The root cause of the two issues is that the usb2 phy
is set to suspend mode in phy driver if the usb in
unconnected state, and the usb controller internal
utmi clock provided by usb2 phy is also disabled.
If the dwc3 driver access the registers of the dwc3
controller while the usb2 phy in suspend mode, the
accessing operation is invalid.
This patch sets the dr_mode to otg, then the dwc3
driver will enable the pm runtime and avoid accessing
its registers while the usb2 phy in suspend mode.
In otg mode, the dwc3 uses the extcon notifier from
the usb2 phy to set peripheral or host mode.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I0e77771c2ef62ee6b86c5d7d6444ea7539e51833
* Add RK3583 NPU support
* Add kernel mapping control in RV1106
* Add hardware elapse time support
* Fix issue of double core execution in auto mode
* Fix multi-cores schedule issue due to task number incorrect sort
Signed-off-by: Felix Zeng <felix.zeng@rock-chips.com>
Change-Id: I861dd571e7229befe424842c06a5d249e34abf67
1. Add iommu fault handle for soft ccu flow
2. Optimize iommu fault handle for hard ccu flow
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I7efc0e006469ef673b96a537555e345fd0f92a2f
1. modify mbus_fmt to 8bit
2. modify the edge of sampling to rising
Change-Id: I771b9c0df5a582576de18a5877a898f35336d661
Signed-off-by: yuefu.su <yuefu.su@rock-chips.com>