Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp316455rwi; Thu, 27 Oct 2022 01:24:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Gma7RCgJ8dn1LCJuTraW39Kx3j/JHuzOTYVdRgX5OsrJL+rQ0lQ40ItdekA5OY6muEaQ4 X-Received: by 2002:a17:906:9b83:b0:730:b3ae:343 with SMTP id dd3-20020a1709069b8300b00730b3ae0343mr42539082ejc.670.1666859041920; Thu, 27 Oct 2022 01:24:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666859041; cv=none; d=google.com; s=arc-20160816; b=dZMKjO4wbfgLzvlKMiGrRXBPIZY2Oz/FVf2KgGsM+k8uIds+zK8bOpp9T9xwfAc4ex x0Fe8SxUB3nX3ReKYVC0gknupkqjYaVTVIfvWzdCDwR8t4Qsiy1MQWq4McJn9Wdvid6k 9hOyAhK0xqKDkOm2rFGmDlCG2DTyioVN/rtJLRIOvaV6G5UOnyYrhfEG4xtaaeVQNFSd L1QvuOM3mGvy+Jgmo8UAbAtpnCKBD7aufM0UVHVNsNuyho9AHzILQF2b0LhMIgLiyR43 dBwNRku/QjE2IvtHJw1sTVCvE2e0N/z315t6yBeaDhust0QokTWRAabnWEdevh77qDQO RicQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=LtYt4AJ3Lu6xQQzgnofggxenS3wHLzSxOzn6Hf97ogk=; b=Q81rbNd7NohLrOfF36zZZvZul3NeVnv/hvJgv081lgdyP+N4tYO8K9CHQbFVOWMTaY FkJKkRv50JpFiGPzZCIGDVFmtD/HdEcw3Dpyqgrr8xl/bOWadZOO6wcv9tdPeMq4Lewy 5KQfltLWNFjaVw22xVK9JTWZ92UlBvj6K80kxaj4Y4uiNHkJnqhtjnGEZ6KxZv7t1d+v c1XKfywSDSmbCjo8MaMuEG5rhh49G3JcXkXBYeDCm5Xgdctv7bdVNY2sxoyCe5b1s/24 eu8h9NSoobQQOf6ItnQgirTQkxO1YFcI33tFTJcfZg6VD6z5ZdPTCGpRdFpxlI8LzbTp 8FIw== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a68-20020a509eca000000b00461b47b6557si928152edf.68.2022.10.27.01.23.36; Thu, 27 Oct 2022 01:24:01 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234541AbiJ0HsO (ORCPT + 99 others); Thu, 27 Oct 2022 03:48:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234909AbiJ0Hrx (ORCPT ); Thu, 27 Oct 2022 03:47:53 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88D19169CC6; Thu, 27 Oct 2022 00:47:51 -0700 (PDT) Received: from canpemm500004.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Myd4Z0JB8zJnLM; Thu, 27 Oct 2022 15:45:02 +0800 (CST) Received: from [10.174.179.106] (10.174.179.106) by canpemm500004.china.huawei.com (7.192.104.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 27 Oct 2022 15:47:49 +0800 Subject: Re: [PATCH next 2/2] dt-bindings: gpio: add entry for hisilicon,gpio-ascend910 To: Krzysztof Kozlowski , , , , , , , CC: , , References: <20221026034219.172880-1-chenweilong@huawei.com> <20221026034219.172880-2-chenweilong@huawei.com> <30b95e7b-b902-babc-ea78-a2112c80ec7e@linaro.org> From: chenweilong Message-ID: <050ab042-d51c-1e9a-eb85-8fbec8020211@huawei.com> Date: Thu, 27 Oct 2022 15:47:48 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <30b95e7b-b902-babc-ea78-a2112c80ec7e@linaro.org> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.174.179.106] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To canpemm500004.china.huawei.com (7.192.104.92) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 On 2022/10/26 22:46, Krzysztof Kozlowski wrote: > 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. Sorry, I don't get this, you mean like this? : interrupts = ; Thanks. > > Best regards, > Krzysztof > > .