gpio updates for v5.10 - part 1
- automatically drive GPHY leds in gpio-stp-xway
- refactor ->{get, set}_multiple() in gpio-aggregator
- add support for a new model in rcar-gpio DT bindings
- simplify several GPIO drivers with dev_err_probe()
- disable Direct KBD interrupts in gpio-tc35894
- use DEFINE_SEQ_ATTRIBUTE() in GPIO chardev to shrink code
- switch to using a simpler IDA API in gpiolib
- make devprop_gpiochip_set_names() more generic by using device properties
instead of using fwnode helpers
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEFp3rbAvDxGAT0sefEacuoBRx13IFAl9jSlsACgkQEacuoBRx
13K6cBAA2Drc9AwFpGzb+yE7bvKmxtbCbD8RZBQNg4Ljy56yQOQhNnQSE91YIeGj
MlSNbn89nKGlkUje2qggJn6+ZE1InKI70d67fK4z/MiMDv31YLPN78Qei9kbTXgF
dNiV6wnabavAJrpNPtNOU8SLotn9C3zVwTyXOuMqfGL6TqAWf79Xk2QHuV1l/Apz
CozfTI/81p1eeuF3yMRz+ubGS/2Zpo862QmgA9CMWb439z7LNbQJ1vjFKMqvkW0P
ey9ELjV/y5PFTA9fWYIukOjBqpsWyihdIW2K3R/7yR8OFqREUnvBzJZJLpghCkzO
vpivVFlZu7eyMpdUU4ZH7ussFVX+GqYbV8Q42shabClQH7qJAfnO3nhPptWWWd/v
CmDOEvsfg2CpXpWJmwxUxoUJEOto2NO3HOBM41XYKQhSs3pw1HheN2wxVOWWOrTa
kJfJnyaWYT1qkolRuXMdLkauZHOpmAP3o+o+OtInd+NeM9lyaCjhdtQ11vBDk1Oc
3jLskr29KyTIa9lNPLT+pcQWuF77dhtzTPUIeG1+BzWA/FBpiR2c0M2tmUdRGIKb
IEPF0vkihiLy5rz/j1YYgADLDc6uxhEbiP/WKcbKySgc4kCQCHkgFQwa/DyMAROC
ye7Yof9m6Yx1KMvioP0QpP/LU9mfooSoa2JU2iHGH8df+VJ1NFQ=
=RbA2
-----END PGP SIGNATURE-----
Merge tag 'gpio-updates-for-v5.10-part1' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux into devel
gpio updates for v5.10 - part 1
- automatically drive GPHY leds in gpio-stp-xway
- refactor ->{get, set}_multiple() in gpio-aggregator
- add support for a new model in rcar-gpio DT bindings
- simplify several GPIO drivers with dev_err_probe()
- disable Direct KBD interrupts in gpio-tc35894
- use DEFINE_SEQ_ATTRIBUTE() in GPIO chardev to shrink code
- switch to using a simpler IDA API in gpiolib
- make devprop_gpiochip_set_names() more generic by using device properties
instead of using fwnode helpers
This commit is contained in:
commit
36eccdb58f
18 changed files with 201 additions and 164 deletions
|
|
@ -756,9 +756,6 @@ struct gpio_desc *gpiochip_request_own_desc(struct gpio_chip *gc,
|
|||
enum gpiod_flags dflags);
|
||||
void gpiochip_free_own_desc(struct gpio_desc *desc);
|
||||
|
||||
void devprop_gpiochip_set_names(struct gpio_chip *gc,
|
||||
const struct fwnode_handle *fwnode);
|
||||
|
||||
#ifdef CONFIG_GPIOLIB
|
||||
|
||||
/* lock/unlock as IRQ */
|
||||
|
|
|
|||
|
|
@ -19,6 +19,9 @@ enum tx3589x_block {
|
|||
#define TC3589x_RSTCTRL_KBDRST (1 << 1)
|
||||
#define TC3589x_RSTCTRL_GPIRST (1 << 0)
|
||||
|
||||
#define TC3589x_DKBDMSK_ELINT (1 << 1)
|
||||
#define TC3589x_DKBDMSK_EINT (1 << 0)
|
||||
|
||||
/* Keyboard Configuration Registers */
|
||||
#define TC3589x_KBDSETTLE_REG 0x01
|
||||
#define TC3589x_KBDBOUNCE 0x02
|
||||
|
|
@ -101,6 +104,9 @@ enum tx3589x_block {
|
|||
#define TC3589x_GPIOODM2 0xE4
|
||||
#define TC3589x_GPIOODE2 0xE5
|
||||
|
||||
#define TC3589x_DIRECT0 0xEC
|
||||
#define TC3589x_DKBDMSK 0xF3
|
||||
|
||||
#define TC3589x_INT_GPIIRQ 0
|
||||
#define TC3589x_INT_TI0IRQ 1
|
||||
#define TC3589x_INT_TI1IRQ 2
|
||||
|
|
|
|||
|
|
@ -170,6 +170,12 @@ static inline int device_property_count_u64(struct device *dev, const char *prop
|
|||
return device_property_read_u64_array(dev, propname, NULL, 0);
|
||||
}
|
||||
|
||||
static inline int device_property_string_array_count(struct device *dev,
|
||||
const char *propname)
|
||||
{
|
||||
return device_property_read_string_array(dev, propname, NULL, 0);
|
||||
}
|
||||
|
||||
static inline bool fwnode_property_read_bool(const struct fwnode_handle *fwnode,
|
||||
const char *propname)
|
||||
{
|
||||
|
|
@ -224,6 +230,13 @@ static inline int fwnode_property_count_u64(const struct fwnode_handle *fwnode,
|
|||
return fwnode_property_read_u64_array(fwnode, propname, NULL, 0);
|
||||
}
|
||||
|
||||
static inline int
|
||||
fwnode_property_string_array_count(const struct fwnode_handle *fwnode,
|
||||
const char *propname)
|
||||
{
|
||||
return fwnode_property_read_string_array(fwnode, propname, NULL, 0);
|
||||
}
|
||||
|
||||
struct software_node;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue