From patchwork Fri Jul 25 14:40:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 4623641 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 3D40A9F380 for ; Fri, 25 Jul 2014 14:41:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 762FB2018A for ; Fri, 25 Jul 2014 14:41:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A494E20179 for ; Fri, 25 Jul 2014 14:41:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752623AbaGYOlc (ORCPT ); Fri, 25 Jul 2014 10:41:32 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:57204 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752615AbaGYOlb (ORCPT ); Fri, 25 Jul 2014 10:41:31 -0400 Received: by mail-wi0-f174.google.com with SMTP id d1so1133905wiv.1 for ; Fri, 25 Jul 2014 07:41:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=C0CMDP5w3cvPeDP+zNK8bcz7Mouyyyjqb7PGctxTgyc=; b=lJo9DavTSfW7p7lbZzx4OZ3RGFtpF0E55vzBesIWxmYpzS04FvAKH7qxhKPLKeA4Qt 17W7BFoHYqeUvWrRnQzeENjGTu/fcNhavwnFhX/6ZzHxJywn/pCncKM4ilyDFzJnLO/e JjcYyAzwEPv/Z9qzXjGcr+/hvQbZGvIlQ/Z1hoKC4nrYKOFK9dOta4mEtU9In/B65sTO iy3Tuo7iZRoYYQ2JY+Sm3+zBR5bahvUWKwka8uxTJ0TBo6jt4sSq0LMYd96W6eDQdmUd 6JYNrsz1U9MpeA9OR33eJtJnf5c7lrXANQnt6+yqN00vW/00gtEhX0w2CoU9RE2F5L2y zstQ== X-Received: by 10.194.60.110 with SMTP id g14mr22556894wjr.101.1406299288301; Fri, 25 Jul 2014 07:41:28 -0700 (PDT) Received: from groucho.site ([109.201.152.240]) by mx.google.com with ESMTPSA id h13sm25821761wjs.2.2014.07.25.07.41.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Jul 2014 07:41:27 -0700 (PDT) From: Ulrich Hecht To: linux-sh@vger.kernel.org Cc: magnus.damm@gmail.com, Hisashi Nakamura , Ulrich Hecht , linux-gpio@vger.kernel.org Subject: [PATCH 2/6] gpio: rcar: Add r8a7794 support Date: Fri, 25 Jul 2014 16:40:46 +0200 Message-Id: <1406299250-23975-3-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 1.8.4.5 In-Reply-To: <1406299250-23975-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1406299250-23975-1-git-send-email-ulrich.hecht+renesas@gmail.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=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 From: Hisashi Nakamura Signed-off-by: Hisashi Nakamura [uli: added bindings documentation] Signed-off-by: Ulrich Hecht Cc: linux-gpio@vger.kernel.org --- Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt | 1 + drivers/gpio/gpio-rcar.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt b/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt index 941a26a..a58b31b 100644 --- a/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt +++ b/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt @@ -7,6 +7,7 @@ Required Properties: - "renesas,gpio-r8a7779": for R8A7779 (R-Car H1) compatible GPIO controller. - "renesas,gpio-r8a7790": for R8A7790 (R-Car H2) compatible GPIO controller. - "renesas,gpio-r8a7791": for R8A7791 (R-Car M2) compatible GPIO controller. + - "renesas,gpio-r8a7794": for R8A7794 (R-Car E2) compatible GPIO controller. - "renesas,gpio-rcar": for generic R-Car GPIO controller. - reg: Base address and length of each memory resource used by the GPIO diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c index 0c9f803..d0a2316 100644 --- a/drivers/gpio/gpio-rcar.c +++ b/drivers/gpio/gpio-rcar.c @@ -1,6 +1,7 @@ /* * Renesas R-Car GPIO Support * + * Copyright (C) 2014 Renesas Electronics Corporation * Copyright (C) 2013 Magnus Damm * * This program is free software; you can redistribute it and/or modify @@ -302,6 +303,11 @@ static const struct of_device_id gpio_rcar_of_table[] = { .has_both_edge_trigger = true, }, }, { + .compatible = "renesas,gpio-r8a7794", + .data = (void *)&(const struct gpio_rcar_info) { + .has_both_edge_trigger = true, + }, + }, { .compatible = "renesas,gpio-rcar", .data = (void *)&(const struct gpio_rcar_info) { .has_both_edge_trigger = false,