Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64543C6FA8B for ; Fri, 16 Sep 2022 08:43:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230060AbiIPInv (ORCPT ); Fri, 16 Sep 2022 04:43:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229658AbiIPInv (ORCPT ); Fri, 16 Sep 2022 04:43:51 -0400 Received: from mail-m11873.qiye.163.com (mail-m11873.qiye.163.com [115.236.118.73]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50508A4B0D for ; Fri, 16 Sep 2022 01:43:50 -0700 (PDT) Received: from localhost.localdomain (unknown [58.22.7.114]) by mail-m11873.qiye.163.com (Hmail) with ESMTPA id 5729C900A5F; Fri, 16 Sep 2022 16:43:48 +0800 (CST) From: Jianqun Xu To: jbx6244@gmail.com, heiko@sntech.de, linus.walleij@linaro.org, andriy.shevchenko@linux.intel.com Cc: brgl@bgdev.pl, linux-gpio@vger.kernel.org, linux-rockchip@lists.infradead.org, Jianqun Xu Subject: [PATCH v7 0/2] gpio: rockchip: support acpi Date: Fri, 16 Sep 2022 16:43:45 +0800 Message-Id: <20220916084347.458619-1-jay.xu@rock-chips.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFJSktLSjdXWS1ZQUlXWQ8JGhUIEh9ZQVlDHR0ZVhhLQ01ITEhISEkZTlUTARMWGhIXJB QOD1lXWRgSC1lBWU5DVUlJVUxVSkpPWVdZFhoPEhUdFFlBWU9LSFVKSktISkxVSktLVUtZBg++ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6ODY6Azo4OT0oCCIWDxxPDh0V Tx8wFCtVSlVKTU1ISEpMQ0lDQkhOVTMWGhIXVREaAlUDDjsJFBgQVhgTEgsIVRgUFkVZV1kSC1lB WU5DVUlJVUxVSkpPWVdZCAFZQUlJQk03Bg++ X-HM-Tid: 0a834577e3c12eafkusn5729c900a5f Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org 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