[PATCH v7 0/2] gpio: rockchip: support acpi
Jianqun Xu
jay.xu at rock-chips.com
Fri Sep 16 01:43:45 PDT 2022
This patch fix driver to support acpi. A patch to pinctrl-rockchip.c will be pushed together.
Andy Shevchenko (1):
ACPI: utils: Add acpi_dev_uid_to_integer() helper to get _UID as
integer
Jianqun Xu (1):
gpio: rockchip: support acpi
drivers/acpi/utils.c | 24 +++
drivers/gpio/gpio-rockchip.c | 300 ++++++++++++++++++-----------------
include/acpi/acpi_bus.h | 1 +
include/linux/acpi.h | 5 +
4 files changed, 188 insertions(+), 142 deletions(-)
--
v7:
- drop pinctrl related codes to make gpio work without pinctrl, for acpi.
v6:
- remove dt patches from this serial patchset
- fix clock get to only with index 0 for apb and 1 for debounce
- move get iomem and irq first, suggested by Johan
v5:
- add patches to add gpio alias and clock-names
- get clock by devm_clk_get()
- restore gpio range add comment
- other codingstyle
v4: suggested by Andy Shevchenko
- use dev_fwnode and to_of_node(fwnode) to replace dev->of_node
- split to a separate rockchip_gpio_get_clocks
- handle fail for clk_prepare_enable
- other codingstyle
v3: suggested by Andy Shevchenko
- fix irq size (32) to GPIO_MAX_PINS
- fix to use is_of_node or is_acpi_node
- use standard pattern for error handle
- remove redundant assignment
v2:
- fix rockchip_pin_output_deferred to rockchip_pin_deferred
2.25.1
More information about the Linux-rockchip
mailing list