From patchwork Fri Nov 7 09:23:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Kaneko X-Patchwork-Id: 5251161 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 F29FC9F39B for ; Fri, 7 Nov 2014 09:24:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2279F20131 for ; Fri, 7 Nov 2014 09:24:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 354FA2012E for ; Fri, 7 Nov 2014 09:24:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751121AbaKGJYp (ORCPT ); Fri, 7 Nov 2014 04:24:45 -0500 Received: from mail-pd0-f174.google.com ([209.85.192.174]:60936 "EHLO mail-pd0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750919AbaKGJYo (ORCPT ); Fri, 7 Nov 2014 04:24:44 -0500 Received: by mail-pd0-f174.google.com with SMTP id p10so2968597pdj.5 for ; Fri, 07 Nov 2014 01:24:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=wYWM+1s9zc8lOhP70K4RwYp3wEElSlLMQLtvBQYUV7I=; b=GtFnAlvrRnDYtdKrlodfSDl3rmzG0qPhD8I1JG0FbzskxdUcIaZsDNA4reQ+Zoz8gr fpgPsIflJz1aLmyD0ZUlMKg1sIS6YAm90IVsscpnkXdM+z3k3llCJyua2/gDQrAfoJTy E+KysRrsS9GRcTn5W2YpoGCW8EFHCX6/dfgJaooZPeBfY5v9lwYjM4fHWQ5uiMW13vh3 op5LW9/WkOGqpyi7kN3UnFigCatqE/3FNxvRI6ejgnWkG8pKsJIPyTVqHk4NaIIUQ5Ac g5ZEHT/MeiBK164Ufu32IJ1IntydYdCgI1beOUVi9ka3ZOcQccQgRj2pGV8e7D1dXv6L b89Q== X-Received: by 10.68.234.130 with SMTP id ue2mr7561372pbc.12.1415352283888; Fri, 07 Nov 2014 01:24:43 -0800 (PST) Received: from localhost.localdomain (p5095-ipngn6701marunouchi.tokyo.ocn.ne.jp. [153.174.4.95]) by mx.google.com with ESMTPSA id pk1sm1352305pdb.78.2014.11.07.01.24.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Nov 2014 01:24:43 -0800 (PST) From: Yoshihiro Kaneko To: linux-gpio@vger.kernel.org Cc: Linus Walleij , Alexandre Courbot , Simon Horman , Magnus Damm , linux-sh@vger.kernel.org Subject: [PATCH] gpio: rcar: Add r8a7793 and r8a7794 support Date: Fri, 7 Nov 2014 18:23:39 +0900 Message-Id: <1415352219-26644-1-git-send-email-ykaneko0929@gmail.com> X-Mailer: git-send-email 1.9.1 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.4 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 The device tree probing for R-Car M2-N (r8a7793) and R-Car E2 (r8a7794) is added. Signed-off-by: Hisashi Nakamura Signed-off-by: Yoshihiro Kaneko Acked-by: Geert Uytterhoeven --- This patch is based on for-next branch of Linus Walleij's gpio tree. Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt | 4 +++- drivers/gpio/gpio-rcar.c | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt b/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt index 941a26a..38fb86f 100644 --- a/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt +++ b/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt @@ -6,7 +6,9 @@ Required Properties: - "renesas,gpio-r8a7778": for R8A7778 (R-Mobile M1) compatible GPIO controller. - "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-r8a7791": for R8A7791 (R-Car M2-W) compatible GPIO controller. + - "renesas,gpio-r8a7793": for R8A7793 (R-Car M2-N) 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 ef71ca8..947654e 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 @@ -327,6 +328,16 @@ static const struct of_device_id gpio_rcar_of_table[] = { .has_both_edge_trigger = true, }, }, { + .compatible = "renesas,gpio-r8a7793", + .data = (void *)&(const struct gpio_rcar_info) { + .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,