Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1664928ybt; Mon, 15 Jun 2020 06:27:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHNksy+7/QnN9fVUMqoN8bN+Eld0ngizEYLqhFumyFu/HVQxvcc5v/byJ3efHd30GmgXw5 X-Received: by 2002:a17:906:f53:: with SMTP id h19mr10988133ejj.491.1592227646249; Mon, 15 Jun 2020 06:27:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592227646; cv=none; d=google.com; s=arc-20160816; b=KvG2EeMqIUzOwcEqcIdR5vWhLrT0qM9durV6q0QnuBbG0cvY4uU4Kd96bJofURiUeO 514u2jsPtcuRVQN6IhX6xLheaFwGrVFnymN06XJhQoS0Pxic/dUxKiYDkS4oz5wiIB+C LYrwcZUZLKx54b09jKr7KefK9YBa3EU0PoYvg/c4XkmjtOfUL43epXveTGekWx0guI5s 0355uGbU0s+j9Nz6dwudwsntVnvgAX3kLIgLSuWJqDH5xxbO32DEJ/aORoZl3WDQFApX nP0hE55zuizr/iFxVSXRcmbJyjRkhZLxrSTicNsEkyC4SvJm/5dyFQybb4fOkR37QiBo K+sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=GmWyMv06VbUhdT/7c2qbdBGSnQCr/V5aCSVo/vSuorU=; b=udLos4yE0EXERZPkGO9qJWO/DRjv3M6osn9kq+kaJqka09wzg/EaRj3Y+l/cgY1VH0 iAcYRuFTzoYns1iCucq3caJBn5PIMqiftn3ZyJnW99ZYDCNttwW7M0xo0M3cHIHYLpnj zXbNWH+Bx1Cqwv+W+5R048Zs7TcTfMKYv9JQgXTOBNbvz5LMglQSt4woJ5b7C3Ja1tga l1LmE+yhXVpnbEvZ6p9MeN64K259eLgmmxBxIxXd4xxTHEaQ8AqAsq39R26N3U36SN5P d3KSw7knykBlFFGS6V1XhCG2vV+4VO2+04b+pYmcrWq6zP9A7pnreCx6wgBw0FjK+tgL cegQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w23si8972144edl.586.2020.06.15.06.27.03; Mon, 15 Jun 2020 06:27:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730455AbgFONWf (ORCPT + 99 others); Mon, 15 Jun 2020 09:22:35 -0400 Received: from goliath.siemens.de ([192.35.17.28]:37812 "EHLO goliath.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730393AbgFONWf (ORCPT ); Mon, 15 Jun 2020 09:22:35 -0400 Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id 05FDMVpP013752 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 15 Jun 2020 15:22:31 +0200 Received: from md1f2u6c.ad001.siemens.net ([167.87.53.252]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 05FDMT0r009427; Mon, 15 Jun 2020 15:22:31 +0200 From: Jan Kiszka To: Linus Walleij , Bartosz Golaszewski Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko Subject: [PATCH v3 2/2] gpio: pca953x: Add support for the PCAL9535 Date: Mon, 15 Jun 2020 15:22:29 +0200 Message-Id: X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jan Kiszka The PCAL9535 is compatible to the PCA9535. Additionally, it comes with interrupt support and input latching. Other features are not supported by the GPIO subsystem. Datasheet: https://www.nxp.com/docs/en/data-sheet/PCAL9535A.pdf Signed-off-by: Jan Kiszka --- 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 1fca8dd7824f..cd5fb522563e 100644 --- a/drivers/gpio/gpio-pca953x.c +++ b/drivers/gpio/gpio-pca953x.c @@ -89,6 +89,7 @@ static const struct i2c_device_id pca953x_id[] = { { "pcal6416", 16 | PCA953X_TYPE | PCA_LATCH_INT, }, { "pcal6524", 24 | PCA953X_TYPE | PCA_LATCH_INT, }, + { "pcal9535", 16 | PCA953X_TYPE | PCA_LATCH_INT, }, { "pcal9555a", 16 | PCA953X_TYPE | PCA_LATCH_INT, }, { "max7310", 8 | PCA953X_TYPE, }, @@ -1145,6 +1146,7 @@ static const struct of_device_id pca953x_dt_ids[] = { { .compatible = "nxp,pcal6416", .data = OF_953X(16, PCA_LATCH_INT), }, { .compatible = "nxp,pcal6524", .data = OF_953X(24, PCA_LATCH_INT), }, + { .compatible = "nxp,pcal9535", .data = OF_953X(16, PCA_LATCH_INT), }, { .compatible = "nxp,pcal9555a", .data = OF_953X(16, PCA_LATCH_INT), }, { .compatible = "maxim,max7310", .data = OF_953X( 8, 0), }, -- 2.26.2