Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2186953ybl; Thu, 15 Aug 2019 07:54:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzpOscRQaulabSxU0tJsBcCE1ZapDZ4NcEjXA5fssgmXrDQLpvd+cXe+EGQv9YkyilZLIvV X-Received: by 2002:a63:f926:: with SMTP id h38mr3819182pgi.80.1565880855665; Thu, 15 Aug 2019 07:54:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565880855; cv=none; d=google.com; s=arc-20160816; b=nKV/yVLx6mKuzcCpSEmFp390U/Lf1iSfdTtKNNcaJR3BMXXGFUq48GD4m7ojd1PC+e jT8xqYMoBSyosfOPjmZDTx1P9CgWeNEX2HgVeslHvRzJgCC+Yju885WexWV5a9H2vXnb e6DGA+r84s2x98+jxleLIRbhxH9aWxeK5ZOOM/upGg26DqqWI6+0N3+iLXECtOMKJziZ To7tzUl+Rrtwkng0v0Ep8ehcB7iAyYBr5dT3pjNEt1AO+weLEGgnkwNHYCo0jgn3hAHu qqErB2JlxtzGs1hC2klUcGBS/VFeMLjcmSVl/9gufUVDK2kvHcIxKQgaSahnThvXT8/1 cQ5A== 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:dkim-signature; bh=dlzyg56bqiVX7RZT77Q+O03dXEkvpN3cVUvCR6CaR5Y=; b=WyxnhBkiI+wk3uAnAdlSo9grNTMWEvoYSycq7P4CpnSArtIgzBDU+ty1Zmp5Mp7DDC +xwAGsOpzITqlvnB4guIjzaQH5bqRFQrSL5ls7b3YBI3/fGRrIEIJMCDhIdKPpjmXhqu Ef00+rng7308C5tMlqECEStc1W3jK3uCCXm6qgp6RGjDo71sNsdraq2le8vF6iNPaj9d /Zim0+bhhemRx5HybflR5xkCulzzZI0PpJH8o38fA/THv4zng/wk37q8u0MsOB/H4/1e UidBsN0EY0Ofpakyv8396+3s5nru/z5vcc+YOoqATAiUdmGWMc3017XGIAmwptXia5Il OSGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=cbHOH+DV; 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 38si2062609pla.216.2019.08.15.07.53.59; Thu, 15 Aug 2019 07:54:15 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=cbHOH+DV; 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 S1731915AbfHOMzc (ORCPT + 99 others); Thu, 15 Aug 2019 08:55:32 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:45204 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731243AbfHOMzc (ORCPT ); Thu, 15 Aug 2019 08:55:32 -0400 Received: from pendragon.ideasonboard.com (dfj612yhrgyx302h3jwwy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:ce28:277f:58d7:3ca4]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 025022AF; Thu, 15 Aug 2019 14:55:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1565873730; bh=OcYASANIQKPbGrqus/I7QsrdQiBoQf+UunuHAYVyWcc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cbHOH+DVwEERox3QJEaAsfXplF+NNZ7+R8sWXLhDKsge/A7Epp/bDEJrjHrx1D/1E XOmPDUpEkKwiPe/zYgQj4Z5NCR6Bwi5IXWhKV2F7D7xMeOyj7/xmSsZvIJKrn13j3a fIMg5UTDXF6ejT+I99fAPvny3THOmwbdlBmgFXNM= Date: Thu, 15 Aug 2019 15:55:26 +0300 From: Laurent Pinchart To: Sakari Ailus Cc: 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: <20190815125526.GG13823@pendragon.ideasonboard.com> References: <20190814202815.32491-1-jacopo@jmondi.org> <20190814202815.32491-2-jacopo@jmondi.org> <20190815065635.GJ6133@paasikivi.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190815065635.GJ6133@paasikivi.fi.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > > --- > > 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