* [RFC 1/5] media: dt-bindings: Document 'location' property [not found] <20190814202815.32491-1-jacopo@jmondi.org> @ 2019-08-14 20:28 ` Jacopo Mondi 2019-08-14 22:40 ` Laurent Pinchart 2019-08-15 6:56 ` Sakari Ailus 0 siblings, 2 replies; 9+ messages in thread From: Jacopo Mondi @ 2019-08-14 20:28 UTC (permalink / raw) To: Mauro Carvalho Chehab, Hans Verkuil, Sakari Ailus, Laurent Pinchart, Rob Herring Cc: Jacopo Mondi, open list:MEDIA INPUT INFRASTRUCTURE V4L/DVB, open list, devicetree Add the 'location' device property, used to specify the camera device mounting position. The property is particularly meaningful for mobile devices with a well defined usage orientation. Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> --- Documentation/devicetree/bindings/media/video-interfaces.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/media/video-interfaces.txt b/Documentation/devicetree/bindings/media/video-interfaces.txt index f884ada0bffc..819077b2649c 100644 --- a/Documentation/devicetree/bindings/media/video-interfaces.txt +++ b/Documentation/devicetree/bindings/media/video-interfaces.txt @@ -89,6 +89,10 @@ Optional properties but a number of degrees counter clockwise. Typical values are 0 and 180 (upside down). +- location: The camera device mounting position, relative to the device + usage orientation. Possible values are: + 0 - Front camera. The image sensor is mounted on the front side of the device. + 1 - Back camera. The image sensor is mounted on the back side of the device. Optional endpoint properties ---------------------------- -- 2.22.0 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [RFC 1/5] media: dt-bindings: Document 'location' property 2019-08-14 20:28 ` [RFC 1/5] media: dt-bindings: Document 'location' property Jacopo Mondi @ 2019-08-14 22:40 ` Laurent Pinchart 2019-08-15 6:56 ` Sakari Ailus 1 sibling, 0 replies; 9+ messages in thread From: Laurent Pinchart @ 2019-08-14 22:40 UTC (permalink / raw) To: Jacopo Mondi Cc: Mauro Carvalho Chehab, Hans Verkuil, Sakari Ailus, Rob Herring, open list:MEDIA INPUT INFRASTRUCTURE (V4L/DVB), open list, devicetree Hi Jacopo, Thank you for the patch. On Wed, Aug 14, 2019 at 10:28:11PM +0200, Jacopo Mondi wrote: > Add the 'location' device property, used to specify the camera device > mounting position. The property is particularly meaningful for mobile > devices with a well defined usage orientation. > > Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> > --- > Documentation/devicetree/bindings/media/video-interfaces.txt | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/devicetree/bindings/media/video-interfaces.txt b/Documentation/devicetree/bindings/media/video-interfaces.txt > index f884ada0bffc..819077b2649c 100644 > --- a/Documentation/devicetree/bindings/media/video-interfaces.txt > +++ b/Documentation/devicetree/bindings/media/video-interfaces.txt > @@ -89,6 +89,10 @@ Optional properties > but a number of degrees counter clockwise. Typical values are 0 and 180 > (upside down). > > +- location: The camera device mounting position, relative to the device > + usage orientation. Possible values are: I would mention "camera sensor" explicitly here, as well as clearly stating that the property applies to camera sensors only. > + 0 - Front camera. The image sensor is mounted on the front side of the device. > + 1 - Back camera. The image sensor is mounted on the back side of the device. An additional paragraph explained what "device usage orientation" means would be useful. In particular I would give examples for phones, tablets and laptops. > > Optional endpoint properties > ---------------------------- -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [RFC 1/5] media: dt-bindings: Document 'location' property 2019-08-14 20:28 ` [RFC 1/5] media: dt-bindings: Document 'location' property Jacopo Mondi 2019-08-14 22:40 ` Laurent Pinchart @ 2019-08-15 6:56 ` Sakari Ailus 2019-08-15 12:55 ` Laurent Pinchart ` (2 more replies) 1 sibling, 3 replies; 9+ messages in thread From: Sakari Ailus @ 2019-08-15 6:56 UTC (permalink / raw) To: Jacopo Mondi Cc: Mauro Carvalho Chehab, Hans Verkuil, Laurent Pinchart, Rob Herring, open list:MEDIA INPUT INFRASTRUCTURE (V4L/DVB), open list, devicetree Hi Jacopo, On Wed, Aug 14, 2019 at 10:28:11PM +0200, Jacopo Mondi wrote: > Add the 'location' device property, used to specify the camera device > mounting position. The property is particularly meaningful for mobile > devices with a well defined usage orientation. > > Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> > --- > Documentation/devicetree/bindings/media/video-interfaces.txt | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/devicetree/bindings/media/video-interfaces.txt b/Documentation/devicetree/bindings/media/video-interfaces.txt > index f884ada0bffc..819077b2649c 100644 > --- a/Documentation/devicetree/bindings/media/video-interfaces.txt > +++ b/Documentation/devicetree/bindings/media/video-interfaces.txt > @@ -89,6 +89,10 @@ Optional properties > but a number of degrees counter clockwise. Typical values are 0 and 180 > (upside down). > > +- location: The camera device mounting position, relative to the device > + usage orientation. Possible values are: > + 0 - Front camera. The image sensor is mounted on the front side of the device. > + 1 - Back camera. The image sensor is mounted on the back side of the device. Would it make sense to make this a little more generic? Such as s/image sensor/ device/, for instance? Is this also relevant for flash or lens devices? Flash (torch) devices could be present, at least principle, without a camera. There once was even such a Nokia phone, 1100 unless I'm mistaken. :-) -- Regards, Sakari Ailus sakari.ailus@linux.intel.com ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [RFC 1/5] media: dt-bindings: Document 'location' property 2019-08-15 6:56 ` Sakari Ailus @ 2019-08-15 12:55 ` Laurent Pinchart 2019-08-15 12:55 ` Jacopo Mondi 2019-09-01 17:24 ` Pavel Machek 2 siblings, 0 replies; 9+ messages in thread From: Laurent Pinchart @ 2019-08-15 12:55 UTC (permalink / raw) To: Sakari Ailus Cc: Jacopo Mondi, Mauro Carvalho Chehab, Hans Verkuil, Rob Herring, open list:MEDIA INPUT INFRASTRUCTURE (V4L/DVB), open list, devicetree Hi Sakari, On Thu, Aug 15, 2019 at 09:56:35AM +0300, Sakari Ailus wrote: > On Wed, Aug 14, 2019 at 10:28:11PM +0200, Jacopo Mondi wrote: > > Add the 'location' device property, used to specify the camera device > > mounting position. The property is particularly meaningful for mobile > > devices with a well defined usage orientation. > > > > Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> > > --- > > Documentation/devicetree/bindings/media/video-interfaces.txt | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/media/video-interfaces.txt b/Documentation/devicetree/bindings/media/video-interfaces.txt > > index f884ada0bffc..819077b2649c 100644 > > --- a/Documentation/devicetree/bindings/media/video-interfaces.txt > > +++ b/Documentation/devicetree/bindings/media/video-interfaces.txt > > @@ -89,6 +89,10 @@ Optional properties > > but a number of degrees counter clockwise. Typical values are 0 and 180 > > (upside down). > > > > +- location: The camera device mounting position, relative to the device > > + usage orientation. Possible values are: > > + 0 - Front camera. The image sensor is mounted on the front side of the device. > > + 1 - Back camera. The image sensor is mounted on the back side of the device. > > Would it make sense to make this a little more generic? Such as s/image > sensor/ device/, for instance? > > Is this also relevant for flash or lens devices? I certainly hope that the flash or lens will be located on the same side as the sensor... :-) It could however make sense to extend usage of this property yet. I'm not sure I would do so already though, unless you think all flash and lens controllers should really use it. > Flash (torch) devices could be present, at least principle, without a > camera. There once was even such a Nokia phone, 1100 unless I'm mistaken. > :-) -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [RFC 1/5] media: dt-bindings: Document 'location' property 2019-08-15 6:56 ` Sakari Ailus 2019-08-15 12:55 ` Laurent Pinchart @ 2019-08-15 12:55 ` Jacopo Mondi 2019-08-15 12:58 ` Laurent Pinchart 2019-09-01 17:24 ` Pavel Machek 2 siblings, 1 reply; 9+ messages in thread From: Jacopo Mondi @ 2019-08-15 12:55 UTC (permalink / raw) To: Sakari Ailus Cc: Mauro Carvalho Chehab, Hans Verkuil, Laurent Pinchart, Rob Herring, open list:MEDIA INPUT INFRASTRUCTURE (V4L/DVB), open list, devicetree [-- Attachment #1: Type: text/plain, Size: 2517 bytes --] Hi Sakari, On Thu, Aug 15, 2019 at 09:56:35AM +0300, Sakari Ailus wrote: > Hi Jacopo, > > On Wed, Aug 14, 2019 at 10:28:11PM +0200, Jacopo Mondi wrote: > > Add the 'location' device property, used to specify the camera device > > mounting position. The property is particularly meaningful for mobile > > devices with a well defined usage orientation. > > > > Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> > > --- > > Documentation/devicetree/bindings/media/video-interfaces.txt | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/media/video-interfaces.txt b/Documentation/devicetree/bindings/media/video-interfaces.txt > > index f884ada0bffc..819077b2649c 100644 > > --- a/Documentation/devicetree/bindings/media/video-interfaces.txt > > +++ b/Documentation/devicetree/bindings/media/video-interfaces.txt > > @@ -89,6 +89,10 @@ Optional properties > > but a number of degrees counter clockwise. Typical values are 0 and 180 > > (upside down). > > > > +- location: The camera device mounting position, relative to the device > > + usage orientation. Possible values are: > > + 0 - Front camera. The image sensor is mounted on the front side of the device. > > + 1 - Back camera. The image sensor is mounted on the back side of the device. > > Would it make sense to make this a little more generic? Such as s/image > sensor/ device/, for instance? Laurent seems to be of the opposite opinion, but i think staying as generic as possible might be a good idea. Now I have a linguistic problem though. +- location: The device mounting position, relative to the device + usage orientation. Possible values are: + 0 - Front. The device is mounted on the front side of the device. + 1 - Back. The device is mounted on the back side of the device. So I need one "device" to indicate the lens/flash/image sensor and one to indicate the device they're installed on :) Any idea? > > Is this also relevant for flash or lens devices? > > Flash (torch) devices could be present, at least principle, without a > camera. There once was even such a Nokia phone, 1100 unless I'm mistaken. > :-) Not to mention that lenses are indeed installed in the same package as the camera sensor, but they're described as separate device nodes as flash leds are, so the mounting location might need to be specified in their device node properties too, even if it would be the same as the image sensor one. > > -- > Regards, > > Sakari Ailus > sakari.ailus@linux.intel.com [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [RFC 1/5] media: dt-bindings: Document 'location' property 2019-08-15 12:55 ` Jacopo Mondi @ 2019-08-15 12:58 ` Laurent Pinchart 0 siblings, 0 replies; 9+ messages in thread From: Laurent Pinchart @ 2019-08-15 12:58 UTC (permalink / raw) To: Jacopo Mondi Cc: Sakari Ailus, Mauro Carvalho Chehab, Hans Verkuil, Rob Herring, open list:MEDIA INPUT INFRASTRUCTURE (V4L/DVB), open list, devicetree On Thu, Aug 15, 2019 at 02:55:48PM +0200, Jacopo Mondi wrote: > On Thu, Aug 15, 2019 at 09:56:35AM +0300, Sakari Ailus wrote: > > On Wed, Aug 14, 2019 at 10:28:11PM +0200, Jacopo Mondi wrote: > > > Add the 'location' device property, used to specify the camera device > > > mounting position. The property is particularly meaningful for mobile > > > devices with a well defined usage orientation. > > > > > > Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> > > > --- > > > Documentation/devicetree/bindings/media/video-interfaces.txt | 4 ++++ > > > 1 file changed, 4 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/media/video-interfaces.txt b/Documentation/devicetree/bindings/media/video-interfaces.txt > > > index f884ada0bffc..819077b2649c 100644 > > > --- a/Documentation/devicetree/bindings/media/video-interfaces.txt > > > +++ b/Documentation/devicetree/bindings/media/video-interfaces.txt > > > @@ -89,6 +89,10 @@ Optional properties > > > but a number of degrees counter clockwise. Typical values are 0 and 180 > > > (upside down). > > > > > > +- location: The camera device mounting position, relative to the device > > > + usage orientation. Possible values are: > > > + 0 - Front camera. The image sensor is mounted on the front side of the device. > > > + 1 - Back camera. The image sensor is mounted on the back side of the device. > > > > Would it make sense to make this a little more generic? Such as s/image > > sensor/ device/, for instance? > > Laurent seems to be of the opposite opinion, but i think staying as > generic as possible might be a good idea. Now I have a linguistic > problem though. > > +- location: The device mounting position, relative to the device > + usage orientation. Possible values are: > + 0 - Front. The device is mounted on the front side of the device. > + 1 - Back. The device is mounted on the back side of the device. > > So I need one "device" to indicate the lens/flash/image sensor and one > to indicate the device they're installed on :) Any idea? > > > > > Is this also relevant for flash or lens devices? > > > > Flash (torch) devices could be present, at least principle, without a > > camera. There once was even such a Nokia phone, 1100 unless I'm mistaken. > > :-) > > Not to mention that lenses are indeed installed in the same package as > the camera sensor, but they're described as separate device nodes as > flash leds are, so the mounting location might need to be specified in their > device node properties too, even if it would be the same as the image > sensor one. For the lens I really don't think we need it. For the flash, I envision it will be useful to know more about its physical location relative to the camera sensor, but that will be a displacement, not a front/back location as the flash should really be on the same side as the camera sensor :-) Note that, technically speaking, it will not be the location of the flash controller itself, but of its LED (or other light source). A flash controller could possibly control multiple LEDs, for different sensors, and possibly on different sides of the devices, so we may need to create subnodes for light sources in the flash controller DT node. -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [RFC 1/5] media: dt-bindings: Document 'location' property 2019-08-15 6:56 ` Sakari Ailus 2019-08-15 12:55 ` Laurent Pinchart 2019-08-15 12:55 ` Jacopo Mondi @ 2019-09-01 17:24 ` Pavel Machek 2019-09-02 8:02 ` Laurent Pinchart 2 siblings, 1 reply; 9+ messages in thread From: Pavel Machek @ 2019-09-01 17:24 UTC (permalink / raw) To: Sakari Ailus Cc: Jacopo Mondi, Mauro Carvalho Chehab, Hans Verkuil, Laurent Pinchart, Rob Herring, open list:MEDIA INPUT INFRASTRUCTURE (V4L/DVB), open list, devicetree Hi! > > +++ b/Documentation/devicetree/bindings/media/video-interfaces.txt > > @@ -89,6 +89,10 @@ Optional properties > > but a number of degrees counter clockwise. Typical values are 0 and 180 > > (upside down). > > > > +- location: The camera device mounting position, relative to the device > > + usage orientation. Possible values are: > > + 0 - Front camera. The image sensor is mounted on the front side of the device. > > + 1 - Back camera. The image sensor is mounted on the back side of the device. > > Would it make sense to make this a little more generic? Such as s/image > sensor/ device/, for instance? > > Is this also relevant for flash or lens devices? > > Flash (torch) devices could be present, at least principle, without a > camera. There once was even such a Nokia phone, 1100 unless I'm mistaken. > :-) Well, I'd call them LEDs, not camera flashes ... if there's no camera. And IIRC these devices had LEDs on top of the phone... so neither front nor back side. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [RFC 1/5] media: dt-bindings: Document 'location' property 2019-09-01 17:24 ` Pavel Machek @ 2019-09-02 8:02 ` Laurent Pinchart 2019-09-02 8:11 ` Pavel Machek 0 siblings, 1 reply; 9+ messages in thread From: Laurent Pinchart @ 2019-09-02 8:02 UTC (permalink / raw) To: Pavel Machek Cc: Sakari Ailus, Jacopo Mondi, Mauro Carvalho Chehab, Hans Verkuil, Rob Herring, open list:MEDIA INPUT INFRASTRUCTURE (V4L/DVB), open list, devicetree Hi Pavel, On Sun, Sep 01, 2019 at 07:24:15PM +0200, Pavel Machek wrote: > > > +++ b/Documentation/devicetree/bindings/media/video-interfaces.txt > > > @@ -89,6 +89,10 @@ Optional properties > > > but a number of degrees counter clockwise. Typical values are 0 and 180 > > > (upside down). > > > > > > +- location: The camera device mounting position, relative to the device > > > + usage orientation. Possible values are: > > > + 0 - Front camera. The image sensor is mounted on the front side of the device. > > > + 1 - Back camera. The image sensor is mounted on the back side of the device. > > > > Would it make sense to make this a little more generic? Such as s/image > > sensor/ device/, for instance? > > > > Is this also relevant for flash or lens devices? > > > > Flash (torch) devices could be present, at least principle, without a > > camera. There once was even such a Nokia phone, 1100 unless I'm mistaken. > > :-) > > Well, I'd call them LEDs, not camera flashes ... if there's no camera. And IIRC > these devices had LEDs on top of the phone... so neither front nor back side. I would go for the name "torch" in that case. It really depends on the device, but in any case, the torch LEDs would have a location (and we would possibly need to expand this property to include the top, bottom, left and right sides). -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [RFC 1/5] media: dt-bindings: Document 'location' property 2019-09-02 8:02 ` Laurent Pinchart @ 2019-09-02 8:11 ` Pavel Machek 0 siblings, 0 replies; 9+ messages in thread From: Pavel Machek @ 2019-09-02 8:11 UTC (permalink / raw) To: Laurent Pinchart Cc: Sakari Ailus, Jacopo Mondi, Mauro Carvalho Chehab, Hans Verkuil, Rob Herring, open list:MEDIA INPUT INFRASTRUCTURE (V4L/DVB), open list, devicetree [-- Attachment #1: Type: text/plain, Size: 1821 bytes --] On Mon 2019-09-02 11:02:11, Laurent Pinchart wrote: > Hi Pavel, > > On Sun, Sep 01, 2019 at 07:24:15PM +0200, Pavel Machek wrote: > > > > +++ b/Documentation/devicetree/bindings/media/video-interfaces.txt > > > > @@ -89,6 +89,10 @@ Optional properties > > > > but a number of degrees counter clockwise. Typical values are 0 and 180 > > > > (upside down). > > > > > > > > +- location: The camera device mounting position, relative to the device > > > > + usage orientation. Possible values are: > > > > + 0 - Front camera. The image sensor is mounted on the front side of the device. > > > > + 1 - Back camera. The image sensor is mounted on the back side of the device. > > > > > > Would it make sense to make this a little more generic? Such as s/image > > > sensor/ device/, for instance? > > > > > > Is this also relevant for flash or lens devices? > > > > > > Flash (torch) devices could be present, at least principle, without a > > > camera. There once was even such a Nokia phone, 1100 unless I'm mistaken. > > > :-) > > > > Well, I'd call them LEDs, not camera flashes ... if there's no camera. And IIRC > > these devices had LEDs on top of the phone... so neither front nor back side. > > I would go for the name "torch" in that case. It really depends on the > device, but in any case, the torch LEDs would have a location (and we > would possibly need to expand this property to > include the top, bottom, left and right sides). Yes, but please let the torch devices be handled by LED subsystem (/sys/class/leds). media/ subsystem is a bit too big and complex for toggling LEDs on and off... Thanks, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 181 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2019-09-02 8:11 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20190814202815.32491-1-jacopo@jmondi.org>
2019-08-14 20:28 ` [RFC 1/5] media: dt-bindings: Document 'location' property Jacopo Mondi
2019-08-14 22:40 ` Laurent Pinchart
2019-08-15 6:56 ` Sakari Ailus
2019-08-15 12:55 ` Laurent Pinchart
2019-08-15 12:55 ` Jacopo Mondi
2019-08-15 12:58 ` Laurent Pinchart
2019-09-01 17:24 ` Pavel Machek
2019-09-02 8:02 ` Laurent Pinchart
2019-09-02 8:11 ` Pavel Machek
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).