packages: kernel: add gpio-nxp-74hc153
authorMauri Sandberg <sandberg@mailfence.com>
Thu, 21 May 2020 06:59:52 +0000 (09:59 +0300)
committerPetr Štetiar <ynezz@true.cz>
Mon, 22 Mar 2021 08:23:10 +0000 (09:23 +0100)
commit6a6f9e73dd65f9201bee911d2fae8595f86c093b
tree1046767af96efc7e32909a17be96b7d3809e5a70
parenta49fd9db0a2bfad8ea9a09f32fadbd3cc7e46205
packages: kernel: add gpio-nxp-74hc153

NXP 74HC153 is a GPIO expander. Its original source cide sits in ar71xx
architecture tree. It has been slightly modified to get GPIO pin
configuration from the device tree rather than a MACH file.

 Changes to the source file:
  - Remove struct nxp_74hc153_config
  - in nxp_74hc153_probe(), fetch GPIO configuration from device tree
  - allow GPIO framework decide the base number by passing -1 to it
  - remove support for kernel versions below 4.5.0
  - add OF device compatibility string

 Create a package for inclusion in image.

References: https://lore.kernel.org/linux-gpio/545111184.50061.1615922388276@ichabod.co-bxl/
Signed-off-by: Mauri Sandberg <sandberg@mailfence.com>
[added link to driver usptreaming work in progress]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
package/kernel/gpio-nxp-74hc153/Makefile [new file with mode: 0644]
package/kernel/gpio-nxp-74hc153/src/Makefile [new file with mode: 0644]
package/kernel/gpio-nxp-74hc153/src/gpio-nxp-74hc153.c [new file with mode: 0644]