From patchwork Thu Nov 16 20:56:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 10062111 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 B3E2F6023A for ; Thu, 16 Nov 2017 21:18:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2A9929F02 for ; Thu, 16 Nov 2017 21:18:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 960A42AC0A; Thu, 16 Nov 2017 21:18:37 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED 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 34D4B29F02 for ; Thu, 16 Nov 2017 21:18:36 +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:Subject:To:Date:Message-Id :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=tg8fJtrBG7ja+gLYWpaQKHMyw/GYT/xF74hYsQigCEo=; b=YAq9jLSaY26RKm 2+3l8zr/66MnMyaMrpo8TB/eqHV1jwr604uA1edqKemANPQbZwML/yvylUMnj5ven6wqI9fbYhY+X VeW1v3osuP9rYmRxD/xvJpr1wcThwSqkUSOucffMwVqnW7vxTUDepaEpM/IGaWyLrIkZOqxEi86wy 5B2iP7t/0EIu6rFOmT1IJfBX2RBF18HxPAe7/Xgm4kH2oBHGjsizsA3Uaa48+hUhP1y60fL3rwlG5 J30LeCu5Ws1zCmICDb6ignv2GrXmLb2QZWRC6X6BTfoKN+AZcvZf81iPwm35lp3HG6WVLMPZm6bQX x/T9OdTOJV7PXLSrhxcg==; 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 1eFRYR-00058f-67; Thu, 16 Nov 2017 21:18:35 +0000 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eFRJx-0002B4-Mm for linux-arm-kernel@lists.infradead.org; Thu, 16 Nov 2017 21:03:43 +0000 Received: by mail-lf0-x243.google.com with SMTP id f134so388229lfg.8 for ; Thu, 16 Nov 2017 13:03:17 -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=UL5zaeOP6GTGF7WXfYtNmJljAq4QPkXUJZflc4PIqwc=; b=diNczF+5JUxR4yr0TXsqSto0tPigLRtgzuz9VPwb9fcRA95Rq0tfz3fhx3FleI0TFX i5lJyNKtaLmOdAOnuYoYOjcRq9Fm7HdXSfm398oAD8QB7FvApjHUsJa+rhNU8j0tPY8Q smRQGw3zRl57FTyixDfZIN1oHl02ofv2ylHL+9vMcGGsjhSmkZhE9mK1Zgz/4DqIm13+ Ib6669DoFx0cVCZMQgOMaGrrgNcSFD3GixyIB9MPDgZFFmq43S1wZgZl/F9Q7IO9K9Al a4ng64/jFZSKzMx8zCzVrUx0j+0U/2igpdKAJeqjSaGlRK88Om9eX6woxyUQb/nd60Y5 RSmA== 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=UL5zaeOP6GTGF7WXfYtNmJljAq4QPkXUJZflc4PIqwc=; b=UhQYzCgk4VqAesjPuirKBrn6/ToaB152udxTqjA0k6p5gDble4E/fRbNrGvgxlMW8q D0AKejNDnDhNCC2XcclWIRAVzvZH14JZ6vcLG7K/MtrofofEYM/nd9Feih4fDJvFflcK fQw336kZ9Kg0YtGPWz4wL3p1Hc2JLAAJDUYX42PZclV3I96qSerYAwogTVBQmoN4GS5r KQba34CLwubOxMxhSSwK91pIyUaWFeSRxXO3v5cTibE7h7vpsghbemc3FftMuMYS8LL8 wZukyf2nrSR91VvqXGGT2Gee8UHELTtVJ3Rq3p3xKa0WKuoUwPItKPtFoy6iOF2KB2vK 55Hg== X-Gm-Message-State: AJaThX6rJdEZ/81uEtVddDQe1ho4VWOh7xKZ0JlKn25qKwkp0ajHLekj VY2GNmljGsMSoNlQlNSeKes3lA== X-Google-Smtp-Source: AGs4zMYKWWCFX4NRl9S1PFMjIk4k1N3KFqzKFDRRlIn7CbaHD2SZ8/LznDoVxTmfQpOtCcbcjKTVlA== X-Received: by 10.25.196.77 with SMTP id u74mr51873lff.72.1510866195567; Thu, 16 Nov 2017 13:03:15 -0800 (PST) Received: from wasted.cogentembedded.com ([31.173.87.127]) by smtp.gmail.com with ESMTPSA id r23sm511734lja.32.2017.11.16.13.03.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Nov 2017 13:03:14 -0800 (PST) From: Sergei Shtylyov X-Google-Original-From: "Sergei Shtylyov" Received: by wasted.cogentembedded.com (sSMTP sendmail emulation); Fri, 17 Nov 2017 00:03:12 +0300 Message-Id: <20171116210312.016087689@cogentembedded.com> User-Agent: quilt/0.64 Date: Thu, 16 Nov 2017 23:56:48 +0300 To: Simon Horman , Rob Herring , Catalin Marinas , Will Deacon , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/1] arm64: dts: renesas: eagle: add I2C0 support MIME-Version: 1.0 Content-Disposition: inline; filename=arm64-dts-renesas-eagle-add-I2C0-support.patch X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171116_130338_182402_94A4DDF2 X-CRM114-Status: GOOD ( 10.45 ) 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: Mark Rutland , Magnus Damm , Sergei Shtylyov , linux-arm-kernel@lists.infradead.org, Vladimir Barinov 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 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 --- 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 @@ -63,6 +63,11 @@ function = "avb0"; }; + i2c0_pins: i2c0 { + groups = "i2c0"; + function = "i2c0"; + }; + scif0_pins: scif0 { groups = "scif0_data"; function = "scif0"; @@ -80,3 +85,18 @@ status = "okay"; }; + +&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>; + }; +};