Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp278865ybe; Mon, 2 Sep 2019 01:12:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWphCGP1M65LHj+PbQy8ObK5hvCNL4E5bpklWZ2fKXqPRp3CCQPuGrJ0Erd3Xf9/8axZvu X-Received: by 2002:a62:60c7:: with SMTP id u190mr33255558pfb.54.1567411953139; Mon, 02 Sep 2019 01:12:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567411953; cv=none; d=google.com; s=arc-20160816; b=xMeSgSKpPxzwFkHLK4OvvU/VMPV9gxTEV42Gucs3y18I+wEqYRYXtWesjeoqjRYvUU 7pQEE/9/I2+ik3/TXyMRGObmVzF/vnbCcrFkX6Uqi/Fhty6lDGB5YI2RCkrWLMV5Azxq 4d90bto+yFur/MKzxURHIZfsdwvf2Te48+Tg+UtBkfGCmKp+0f4bmpwPK9wDcVsqGFkO Mon1nZU+CxFnXb8vXcs0g3k8AL9U/SJaAOGsGAVTHslVjIJzXJSuYat3+Ii0cMv6NLr9 z67bj1s2MOkuOHfSqpZFhaTkt9onuUrpk28x2/fH3ZMTPV/R74RGZ6CEbSxzhZrznM8e T4ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=I49/OqXqmxHr9Uexfanl1cvr25HzMj5/avY/AIxO/Pk=; b=TrLgms0gQprFBlJqGujJ3Ljtz60cdoDEpGKM8pBtJ/XlfGAIW5TXhtG3NAI1I5FZQO kpTnWAzA2Jh4cQdMbnaJoY9qbBstgIyT0DZD5DV6lTZ3V4wh+udG44KEhdFRXmT2PMb2 P7dd4L2em9ixA9hctG7wCIQGfwzDjIEGikUYZMzpwe0Ig4GYjqwfCaQkF8VMdXeL0Z/G HnAcgnQJ4fmEU7L/k/H6rIMUBdj/AMUNbUn1/C9BF9NsfWUfDON0ovpP8nNxdaA2Rehy +8BPtWm6FLJ7qzysDwczRCSHjMqHLDE12W2qjfGWLLj1OFvzfJ4adPVrv7l5PO2h89NW ok9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c23si12088pfd.198.2019.09.02.01.12.17; Mon, 02 Sep 2019 01:12:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730023AbfIBIL2 (ORCPT + 99 others); Mon, 2 Sep 2019 04:11:28 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:60414 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729771AbfIBIL2 (ORCPT ); Mon, 2 Sep 2019 04:11:28 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 06F08821C8; Mon, 2 Sep 2019 10:11:11 +0200 (CEST) Date: Mon, 2 Sep 2019 10:11:25 +0200 From: Pavel Machek 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@vger.kernel.org Subject: Re: [RFC 1/5] media: dt-bindings: Document 'location' property Message-ID: <20190902081125.GD15850@amd> References: <20190814202815.32491-1-jacopo@jmondi.org> <20190814202815.32491-2-jacopo@jmondi.org> <20190815065635.GJ6133@paasikivi.fi.intel.com> <20190901172414.GB1047@bug> <20190902080211.GD4777@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="n2Pv11Ogg/Ox8ay5" Content-Disposition: inline In-Reply-To: <20190902080211.GD4777@pendragon.ideasonboard.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --n2Pv11Ogg/Ox8ay5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon 2019-09-02 11:02:11, Laurent Pinchart wrote: > Hi Pavel, >=20 > 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). > > > >=20 > > > > +- location: The camera device mounting position, relative to the d= evice > > > > + 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. > > >=20 > > > Would it make sense to make this a little more generic? Such as s/ima= ge > > > sensor/ device/, for instance? > > >=20 > > > Is this also relevant for flash or lens devices? > > >=20 > > > Flash (torch) devices could be present, at least principle, without a > > > camera. There once was even such a Nokia phone, 1100 unless I'm mista= ken. > > > :-) > >=20 > > Well, I'd call them LEDs, not camera flashes ... if there's no camera. = And IIRC=20 > > these devices had LEDs on top of the phone... so neither front nor back= side. >=20 > 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 --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --n2Pv11Ogg/Ox8ay5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl1szq0ACgkQMOfwapXb+vKnHQCgjekAFWoxQmyBJvoBF9kp1qOf E/0AoKfpZkQ0lr19PAOslOpMFN75pBfR =f3wG -----END PGP SIGNATURE----- --n2Pv11Ogg/Ox8ay5--