From patchwork Mon Jan 29 15:45:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 10189859 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 B023160375 for ; Mon, 29 Jan 2018 15:46:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC189285A3 for ; Mon, 29 Jan 2018 15:46:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A0D09285A8; Mon, 29 Jan 2018 15:46:13 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 00AC9285A3 for ; Mon, 29 Jan 2018 15:46:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752027AbeA2PqM (ORCPT ); Mon, 29 Jan 2018 10:46:12 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:54164 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751858AbeA2PqJ (ORCPT ); Mon, 29 Jan 2018 10:46:09 -0500 Received: by mail-wm0-f65.google.com with SMTP id t74so15244169wme.3; Mon, 29 Jan 2018 07:46:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=2NuccJaUphp6jOGU3J7kNFINnFt5m/lsRgg6cB5awJI=; b=iXJ1tMFd2+jbGSAdDDdnhOD8R8TiYhGXa5u9tgd8PFuPLSbmy0e8VTfxgUBionS2Wj 0st0q9RHV6OU/FnuSCaCKO0oZ43yv3S4tzNfE2kjA8NlECRXcJXcGpiQ3pGVJncR+zkO p3VyNQ8jRXoNo2VyRBRUDargaERGJrp/N/5d2RzWMeC3NY1Hk/3E4lXHhaoTL6EzgVfQ MC4cP5FD4n3ChMiEIiVIsR4elJzzV4X5nRqGko9X48tC7hVtJj/wEkDE1Qgk0MYLcjL2 NbV00KfgUi0uM0xISoPGIbbXX+R40gCj+dyq78augtReoO2n76xIDPK+0/xB4PaVyxLp JMRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=2NuccJaUphp6jOGU3J7kNFINnFt5m/lsRgg6cB5awJI=; b=HNb0cFI9Bu9hxULqxp6Au2SVP1t5WXWo/xy/4uuRoAVkuZ3nWMB8sv1jRbyzrBsM6u Ag591KaoMUamBH5VtdjyZuH5nbfveHNdK+uTT7klIhoirDwJOZwem76CDwffAw/XCGgp oObzIygDVQmBN7ouB6l36DE1Auw+ocofUjx8AkvRrOP08SC7vvNxd9mcjwtMYd6ggJu5 5/6zJFUfVuJXihq3NFfe+NeoH8fyNqU6CKbtxDR7tGsJLZcTGK0PMVhwZyYANnYl+1WH 6CZ4UYNa0DkySki876QA8l1set8Ly8O6GFFmvb5YbU8Tl2g1ym9gikY1QXurE4NK8THi TvZA== X-Gm-Message-State: AKwxytcCg5I4+ukk9o66a7KWav+TuglhR3GMnERVYsu/djFloNhO/XTp WujBQY7j+ZH5LJJZI5T3tdoG5P4= X-Google-Smtp-Source: AH8x227oIFZH1PVlJEH6o/tuL/2JC4tHr0pTY29Puo0QWX+5T8CA/cis7Qkp59F4ySSGqfCgOIeAew== X-Received: by 10.28.238.217 with SMTP id j86mr17601979wmi.151.1517240767748; Mon, 29 Jan 2018 07:46:07 -0800 (PST) Received: from groucho.site (ipbcc3b860.dynamic.kabel-deutschland.de. [188.195.184.96]) by smtp.gmail.com with ESMTPSA id a137sm8335601wme.15.2018.01.29.07.46.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Jan 2018 07:46:07 -0800 (PST) From: Ulrich Hecht To: linux-renesas-soc@vger.kernel.org, horms@verge.net.au, geert@linux-m68k.org, kieran.bingham@ideasonboard.com Cc: wsa@the-dreams.de, magnus.damm@gmail.com, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, Ulrich Hecht Subject: [PATCH v2 2/5] arm64: renesas: draak: enable I2C controller 0 and EEPROM Date: Mon, 29 Jan 2018 16:45:45 +0100 Message-Id: <1517240748-14780-3-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517240748-14780-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1517240748-14780-1-git-send-email-ulrich.hecht+renesas@gmail.com> 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 Enables EEPROM on I2C0 on the Draak board. Signed-off-by: Ulrich Hecht Reviewed-by: Geert Uytterhoeven Reviewed-by: Wolfram Sang --- arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77995-draak.dts b/arch/arm64/boot/dts/renesas/r8a77995-draak.dts index 09de73b..6ff9d3e 100644 --- a/arch/arm64/boot/dts/renesas/r8a77995-draak.dts +++ b/arch/arm64/boot/dts/renesas/r8a77995-draak.dts @@ -46,6 +46,11 @@ }; }; + i2c0_pins: i2c0 { + groups = "i2c0"; + function = "i2c0"; + }; + pwm0_pins: pwm0 { groups = "pwm0_c"; function = "pwm0"; @@ -67,6 +72,18 @@ }; }; +&i2c0 { + pinctrl-0 = <&i2c0_pins>; + pinctrl-names = "default"; + status = "okay"; + + eeprom@50 { + compatible = "rohm,br24t01", "atmel,24c01"; + reg = <0x50>; + pagesize = <8>; + }; +}; + &ehci0 { status = "okay"; };