Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1804455ybl; Thu, 15 Aug 2019 01:18:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7s421u8wPm8evUQKTSCITOCkCgoUFO+7ZLzTu3HI9yJBl0yubL8LUlM7uVSCXWW+zCt7h X-Received: by 2002:a17:90a:ad86:: with SMTP id s6mr1209228pjq.42.1565857126467; Thu, 15 Aug 2019 01:18:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565857126; cv=none; d=google.com; s=arc-20160816; b=IBTU1/q78V0k/bzQbAl09s1B9UGiwd82ZXst9H4VMNs91rjfdUtwSRaAyphSPoxkXQ 4AaXmAE7I0rkhNyzKyULspuAY3oWKwTV9mj1XEavTrfZBDWETDu/YBnXPWvdqf4ycB4D koP/y9l9eGmasa43pXksOVOlneI+0tbLQJ/tNyJ9uB0Kpdfn06CWceIJLmtz5gmpoYy5 VYbZcVgcHvMiAyEA+oPo4UKJBbQlzjGjB2jkoRhPF/a8j8dPwRnmd/0q19nHHGNsHWDH HNNpZYiAxF2QHaOwppQvgdUiA2A8MtD802Kf56NKSSJMThHyClPmZXimhMVb8JiprXGn IOng== 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=n5axTS3KeLA17LWllEgsJc8HuUnGHsxTkGwzpfMKu1M=; b=pGCUvcVX/eawsz9lxV8kz/JpGCzj0EvsOCTFp03+zhLVv0jW2dUE+wI6S1xMlakjcP ENznCJS+tiKkFd8yhwi46/0uWsKbB8X0pUBB2A6B1WyH0D0E63pluji/Y9nffqj/tigb KPtaqsFtIeUBmj7VOsgYhph5vhFmoRSTbZx651Pmr0IOCoSUgpiUf7nSncXERlh6wp68 x3CGRSl37EjArxlR+OIGgmojWeE/oP/ojcqrs9rFJ2MVyfBJ70GOAdU8kt6QDy1YBMHM DNNOzKJuspkqu4GSj/SBtjB3cvDDTWV7rolfKvTFVMjL8ss44etcL0lKYc3rf350Pt/l 72GA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g4si1377231pgf.383.2019.08.15.01.18.19; Thu, 15 Aug 2019 01:18:46 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730333AbfHOG5o (ORCPT + 99 others); Thu, 15 Aug 2019 02:57:44 -0400 Received: from mga05.intel.com ([192.55.52.43]:42097 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729838AbfHOG5o (ORCPT ); Thu, 15 Aug 2019 02:57:44 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Aug 2019 23:57:43 -0700 X-IronPort-AV: E=Sophos;i="5.64,388,1559545200"; d="scan'208";a="201126314" Received: from paasikivi.fi.intel.com ([10.237.72.42]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Aug 2019 23:57:42 -0700 Received: by paasikivi.fi.intel.com (Postfix, from userid 1000) id 7EAB32069D; Thu, 15 Aug 2019 09:56:35 +0300 (EEST) Date: Thu, 15 Aug 2019 09:56:35 +0300 From: Sakari Ailus To: Jacopo Mondi Cc: Mauro Carvalho Chehab , Hans Verkuil , Laurent Pinchart , 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: <20190815065635.GJ6133@paasikivi.fi.intel.com> References: <20190814202815.32491-1-jacopo@jmondi.org> <20190814202815.32491-2-jacopo@jmondi.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190814202815.32491-2-jacopo@jmondi.org> 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 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 > --- > 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