From patchwork Tue Jul 21 09:08:50 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 6833561 X-Patchwork-Delegate: geert@linux-m68k.org 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E84A09F38B for ; Tue, 21 Jul 2015 09:09:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EC063205EC for ; Tue, 21 Jul 2015 09:09:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 151C0205EB for ; Tue, 21 Jul 2015 09:09:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753007AbbGUJJI (ORCPT ); Tue, 21 Jul 2015 05:09:08 -0400 Received: from mail-wg0-f47.google.com ([74.125.82.47]:36098 "EHLO mail-wg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752444AbbGUJJH (ORCPT ); Tue, 21 Jul 2015 05:09:07 -0400 Received: by wgbcc4 with SMTP id cc4so57455698wgb.3 for ; Tue, 21 Jul 2015 02:09:05 -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; bh=gmNmREokEO6nP7gz50ZsfKWhA58jNcOtcSsm9moYTiA=; b=01mRrijbZadtsjXOJpFhs0qJSwO8nES+5hKLSPwrh5w8V5/y6X7ThVPeV2563KqaF1 1AL1ygaGTLR2Z9PuhUE27b3gbAk99s39mubjKKQiTFCqge6teFudy8pDwFPWHm+pSqOs 7h+M60PeCQXz+tXTyIwytXAJ1qFskepZ0zw8wpd5FtZ7cOxM9PlzagITXOkuHcKaS/Sp Ben7kJvzpOm14TpjVzl8mdzBsaMQ5YO+H6k2Tnm6X4fRbfV5zSZyF/9T2LUnnZluAnLA 2Rb7cFx2KyarBm9DsbnlkMfDbAQUZBwYCVLsH9NCuF3yfQaHzhylXIvkHK8MY3yNgkDc 2U+g== X-Received: by 10.180.188.48 with SMTP id fx16mr29680326wic.35.1437469745562; Tue, 21 Jul 2015 02:09:05 -0700 (PDT) Received: from groucho.site ([46.166.186.218]) by smtp.gmail.com with ESMTPSA id c11sm15748170wib.1.2015.07.21.02.09.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Jul 2015 02:09:04 -0700 (PDT) From: Ulrich Hecht To: linus.walleij@linaro.org Cc: horms@verge.net.au, linux-sh@vger.kernel.org, magnus.damm@gmail.com, geert+renesas@glider.be, laurent.pinchart@ideasonboard.com, khiem.nguyen.xt@rvc.renesas.com, kuninori.morimoto.gx@renesas.com, Ulrich Hecht Subject: [PATCH v2] gpio: rcar: Add r8a7795 (R-Car H3) support Date: Tue, 21 Jul 2015 11:08:50 +0200 Message-Id: <1437469730-16460-1-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.4.2 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-8.0 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 R-Car Gen3's GPIO blocks are identical to Gen2's in every respect. Signed-off-by: Ulrich Hecht Acked-by: Simon Horman Acked-by: Kuninori Morimoto --- This still recycles the Gen2 structure, but explains why. That seems better to me than having the same data twice. Changes since v1: - added comment explaining the use of Gen2 info on Gen3 Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt | 1 + drivers/gpio/gpio-rcar.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt b/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt index 38fb86f..f60e2f4 100644 --- a/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt +++ b/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt @@ -9,6 +9,7 @@ Required Properties: - "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-r8a7795": for R8A7795 (R-Car H3) 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 1e14a6c..ed35348 100644 --- a/drivers/gpio/gpio-rcar.c +++ b/drivers/gpio/gpio-rcar.c @@ -327,6 +327,10 @@ static const struct of_device_id gpio_rcar_of_table[] = { .compatible = "renesas,gpio-r8a7794", .data = &gpio_rcar_info_gen2, }, { + .compatible = "renesas,gpio-r8a7795", + /* Gen3 GPIO is identical to Gen2. */ + .data = &gpio_rcar_info_gen2, + }, { .compatible = "renesas,gpio-rcar", .data = &gpio_rcar_info_gen1, }, {