From patchwork Wed Sep 9 15:23:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 515922 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id D05FD140281 for ; Thu, 10 Sep 2015 01:23:27 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=P06CdZIq; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754043AbbIIPX0 (ORCPT ); Wed, 9 Sep 2015 11:23:26 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:33539 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753362AbbIIPX0 (ORCPT ); Wed, 9 Sep 2015 11:23:26 -0400 Received: by pacex6 with SMTP id ex6so13340888pac.0; Wed, 09 Sep 2015 08:23:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=BV5cltbAruxOZqWX/n0dx9JltoGwFMbKuPe0K4OvWOE=; b=P06CdZIqEf/4wiQUqGGQFBIGU97XaJrF764ubcqN8gHXR1I9+F/MX16OsvdRokh4xD MGefCE0IosXV0kuWLm/hASIi8zkt/EPFZdrdiAuByNXpxYUsv1pUgC4juTtXfE7poh20 yPFE4dVyGGclRdUl9w2vNl8i9Mam1XxC9A92tYqnijQNPjicJlQX6xQTNImlvoEOT2bY CqxD0OsRDezsLmrHrMLR07Oek8LNqCSSaHV5S9SmH/qWDcrvKVyivrjgqWZiGu8TOsvw FL/TNUcyWIyx+Nro3cMou/EkGfE0xwh41Y8AQPuvo3Va0mLc02DGeFx2d+42l/S0fwKQ dQeQ== X-Received: by 10.68.102.225 with SMTP id fr1mr72756072pbb.65.1441812205524; Wed, 09 Sep 2015 08:23:25 -0700 (PDT) Received: from localhost (port-93050.pppoe.wtnet.de. [84.46.75.246]) by smtp.gmail.com with ESMTPSA id u1sm7381558pbz.56.2015.09.09.08.23.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2015 08:23:24 -0700 (PDT) From: Thierry Reding To: Linus Walleij , Alexandre Courbot Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] gpio/pca953x: Add TI TCA9539 support Date: Wed, 9 Sep 2015 17:23:22 +0200 Message-Id: <1441812202-1915-1-git-send-email-thierry.reding@gmail.com> X-Mailer: git-send-email 2.5.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org From: Thierry Reding The TCA9539 is almost identical to the PCA9555 and software-compatible with this driver. It exposes 16 general purpose I/O pins in two 8-bit configurations. Signed-off-by: Thierry Reding --- drivers/gpio/gpio-pca953x.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c index 50caeb1ee350..b28791279173 100644 --- a/drivers/gpio/gpio-pca953x.c +++ b/drivers/gpio/gpio-pca953x.c @@ -67,6 +67,7 @@ static const struct i2c_device_id pca953x_id[] = { { "tca6408", 8 | PCA953X_TYPE | PCA_INT, }, { "tca6416", 16 | PCA953X_TYPE | PCA_INT, }, { "tca6424", 24 | PCA953X_TYPE | PCA_INT, }, + { "tca9539", 16 | PCA953X_TYPE | PCA_INT, }, { "xra1202", 8 | PCA953X_TYPE }, { } }; @@ -754,6 +755,7 @@ static const struct of_device_id pca953x_dt_ids[] = { { .compatible = "ti,tca6408", }, { .compatible = "ti,tca6416", }, { .compatible = "ti,tca6424", }, + { .compatible = "ti,tca9539", }, { .compatible = "exar,xra1202", }, { }