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 0402EC677F1 for ; Wed, 22 Feb 2023 12:35:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231357AbjBVMfL (ORCPT ); Wed, 22 Feb 2023 07:35:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231297AbjBVMfJ (ORCPT ); Wed, 22 Feb 2023 07:35:09 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1562E303CD for ; Wed, 22 Feb 2023 04:35:08 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id h16so29906744edz.10 for ; Wed, 22 Feb 2023 04:35:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=txTrJv7AYzOlX/1y7v9G6WCXuMLyCZxtPmCMzn1Diaw=; b=L8TSdPMA0EpPJqk7xECFclC0YVKb6uGYx8SoFg/ipiJYYy+pj8AiNc75Gk5kRNCdlP LwdZKKbtCD+R7pB9x2uUQ5vbQeSJ9P++trIAjlGfkDVFwiwVslecAouyw5MgssccSJup 1O3RKsaOpyDspPyUYLH4ANTpnyY9aRL/0PsSbMjxgTJg4qpTC8dsCE8/LpOec3qQwgIr u1XeTgI2ZSrX4BAqfYG5tck+gP6dGgWIQ1z71APT6olhsT0SX09ksIfev+EnlxLwdmAR 3ZzkOtbpEbHZMdmYHisvFpzGN2kgP9o+eAS3D7ShmGByGgHy6JHXK2NXeQjuX8eIftqB 3mww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=txTrJv7AYzOlX/1y7v9G6WCXuMLyCZxtPmCMzn1Diaw=; b=cbB47P8PbY4Y7G7IAzJSMU4ijfanToDeRvQDEaCDXFopBh7eoZhEyLKGW+1F0lMb+x f4/t+1H6gan9I2hKi0iELyWAbk6QeTi5Eu28/yZ2z55rpHU6200Sx2UNdtk31IEvbnjB erB9lstAVLPongPpmpoYgYqMMpDToso4WsOP5tPK8bLoiJeGxSSU3fXmOS9YiKM82JCl 53bqOWIk4Evg71W3VPVu6UJLXnoeovpdkuU/qucvIyF4hh8d3PaWEeYry3AnC7iHon4Y e/dnbZO48+dX8+cMSBfiN11gZ4+MMOfKlFKSA0NvX6C8oFrwXTiSylnWhNJ7ZADlYvhm cuFg== X-Gm-Message-State: AO0yUKX008fMkq226+OquNiu28A+mAwFrFH2c8l8nPmuU0K+y7SjDzBO 7SSoT5NvO2g4iECyCIjGq5NHPQ== X-Google-Smtp-Source: AK7set8wGiT4LP0jX+AFzBDqKGFnMBzM3LkPeXWZbxr5Wl65sXW4zkMTqAaYezsLEqG1iGUv1KMRJA== X-Received: by 2002:a17:906:240f:b0:8b2:b711:5e62 with SMTP id z15-20020a170906240f00b008b2b7115e62mr18521969eja.52.1677069306590; Wed, 22 Feb 2023 04:35:06 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id bw10-20020a170906c1ca00b008b133f9b33dsm8340957ejb.169.2023.02.22.04.35.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Feb 2023 04:35:06 -0800 (PST) Message-ID: <18d1048e-c66b-fea8-2755-6c1c6e23fde9@linaro.org> Date: Wed, 22 Feb 2023 13:35:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH 4/4] dt-bindings: gpio: Add Loongson-1 GPIO To: Keguang Zhang , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski References: <20230222111213.2241633-1-keguang.zhang@gmail.com> <20230222111213.2241633-5-keguang.zhang@gmail.com> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: <20230222111213.2241633-5-keguang.zhang@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/02/2023 12:12, Keguang Zhang wrote: > Add devicetree binding document for Loongson-1 GPIO. > > Signed-off-by: Keguang Zhang > --- > .../bindings/gpio/loongson,ls1x-gpio.yaml | 60 +++++++++++++++++++ > 1 file changed, 60 insertions(+) > create mode 100644 Documentation/devicetree/bindings/gpio/loongson,ls1x-gpio.yaml > > diff --git a/Documentation/devicetree/bindings/gpio/loongson,ls1x-gpio.yaml b/Documentation/devicetree/bindings/gpio/loongson,ls1x-gpio.yaml > new file mode 100644 > index 000000000000..e4ab49d48fae > --- /dev/null > +++ b/Documentation/devicetree/bindings/gpio/loongson,ls1x-gpio.yaml > @@ -0,0 +1,60 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/gpio/loongson,ls1x-gpio.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Loongson-1 GPIO controller > + > +maintainers: > + - Keguang Zhang > + > +properties: > + compatible: > + const: loongson,ls1x-gpio > + > + reg: > + maxItems: 1 > + > + gpio-controller: true > + > + "#gpio-cells": > + const: 2 > + > + ngpios: > + minimum: 1 > + maximum: 32 Isn't this fixed at 32? Do you have hardware with different number of GPIOs? > + > +required: > + - compatible > + - reg > + - gpio-controller > + - '#gpio-cells' Use consistent quotes - either " or ' > + - ngpios > + > +additionalProperties: false > + > +examples: > + - | > + gpio0: gpio@1fd010c0 { > + compatible = "loongson,ls1x-gpio"; > + reg = <0x1fd010c0 0x4>; > + > + gpio-controller; > + #gpio-cells = <2>; > + > + ngpios = <32>; > + }; > + > + - | > + gpio1: gpio@1fd010c4 { > + compatible = "loongson,ls1x-gpio"; > + reg = <0x1fd010c4 0x4>; > + > + gpio-controller; > + #gpio-cells = <2>; > + > + ngpios = <32>; > + }; These are two the same examples, keep only one. Best regards, Krzysztof