Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp926303rwi; Wed, 26 Oct 2022 08:46:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM69SESwrVzqFJFnJjDhVK8zwBGSe6uGa+rNhKNGqENTNWmuLpNPT0mPCK1zzYqXowdi/M4I X-Received: by 2002:a05:6402:5024:b0:440:e4ad:f7b6 with SMTP id p36-20020a056402502400b00440e4adf7b6mr42228939eda.358.1666799186390; Wed, 26 Oct 2022 08:46:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666799186; cv=none; d=google.com; s=arc-20160816; b=HKn1oZy0aobrb8PVpRMHe5ftConNYlDtd4Hmv5alKXa8KSCTnCm0Q4h1c+oBEul9wO JjVuUqNWak5XkCPvUAOTBkx860hVEtW9tdPhtKNuZlbD+KCLyWZd7hjM6Iy/GwE7au1C iHK3iWyaWLo8eaE6zH5igQRAaRh6nDzHZ0bx3nTwCrJRUlY0CCCH6LhX512ojWV0VZGo agTEUwRzf1VtFELon6hXV2vUgsfDFAPrymqqNsi9g9tXgRBKSGIrU6QsjT8BudKQE/JU 3+IzXXpujHT4W9AUobL8kanKrklVX2IfzOdbcqcGwMbxKao/rMX4YoRo++/InDyi0lny Htjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ZDoFbRmpFybio1qcLHY0tDGGsYUITlP7lC7AmzHBMGM=; b=vGjLMrkTKYa4H7v4M/EYjdxcBI4B9CqIsqQU2w8e+pAUEdZF6IIPpOvKYDe+75p615 Jsx3uS5OemUbvMgSFUP7/W5cjWTR6wXu3lQ0GWs5tlatGVQEusJgWT0qJPKfQR1mEAI1 J0LS2pItGj+M+bOaAGPBKonG898dVFRYmchWuON+dc0noRJnjiR9GO/FF3KoUZGZyFkt OsMhFhuxLJz2j4ktZu91lhHEAvptHGFwQXFc88ay+/fCsBUoaBeswAQorCsEtJfF6nfp IfEISWPQP1LCdqNJ+sl2rLkfW68wUFE6C1Izw2ABXMrg0r5jFgrD0Pk8OeeU341ISnv1 j3JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ErjcaOkv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k2-20020a50c8c2000000b00461dc830100si5490823edh.452.2022.10.26.08.46.00; Wed, 26 Oct 2022 08:46:26 -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; dkim=pass header.i=@linaro.org header.s=google header.b=ErjcaOkv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233682AbiJZOq5 (ORCPT + 99 others); Wed, 26 Oct 2022 10:46:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233757AbiJZOqt (ORCPT ); Wed, 26 Oct 2022 10:46:49 -0400 Received: from mail-ua1-x936.google.com (mail-ua1-x936.google.com [IPv6:2607:f8b0:4864:20::936]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 580C79F34A for ; Wed, 26 Oct 2022 07:46:48 -0700 (PDT) Received: by mail-ua1-x936.google.com with SMTP id p1so3251535uak.11 for ; Wed, 26 Oct 2022 07:46:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ZDoFbRmpFybio1qcLHY0tDGGsYUITlP7lC7AmzHBMGM=; b=ErjcaOkv9A46t8SE5ZuZYqWKYgxYU75Xn13yXsVaU5LHB7gHdONvR2sFcvOw8AWc0W fIPqi4JoNgoKnKqqU5szIVXZLtX0VkOJOf/YLRrtNOO2scUbyXe6Oi92ajQuJ40154br zLynY1TTM2qoqp67CLdL3UViRqFtsysf5KHh7qCz6vNdgOu4Y8XzwnfMq/8hWBQUnOdP oK3W3ue69CjfJQfNeiLF531tKavZ8icMLSkfYMbaV7IKC+DnBl2rKuoOwpIZzofsp53z faCmggwwoUjw7Wl/QdZLRviaun8Fnfn/o3eG+w9fsn1oSqfqVo0k4NVS8MJVrmbQjoS/ H9xw== 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:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZDoFbRmpFybio1qcLHY0tDGGsYUITlP7lC7AmzHBMGM=; b=M8i5lHXxqrtBSqi4XkazbDpg9UKVp+Q9WdTYjabPibB4RRtYW1qofgyNhb1svTEcyf l1k9ynAjkDxQacAPCearTuz3eFwv2yPtIeqvZkBtw21G89FyL3OHmjlyIFOvMhawbuLf dJ+xk16zHCL+LuJlRyi5wk8MoMZTMX92t07cj/50+DA2fUdDjvONDZNnXvhR99LSROqV TDFfZH0Ya70mENNLUW/vv6O2T733ogQzdD6XKthx13p3mvqSIMD5CuBdo3chT6JIRS2C wFIy7fCnQm1qWSjEdlgGaSrzKVTsjvGJVvMKyiVsj5mWW3Lha+tpeM+RFc8ot5jTYw6K Uufw== X-Gm-Message-State: ACrzQf2/jHHxP+c2fL9U1l3yMNmAhfhusnNNZK1zGwMGS1dHK/DFD3gl 24QgeuZvrLuvU5GY/HXcsrgrbI2d1bbF/g== X-Received: by 2002:a05:6214:20aa:b0:4b3:e0de:cbc2 with SMTP id 10-20020a05621420aa00b004b3e0decbc2mr35685060qvd.91.1666795596881; Wed, 26 Oct 2022 07:46:36 -0700 (PDT) Received: from [192.168.1.11] ([64.57.193.93]) by smtp.gmail.com with ESMTPSA id o18-20020a05620a111200b006ec9f5e3396sm3935338qkk.72.2022.10.26.07.46.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Oct 2022 07:46:36 -0700 (PDT) Message-ID: <30b95e7b-b902-babc-ea78-a2112c80ec7e@linaro.org> Date: Wed, 26 Oct 2022 10:46:34 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH next 2/2] dt-bindings: gpio: add entry for hisilicon,gpio-ascend910 Content-Language: en-US To: Weilong Chen , f.fangjian@huawei.com, linus.walleij@linaro.org, yangyicong@hisilicon.com, xuwei5@huawei.com, robh+dt@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20221026034219.172880-1-chenweilong@huawei.com> <20221026034219.172880-2-chenweilong@huawei.com> From: Krzysztof Kozlowski In-Reply-To: <20221026034219.172880-2-chenweilong@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 On 25/10/2022 23:42, Weilong Chen wrote: > Add the new compatible for HiSilicon gpio controller driver. > > Signed-off-by: Weilong Chen > --- > .../gpio/hisilicon,gpio-ascend910.yaml | 54 +++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 55 insertions(+) > create mode 100644 Documentation/devicetree/bindings/gpio/hisilicon,gpio-ascend910.yaml > > diff --git a/Documentation/devicetree/bindings/gpio/hisilicon,gpio-ascend910.yaml b/Documentation/devicetree/bindings/gpio/hisilicon,gpio-ascend910.yaml > new file mode 100644 > index 000000000000..912e4b808cae > --- /dev/null > +++ b/Documentation/devicetree/bindings/gpio/hisilicon,gpio-ascend910.yaml > @@ -0,0 +1,54 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/gpio/hisilicon,gpio-ascend910.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: HiSilicon common GPIO controller Device Tree Bindings Drop "Device Tree Bindings" > + > +maintainers: > + - Jay Fang > + > +properties: > + compatible: > + const: hisilicon,gpio-ascend910 > + description: > + The HiSilicon common GPIO controller can be used for many different > + types of SoC such as Huawei Ascend AI series chips. Put this description in top-level description. > + > + reg: > + description: > + Address and length of the register set for the device. Drop description. > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + gpio-controller: true > + > + "#gpio-cells": > + const: 2 > + > + ngpios: > + minimum: 1 > + maximum: 32 > + > +required: > + - compatible > + - gpio-controller gpio-cells are not required? > + - reg > + - interrupts > + - ngpios > + > +unevaluatedProperties: false Instead: additionalProperties: false > + > +examples: > + - | > + gpio@840d0000 { > + compatible = "hisilicon,gpio-ascend910"; > + reg = <0x840d0000 0x1000>; > + ngpios = <0x20>; Convention for counting is to use decimal numbers. > + gpio-controller; > + #gpio-cells = <2>; > + interrupts = <0x0 33 0x4>; This looks like standard IRQ flags, so use respective defines. Best regards, Krzysztof