mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
ODROID-C5: arm64/dts: Enable vdin1 node
vdin1 node is removed in this commit :
[fb2690f09 ODROID-C5: arm64/dts: Removed unused nodes.]
However, this node is required to support screen capture using
/dev/video12 node which is related with amlvideo2 driver.
Without this, driver couldn't acquire the memory space to store frame data,
and it returns EBUSY error when VIDIOC_STREAMON is performed by ioctl.
Signed-off-by: phillip.choi <phillip.choi@hardkernel.com>
Change-Id: Ica2e8676e54982f01610505b8d06d0a23eb03db8
This commit is contained in:
committed by
Dongjin Kim
parent
c9056b6fc7
commit
45c52df48c
@@ -175,6 +175,16 @@
|
||||
size = <0x0 0x1000000>;
|
||||
alignment = <0x0 0x100000>;
|
||||
};
|
||||
/* vdin1 CMA pool */
|
||||
vdin1_cma_reserved:linux,vdin1_cma {
|
||||
compatible = "shared-dma-pool";
|
||||
reusable;
|
||||
/* up to 1280x720 nv21 8bit and 4 buffers
|
||||
* 1280x720x1.5x4 = 8 M
|
||||
*/
|
||||
size = <0x0 0x00800000>;
|
||||
alignment = <0x0 0x400000>;
|
||||
};
|
||||
/* global autoconfigured region for contiguous allocations */
|
||||
linux,cma {
|
||||
compatible = "shared-dma-pool";
|
||||
@@ -1047,6 +1057,21 @@
|
||||
hdcp = "disabled";
|
||||
};
|
||||
|
||||
/*if you want to use vdin just modify status to "ok"*/
|
||||
&vdin1 {
|
||||
/*compatible = "amlogic, vdin-s7d";*/
|
||||
memory-region = <&vdin1_cma_reserved>;
|
||||
frame_buff_num = <4>;
|
||||
status = "ok"
|
||||
/*vdin write mem color depth support:
|
||||
*bit0:support 8bit
|
||||
*bit1:support 9bit
|
||||
*bit2:support 10bit
|
||||
*bit3:support 12bit
|
||||
*/
|
||||
tv_bit_mode = <1>;
|
||||
};
|
||||
|
||||
&pwm_a {
|
||||
pinctrl-0 = <&pwm_a_gpio_x6>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
Reference in New Issue
Block a user