From patchwork Mon May 7 15:56:53 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: 135101 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp3327161lji; Mon, 7 May 2018 08:57:42 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqD9qZtd55eir48nwic4QIzxNl/bGqg36CzvZYPfJh2H/s92Iou07QV+IkZqUfyp1lUi/kS X-Received: by 2002:a24:fe44:: with SMTP id w65-v6mr1844137ith.87.1525708662294; Mon, 07 May 2018 08:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525708662; cv=none; d=google.com; s=arc-20160816; b=gaIK9+EF4SMgJ81VFRkNtSx09pLVpe8IPUVBXWkZWnFbUU2wRqW0K0aVMygfYyDje1 m9QM2P22WbXyWE8jbnuGDo/plyeTQEwFD3pd23jAxfgcB1v4/Jpdykxh1Il2X1skK4Gw VpiO2iPrDFH/oo3jW3jplgEsCRRNedUN4HKQr3+Kt9FUy+UhAsvrgrrXInOiOgIsO6/T /ojVPSfuh4vCD/BNv7cZ20mazjgGKT6QySkxKF2MePO3noNSXkJ8T422A0efEMzOdhyr wuYbzToNYhGbIV7Fy97U6ql8tW0U/8DHXGnCZaU+uRRuYbLO84f7yPJH/kbjqqEpvDUK 5wAw== 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=cCj5AvandryXamy0SDxeV174pdkZABU0owHVrw1TbYk=; b=VKXkAWWSC17hy6P3Uxh8twP0ztwHhngXls5BIwNpboiFK1w2fUjv/laNIPE+BnZEj4 SFU6KrW1MzeQR4xRAck12N0lLUbdbMix5Nc3PcPDZ2L7d+0G0l2zZUW3/iIYsznbzHtO oyNnMRIzSbs84Oa0G1dVFn6Aovwa6K9usMJTnJb8kzcO9D0zl0MG3U8MemfHk5mz1lwQ /bo51baDXLMzHaHw3g+r2wIy8fb1mRpLm7bwcQnb2yE5KWaU2Riz3zQPzFWogU/Yp246 wcu26VXdbS3+p1/+d00FSb/gRvgGoQsrlMwOvKdCZgtqZTJjDE1/PotfRUAAIE5Dre20 NvCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PFuqMT9s; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-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 k124-v6si19537387iok.34.2018.05.07.08.57.42; Mon, 07 May 2018 08:57:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-media-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=PFuqMT9s; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-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 S1752624AbeEGP5j (ORCPT + 5 others); Mon, 7 May 2018 11:57:39 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:44337 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752781AbeEGP5h (ORCPT ); Mon, 7 May 2018 11:57:37 -0400 Received: by mail-wr0-f196.google.com with SMTP id y15-v6so17563177wrg.11 for ; Mon, 07 May 2018 08:57:37 -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=cCj5AvandryXamy0SDxeV174pdkZABU0owHVrw1TbYk=; b=PFuqMT9su2zWIoRYQuPqH2mQqJL7DeYj+06NWrCsy8iLW8IQCVBKKJdZn4qaahzNRN uMxyTQf08M4ALftSXJn/vkcZ0kUef6c1NopuTe1WT4KKRlyacb3lifQzgehRzkw/x0cz G9oHf3Y2FTN7FIBgxsrW+fHgGcZJjQeH4XcRM= 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=cCj5AvandryXamy0SDxeV174pdkZABU0owHVrw1TbYk=; b=gP/Dk91leZCTfLcM3AdsAsIjSbvMVmjxe5bE8jnFYwbaT7PI8EVBXuVeWbdlWL9NBP Bx8I47dxTy8zHh7sgRtmjnMjNW/perFiWHk/xJRpK3bOJ8vxgxIT6vOnNx65q6MWR4ZG g3QqiCxVsU6YBnGtmrDlKNqPKT7PkDcg91YAUFXrZRKaeU/IloIBSyrMY/pcDX78ZJuR q1TPI13PTSC/sZJbyx8pUVDbgxgmdHPx9hXp1YwC/xXDif8fV5oidR1aIGHKEq3Exbbx dFxye4SlDVTjuGEQY3ZWZEwzpJ7tkBaZYuOVpp3TwoIBnUK5c0G3OsZ8xd5R9e77g5Yk 0zaQ== X-Gm-Message-State: ALQs6tBi7B5mqG6/iCJ0lOrfB9baAp77hYq56e5+NEicL8qVUgxYzajn tBrSmQ/s96DX1ozH6MM2+Z0+mQ== X-Received: by 2002:adf:cc8c:: with SMTP id p12-v6mr28978031wrj.280.1525708656653; Mon, 07 May 2018 08:57:36 -0700 (PDT) Received: from arch-late.local (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id y42-v6sm32294807wry.21.2018.05.07.08.57.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 May 2018 08:57:36 -0700 (PDT) From: Rui Miguel Silva To: mchehab@kernel.org, sakari.ailus@linux.intel.com, hverkuil@xs4all.nl, Rob Herring Cc: linux-media@vger.kernel.org, Fabio Estevam , devicetree@vger.kernel.org, Ryan Harkin , Rui Miguel Silva Subject: [PATCH 2/4] media: ov2680: dt: rename gpio to reset and fix polarity Date: Mon, 7 May 2018 16:56:53 +0100 Message-Id: <20180507155655.1555-3-rui.silva@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180507155655.1555-1-rui.silva@linaro.org> References: <20180507155655.1555-1-rui.silva@linaro.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Since the GPIO 3 controls both reset and powerdown, we rename it to reset. Fix the polarity of this, as it is a low active signal and not an high active. As at it, rename the mipi endpoint in the example to be coherent with the a real case that will be introduce for imx7 media driver. Signed-off-by: Rui Miguel Silva --- Documentation/devicetree/bindings/media/i2c/ov2680.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) -- 2.17.0 diff --git a/Documentation/devicetree/bindings/media/i2c/ov2680.txt b/Documentation/devicetree/bindings/media/i2c/ov2680.txt index e5d8f130309d..11e925ed9dad 100644 --- a/Documentation/devicetree/bindings/media/i2c/ov2680.txt +++ b/Documentation/devicetree/bindings/media/i2c/ov2680.txt @@ -9,8 +9,8 @@ Required Properties: - AVDD-supply: Analog voltage supply. Optional Properties: -- powerdown-gpios: reference to the GPIO connected to the powerdown pin, - if any. This is an active high signal to the OV2680. +- reset-gpios: reference to the GPIO connected to the powerdown/reset pin, + if any. This is an active low 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 @@ -30,14 +30,14 @@ Example: reg = <0x36>; clocks = <&osc>; clock-names = "xvclk"; - powerdown-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; DOVDD-supply = <&sw2_reg>; DVDD-supply = <&sw2_reg>; AVDD-supply = <®_peri_3p15v>; port { - ov2680_mipi_ep: endpoint { - remote-endpoint = <&mipi_sensor_ep>; + ov2680_to_mipi: endpoint { + remote-endpoint = <&mipi_from_sensor>; clock-lanes = <0>; data-lanes = <1>; };