mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Add kernel 5.15 for RPI4 support
This commit is contained in:
parent
e961d478cd
commit
df88a19bbd
638 changed files with 239907 additions and 0 deletions
|
@ -0,0 +1,53 @@
|
|||
From 64dcb7d73ce9451d72d23d170843ce605f0de739 Mon Sep 17 00:00:00 2001
|
||||
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
||||
Date: Tue, 3 Aug 2021 11:25:59 +0100
|
||||
Subject: [PATCH 486/634] media: i2c: imx290: Add fwnode properties controls
|
||||
|
||||
Add call to v4l2_ctrl_new_fwnode_properties to read and
|
||||
create the fwnode based controls.
|
||||
|
||||
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
||||
---
|
||||
drivers/media/i2c/imx290.c | 12 +++++++++++-
|
||||
1 file changed, 11 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/drivers/media/i2c/imx290.c b/drivers/media/i2c/imx290.c
|
||||
index c09b5a22e1a8..4291c77f5a01 100644
|
||||
--- a/drivers/media/i2c/imx290.c
|
||||
+++ b/drivers/media/i2c/imx290.c
|
||||
@@ -1239,6 +1239,7 @@ static const struct of_device_id imx290_of_match[] = {
|
||||
|
||||
static int imx290_probe(struct i2c_client *client)
|
||||
{
|
||||
+ struct v4l2_fwnode_device_properties props;
|
||||
struct device *dev = &client->dev;
|
||||
struct fwnode_handle *endpoint;
|
||||
/* Only CSI2 is supported for now: */
|
||||
@@ -1360,7 +1361,7 @@ static int imx290_probe(struct i2c_client *client)
|
||||
*/
|
||||
imx290_entity_init_cfg(&imx290->sd, NULL);
|
||||
|
||||
- v4l2_ctrl_handler_init(&imx290->ctrls, 9);
|
||||
+ v4l2_ctrl_handler_init(&imx290->ctrls, 11);
|
||||
|
||||
v4l2_ctrl_new_std(&imx290->ctrls, &imx290_ctrl_ops,
|
||||
V4L2_CID_ANALOGUE_GAIN, 0, 100, 1, 0);
|
||||
@@ -1408,6 +1409,15 @@ static int imx290_probe(struct i2c_client *client)
|
||||
ARRAY_SIZE(imx290_test_pattern_menu) - 1,
|
||||
0, 0, imx290_test_pattern_menu);
|
||||
|
||||
+ ret = v4l2_fwnode_device_parse(&client->dev, &props);
|
||||
+ if (ret)
|
||||
+ goto free_ctrl;
|
||||
+
|
||||
+ ret = v4l2_ctrl_new_fwnode_properties(&imx290->ctrls, &imx290_ctrl_ops,
|
||||
+ &props);
|
||||
+ if (ret)
|
||||
+ goto free_ctrl;
|
||||
+
|
||||
imx290->sd.ctrl_handler = &imx290->ctrls;
|
||||
|
||||
if (imx290->ctrls.error) {
|
||||
--
|
||||
2.33.1
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue