From patchwork Thu Mar 12 23:38:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 6000291 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A718BBF90F for ; Thu, 12 Mar 2015 23:38:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D5FC220374 for ; Thu, 12 Mar 2015 23:38:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ED5C82035C for ; Thu, 12 Mar 2015 23:38:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030329AbbCLXi3 (ORCPT ); Thu, 12 Mar 2015 19:38:29 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:46186 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030328AbbCLXi0 (ORCPT ); Thu, 12 Mar 2015 19:38:26 -0400 Received: by wiwh11 with SMTP id h11so1778415wiw.5; Thu, 12 Mar 2015 16:38:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=yu3SNV2maJaOdxuSTMcLk7vYPYW4pu57QCenQQJUhn0=; b=YDsuxhbKy9CQYgI1FBb13mNlJ8nSZ/bHAvhBtHpDun/PQPTof86pHo+4BIEq/grFF9 juHb6C7zHl1WTOwRiTmsAxwlHg/BzXhwwNV4Oz2ZvIWjG/OFxLN7Gg1PtxOGn5btr440 uTH+YACHfmNKWZMvTrLtolnTT3hFf+TGCXkHArtULNWcFcOSeZ0vU0RGV6OYqhwrCPoA I+CQSeyZBGJy/hu6xj+jSHriPL9AdaOkogtbBzC14gjGXC283VUG3obwcKmS3aAF/vSG kY//nixwm2bddo5zuGb3a0m4w/InZ7+RfSYQj684oKu3A+a19qEN4L5bwhcQp8qFBY/E l41w== X-Received: by 10.180.9.134 with SMTP id z6mr14008252wia.81.1426203505054; Thu, 12 Mar 2015 16:38:25 -0700 (PDT) Received: from tango-charlie.Home (0545247b.skybroadband.com. [5.69.36.123]) by mx.google.com with ESMTPSA id hl15sm442475wib.3.2015.03.12.16.38.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Mar 2015 16:38:24 -0700 (PDT) From: Lad Prabhakar To: linux-omap@vger.kernel.org, devicetree@vger.kernel.org, Tony Lindgren , =?UTF-8?q?Beno=C3=AEt=20Cousson?= Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, "Lad, Prabhakar" Subject: [PATCH] ARM: dts: am437x-gp-evm: add DT nodes for ov2659 sensor Date: Thu, 12 Mar 2015 23:38:21 +0000 Message-Id: <1426203501-32115-1-git-send-email-prabhakar.csengg@gmail.com> X-Mailer: git-send-email 2.1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Lad, Prabhakar" this patch does the following: 1: adds DT node for fixed oscillator. 2: adds DT node entries for ov2659 sensor 3: adds remote-endpoint entry for VPFE. Signed-off-by: Lad, Prabhakar --- Note this patch depends on https://patchwork.kernel.org/patch/6000161/ arch/arm/boot/dts/am437x-gp-evm.dts | 42 +++++++++++++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/am437x-gp-evm.dts b/arch/arm/boot/dts/am437x-gp-evm.dts index f84d971..195f452 100644 --- a/arch/arm/boot/dts/am437x-gp-evm.dts +++ b/arch/arm/boot/dts/am437x-gp-evm.dts @@ -106,6 +106,14 @@ }; }; }; + + /* fixed 12MHz oscillator */ + refclk: oscillator { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <12000000>; + }; + }; &am43xx_pinmux { @@ -404,6 +412,21 @@ regulator-always-on; }; }; + + ov2659@30 { + compatible = "ovti,ov2659"; + reg = <0x30>; + + clocks = <&refclk 0>; + clock-names = "xvclk"; + + port { + ov2659_0: endpoint { + remote-endpoint = <&vpfe1_ep>; + link-frequencies = /bits/ 64 <70000000>; + }; + }; + }; }; &i2c1 { @@ -423,6 +446,21 @@ touchscreen-size-x = <1024>; touchscreen-size-y = <600>; }; + + ov2659@30 { + compatible = "ovti,ov2659"; + reg = <0x30>; + + clocks = <&refclk 0>; + clock-names = "xvclk"; + + port { + ov2659_1: endpoint { + remote-endpoint = <&vpfe0_ep>; + link-frequencies = /bits/ 64 <70000000>; + }; + }; + }; }; &epwmss0 { @@ -626,7 +664,7 @@ port { vpfe0_ep: endpoint { - /* remote-endpoint = <&sensor>; add once we have it */ + remote-endpoint = <&ov2659_1>; ti,am437x-vpfe-interface = <0>; bus-width = <8>; hsync-active = <0>; @@ -643,7 +681,7 @@ port { vpfe1_ep: endpoint { - /* remote-endpoint = <&sensor>; add once we have it */ + remote-endpoint = <&ov2659_0>; ti,am437x-vpfe-interface = <0>; bus-width = <8>; hsync-active = <0>;