From patchwork Wed Aug 23 03:34:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yinbo Zhu X-Patchwork-Id: 13709 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a7d1:0:b0:3f2:4152:657d with SMTP id p17csp254726vqm; Tue, 22 Aug 2023 22:45:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHqUdJ6wii/7D+xSA749J+6dHsQjcdV/neUpkxF8h2d0R5nwPEcO8+cTx6iowhPOYXZ27Yw X-Received: by 2002:a05:6358:c1e:b0:133:595:1c with SMTP id f30-20020a0563580c1e00b001330595001cmr9976279rwj.31.1692769511835; Tue, 22 Aug 2023 22:45:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692769511; cv=none; d=google.com; s=arc-20160816; b=ir9hUkPBnBZcltlmJN9bR43FI/K1ZkAYuTZvsVH2xpeYimTH8p5DwZW6LDLi2YC1hS JFElVV8YSYZ39/SgtJXBaIFxSXssPlyRz7SucefCxsEaAuIv7ecdk2EnPHa+gmQdIHQ5 MRWxp0msQey2db2f75A1Q1kMJYX9yNGtVLfKN/Qruvq8Yd7hFWgiw/OUwvANWY23C1hQ 3yIm37E6gR4iYhi42gWC79UvpzmM8+Fb9GN+7DfCNuAGwgA7A+1eke8wz3BuwApj1iO7 H0o6PDIV2dfN9vBodONTMOtSnNXHKb9ean5onXwslONUd+f9+EuaC6IDGZJbLByZlZLH KxFQ== 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=F0PDRkvuptUYZ+nRAhNNsRDv97etkV/qIoQmwIrdeCU=; fh=03M9NuUp7mf+kiarWzGb9RQmG0WNybTkFW4IRsSZJPI=; b=iN3K2a9njJGK4SrcnscjPkjfEiXBrDEzZ9MNXCBcTysrXKu8UzTzUqkiFP+7pxokhI 6uQhDMDxyF5RXH9rWgAqDrVpNs3VsCZTeqLBYmAVhBDKTG6VwGN3b4lOCxpwbUNj9h00 uxUgAU7Dv+jLuSZDTp+6yVMePIEp9Eu5S0gPbz6H6fGgPG13aWQ1JFasadoJCrX2rm9j TmF+U+xVl2johNIuPLBeLcO3ndOaBRS60mkhXpaEbk3FVgDpsyRypFbxK5GGkRpSJyUO DpUtEmXGQoGz9EJDQhrbWtamChudKvOyRe8euIYifDagDRnDDkFoLir3V30aNoVsGqQ8 YzOg== 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 m1-20020a656a01000000b00563d9ff5158si10723916pgu.350.2023.08.22.22.44.58; Tue, 22 Aug 2023 22:45:11 -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 S232453AbjHWDel (ORCPT + 99 others); Tue, 22 Aug 2023 23:34:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231522AbjHWDeh (ORCPT ); Tue, 22 Aug 2023 23:34:37 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EE3CCCF2; Tue, 22 Aug 2023 20:34:33 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.201]) by gateway (Coremail) with SMTP id _____8BxyepIfuVkXxYbAA--.45942S3; Wed, 23 Aug 2023 11:34:32 +0800 (CST) Received: from localhost.localdomain (unknown [10.20.42.201]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxDCNEfuVk7_FgAA--.20841S2; Wed, 23 Aug 2023 11:34:32 +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 v4 0/2] gpio: loongson: add more gpio chip support Date: Wed, 23 Aug 2023 11:34:25 +0800 Message-Id: <20230823033427.23072-1-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8AxDCNEfuVk7_FgAA--.20841S2 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: 1774997483218504620 X-GMAIL-MSGID: 1774997483218504620 This patch was to add loongson 2k0500, 2k2000 and 3a5000 gpio chip driver support. Change in v4: 1. Reword the title and commit log information. 2. Remove the offset parse in DT and add it in of_device_id and acpi_device_id's data field. 3. Add more gpio chip dt-bindings support in yaml file. 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 more loongson gpio chip support gpio: loongson: add more gpio chip support .../bindings/gpio/loongson,ls-gpio.yaml | 23 ++- drivers/gpio/gpio-loongson-64bit.c | 136 ++++++++++++++++-- 2 files changed, 147 insertions(+), 12 deletions(-)