From patchwork Tue Mar 13 11:33:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 131429 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp610985ljb; Tue, 13 Mar 2018 04:33:34 -0700 (PDT) X-Google-Smtp-Source: AG47ELstBQEvWNvC8BUr9uzbnKzyup0EId0PkykrANZPDBM2S+9UyT2ApIhcnUNNH/REyc4Xg6Vf X-Received: by 2002:a17:902:96a:: with SMTP id 97-v6mr245837plm.183.1520940814477; Tue, 13 Mar 2018 04:33:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520940814; cv=none; d=google.com; s=arc-20160816; b=No0K5pzWQDXpCuImZGuq/rYTNWfHA6W4chRvzjGY60ZgnEN+QNm6eiKbql6vDAtk1B k893fKZHxWtytLXAd0QuAtZhVlcBNF7CYKJ32kASaADqzIQwnOnRnToxElgQarBTqyV9 GFuE4dO1nWv/Nwc/HtAVDlavHxkyI3kjzO/51Aa63KOxO7XxhkemQEZJVTt2gyIo88+0 FFLDjbfTt/qHQM2T9QOw136x1vESE9LpgsVK/Cl4g8OkMITatV2N1hq9N6CLpj6CnmpP KqWLaPjzK+bCS05B9FYgu0WVVii1NrWVkHOaHesHaLy4h8+Yh5OQ8PzENgMPYvHN7zUl RA1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=oD3Rs3MEeB7g0DFIjBWzmCmqjki8bdzGgFjYmZRmCCw=; b=CY6YEPO3mh51nedyef1PC4fgoBW3Q0OBtkXziKn6qF0hXvoiEjCewm0I3cyMSamNLN M1nL1O3IMh/dNWb4+DqwXBig1/6JWwTnQdFKOKAnP435IgEgRHpG2iKNpkUw6DUHRTYk RfH5drYnwpFPeIh9uQRUqDmjK6xOXoCvJTNgLtybTqNCT0fJM70flOphN4/1aOaZM2I2 /LtttM8hKGq1WIQRTUVh82WhMAnCntnOw1oC13uQEFLhg7RikPmTcG6cQGK+fgj9Hzku HcamZtXA7U/SLKijcxfiMaZZkprrThYVXoVqVOS4gsi48Ay0e/JXCvhR1bH18yxgOIS9 H/MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ADJ1DQPI; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l3-v6si8307plt.146.2018.03.13.04.33.34; Tue, 13 Mar 2018 04:33:34 -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 header.i=@linaro.org header.s=google header.b=ADJ1DQPI; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933004AbeCMLdb (ORCPT + 28 others); Tue, 13 Mar 2018 07:33:31 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:34390 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932973AbeCMLdZ (ORCPT ); Tue, 13 Mar 2018 07:33:25 -0400 Received: by mail-wr0-f193.google.com with SMTP id o8so21644368wra.1 for ; Tue, 13 Mar 2018 04:33:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=oD3Rs3MEeB7g0DFIjBWzmCmqjki8bdzGgFjYmZRmCCw=; b=ADJ1DQPIMcxJmlPuJt1Rqmx1delj/LR7lokOr0JYl+ji6zmVoYWrSHqqOTvfA/mCjV nwUZqOTVyrJOy0r/HQYS/HiPQX1QidFJVfe6yLoUnhfNZi5kBvMssfDFpby7Zp3d/fzb kHaZuTp2RbZdwznpxzDmcOeRt1NRtUF8Vjd2w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=oD3Rs3MEeB7g0DFIjBWzmCmqjki8bdzGgFjYmZRmCCw=; b=aGMO97FdTWU2qF2t/BRXSA1OBIFYRp5VfYbn2h2vBoTK7DfU6i6lOvIr6TvMR+B8bJ ZnOARmLxzbYRP+xS9iEC+injdEIufCafoMespWGl6bXomtzKy9UJcmb1NkbX132iJCC8 KPJuBSQ3I4BNWZZJOMkVbOxomRtda+sGyEi1b8CkCzn8EBYqNZ9BXRwDyfaepBy564IB eWGw6Ol/ZkQAwBTPCJ4cJaESeIeOMo1jYYC2CQSAG/fkXoz6AsJqgzhSdrJPS2tTZXpC uY/mWmEM1SudUxaP3y5Pbw0Jv2G4KoCtp+UJl8bABdiYxHf0UgZ+95MdFN7rVcSio71G KQ3A== X-Gm-Message-State: AElRT7E/SA8/AOXMfjH05gD7UbT+OkkmSEw1tr7z6qwrjUZNI3NX4chB +N0aAejVJmCcUdc5tiG/cTY9Vw== X-Received: by 10.223.163.157 with SMTP id l29mr249192wrb.239.1520940803832; Tue, 13 Mar 2018 04:33:23 -0700 (PDT) Received: from arch-late.localdomain (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id w134sm41730wmd.45.2018.03.13.04.33.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Mar 2018 04:33:22 -0700 (PDT) From: Rui Miguel Silva To: mchehab@kernel.org, sakari.ailus@linux.intel.com, hverkuil@xs4all.nl Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Ryan Harkin , Rui Miguel Silva , devicetree@vger.kernel.org Subject: [PATCH v3 1/2] media: ov2680: dt: Add bindings for OV2680 Date: Tue, 13 Mar 2018 11:33:10 +0000 Message-Id: <20180313113311.8617-2-rui.silva@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313113311.8617-1-rui.silva@linaro.org> References: <20180313113311.8617-1-rui.silva@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add device tree binding documentation for the OV2680 camera sensor. Reviewed-by: Rob Herring CC: devicetree@vger.kernel.org Signed-off-by: Rui Miguel Silva --- .../devicetree/bindings/media/i2c/ov2680.txt | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/ov2680.txt -- 2.16.2 diff --git a/Documentation/devicetree/bindings/media/i2c/ov2680.txt b/Documentation/devicetree/bindings/media/i2c/ov2680.txt new file mode 100644 index 000000000000..0e29f1a113c0 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/ov2680.txt @@ -0,0 +1,40 @@ +* Omnivision OV2680 MIPI CSI-2 sensor + +Required Properties: +- compatible: should be "ovti,ov2680". +- clocks: reference to the xvclk input clock. +- clock-names: should be "xvclk". + +Optional Properties: +- powerdown-gpios: reference to the GPIO connected to the powerdown pin, + if any. This is an active high signal to the OV2680. + +The device node must contain one 'port' child node for its digital output +video port, and this port must have a single endpoint in accordance with + the video interface bindings defined in +Documentation/devicetree/bindings/media/video-interfaces.txt. + +Endpoint node required properties for CSI-2 connection are: +- remote-endpoint: a phandle to the bus receiver's endpoint node. +- clock-lanes: should be set to <0> (clock lane on hardware lane 0). +- data-lanes: should be set to <1> (one CSI-2 lane supported). + +Example: + +&i2c2 { + ov2680: camera-sensor@36 { + compatible = "ovti,ov2680"; + reg = <0x36>; + clocks = <&osc>; + clock-names = "xvclk"; + powerdown-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; + + port { + ov2680_mipi_ep: endpoint { + remote-endpoint = <&mipi_sensor_ep>; + clock-lanes = <0>; + data-lanes = <1>; + }; + }; + }; +};