From patchwork Mon Aug 7 07:40:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yinbo Zhu X-Patchwork-Id: 13219 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp1284333vqr; Mon, 7 Aug 2023 00:42:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFH08RZiapwxk94QHR2Pm0SrUPyEMhKZDlat1UC7soTXKuV6BT/NwoVSvst5vhrqnkcBQqV X-Received: by 2002:a05:6402:2d4:b0:523:3e47:2657 with SMTP id b20-20020a05640202d400b005233e472657mr585219edx.11.1691394127863; Mon, 07 Aug 2023 00:42:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691394127; cv=none; d=google.com; s=arc-20160816; b=K2t1X3hw0vidU6sJztVHPx2hPLUvtmGFfu/c2CJWcCUPqmGVYzZmZQCbvO347WYKbE zmF+2fciwJ8pqCxZQ56pSUX8K/uHhvbgS8aF2Xr7mEXVEy13jMR+BGUal5+S3evwMDyw S+aUYeCQ87DR9dYCl6fy160rvbzn8XZ2Xc4PSpLUTZ4vFvT8ASLRVE5QVzr6bs4TZz9o BCnhM2IBu3HROW6xpPUqaN+s3BNreexPJP8nR8OLnPM+LsqskYBQio/qt70Z7jAr+0U5 P9Hzwt7Bc+D2zj2AZRbsywReRv+KnpXXB6jxuWsjNOczbgF2VWQx9YWbPhddsEhprsG/ bd8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=BzF7Q4yntv52hFviQTcH6ip5MH69r2q2m2Q/eenJLO8=; fh=03M9NuUp7mf+kiarWzGb9RQmG0WNybTkFW4IRsSZJPI=; b=GuY8RaY3Uynk/DLWT2qpGJgxRKb3Fc3lMRg9RlVwY2Zd3Kp4w/B81B0df6wyN69QLy eho+TyyHE9pPK/gDRrXIOM7K9WphxpjTVqJ2zDPdEPMI6P9MBy3DZoRg7ueW8Z8cTA7y ZCBrosuAjIynXfcPfqviaQSBU5kozErNwr7vhHgNREc83Rni1eNZ3aYUdTRP16sIuMRz IiRLhn0FRu8sTd3RbJIBH1lIEbIlV5smqU2cfIQwYMSmHXI6PGdvPbNpboojnf9c1B+6 IRlWq9lee7LflUXyfCUq4w4opmGMiOvykBi3gEi6y2Bd+Z/yIqaNrzr1TwG9qe3wRurs yIZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10-20020a50ee8a000000b005233f1b8c4dsi136947edr.58.2023.08.07.00.41.40; Mon, 07 Aug 2023 00:42:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230071AbjHGHlG (ORCPT + 99 others); Mon, 7 Aug 2023 03:41:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229972AbjHGHlD (ORCPT ); Mon, 7 Aug 2023 03:41:03 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DC51E10EC; Mon, 7 Aug 2023 00:40:58 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.201]) by gateway (Coremail) with SMTP id _____8Bx5fAJoNBkBuARAA--.40293S3; Mon, 07 Aug 2023 15:40:57 +0800 (CST) Received: from localhost.localdomain (unknown [10.20.42.201]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxB838n9Bk+dBMAA--.56868S2; Mon, 07 Aug 2023 15:40:56 +0800 (CST) From: Yinbo Zhu To: Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jianmin Lv , wanghongliang@loongson.cn, loongson-kernel@lists.loongnix.cn, Yinbo Zhu Subject: [PATCH v3 0/2] gpio: loongson: add firmware offset parse support Date: Mon, 7 Aug 2023 15:40:41 +0800 Message-Id: <20230807074043.31288-1-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8BxB838n9Bk+dBMAA--.56868S2 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773555288596800772 X-GMAIL-MSGID: 1773555288596800772 Add some GPIO register offset value parse support for device properties allowing to specify them in ACPI or DT. Change in v3: 1. Reword the dt-bindings patch commit log information. 2. Add "loongson,ls2k1000-gpio" compatible. Change in v2: 1. Reword the patch commit log information. 2. Add some GPIO register offset description in yaml. Yinbo Zhu (2): gpio: dt-bindings: add parsing of loongson gpio offset gpio: loongson: add firmware offset parse support .../bindings/gpio/loongson,ls-gpio.yaml | 40 +++++++++- drivers/gpio/gpio-loongson-64bit.c | 74 +++++++++++++++++-- 2 files changed, 106 insertions(+), 8 deletions(-)