From patchwork Thu Sep 21 01:52:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yinbo Zhu X-Patchwork-Id: 142689 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp4551421vqi; Wed, 20 Sep 2023 18:55:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEiFIScDEo3kpKIyakMiV21+QJZruPoUV0WoQMoOhb1DEjOZeaiOkRRNrU8mEtsj9DEXVBU X-Received: by 2002:a05:6358:27aa:b0:13a:5475:b461 with SMTP id l42-20020a05635827aa00b0013a5475b461mr5284030rwb.13.1695261323375; Wed, 20 Sep 2023 18:55:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695261323; cv=none; d=google.com; s=arc-20160816; b=MNAfrnhzqFgIlRTP8ImpQ/MOFP16uA61gDWuqLLUtNJoZzj9tX8f56lsKUTiX8l2+Y Xa7WfYVbtLTDnxJxoWziaeQMP23fb8rJy6RcEtid5ECcnFajb6Of3c0ymRpDtCPx4SSu bJLTaacolC18fZGRcE5QfInf/Wjbu9BXmE33NFQhN+MTwyOHbtWpdEb41csgO9qMbhxC MmMgIYB6ZzchivB9DpDdR7vwxlQjZmH8X8Wm3Q+LPJLA5dPsCTS0CL3q4dKgjnUVt3Y+ 1Ijn3FxTfrnfXElGl6M3iU+w9HbC2YdxyYUKW+qOrIOh23YiQigduNr7zytW2836dp6H CAZg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=U8s63TKMqp0Mc/hQ6k7T7F2//xTQKqgJyFfrhUBrrmY=; fh=M667T0tfQGApmmss+ctZT6lCAhUTUTnuYzQdjk4fIxU=; b=DLDixJiBajX4ICWoeUZomc0kfkWzlhm+Tj1afDzTHM6mzjqznHKCQEUhZvMiRFyqrE e1c6sGJeMLaBsHK8bHQ0p6+hzRDV/OTeTt8rZ//HP4NchN0LkJrhLKHiwiXc2e4U6zQu rK5Gwkaj4Tj2OmJ6qiCUuix0RdcFyRC0c+jJfZmeHCFu+B9HLlaUOVch0DmwlQ14IhZj 1RALYDEr4KryEln7gaN2FWzw1tAJq2Kfl+LlA94hqFp/Akoh+vqSebMEXmsUN3AtGhzJ IV0KkeqGED1Jn/ZLrzqOL6hKtn7BZamv6tvk8RxKXJD26Dl/+r8vnnnKKgb9myP5PAb+ X2rQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id s3-20020a656443000000b00577549e67c8si340480pgv.601.2023.09.20.18.55.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 18:55:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C07C5804F605; Wed, 20 Sep 2023 18:53:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229807AbjIUBxP (ORCPT + 29 others); Wed, 20 Sep 2023 21:53:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbjIUBxM (ORCPT ); Wed, 20 Sep 2023 21:53:12 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5CAF8AF; Wed, 20 Sep 2023 18:53:04 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.201]) by gateway (Coremail) with SMTP id _____8DxFej+oQtlcHEqAA--.22794S3; Thu, 21 Sep 2023 09:53:02 +0800 (CST) Received: from localhost.localdomain (unknown [10.20.42.201]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxndzwoQtlCvsMAA--.26254S3; Thu, 21 Sep 2023 09:53:01 +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 , Conor Dooley Subject: [PATCH v6 1/2] gpio: dt-bindings: add more loongson gpio chip support Date: Thu, 21 Sep 2023 09:52:46 +0800 Message-Id: <20230921015247.23478-2-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230921015247.23478-1-zhuyinbo@loongson.cn> References: <20230921015247.23478-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8AxndzwoQtlCvsMAA--.26254S3 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 20 Sep 2023 18:53:14 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777610337537577048 X-GMAIL-MSGID: 1777610337537577048 This patch was to add loongson 2k0500, 2k2000 and 3a5000 gpio chip dt-bindings support in yaml file. Signed-off-by: Yinbo Zhu Reviewed-by: Linus Walleij Reviewed-by: Conor Dooley --- .../bindings/gpio/loongson,ls-gpio.yaml | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/gpio/loongson,ls-gpio.yaml b/Documentation/devicetree/bindings/gpio/loongson,ls-gpio.yaml index fb86e8ce6349..cf3b1b270aa8 100644 --- a/Documentation/devicetree/bindings/gpio/loongson,ls-gpio.yaml +++ b/Documentation/devicetree/bindings/gpio/loongson,ls-gpio.yaml @@ -11,9 +11,22 @@ maintainers: properties: compatible: - enum: - - loongson,ls2k-gpio - - loongson,ls7a-gpio + oneOf: + - enum: + - loongson,ls2k-gpio + - loongson,ls2k0500-gpio0 + - loongson,ls2k0500-gpio1 + - loongson,ls2k2000-gpio0 + - loongson,ls2k2000-gpio1 + - loongson,ls2k2000-gpio2 + - loongson,ls3a5000-gpio + - loongson,ls7a-gpio + - items: + - const: loongson,ls2k1000-gpio + - const: loongson,ls2k-gpio + - items: + - const: loongson,ls7a1000-gpio + - const: loongson,ls7a-gpio reg: maxItems: 1 @@ -49,7 +62,7 @@ examples: #include gpio0: gpio@1fe00500 { - compatible = "loongson,ls2k-gpio"; + compatible = "loongson,ls2k1000-gpio", "loongson,ls2k-gpio"; reg = <0x1fe00500 0x38>; ngpios = <64>; #gpio-cells = <2>;