blob: c8a134e4d96120f3a1e6936a9ece69627742d0d5 [file] [log] [blame]
From c690f95b6d7977443dc687304e22dbee35031a71 Mon Sep 17 00:00:00 2001
From: "H. Nikolaus Schaller" <>
Date: Sat, 28 Apr 2018 18:31:32 +0200
Subject: [PATCH 1582/1795] gpio: pca953x: add more register definitions for
PCAL chips ("L" seems to stand for "latched") have additional
registers starting at address 0x40 to control the latches,
interrupt mask, pull-up and pull down etc.
Signed-off-by: H. Nikolaus Schaller <>
Reviewed-by: Andy Shevchenko <>
Signed-off-by: Linus Walleij <>
(cherry picked from commit 6315d231efdc6ff1f3344e2d3c66dabcf6e7c27f)
Signed-off-by: Simon Horman <>
Signed-off-by: Geert Uytterhoeven <>
drivers/gpio/gpio-pca953x.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c
index d18eeaa48189..fbe99e741da6 100644
--- a/drivers/gpio/gpio-pca953x.c
+++ b/drivers/gpio/gpio-pca953x.c
@@ -41,9 +41,13 @@
#define PCA957X_MSK 0x06
#define PCA957X_INTS 0x07
+#define PCAL953X_OUT_STRENGTH 0x20
#define PCAL953X_IN_LATCH 0x22
+#define PCAL953X_PULL_EN 0x23
+#define PCAL953X_PULL_SEL 0x24
#define PCAL953X_INT_MASK 0x25
#define PCAL953X_INT_STAT 0x26
+#define PCAL953X_OUT_CONF 0x27
#define PCA_GPIO_MASK 0x00FF
#define PCA_INT 0x0100