From patchwork Tue Sep 29 10:55:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 523768 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 9461F14029C for ; Tue, 29 Sep 2015 20:55:50 +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=lt+CboaM; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934263AbbI2Kzt (ORCPT ); Tue, 29 Sep 2015 06:55:49 -0400 Received: from mail-la0-f54.google.com ([209.85.215.54]:35677 "EHLO mail-la0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934243AbbI2Kzs (ORCPT ); Tue, 29 Sep 2015 06:55:48 -0400 Received: by laer8 with SMTP id r8so3653507lae.2; Tue, 29 Sep 2015 03:55:46 -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:in-reply-to:references; bh=PClE9J5oIEsRM4AqUqSGrJS+JUQqdetafbyMvZBebPc=; b=lt+CboaMQLKmfMx4HrtSxtXm6tqV3H9G0ixvLmpeS6569osKuKl6Ac+uekU6n3EQT+ i+GdQrgy5byvQb/5id8hyUJvsdhO22Kph0tSbsVczb0orr1douuQfNTn+lkoM9k9TbN2 wv3IxAaE5xIYaDzKb4M8HOmnj83pIrinpxngY+MJr95ZoeKo5Bi+fchPQl4GtlGjRlGH 0iLTbB899NWJ6puACLMwZXwdmZmLyWfUwX1QXcLBIA0+bhOOzcItygyrkn0nF0QBvsu9 3mIbCLqNpBUVATx53BV4dMQ5mge/9WWp4aAemPeJh/jZUhaiyJWuCSWsRGhUo4maVD2y /EHw== X-Received: by 10.112.131.102 with SMTP id ol6mr7104742lbb.6.1443524146439; Tue, 29 Sep 2015 03:55:46 -0700 (PDT) Received: from localhost (port-9546.pppoe.wtnet.de. [84.46.37.111]) by smtp.gmail.com with ESMTPSA id dt5sm2658498lac.26.2015.09.29.03.55.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Sep 2015 03:55:45 -0700 (PDT) From: Thierry Reding To: Linus Walleij , Alexandre Courbot Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] gpio/pca953x: Add TI TCA9539 support Date: Tue, 29 Sep 2015 12:55:44 +0200 Message-Id: <1443524144-14847-1-git-send-email-thierry.reding@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1441812202-1915-1-git-send-email-thierry.reding@gmail.com> References: <1441812202-1915-1-git-send-email-thierry.reding@gmail.com> 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 --- Changes in v2: - update device tree binding documentation Documentation/devicetree/bindings/gpio/gpio-pca953x.txt | 1 + drivers/gpio/gpio-pca953x.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt b/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt index b9a42f294dd0..13df9933f4cd 100644 --- a/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt +++ b/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt @@ -24,6 +24,7 @@ Required properties: ti,tca6408 ti,tca6416 ti,tca6424 + ti,tca9539 exar,xra1202 Example: 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", }, { }