]> www.infradead.org Git - users/willy/xarray.git/commitdiff
gpio: pca953x: add more register definitions for pcal953x
authorH. Nikolaus Schaller <hns@goldelico.com>
Sat, 28 Apr 2018 16:31:32 +0000 (18:31 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 16 May 2018 12:35:24 +0000 (14:35 +0200)
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 <hns@goldelico.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pca953x.c

index b68a8a240e4ce6f8957d8b12aa51ac8667a04980..ed58c000c72f3124a22cd912830b09286410f894 100644 (file)
 #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