[PATCH v9 1/2] media: ov7740: Document device tree bindings

2017-12-10 Thread Wenyou Yang
Add the device tree binding documentation for the ov7740 sensor driver. Signed-off-by: Wenyou Yang Acked-by: Rob Herring --- Changes in v9: None Changes in v8: None Changes in v7: - Add Acked-by tag. Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - Explicitly

[PATCH v9 2/2] media: i2c: Add the ov7740 image sensor driver

2017-12-10 Thread Wenyou Yang
The ov7740 (color) image sensor is a high performance VGA CMOS image snesor, which supports for output formats: RAW RGB and YUV and image sizes: VGA, and QVGA, CIF and any size smaller. Signed-off-by: Songjun Wu Signed-off-by: Wenyou Yang --- Changes in v9: - Use the new SPDX ids. Changes in

[PATCH v9 0/2] media: ov7740: Add a V4L2 sensor-level driver

2017-12-10 Thread Wenyou Yang
ERS change to a separate patch. Changes in v2: - Split off the bindings into a separate patch. - Add a new entry to the MAINTAINERS file. Wenyou Yang (2): media: ov7740: Document device tree bindings media: i2c: Add the ov7740 image sensor driver .../devicetree/bindings/media

[PATCH v8 2/2] media: i2c: Add the ov7740 image sensor driver

2017-12-07 Thread Wenyou Yang
The ov7740 (color) image sensor is a high performance VGA CMOS image snesor, which supports for output formats: RAW RGB and YUV and image sizes: VGA, and QVGA, CIF and any size smaller. Signed-off-by: Songjun Wu Signed-off-by: Wenyou Yang --- Changes in v8: - As the registers are written at

[PATCH v8 1/2] media: ov7740: Document device tree bindings

2017-12-07 Thread Wenyou Yang
Add the device tree binding documentation for the ov7740 sensor driver. Signed-off-by: Wenyou Yang Acked-by: Rob Herring --- Changes in v8: None Changes in v7: - Add Acked-by tag. Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - Explicitly document the "r

[PATCH v8 0/2] media: ov7740: Add a V4L2 sensor-level driver

2017-12-07 Thread Wenyou Yang
ges in v2: - Split off the bindings into a separate patch. - Add a new entry to the MAINTAINERS file. Wenyou Yang (2): media: ov7740: Document device tree bindings media: i2c: Add the ov7740 image sensor driver .../devicetree/bindings/media/i2c/ov7740.txt | 47 + MAINTAINERS

[PATCH v7 0/2] media: ov7740: Add a V4L2 sensor-level driver

2017-12-05 Thread Wenyou Yang
oid warning: "REG_REG15" redefined. Changes in v3: - Explicitly document the "remote-endpoint" property. - Put the MAINTAINERS change to a separate patch. Changes in v2: - Split off the bindings into a separate patch. - Add a new entry to the MAINTAINERS file. Wenyou Yang

[PATCH v7 2/2] media: i2c: Add the ov7740 image sensor driver

2017-12-05 Thread Wenyou Yang
The ov7740 (color) image sensor is a high performance VGA CMOS image snesor, which supports for output formats: RAW RGB and YUV and image sizes: VGA, and QVGA, CIF and any size smaller. Signed-off-by: Songjun Wu Signed-off-by: Wenyou Yang --- Changes in v7: - Fix the wrong handle of default

[PATCH v7 1/2] media: ov7740: Document device tree bindings

2017-12-05 Thread Wenyou Yang
Add the device tree binding documentation for the ov7740 sensor driver. Signed-off-by: Wenyou Yang Acked-by: Rob Herring --- Changes in v7: - Add Acked-by tag. Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - Explicitly document the "remote-endpoint"

[PATCH v6 2/2] media: i2c: Add the ov7740 image sensor driver

2017-12-03 Thread Wenyou Yang
The ov7740 (color) image sensor is a high performance VGA CMOS image snesor, which supports for output formats: RAW RGB and YUV and image sizes: VGA, and QVGA, CIF and any size smaller. Signed-off-by: Songjun Wu Signed-off-by: Wenyou Yang --- Changes in v6: - Remove unnecessary #include

[PATCH v6 1/2] media: ov7740: Document device tree bindings

2017-12-03 Thread Wenyou Yang
Add the device tree binding documentation for the ov7740 sensor driver. Signed-off-by: Wenyou Yang --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - Explicitly document the "remote-endpoint" property. Changes in v2: None .../devicetree/bindings

[PATCH v6 0/2] media: ov7740: Add a V4L2 sensor-level driver

2017-12-03 Thread Wenyou Yang
ange to a separate patch. Changes in v2: - Split off the bindings into a separate patch. - Add a new entry to the MAINTAINERS file. Wenyou Yang (2): media: ov7740: Document device tree bindings media: i2c: Add the ov7740 image sensor driver .../devicetree/bindings/media/i2

[PATCH v5 2/2] media: i2c: Add the ov7740 image sensor driver

2017-11-27 Thread Wenyou Yang
The ov7740 (color) image sensor is a high performance VGA CMOS image snesor, which supports for output formats: RAW RGB and YUV and image sizes: VGA, and QVGA, CIF and any size smaller. Signed-off-by: Songjun Wu Signed-off-by: Wenyou Yang --- Changes in v5: - Squash the driver and MAINTAINERS

[PATCH v5 1/2] media: ov7740: Document device tree bindings

2017-11-27 Thread Wenyou Yang
Add the device tree binding documentation for the ov7740 sensor driver. Signed-off-by: Wenyou Yang --- Changes in v5: None Changes in v4: None Changes in v3: - Explicitly document the "remote-endpoint" property. Changes in v2: None .../devicetree/bindings/media/i2c/ov7740.txt

[PATCH v5 0/2] media: ov7740: Add a V4L2 sensor-level driver

2017-11-27 Thread Wenyou Yang
eparate patch. - Add a new entry to the MAINTAINERS file. Wenyou Yang (2): media: ov7740: Document device tree bindings media: i2c: Add the ov7740 image sensor driver .../devicetree/bindings/media/i2c/ov7740.txt | 47 + MAINTAINERS

[PATCH v4 3/3] MAINTAINERS: Add a new entry of the ov7740 driver

2017-10-30 Thread Wenyou Yang
Add a new entry of the ov7740 sensor driver to the MAINTAINERS file. Signed-off-by: Wenyou Yang --- Changes in v4: None Changes in v3: - Put the MAINTAINERS change to a separate patch. Changes in v2: - Split off the bindings into a separate patch. - Add a new entry to the MAINTAINERS file

[PATCH v4 2/3] media: ov7740: Document device tree bindings

2017-10-30 Thread Wenyou Yang
Add the device tree binding documentation for the ov7740 sensor driver. Signed-off-by: Wenyou Yang --- Changes in v4: None Changes in v3: - Explicitly document the "remote-endpoint" property. Changes in v2: None .../devicetree/bindings/media/i2c/ov7740.txt

[PATCH v4 1/3] media: i2c: Add the ov7740 image sensor driver

2017-10-30 Thread Wenyou Yang
The ov7740 (color) image sensor is a high performance VGA CMOS image snesor, which supports for output formats: RAW RGB and YUV and image sizes: VGA, and QVGA, CIF and any size smaller. Signed-off-by: Songjun Wu Signed-off-by: Wenyou Yang --- Changes in v4: - Assign 'val' a initia

[PATCH v4 0/3] media: ov7740: Add a V4L2 sensor-level driver

2017-10-30 Thread Wenyou Yang
v3: - Explicitly document the "remote-endpoint" property. - Put the MAINTAINERS change to a separate patch. Changes in v2: - Split off the bindings into a separate patch. - Add a new entry to the MAINTAINERS file. Wenyou Yang (3): media: i2c: Add the ov7740 image sensor driver medi

[PATCH v3 3/3] MAINTAINERS: Add a new entry of the ov7740 driver

2017-10-29 Thread Wenyou Yang
Add a new entry of the ov7740 sensor driver to the MAINTAINERS file. Signed-off-by: Wenyou Yang --- Changes in v3: - Put the MAINTAINERS change to a separate patch. Changes in v2: - Split off the bindings into a separate patch. - Add a new entry to the MAINTAINERS file. MAINTAINERS | 8

[PATCH v3 2/3] media: ov7740: Document device tree bindings

2017-10-29 Thread Wenyou Yang
Add the device tree binding documentation for the ov7740 sensor driver. Signed-off-by: Wenyou Yang --- Changes in v3: - Explicitly document the "remote-endpoint" property. Changes in v2: None .../devicetree/bindings/media/i2c/ov7740.txt | 47 ++ 1 file c

[PATCH v3 0/3] media: ov7740: Add a V4L2 sensor-level driver

2017-10-29 Thread Wenyou Yang
w entry to the MAINTAINERS file. Wenyou Yang (3): media: i2c: Add the ov7740 image sensor driver media: ov7740: Document device tree bindings MAINTAINERS: Add a new entry of the ov7740 driver .../devicetree/bindings/media/i2c/ov7740.txt | 47 + M

[PATCH v3 1/3] media: i2c: Add the ov7740 image sensor driver

2017-10-29 Thread Wenyou Yang
The ov7740 (color) image sensor is a high performance VGA CMOS image snesor, which supports for output formats: RAW RGB and YUV and image sizes: VGA, and QVGA, CIF and any size smaller. Signed-off-by: Songjun Wu Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: None drivers

[PATCH] media: atmel-isc: Fix clock ID for clk_prepare/unprepare

2017-10-29 Thread Wenyou Yang
Fix the clock ID to do the runtime pm should be ISC_ISPCK, instead of ISC_MCK in clk_prepare(), clk_unprepare() and isc_clk_is_enabled(). Signed-off-by: Wenyou Yang --- drivers/media/platform/atmel/atmel-isc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers

[PATCH v2 2/2] media: ov7740: Document device tree bindings

2017-10-27 Thread Wenyou Yang
Add the device tree binding documentation for ov7740 driver and add a new entry of ov7740 to the MAINTAINERS file. Signed-off-by: Wenyou Yang --- Changes in v2: - Split off the bindings into a separate patch. - Add a new entry to the MAINTAINERS file. .../devicetree/bindings/media/i2c

[PATCH v2 0/2] media: ov7740: Add a V4L2 sensor-level driver

2017-10-27 Thread Wenyou Yang
Add a Video4Linux2 sensor-level driver for the OmniVision OV7740 VGA camera image sensor. Changes in v2: - Split off the bindings into a separate patch. - Add a new entry to the MAINTAINERS file. Wenyou Yang (2): media: i2c: Add the ov7740 image sensor driver media: ov7740: Document device

[PATCH v2 1/2] media: i2c: Add the ov7740 image sensor driver

2017-10-27 Thread Wenyou Yang
The ov7740 (color) image sensor is a high performance VGA CMOS image snesor, which supports for output formats: RAW RGB and YUV and image sizes: VGA, and QVGA, CIF and any size smaller. Signed-off-by: Songjun Wu Signed-off-by: Wenyou Yang --- Changes in v2: None drivers/media/i2c/Kconfig

[PATCH] media: i2c: Add the ov7740 image sensor driver

2017-10-26 Thread Wenyou Yang
From: Songjun Wu The ov7740 (color) image sensor is a high performance VGA CMOS image snesor, which supports for output formats: RAW RGB and YUV and image sizes: VGA, and QVGA, CIF and any size smaller. Signed-off-by: Songjun Wu Signed-off-by: Wenyou Yang --- .../devicetree/bindings/media

[PATCH v5 1/5] media: atmel-isc: Add spin lock for clock enable ops

2017-10-26 Thread Wenyou Yang
Add the spin lock for the clock enable and disable operations. Signed-off-by: Wenyou Yang --- Changes in v5: None Changes in v4: None Changes in v3: - Fix the wrong used spinlock. - s/_/- on the subject. Changes in v2: None drivers/media/platform/atmel/atmel-isc.c | 15 ++- 1

[PATCH v5 5/5] media: atmel-isc: Rework the format list

2017-10-26 Thread Wenyou Yang
register configuration. Also add more formats support: GREY, ARGB444, ARGB555 and ARGB32. Signed-off-by: Wenyou Yang --- Changes in v5: None Changes in v4: None Changes in v3: - Add a new flag for Raw Bayer format to remove MAX_RAW_FMT_INDEX define. - Add the comments for define of the format flag

[PATCH v5 0/5] media: atmel-isc: Rework the format list and clock provider

2017-10-26 Thread Wenyou Yang
lementations https://www.mail-archive.com/linux-media@vger.kernel.org/msg118342.html Wenyou Yang (5): media: atmel-isc: Add spin lock for clock enable ops media: atmel-isc: Add prepare and unprepare ops media: atmel-isc: Enable the clocks during probe media: atmel-isc: Remove unnece

[PATCH v5 4/5] media: atmel-isc: Remove unnecessary member

2017-10-26 Thread Wenyou Yang
Remove the memeber *config from the isc_subdev_entity struct, the member is useless afterward. Signed-off-by: Wenyou Yang --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/media/platform/atmel/atmel-isc.c | 10 ++ 1 file changed, 2 insertions

[PATCH v5 2/5] media: atmel-isc: Add prepare and unprepare ops

2017-10-26 Thread Wenyou Yang
ISC_CLKDIS register. Signed-off-by: Wenyou Yang --- Changes in v5: - Fix the clock ID which enters the runtime suspend should be ISC_ISPCK, instead of ISC_MCK for clk_prepare/clk_unprepare(). Changes in v4: - Call pm_runtime_get_sync() and pm_runtime_put_sync() in ->prepare

[PATCH v5 3/5] media: atmel-isc: Enable the clocks during probe

2017-10-26 Thread Wenyou Yang
To meet the relationship, enable the HCLOCK and ispck during the device probe, "isc_pck frequency is less than or equal to isc_ispck, and isc_ispck is greater than or equal to HCLOCK." Meanwhile, call the pm_runtime_enable() in the right place. Signed-off-by: Wenyou Yang --- Cha

[PATCH v6 3/3] media: ov7670: Add the ov7670_s_power function

2017-10-15 Thread Wenyou Yang
Add the ov7670_s_power function which is responsible for manipulating the power dowm mode through the PWDN pin and the reset operation through the RESET pin, and keep it powered at all times. Signed-off-by: Wenyou Yang --- Changes in v6: - Remove .s_power callback to keep the ov7670 powered at

[PATCH v6 2/3] media: ov7670: Add the get_fmt callback

2017-10-15 Thread Wenyou Yang
Add the get_fmt callback, also enable V4L2_SUBDEV_FL_HAS_DEVNODE flag to make this subdev has device node. Signed-off-by: Wenyou Yang --- Changes in v6: None Changes in v5: - Fix the build warning on the declaration *mbus_fmt(ISO C90 forbids mixed). Changes in v4: - Fix the build error when

[PATCH v6 0/3] media: ov7670: Add entity init and power operation

2017-10-15 Thread Wenyou Yang
struct. - Add the internal_ops callback to set default format. Changes in v2: - Add the patch to support the get_fmt ops. - Remove the redundant invoking ov7670_init_gpio(). Wenyou Yang (3): media: ov7670: Add entity pads initialization media: ov7670: Add the get_fmt callback media: ov7670

[PATCH v6 1/3] media: ov7670: Add entity pads initialization

2017-10-15 Thread Wenyou Yang
Add the media entity pads initialization. Signed-off-by: Wenyou Yang --- Changes in v6: None Changes in v5: None Changes in v4: - Fix the build error when not enabling Media Controller API option. Changes in v3: None Changes in v2: None drivers/media/i2c/ov7670.c | 21

[PATCH v4 4/5] media: atmel-isc: Remove unnecessary member

2017-10-09 Thread Wenyou Yang
Remove the memeber *config from the isc_subdev_entity struct, the member is useless afterward. Signed-off-by: Wenyou Yang --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/media/platform/atmel/atmel-isc.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions

[PATCH v4 5/5] media: atmel-isc: Rework the format list

2017-10-09 Thread Wenyou Yang
register configuration. Also add more formats support: GREY, ARGB444, ARGB555 and ARGB32. Signed-off-by: Wenyou Yang --- Changes in v4: None Changes in v3: - Add a new flag for Raw Bayer format to remove MAX_RAW_FMT_INDEX define. - Add the comments for define of the format flag. - Rebase

[PATCH v4 3/5] media: atmel-isc: Enable the clocks during probe

2017-10-09 Thread Wenyou Yang
To meet the relationship, enable the HCLOCK and ispck during the device probe, "isc_pck frequency is less than or equal to isc_ispck, and isc_ispck is greater than or equal to HCLOCK." Meanwhile, call the pm_runtime_enable() in the right place. Signed-off-by: Wenyou Yang --- Cha

[PATCH v4 2/5] media: atmel-isc: Add prepare and unprepare ops

2017-10-09 Thread Wenyou Yang
ISC_CLKDIS register. Signed-off-by: Wenyou Yang --- Changes in v4: - Call pm_runtime_get_sync() and pm_runtime_put_sync() in ->prepare and ->unprepare callback. Changes in v3: None Changes in v2: None drivers/media/platform/atmel/atmel-isc-regs.h | 1 + drivers/media/platform/atmel

[PATCH v4 0/5] media: atmel-isc: Rework the format list and clock provider

2017-10-09 Thread Wenyou Yang
[PATCH 0/6] [media] Atmel: Adjustments for seven function implementations https://www.mail-archive.com/linux-media@vger.kernel.org/msg118342.html Wenyou Yang (5): media: atmel-isc: Add spin lock for clock enable ops media: atmel-isc: Add prepare and unprepare ops media: atmel

[PATCH v4 1/5] media: atmel-isc: Add spin lock for clock enable ops

2017-10-09 Thread Wenyou Yang
Add the spin lock for the clock enable and disable operations. Signed-off-by: Wenyou Yang --- Changes in v4: None Changes in v3: - Fix the wrong used spinlock. - s/_/- on the subject. Changes in v2: None drivers/media/platform/atmel/atmel-isc.c | 15 ++- 1 file changed, 14

[PATCH v3 5/5] media: atmel-isc: Rework the format list

2017-09-28 Thread Wenyou Yang
register configuration. Also add more formats support: GREY, ARGB444, ARGB555 and ARGB32. Signed-off-by: Wenyou Yang --- Changes in v3: - Add a new flag for Raw Bayer format to remove MAX_RAW_FMT_INDEX define. - Add the comments for define of the format flag. - Rebase media_tree/master. Changes

[PATCH v3 4/5] media: atmel-isc: Remove unnecessary member

2017-09-28 Thread Wenyou Yang
Remove the memeber *config from the isc_subdev_entity struct, the member is useless afterward. Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: None drivers/media/platform/atmel/atmel-isc.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers

[PATCH v3 3/5] media: atmel-isc: Enable the clocks during probe

2017-09-28 Thread Wenyou Yang
To meet the relationship, enable the HCLOCK and ispck during the device probe, "isc_pck frequency is less than or equal to isc_ispck, and isc_ispck is greater than or equal to HCLOCK." Meanwhile, call the pm_runtime_enable() in the right place. Signed-off-by: Wenyou Yang --- Changes i

[PATCH v3 2/5] media: atmel-isc: Add prepare and unprepare ops

2017-09-28 Thread Wenyou Yang
ISC_CLKDIS register. Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: None drivers/media/platform/atmel/atmel-isc-regs.h | 1 + drivers/media/platform/atmel/atmel-isc.c | 30 +++ 2 files changed, 31 insertions(+) diff --git a/drivers/media/platform

[PATCH v3 1/5] media: atmel-isc: Add spin lock for clock enable ops

2017-09-28 Thread Wenyou Yang
Add the spin lock for the clock enable and disable operations. Signed-off-by: Wenyou Yang --- Changes in v3: - Fix the wrong used spinlock. - s/_/- on the subject. Changes in v2: None drivers/media/platform/atmel/atmel-isc.c | 15 ++- 1 file changed, 14 insertions(+), 1

[PATCH v3 0/5] media: atmel-isc: Rework the format list and clock provider

2017-09-28 Thread Wenyou Yang
implementations https://www.mail-archive.com/linux-media@vger.kernel.org/msg118342.html Wenyou Yang (5): media: atmel-isc: Add spin lock for clock enable ops media: atmel-isc: Add prepare and unprepare ops media: atmel-isc: Enable the clocks during probe media: atmel-isc: Remove unnecessary

[PATCH v5 3/3] media: ov7670: Add the s_power operation

2017-09-18 Thread Wenyou Yang
Add the s_power operation which is responsible for manipulating the power dowm mode through the PWDN pin and the reset operation through the RESET pin. Signed-off-by: Wenyou Yang --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - Add the patch to support the

[PATCH v5 2/3] media: ov7670: Add the get_fmt callback

2017-09-18 Thread Wenyou Yang
Add the get_fmt callback, also enable V4L2_SUBDEV_FL_HAS_DEVNODE flag to make this subdev has device node. Signed-off-by: Wenyou Yang --- Changes in v5: - Fix the build warning on the declaration *mbus_fmt(ISO C90 forbids mixed). Changes in v4: - Fix the build error when not enabling V4L2

[PATCH v5 1/3] media: ov7670: Add entity pads initialization

2017-09-18 Thread Wenyou Yang
Add the media entity pads initialization. Signed-off-by: Wenyou Yang --- Changes in v5: None Changes in v4: - Fix the build error when not enabling Media Controller API option. Changes in v3: None Changes in v2: None drivers/media/i2c/ov7670.c | 21 - 1 file changed, 20

[PATCH v5 0/3] media: ov7670: Add entity init and power operation

2017-09-18 Thread Wenyou Yang
. - Remove the redundant invoking ov7670_init_gpio(). Wenyou Yang (3): media: ov7670: Add entity pads initialization media: ov7670: Add the get_fmt callback media: ov7670: Add the s_power operation drivers/media/i2c/ov7670.c | 130 ++--- 1 file changed, 123

[PATCH v4 3/3] media: ov7670: Add the s_power operation

2017-09-17 Thread Wenyou Yang
Add the s_power operation which is responsible for manipulating the power dowm mode through the PWDN pin and the reset operation through the RESET pin. Signed-off-by: Wenyou Yang --- Changes in v4: None Changes in v3: None Changes in v2: - Add the patch to support the get_fmt ops. - Remove

[PATCH v4 1/3] media: ov7670: Add entity pads initialization

2017-09-17 Thread Wenyou Yang
Add the media entity pads initialization. Signed-off-by: Wenyou Yang --- Changes in v4: - Fix the build error when not enabling Media Controller API option. Changes in v3: None Changes in v2: None drivers/media/i2c/ov7670.c | 21 - 1 file changed, 20 insertions(+), 1

[PATCH v4 2/3] media: ov7670: Add the get_fmt callback

2017-09-17 Thread Wenyou Yang
Add the get_fmt callback, also enable V4L2_SUBDEV_FL_HAS_DEVNODE flag to make this subdev has device node. Signed-off-by: Wenyou Yang --- Changes in v4: - Fix the build error when not enabling V4L2 sub-device userspace API option. Changes in v3: - Keep tried format info in the try_fmt member

[PATCH v4 0/3] media: ov7670: Add entity init and power operation

2017-09-17 Thread Wenyou Yang
: - Keep tried format info in the try_fmt member of v4l2_subdev__pad_config struct. - Add the internal_ops callback to set default format. Changes in v2: - Add the patch to support the get_fmt ops. - Remove the redundant invoking ov7670_init_gpio(). Wenyou Yang (3): media: ov7670: Add entity

[PATCH v2 5/5] media: atmel-isc: Rework the format list

2017-09-17 Thread Wenyou Yang
register configuration. Also add more formats support: GREY, ARGB444, ARGB555 and ARGB32. Signed-off-by: Wenyou Yang --- Changes in v2: - Add the new patch to remove the unnecessary member from isc_subdev_entity struct. - Rebase on the patch set, [PATCH 0/6] [media] Atmel: Adjustments

[PATCH v2 4/5] media: atmel-isc: Remove unnecessary member

2017-09-17 Thread Wenyou Yang
Remove the memeber *config from the isc_subdev_entity struct, the member is useless afterward. Signed-off-by: Wenyou Yang --- Changes in v2: None drivers/media/platform/atmel/atmel-isc.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/media/platform

[PATCH v2 3/5] media: atmel-isc: Enable the clocks during probe

2017-09-17 Thread Wenyou Yang
To meet the relationship, enable the HCLOCK and ispck during the device probe, "isc_pck frequency is less than or equal to isc_ispck, and isc_ispck is greater than or equal to HCLOCK." Meanwhile, call the pm_runtime_enable() in the right place. Signed-off-by: Wenyou Yang --- Changes i

[PATCH v2 2/5] media: atmel-isc: Add prepare and unprepare ops

2017-09-17 Thread Wenyou Yang
ISC_CLKDIS register. Signed-off-by: Wenyou Yang --- Changes in v2: None drivers/media/platform/atmel/atmel-isc-regs.h | 1 + drivers/media/platform/atmel/atmel-isc.c | 30 +++ 2 files changed, 31 insertions(+) diff --git a/drivers/media/platform/atmel/atmel-isc

[PATCH v2 1/5] media: atmel_isc: Add spin lock for clock enable ops

2017-09-17 Thread Wenyou Yang
Add the spin lock for the clock enable and disable operations. Signed-off-by: Wenyou Yang --- Changes in v2: None drivers/media/platform/atmel/atmel-isc.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/atmel/atmel-isc.c b/drivers

[PATCH v2 0/5] media: atmel-isc: Rework the format list and the clock

2017-09-17 Thread Wenyou Yang
] [media] Atmel: Adjustments for seven function implementations https://www.mail-archive.com/linux-media@vger.kernel.org/msg118342.html Wenyou Yang (5): media: atmel_isc: Add spin lock for clock enable ops media: atmel-isc: Add prepare and unprepare ops media: atmel-isc: Enable the clocks

[PATCH v3 3/3] media: ov7670: Add the s_power operation

2017-09-17 Thread Wenyou Yang
Add the s_power operation which is responsible for manipulating the power dowm mode through the PWDN pin and the reset operation through the RESET pin. Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: - Add the patch to support the get_fmt ops. - Remove the redundant invoking

[PATCH v3 2/3] media: ov7670: Add the get_fmt callback

2017-09-17 Thread Wenyou Yang
Add the get_fmt callback, also enable V4L2_SUBDEV_FL_HAS_DEVNODE flag to make this subdev has device node. Signed-off-by: Wenyou Yang --- Changes in v3: - Keep tried format info in the try_fmt member of v4l2_subdev__pad_config struct. - Add the internal_ops callback to set default format

[PATCH v3 1/3] media: ov7670: Add entity pads initialization

2017-09-17 Thread Wenyou Yang
Add the media entity pads initialization. Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: None drivers/media/i2c/ov7670.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/ov7670.c b/drivers/media/i2c/ov7670.c index

[PATCH v3 0/3] media: ov7670: Add entity init and power operation

2017-09-17 Thread Wenyou Yang
the patch to support the get_fmt ops. - Remove the redundant invoking ov7670_init_gpio(). Wenyou Yang (3): media: ov7670: Add entity pads initialization media: ov7670: Add the get_fmt callback media: ov7670: Add the s_power operation drivers/media/i2c/ov7670.c | 103

[PATCH v2 3/3] media: ov7670: Add the s_power operation

2017-09-13 Thread Wenyou Yang
Add the s_power operation which is responsible for manipulating the power dowm mode through the PWDN pin and the reset operation through the RESET pin. Signed-off-by: Wenyou Yang --- Changes in v2: - Add the patch to support the get_fmt ops. - Remove the redundant invoking ov7670_init_gpio

[PATCH v2 2/3] media: ov7670: Add the get_fmt callback

2017-09-13 Thread Wenyou Yang
Add the get_fmt callback, also enable V4L2_SUBDEV_FL_HAS_DEVNODE flag to make this subdev has device node. Signed-off-by: Wenyou Yang --- Changes in v2: None drivers/media/i2c/ov7670.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/media/i2c/ov7670.c b

[PATCH v2 1/3] media: ov7670: Add entity pads initialization

2017-09-13 Thread Wenyou Yang
Add the media entity pads initialization. Signed-off-by: Wenyou Yang --- Changes in v2: None drivers/media/i2c/ov7670.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/ov7670.c b/drivers/media/i2c/ov7670.c index e88549f0e704..5c8460ee65c3

[PATCH v2 0/3] media: ov7670: Add entity init and power operation

2017-09-13 Thread Wenyou Yang
This patch set is to add the media entity pads initialization, the s_power operation and get_fmt callback support. Changes in v2: - Add the patch to support the get_fmt ops. - Remove the redundant invoking ov7670_init_gpio(). Wenyou Yang (3): media: ov7670: Add entity pads initialization

[PATCH 4/4] media: atmel-isc: Rework the format list

2017-08-31 Thread Wenyou Yang
register configuration. Also add more formats support: GREY, ARGB444, ARGB555 and ARGB32. Signed-off-by: Wenyou Yang --- drivers/media/platform/atmel/atmel-isc.c | 524 --- 1 file changed, 405 insertions(+), 119 deletions(-) diff --git a/drivers/media/platform/atmel

[PATCH 2/4] media: atmel-isc: Add prepare and unprepare ops

2017-08-31 Thread Wenyou Yang
ISC_CLKDIS register. Signed-off-by: Wenyou Yang --- drivers/media/platform/atmel/atmel-isc-regs.h | 1 + drivers/media/platform/atmel/atmel-isc.c | 30 +++ 2 files changed, 31 insertions(+) diff --git a/drivers/media/platform/atmel/atmel-isc-regs.h b/drivers/media

[PATCH 3/4] media: atmel-isc: Enable the clocks during probe

2017-08-31 Thread Wenyou Yang
To meet the relationship, enable the HCLOCK and ispck during the device probe, "isc_pck frequency is less than or equal to isc_ispck, and isc_ispck is greater than or equal to HCLOCK." Meanwhile, call the pm_runtime_enable() in the right place. Signed-off-by: Wenyou Yang --- dri

[PATCH 1/4] media: atmel_isc: Add spin lock for clock enable ops

2017-08-31 Thread Wenyou Yang
Add the spin lock for the clock enable and disable operations. Signed-off-by: Wenyou Yang --- drivers/media/platform/atmel/atmel-isc.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/atmel/atmel-isc.c b/drivers/media/platform/atmel

[PATCH 0/4] media: atmel-isc: Rework the format list and the clock

2017-08-31 Thread Wenyou Yang
To improve the readability of code, rework the format list table, split the format array into two. And fix the clock operation issue. Wenyou Yang (4): media: atmel_isc: Add spin lock for clock enable ops media: atmel-isc: Add prepare and unprepare ops media: atmel-isc: Enable the clocks

[PATCH 3/3] media: atmel-isc: Add more format configurations

2017-08-17 Thread Wenyou Yang
Add the configuration of formats: GREY, ARGB444, ARGB555 and ARGB32. Signed-off-by: Wenyou Yang --- drivers/media/platform/atmel/atmel-isc.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/atmel/atmel-isc.c b/drivers/media

[PATCH 2/3] media: atmel-isc: Remove the redundant assignment

2017-08-17 Thread Wenyou Yang
Remove the redundant assignment of members in the isc_formats array. Signed-off-by: Wenyou Yang --- drivers/media/platform/atmel/atmel-isc.c | 64 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/drivers/media/platform/atmel/atmel-isc.c b

[PATCH 1/3] media: atmel-isc: Not support RBG format from sensor.

2017-08-17 Thread Wenyou Yang
The 12-bit parallel interface supports the Raw Bayer, YCbCr, Monochrome and JPEG Compressed pixel formats from the external sensor, not support RBG pixel format. Signed-off-by: Wenyou Yang --- drivers/media/platform/atmel/atmel-isc.c | 5 + 1 file changed, 5 insertions(+) diff --git a

[PATCH 0/3] media: atmel-isc: Supplement the configuration of formats

2017-08-17 Thread Wenyou Yang
The intention of the patch set is to add more configuration of formats: GREY, ARGB444, ARGB555 and ARGB32, and add the checking the format from the extern sensor which doesn't support RGB formats from the external sensor. Wenyou Yang (3): media: atmel-isc: Not support RBG format from s

[PATCH] ARM: dts: at91: sama5d2_xplained: Add charger node

2017-08-14 Thread Wenyou Yang
From: Wenyou Yang Add the charger device node as a sub-device of act8945a mfd, move the charger's properties in the node, and replace the "active-semi,irq_gpios" with the "interrupts" property to denote the act8945a charger's irq. Signed-off-by: Wenyou Yang

[PATCH 2/2] media: ov7670: Add the s_power operation

2017-08-10 Thread Wenyou Yang
Add the s_power operation which is responsible for manipulating the power dowm mode through the PWDN pin and the reset operation through the RESET pin. Signed-off-by: Wenyou Yang --- drivers/media/i2c/ov7670.c | 30 +++--- 1 file changed, 27 insertions(+), 3 deletions

[PATCH 1/2] media: ov7670: Add entity pads initialization

2017-08-10 Thread Wenyou Yang
Add the media entity pads initialization. Signed-off-by: Wenyou Yang --- drivers/media/i2c/ov7670.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/ov7670.c b/drivers/media/i2c/ov7670.c index e88549f0e704..5c8460ee65c3 100644 --- a/drivers

[PATCH 0/2] media: ov7670: Add entity init and power operation

2017-08-10 Thread Wenyou Yang
This patch set is to add the media entity pads initialization and add the s_power operation. Wenyou Yang (2): media: ov7670: Add entity pads initialization media: ov7670: Add the s_power operation drivers/media/i2c/ov7670.c | 43 +++ 1 file changed

[PATCH v2] ARM: at91/defconfig: add MCAN driver to sama5_defconfig

2017-05-15 Thread Wenyou Yang
Add the Controller Area Network (MCAN) driver compilation for sama5 default configuration. Is used by sama5d2 SoC for instance. Signed-off-by: Wenyou Yang --- Changes in v2: - Rebase on Linux-4.12-rc1. arch/arm/configs/sama5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch

[PATCH v3] ARM: dts: at91: sama5d2: add m_can nodes

2017-04-23 Thread Wenyou Yang
e default configured in 0x0020. To avoid conflict with SRAM map for PM, change them to 0x0021 in the AT91Bootstrap via setting the CAN Memories Address-based Register(SFR_CAN) of SFR. Signed-off-by: Wenyou Yang Tested-by: Quentin Schulz --- The patch is tested on SAMA5D2 Xplained and based

[PATCH v2] ARM: dts: at91: sama5d2: add m_can nodes

2017-04-19 Thread Wenyou Yang
e default configured in 0x0020. To avoid conflict with SRAM map for PM, change them to 0x0021 in the AT91Bootstrap via setting the CAN Memories Address-based Register(SFR_CAN) of SFR. Signed-off-by: Wenyou Yang --- The patch is tested on SAMA5D2 Xplained and based on the patch set, 1. [PATC

[PATCH] ARM: dts: at91: sama5d2: add m_can nodes

2017-03-06 Thread Wenyou Yang
with SRAM map for pm, change them to 0x0021 in the AT91Bootstrap via setting the CAN Memories Address-based Register(SFR_CAN) of SFR. Signed-off-by: Wenyou Yang --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 24 + arch/arm/boot/dts/sama5d2.dtsi | 56 ++

[PATCH] ARM: at91/defconfig: add MCAN driver to sama5_defconfig

2017-03-06 Thread Wenyou Yang
Add the Controller Area Network (MCAN) driver compilation for sama5 default configuration. Is used by sama5d2 SoC for instance. Signed-off-by: Wenyou Yang --- arch/arm/configs/sama5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm

[PATCH v2] can: m_can: enable transmission of FD frame on latest version

2017-03-05 Thread Wenyou Yang
Enables the transmission of CAN FD frames on M_CAN IP core >= v3.1.x and with the bit rate switching. Tested on M_CAN IP 3.1.0 (CREL = 0x31040730) of SAMA5D2 SoC. Signed-off-by: Wenyou Yang --- The testing is based on [RESEND PATCH 1/1] can: m_can: fix bitrate setup on latest silicon h

[PATCH] can: m_can: support transmit frame in CAN FD format

2017-03-02 Thread Wenyou Yang
Add support to transmit the frame in the CAN FD format and with the bit rate switching. Tested on SAMA5D2 Xplained board. Signed-off-by: Wenyou Yang --- The testing is based on [RESEND PATCH 1/1] can: m_can: fix bitrate setup on latest silicon http://lkml.iu.edu/hypermail/linux/kernel/1702.1

[PATCH 1/3] ARM: at91: flush the L2 cache before entering cpu idle

2017-01-05 Thread Wenyou Yang
For the SoCs such as SAMA5D2 and SAMA5D4 which have L2 cache, flush the L2 cache first before entering the cpu idle. Signed-off-by: Wenyou Yang --- arch/arm/mach-at91/pm.c | 19 +++ drivers/memory/atmel-sdramc.c | 1 + 2 files changed, 20 insertions(+) diff --git a/arch

[PATCH 0/3] ARM: at91: fix cpuidle crash on SAMA5D4 Xplained board

2017-01-05 Thread Wenyou Yang
Fix cpuidle crash on SAMA5D4 Xplained board when enable CONFIG_ARM_AT91_CPUIDLE. Because some SoCs have the L2 cache, we should flush the L2 cache before entering the cpu idle. Wenyou Yang (3): ARM: at91: flush the L2 cache before entering cpu idle doc: binding: add new compatible for SDRAM

[PATCH 2/3] doc: binding: add new compatible for SDRAM/DDR Controller

2017-01-05 Thread Wenyou Yang
Add the new compatible "atmel,sama5d4-ddramc" for the SDRAM/DDR Controller. Signed-off-by: Wenyou Yang --- Documentation/devicetree/bindings/arm/atmel-at91.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/atmel-at91.txt b/Documentation/

[PATCH 3/3] ARM: dts: at91: use "atmel,sama5d4-ddramc" for ramc

2017-01-05 Thread Wenyou Yang
Use the new compatible "atmel,sama5d4-ddramc" for the ramc of SAMA5D2 and SAMA5D4. Signed-off-by: Wenyou Yang --- arch/arm/boot/dts/sama5d2.dtsi | 2 +- arch/arm/boot/dts/sama5d4.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sama5d2.d

[PATCH v3] ARM: at91/dt: add dts file for sama5d36ek CMP board

2016-11-20 Thread Wenyou Yang
Signed-off-by: Wenyou Yang --- Changes in v3: - Use a dual license scheme for DT files. - Use the proper model name and the compatible string to reflect the nature of this new "CMP" board. - Change name of wakeup property to "wakeup-source". - Remove unnecessary comments.

[PATCH v2] iio: adc: at91: add suspend and resume callback

2016-11-02 Thread Wenyou Yang
Add suspend/resume callback, support the pinctrl sleep state when the system suspend as well. Signed-off-by: Wenyou Yang --- Changes in v2: - Use CONFIG_PM_SLEEP. - Use SIMPLE_DEV_PM_OPS macro. drivers/iio/adc/at91_adc.c | 28 1 file changed, 28 insertions

[PATCH v2] ARM: at91/dt: add dts file for sama5d36ek CMP board

2016-11-01 Thread Wenyou Yang
Signed-off-by: Wenyou Yang --- Changes in v2: - Add the pinctrl sleep state for adc0 node to fix the over consumption on VDDANA. - Improve the commit log. arch/arm/boot/dts/sama5d36ek_cmp.dts | 51 +++ arch/arm/boot/dts/sama5d3xcm_cmp.dtsi | 166 + ar

[PATCH v1] iio: adc: at91: add suspend and resume callback

2016-11-01 Thread Wenyou Yang
Add suspend/resume callback, support the pinctrl sleep state when the system suspend as well. Signed-off-by: Wenyou Yang --- drivers/iio/adc/at91_adc.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc

  1   2   3   4   5   6   7   >