From patchwork Fri May 9 00:19:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 4139681 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 59EBA9F387 for ; Fri, 9 May 2014 00:19:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8177A202F8 for ; Fri, 9 May 2014 00:19:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9DF52202F2 for ; Fri, 9 May 2014 00:19:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753840AbaEIATb (ORCPT ); Thu, 8 May 2014 20:19:31 -0400 Received: from mail-lb0-f171.google.com ([209.85.217.171]:54407 "EHLO mail-lb0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753492AbaEIATa (ORCPT ); Thu, 8 May 2014 20:19:30 -0400 Received: by mail-lb0-f171.google.com with SMTP id 10so4626631lbg.2 for ; Thu, 08 May 2014 17:19:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:subject:cc:from:organization:date :mime-version:content-type:content-transfer-encoding:message-id; bh=m7n6oA37EtJyNsZsp0KGcGOT7Ei2JgXYBnzR4MKRpVs=; b=jfAFbmx/3Y6HYOKX//J8Yee28ulywTW2ZfIBs2RaLFdt2J2hHRYjwopuMM1q/vQYSW Xu26L7j7et/WA1gxTsKajBx5H8M/2S2XuJWK1ouExVKgmXNZ2a/ebmN5MqwqQ0uGa+hP 69Fo5sRSg6wnomQGUgnWcBMVrf5eKPh9ayJJ+ZLAqMSl2GfOJMw9FhAjaHlFsw+75UF2 Fhh45y67APOKrqNuY3ZbS15lvfpa+UkCrUz+6GJwD0J04CFzUQf+DK7j9Or7hVmxdxsE Nf6Z3D0dTy/QHvX704pLlN5HMvoIsaFdeo5z91BiCnmaihds81zrUlY6EE/i7sNql+DX nMpQ== X-Gm-Message-State: ALoCoQmnDLzxuBtPlzXqu4a3dkenvz7uTP7pu7pBmdDzhsvOYoJu7qmT11UgVzyuauH83IDIk5YS X-Received: by 10.112.41.227 with SMTP id i3mr6908988lbl.41.1399594768831; Thu, 08 May 2014 17:19:28 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp85-140-139-26.pppoe.mtu-net.ru. [85.140.139.26]) by mx.google.com with ESMTPSA id jh4sm2666351lbb.26.2014.05.08.17.19.27 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 08 May 2014 17:19:28 -0700 (PDT) To: horms@verge.net.au, linux-sh@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH] ARM: shmobile: henninger: add I2C2 DT support Cc: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org From: Sergei Shtylyov Organization: Cogent Embedded Date: Fri, 9 May 2014 04:19:41 +0400 MIME-Version: 1.0 Message-Id: <201405090419.42435.sergei.shtylyov@cogentembedded.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 Define the Henninger board dependent part of the I2C2 device node. Add device nodes for Analog Devices ADV7180 video decoder and Renesas EEPROM connected to this I2C bus. Based on the Koelsch I2C2 device tree patch by Wolfram Sang. Signed-off-by: Sergei Shtylyov --- This patch is against 'renesas-devel-v3.15-rc3-20140502' tag of Simon Horman's 'renesas.git' repo plus SDHI0/2, QSPI, and MSIOF0 DT support patches posted recently. arch/arm/boot/dts/r8a7791-henninger.dts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: renesas/arch/arm/boot/dts/r8a7791-henninger.dts =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7791-henninger.dts +++ renesas/arch/arm/boot/dts/r8a7791-henninger.dts @@ -110,6 +110,11 @@ renesas,function = "sdhi2"; }; + i2c2_pins: i2c2 { + renesas,groups = "i2c2"; + renesas,function = "i2c2"; + }; + qspi_pins: spi0 { renesas,groups = "qspi_ctrl", "qspi_data4"; renesas,function = "qspi"; @@ -170,6 +175,25 @@ status = "okay"; }; +&i2c2 { + pinctrl-0 = <&i2c2_pins>; + pinctrl-names = "default"; + + status = "okay"; + clock-frequency = <400000>; + + video@20 { + compatible = "adi,adv7180"; + reg = <0x20>; + }; + + eeprom@50 { + compatible = "24c02"; + reg = <0x50>; + pagesize = <16>; + }; +}; + &qspi { pinctrl-0 = <&qspi_pins>; pinctrl-names = "default";