Skip to content

Commit

Permalink
gpio: pca953x: add more register definitions for pcal953x
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
  • Loading branch information
goldelico authored and linusw committed May 16, 2018
1 parent 0950c19 commit 6315d23
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpio/gpio-pca953x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6315d23

Please sign in to comment.