From patchwork Fri Jun 2 23:44:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 9763689 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A3C0A60360 for ; Fri, 2 Jun 2017 23:44:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 947672857B for ; Fri, 2 Jun 2017 23:44:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 896AE285DC; Fri, 2 Jun 2017 23:44:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D99B02857B for ; Fri, 2 Jun 2017 23:44:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kIU4d560m33fdeVhFXmvjw4knGnsqX3gsN5WPHZVIe8=; b=pKiFT6fMscLJYb LDRd4jujl/nty7LcclHX3ynaekxebwyMQy0VKn2aLBvXy+Xak6nHqfYgDv4nMOOBLq2Kh9WTLJgov wazTEXlqK0YbUT7b9eu11/RBeRiDyN/vozSXvUPncPgGGIPgozjirLbzz02IFK9XWd+A9sH73yEl0 KA3obgSb8dWjVaALaTtsUckK2YPLOLt47fagr1cT3Qyrh8Q9TrDLNtCqVAH4GGtp8tpIbnZctEOzg MJabIPOzFOvt/UXoMPjKdXtnbBYuiccHmBQdYASuZ1dGhrGVUQkA/j5iQ65zp8ZbpjEQBFek3Fi3C ot3s1yiZNAMXDs4oqtlg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dGwFT-0000Lj-V3; Fri, 02 Jun 2017 23:44:55 +0000 Received: from mail-pf0-x233.google.com ([2607:f8b0:400e:c00::233]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dGwFE-0008HH-L3 for linux-arm-kernel@lists.infradead.org; Fri, 02 Jun 2017 23:44:44 +0000 Received: by mail-pf0-x233.google.com with SMTP id n23so58185333pfb.2 for ; Fri, 02 Jun 2017 16:44:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vRppwLlf5y+XnAi5uuYx467PQW7hJtcTDYNuYI9yfUc=; b=bbhdSEaBEYLXhIfKlci0qAELWMkn3Uqf6OWkFQ5kEPbLllcQv2JvwTa92bQepQJxv4 1lRacJKSVihLS7OaTFGAWJM+gehk7tnzlbJF3pgLji7joiQ5Z9tlx8bGiQqjy1eUpXoM 7cbCJHTK4CakFuR2UzJGVPAdelb3xjJswCJzdXlwI279AcNqWb98/uRYjp0VDFrlZkEh DERdQe4M0kNENarW3K/MTZVKbVuJ45eZls1GJJ4/1unF/J+gGnlmoZ+m5mpezCpsbmRq NmMeYdlN1c14sCBDiOilBTZ4Qm8HCfnmgNmsSPWIiSHGgEzES35dDLcBANmdp3yokG06 2sCA== 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:mime-version:content-transfer-encoding; bh=vRppwLlf5y+XnAi5uuYx467PQW7hJtcTDYNuYI9yfUc=; b=s2+0bwpDUAOTKRw6PSFxc9J8KK0a7K+btclLCdQil7h1BQhFACDiqzijPuhGvnj0VK cc5wTqJ0XQMjTuCvIX+K69tRf2KCgjHs0TQWA5ihX9H+VY7yqgmrfepeCEpMSMlDIZa6 PDp10EHrLp5Ok3ErkftOpSVS4yvmuCaA2iI5BGr7+ylPQCdyAorVHWHKx94Ap/tixmBV tor0kUz0/385wqeloC/TUzgb+GmEmErtW/pp2fKzPBMMgMzdQAyzBShp5V9hCBq7YO// p59rM1Okt+nZf/aqSmMi/PrRGkfCTQL9pPzunECVkdpdlDpz53zhNB+AtpZpPBj9jAL5 qY8Q== X-Gm-Message-State: AODbwcBBF8beke8UKS009r4YtGrPvC+DofEgMovlsW2FN/TPVJGCgHyj 9pQFEKIbIZBZZdcV X-Received: by 10.84.241.77 with SMTP id u13mr2389188plm.28.1496447059734; Fri, 02 Jun 2017 16:44:19 -0700 (PDT) Received: from localhost (c-98-203-232-209.hsd1.wa.comcast.net. [98.203.232.209]) by smtp.gmail.com with ESMTPSA id r29sm13674659pfg.95.2017.06.02.16.44.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Jun 2017 16:44:19 -0700 (PDT) From: Kevin Hilman To: Sekhar Nori Subject: [PATCH/RFT 2/3] ARM: dts: da850-evm.dts: add mt9v032 camera sensor Date: Fri, 2 Jun 2017 16:44:00 -0700 Message-Id: <20170602234401.24721-3-khilman@baylibre.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170602234401.24721-1-khilman@baylibre.com> References: <20170602234401.24721-1-khilman@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170602_164441_208672_1F1E4C3E X-CRM114-Status: GOOD ( 13.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, David Lechner , Patrick Titiano Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add nodes to support camera input via UI board connector. Includes; - i2c-mux used to connect VPIF input peripherals - camera-sensor on the On-Semi camera board[1], which provides and aptina,mt9v032 sensor. Note that this board provides a way to change the i2c addr via a switch, and this series assumes 0x4c - clock-controler for the master clock provided to camera. Note that this node is FYI only. The upstream driver for ti,cdce913 requires CCF, which davinci does not support, so a subsequent patch/hack will create a basic clock driver so the camera driver can work - VPIF endpoint nodes to connect VPIF input and camera sensor - GPIO hog changes to switch VPIF input from composite to camera [1] http://www.mouser.com/search/ProductDetail.aspx?R=0virtualkey0virtualkeyMT9V032C12STCH-GEVB --- arch/arm/boot/dts/da850-evm.dts | 56 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 54 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts index cbbf2c0d0269..c428d1d99ef6 100644 --- a/arch/arm/boot/dts/da850-evm.dts +++ b/arch/arm/boot/dts/da850-evm.dts @@ -297,10 +297,62 @@ }; }; +/* + * Extentions provided on UI board + */ +&i2c0 { + /* clock generator used for camera input */ + cdce913: clock-controller@65 { + compatible = "ti,cdce913"; + reg = <0x65>; + #clock-cells = <1>; + }; + + pca9543: i2c-mux@73 { + compatible = "nxp,pca9543"; + reg = <0x73>; + #address-cells = <1>; + #size-cells = <0>; + + pca9543_i2c1: i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + }; + }; +}; + +&pca9543_i2c1 { + mt9v032: camera@4c { + compatible = "aptina,mt9v032"; + reg = <0x4c>; + port { + mt9v032_out: endpoint { + remote-endpoint = <&vpif_input_ch0>; + }; + }; + }; +}; + &vpif { pinctrl-names = "default"; pinctrl-0 = <&vpif_capture_pins>, <&vpif_display_pins>; status = "okay"; + + /* VPIF capture port */ + port@0 { + vpif_input_ch0: endpoint@0 { + reg = <0>; + bus-width = <8>; + remote-endpoint = <&mt9v032_out>; + }; + + vpif_input_ch1: endpoint@1 { + reg = <1>; + bus-width = <8>; + data-shift = <8>; + }; + }; }; /* UI board: VPIF input selection */ @@ -316,13 +368,13 @@ sel_b { gpio-hog; gpios = <6 GPIO_ACTIVE_HIGH>; - output-high; + output-low; line-name = "CAMERA_ENn"; }; sel_c { gpio-hog; gpios = <5 GPIO_ACTIVE_HIGH>; - output-low; + output-high; line-name = "VIDEO_IN_ENn"; }; };