Re: [PATCH v1 2/6] [media] ov9650: add device tree support

2017-06-27 Thread Hugues FRUCHET
On 06/27/2017 07:36 AM, Sakari Ailus wrote: > On Mon, Jun 26, 2017 at 07:46:34PM +0200, H. Nikolaus Schaller wrote: >> Hi, >> >>> Am 26.06.2017 um 18:31 schrieb Sakari Ailus : >>> >>> Hi Hugues, >>> >>> On Thu, Jun 22, 2017 at 05:05:38PM +0200, Hugues Fruchet wrote: @@

Re: [PATCH v1 2/6] [media] ov9650: add device tree support

2017-06-27 Thread Hugues FRUCHET
On 06/27/2017 07:36 AM, Sakari Ailus wrote: > On Mon, Jun 26, 2017 at 07:46:34PM +0200, H. Nikolaus Schaller wrote: >> Hi, >> >>> Am 26.06.2017 um 18:31 schrieb Sakari Ailus : >>> >>> Hi Hugues, >>> >>> On Thu, Jun 22, 2017 at 05:05:38PM +0200, Hugues Fruchet wrote: @@ -1545,15 +1577,22 @@

Re: [PATCH v1 2/6] [media] ov9650: add device tree support

2017-06-26 Thread Sakari Ailus
On Mon, Jun 26, 2017 at 07:46:34PM +0200, H. Nikolaus Schaller wrote: > Hi, > > > Am 26.06.2017 um 18:31 schrieb Sakari Ailus : > > > > Hi Hugues, > > > > On Thu, Jun 22, 2017 at 05:05:38PM +0200, Hugues Fruchet wrote: > >> @@ -1545,15 +1577,22 @@ static int

Re: [PATCH v1 2/6] [media] ov9650: add device tree support

2017-06-26 Thread Sakari Ailus
On Mon, Jun 26, 2017 at 07:46:34PM +0200, H. Nikolaus Schaller wrote: > Hi, > > > Am 26.06.2017 um 18:31 schrieb Sakari Ailus : > > > > Hi Hugues, > > > > On Thu, Jun 22, 2017 at 05:05:38PM +0200, Hugues Fruchet wrote: > >> @@ -1545,15 +1577,22 @@ static int ov965x_remove(struct i2c_client

Re: [PATCH v1 2/6] [media] ov9650: add device tree support

2017-06-26 Thread H. Nikolaus Schaller
Hi, > Am 26.06.2017 um 18:31 schrieb Sakari Ailus : > > Hi Hugues, > > On Thu, Jun 22, 2017 at 05:05:38PM +0200, Hugues Fruchet wrote: >> @@ -1545,15 +1577,22 @@ static int ov965x_remove(struct i2c_client *client) >> } >> >> static const struct i2c_device_id ov965x_id[] =

Re: [PATCH v1 2/6] [media] ov9650: add device tree support

2017-06-26 Thread H. Nikolaus Schaller
Hi, > Am 26.06.2017 um 18:31 schrieb Sakari Ailus : > > Hi Hugues, > > On Thu, Jun 22, 2017 at 05:05:38PM +0200, Hugues Fruchet wrote: >> @@ -1545,15 +1577,22 @@ static int ov965x_remove(struct i2c_client *client) >> } >> >> static const struct i2c_device_id ov965x_id[] = { >> -{ "OV9650",

Re: [PATCH v1 2/6] [media] ov9650: add device tree support

2017-06-26 Thread Sakari Ailus
Hi Hugues, On Thu, Jun 22, 2017 at 05:05:38PM +0200, Hugues Fruchet wrote: > @@ -1545,15 +1577,22 @@ static int ov965x_remove(struct i2c_client *client) > } > > static const struct i2c_device_id ov965x_id[] = { > - { "OV9650", 0 }, > - { "OV9652", 0 }, > + { "OV9650", 0x9650 }, >

Re: [PATCH v1 2/6] [media] ov9650: add device tree support

2017-06-26 Thread Sakari Ailus
Hi Hugues, On Thu, Jun 22, 2017 at 05:05:38PM +0200, Hugues Fruchet wrote: > @@ -1545,15 +1577,22 @@ static int ov965x_remove(struct i2c_client *client) > } > > static const struct i2c_device_id ov965x_id[] = { > - { "OV9650", 0 }, > - { "OV9652", 0 }, > + { "OV9650", 0x9650 }, >

[PATCH v1 2/6] [media] ov9650: add device tree support

2017-06-22 Thread Hugues Fruchet
Allows use of device tree configuration data. If no device tree data is there, configuration is taken from platform data. In order to keep GPIOs configuration compatible between both way of doing, GPIOs are switched to descriptor-based interface. Signed-off-by: H. Nikolaus Schaller

[PATCH v1 2/6] [media] ov9650: add device tree support

2017-06-22 Thread Hugues Fruchet
Allows use of device tree configuration data. If no device tree data is there, configuration is taken from platform data. In order to keep GPIOs configuration compatible between both way of doing, GPIOs are switched to descriptor-based interface. Signed-off-by: H. Nikolaus Schaller