From patchwork Thu Nov 16 21:06:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 10062103 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 E5BF8604D3 for ; Thu, 16 Nov 2017 21:08:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D80362A81C for ; Thu, 16 Nov 2017 21:08:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CCCFA2AC09; Thu, 16 Nov 2017 21:08:07 +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,DKIM_SIGNED, DKIM_VALID,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 802C92A81C for ; Thu, 16 Nov 2017 21:08:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936826AbdKPVIH (ORCPT ); Thu, 16 Nov 2017 16:08:07 -0500 Received: from mail-lf0-f68.google.com ([209.85.215.68]:37098 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932459AbdKPVIG (ORCPT ); Thu, 16 Nov 2017 16:08:06 -0500 Received: by mail-lf0-f68.google.com with SMTP id f125so415910lff.4 for ; Thu, 16 Nov 2017 13:08:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:user-agent:date:to:cc:subject:mime-version :content-disposition; bh=qeK48fyUiCPZJB90q9b8EdUGERtm4IasFAIm59dt6J0=; b=fXPPQtURDmy84dhrFtnl+NwUb8jlmmSTQMgZb3KJjfqNa7SgbJHcD+W3i4UotNyRNA s41OPPlFKY1cE+3l/AOUD3vbfqNGDDBsxzczyqANk9Yqnh7bzlObWlZoz67LHG+f/wwg DVYfFTpFPoOmXb3jlRIqU8Od73IlJogp45hjyAqI/J02WFJn59iJWFMGN3pEM2uFwRN8 2A1OqIVtq+5eBsAF4GKFKDdMmpN5gEXC7IYxlSPNo48VG0hBfOu89Ix86EAQ8RoLgnP/ ZWexheEZWdeZxn40PC4fZJUoVvvIqTKNucJYSIoRw5LXj+PKi1G0wFvk5YqxJeu+5xyO i61w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:user-agent:date:to:cc:subject :mime-version:content-disposition; bh=qeK48fyUiCPZJB90q9b8EdUGERtm4IasFAIm59dt6J0=; b=ZHsGvukLwR1iaiFagmwMtjYjNhQ82nIt1/fyyNz3p3yDLn0eQO8hF+IzfF1mjT9/3h Db7bIxvtprPJusEHl58Nqw3MnY5RhPQmqfDKfy5Nr+Ajctyz1+SxsTkQZWpszFvPCbn/ IeRhSlwWfygNqYn2kErxxG9LTLsHwPqF91266FT9CyER+HJhs5Ojxi9uOLc/rSWOKVRe HnGpUEPzsHeHdhAcZ4MllffFMqgR9Cf87YzR5/74AJLwtGg1VT6mssm/OLnV8qkd4i6b 4YVzYpHR+08ePpBznof5gZqPusUDrE5osKHEs82DNaV6hLjEoNiaOgkwmue5UaX8TNhL wS/g== X-Gm-Message-State: AJaThX49a9OWY9sx76zdeVZbwhPoKiS9axT+NAOo1vT0lUdWB2i6VvO0 fbLuZdoKdwZS0tkWHmNeIjPh+Q== X-Google-Smtp-Source: AGs4zMaPiWAQW9yge/l+Unxymvd40xR9oalsSip26HXezKd45u5riL4tO8BSp1e6g+ZPofBP9ceq1g== X-Received: by 10.46.68.214 with SMTP id b83mr1220344ljf.86.1510866484902; Thu, 16 Nov 2017 13:08:04 -0800 (PST) Received: from wasted.cogentembedded.com ([31.173.87.127]) by smtp.gmail.com with ESMTPSA id i62sm495591lji.42.2017.11.16.13.08.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Nov 2017 13:08:03 -0800 (PST) From: Sergei Shtylyov X-Google-Original-From: "Sergei Shtylyov" Received: by wasted.cogentembedded.com (sSMTP sendmail emulation); Fri, 17 Nov 2017 00:08:01 +0300 Message-Id: <20171116210801.215014557@cogentembedded.com> User-Agent: quilt/0.64 Date: Fri, 17 Nov 2017 00:06:31 +0300 To: Simon Horman , Rob Herring , Catalin Marinas , Will Deacon , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: Magnus Damm , Mark Rutland , linux-arm-kernel@lists.infradead.org, Vladimir Barinov , Sergei Shtylyov Subject: [PATCH 2/2] arm64: dts: renesas: eagle: add I2C0 support MIME-Version: 1.0 Content-Disposition: inline; filename=arm64-dts-renesas-eagle-add-I2C0-support.patch 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 Define the Eagle board dependent part of the I2C0 device node. The I2C0 bus is populated by ON Semiconductor PCA9653 I/O expander and Analog Devices ADV7511W HDMI transmitter (but we're only describing the former chip now). Based on the original (and large) patch by Vladimir Barinov. Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/r8a77970-eagle.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) Index: renesas/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts =================================================================== --- renesas.orig/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts +++ renesas/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts @@ -57,12 +57,32 @@ clock-frequency = <32768>; }; +&i2c0 { + pinctrl-0 = <&i2c0_pins>; + pinctrl-names = "default"; + + status = "okay"; + clock-frequency = <400000>; + + io_expander: gpio@20 { + compatible = "onnn,pca9654"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; +}; + &pfc { avb_pins: avb { groups = "avb0_mdio", "avb0_mii"; function = "avb0"; }; + i2c0_pins: i2c0 { + groups = "i2c0"; + function = "i2c0"; + }; + scif0_pins: scif0 { groups = "scif0_data"; function = "scif0";