From patchwork Thu Nov 16 09:23:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 10060901 X-Patchwork-Delegate: horms@verge.net.au 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 DCF3C601AE for ; Thu, 16 Nov 2017 09:24:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC59C2A916 for ; Thu, 16 Nov 2017 09:24:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C15172A919; Thu, 16 Nov 2017 09:24:21 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 086642A916 for ; Thu, 16 Nov 2017 09:24:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933855AbdKPJYU (ORCPT ); Thu, 16 Nov 2017 04:24:20 -0500 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:56838 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932671AbdKPJYT (ORCPT ); Thu, 16 Nov 2017 04:24:19 -0500 X-Originating-IP: 158.255.198.50 Received: from w540.lan (host-50-static-198-255-158.hosts-appwifi.wifix.org [158.255.198.50]) (Authenticated sender: jacopo@jmondi.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id B2CEC41C089; Thu, 16 Nov 2017 10:24:16 +0100 (CET) From: Jacopo Mondi To: laurent.pinchart@ideasonboard.com, geert@glider.be Cc: Jacopo Mondi , linux-renesas-soc@vger.kernel.org Subject: [RFC] arm: dts: gr-peach: Add audiocamerashield DTSi Date: Thu, 16 Nov 2017 10:23:25 +0100 Message-Id: <1510824205-17533-1-git-send-email-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.7.4 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add device tree header for GR-Peach's audiocamerashield with OV7670 image sensor. Signed-off-by: Jacopo Mondi --- Hello, this patch adds device tree header file for GR-Peach's audiocamerashield. More details on the shield can be found at [1]. Sending as RFC and to a limited audience for the following reason: - the shield comes with a camera module whose sensor is not supported by mainline Linux. I used another module which is 'almost' pin-compatible with the shield, but it's not intended to be used on Peach (it's a general purpose arduino-compatible OV7670 camera module [2]) Give the setup is not standard (ie. the camera module does not come with the shield) I'm not sure this patch can be included or not. Maybe just the CEU part and the associated pin-muxing? Thanks j [1] https://elinux.org/RZ-A/Boards/GR-PEACH-audiocamerashield [2] http://www.elecfreaks.com/store/ov7670-camera-module-p-705.html --- arch/arm/boot/dts/gr-peach-audiocamerashield.dtsi | 81 +++++++++++++++++++++++ arch/arm/boot/dts/r7s72100-gr-peach.dts | 1 + 2 files changed, 82 insertions(+) create mode 100644 arch/arm/boot/dts/gr-peach-audiocamerashield.dtsi -- 2.7.4 diff --git a/arch/arm/boot/dts/gr-peach-audiocamerashield.dtsi b/arch/arm/boot/dts/gr-peach-audiocamerashield.dtsi new file mode 100644 index 0000000..7d4b3cb --- /dev/null +++ b/arch/arm/boot/dts/gr-peach-audiocamerashield.dtsi @@ -0,0 +1,81 @@ +#include "r7s72100.dtsi" +#include +#include + +&pinctrl { + i2c1_pins: i2c1 { + /* P1_2 as SCL; P1_3 as SDA */ + pinmux = , ; + }; + + vio_pins: vio { + /* CEU pins: VIO_D[0-10], VIO_VD, VIO_HD, VIO_CLK */ + pinmux = , /* VIO_VD */ + , /* VIO_HD */ + , /* VIO_D0 */ + , /* VIO_D1 */ + , /* VIO_D2 */ + , /* VIO_D3 */ + , /* VIO_D4 */ + , /* VIO_D5 */ + , /* VIO_D6 */ + , /* VIO_D7 */ + ; /* VIO_CLK */ + }; +}; + +&ceu { + pinctrl-names = "default"; + pinctrl-0 = <&vio_pins>; + + status = "okay"; + + port { + ceu_in: endpoint { + remote-endpoint = <&ov7670_out>; + + bus-width = <8>; + hsync-active = <1>; + vsync-active = <1>; + pclk-sample = <1>; + data-active = <1>; + }; + }; +}; + +&i2c1 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins>; + + status = "okay"; + clock-frequency = <100000>; + + ov7670: camera@21 { + compatible = "ovti,ov7670"; + reg = <0x21>; + + reset-gpios = <&port3 11 GPIO_ACTIVE_LOW>; /* DRV_IN */ + powerdown-gpios = <&port3 12 GPIO_ACTIVE_HIGH>; /* STDBY */ + + clocks = <&xclk>; + clock-names = "xclk"; + + xclk: fixed_clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + }; + + port { + ov7670_out: endpoint { + remote-endpoint = <&ceu_in>; + + bus-width = <8>; + hsync-active = <1>; + vsync-active = <1>; + pclk-sample = <1>; + data-active = <1>; + }; + }; + }; +}; diff --git a/arch/arm/boot/dts/r7s72100-gr-peach.dts b/arch/arm/boot/dts/r7s72100-gr-peach.dts index 9e9e890..984706c 100644 --- a/arch/arm/boot/dts/r7s72100-gr-peach.dts +++ b/arch/arm/boot/dts/r7s72100-gr-peach.dts @@ -11,6 +11,7 @@ /dts-v1/; #include "r7s72100.dtsi" +#include "gr-peach-audiocamerashield.dtsi" #include #include