From patchwork Mon Jul 31 09:10:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yinbo Zhu X-Patchwork-Id: 12858 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp1900784vqg; Mon, 31 Jul 2023 02:43:52 -0700 (PDT) X-Google-Smtp-Source: APBJJlEg/IRyus+Y504VUoVDmQiJdv4n98M4nYm5v+T5XOjPuQHvvUa3u99P6o9grFcaJ/u8eQrC X-Received: by 2002:a05:6512:3b82:b0:4fb:81f2:4228 with SMTP id g2-20020a0565123b8200b004fb81f24228mr6327903lfv.31.1690796631934; Mon, 31 Jul 2023 02:43:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690796631; cv=none; d=google.com; s=arc-20160816; b=gw9zGIHlmQsb1XmOlmqERYRMqMTQUIa5Yur0U+418uVBZcNggElwSK3gXQT5UlQlMQ 2kcrO9llkfsMm5Dwy09RoqgpCykVzrDgpv32vWLZUBrzrBYcFmGNfiiZHK/QKi9bhAYW f0OtplhQlQBLNAzjH7oDsaOiu2+BSlErtVLc5Fg/JJrEjz6Y+2I1fFLcavahQQFxMe5w uGkMMmN/hcgmWl3lgseXVsSS8Ujw1ELjyv4SJeuxj3EUKcQJvOl+cW1BGySNFbotPxWh Qqx3lrhmaGLwOS3yaZrt0pAP/DmOHJVZ/9VnhQrkaFB2qfYmMEY2g7DpxlF2NZxQXrck BwhA== 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=9oAw5MlScYaZEM7t9+CfNLtZiqzJ493dZfBV54i8w3E=; fh=teZAvrnU1k4B6t2Z9AwXPKAN+RYsEfJmvb3BgB5uIhw=; b=u9h0LkB2F1s8qpSSE6DaskM2AmxatxoQRPZY+zt4M3Npr4LB79dx/V+GgLrZF/6Z8/ +Gp2ci2C0Nf2SPpELsCpOmJJOtsn9IxCt2P+vbLTgYH9/wARYn4B8JZppZBk/KQRYzmS XFR+qXRg9+ln+5W1JgfG2L75xrmgtP9fw+x9YNC0e++G3wiYQP2J+X5JYRaqlx3Sfedm JwMYlGxxqNDYa5UXu+ecfVUWKGx3NN/pQ1P2QyzMS2DTIAhTzKv56sDbMMRV4vD/5TkA OR0nrRfOwYHSOeHNAvk2V2vVCrmBuJqCfdJWTmel5fX16pRjUQJIEFlrf6FpjIo+tJjX PQLw== 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 v10-20020aa7d9ca000000b00518c6e070f8si149825eds.663.2023.07.31.02.43.25; Mon, 31 Jul 2023 02:43:51 -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 S231527AbjGaJL2 (ORCPT + 99 others); Mon, 31 Jul 2023 05:11:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229925AbjGaJLX (ORCPT ); Mon, 31 Jul 2023 05:11:23 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 38820107; Mon, 31 Jul 2023 02:11:20 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.201]) by gateway (Coremail) with SMTP id _____8DxRvG1esdkPyINAA--.31437S3; Mon, 31 Jul 2023 17:11:17 +0800 (CST) Received: from localhost.localdomain (unknown [10.20.42.201]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxriOkesdk1DFCAA--.2097S2; Mon, 31 Jul 2023 17:11:17 +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, Liu Peibao , loongson-kernel@lists.loongnix.cn, Yinbo Zhu Subject: [PATCH v2 0/2] gpio: loongson: add firmware offset parse support Date: Mon, 31 Jul 2023 17:10:57 +0800 Message-Id: <20230731091059.17323-1-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8CxriOkesdk1DFCAA--.2097S2 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,T_SCC_BODY_TEXT_LINE 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: 1772927353874012590 X-GMAIL-MSGID: 1772928768909998884 Add some GPIO register offset value parse support for device properties allowing to specify them in ACPI or DT. 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 | 37 ++++++++++ drivers/gpio/gpio-loongson-64bit.c | 71 +++++++++++++++++-- 2 files changed, 101 insertions(+), 7 deletions(-)