Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp564469pxp; Fri, 11 Mar 2022 09:41:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJxurqn3qbG2c14udPjbQDHnY6r6xcMYAiixj25inmhSfivLLyRiNF2suSC8yAP4iah7epa8 X-Received: by 2002:a05:6402:100e:b0:416:596a:2581 with SMTP id c14-20020a056402100e00b00416596a2581mr10179267edu.181.1647020467573; Fri, 11 Mar 2022 09:41:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647020467; cv=none; d=google.com; s=arc-20160816; b=KYx19atfyfPKl293DqpK7h8wqhn2gu8tYf11U7NcIOzkX2LFLl4CxpD1qDNeTtaN+f OLVNrAUnKT99j9STMlsLKYEWHQVdu/DXc+NggS1wzScusUXpvUKRfmeBhsNOhDavJ6FM 33vhTDkWD0tZmm20hQxHLJ5hmLGBKgvWgogWZn27Qz9V8d99yNi7xPdN7/yYRj/ZXi3C LRS8J7ewVMV8kZSdcLu2OQAqXftqrDatbwP6ehI4nHkUIofeqr+EG+vKPrHF4mUoUc7/ PJxOgS9lsOxEd9F4oiOi6ZQaezEhc9WLgffCfuoPYJw7BYqAm8tW0zNJEIbR4+7cZt1v 7Qdg== 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=D1XtJyL/qqPN2xLVrq6WSrUWrKPZ0qDx4WjygrxcxL4=; b=YBbu+m44eewhczhaWH3QejshY2wcZNvBu/i7AlHmHzZn4v3EAoFNTMShPUz2lIf1nm co+tnODlWJ2VKtrL/oy6FLPdYzmRjDMqqLb1+ifHnP/K9QLtjzuGRApTOjJWqnoT8jkn DRE2chxRvKxip6Gste3PTicQ9sRHSqkMRZ7UBzP+k5Crt+6vCezIebvmzvRe7J2X/Pco VmtaAOhVezAVmoictR/1ZDdUwSXPtEhzc/Zau6RRBMALUB9YyPPu3X6MwuS9K3OsViIG PCtki/fxno8cd6VsvJ4M6EH4Liz+JZbQmLebQUFWv9AAZjBd32OQbaLOAFOJTZByRsi1 YC0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=R9QK3LtH; 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=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id se21-20020a170906ce5500b006db099d3e82si5186394ejb.653.2022.03.11.09.40.34; Fri, 11 Mar 2022 09:41:07 -0800 (PST) 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=@canonical.com header.s=20210705 header.b=R9QK3LtH; 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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347466AbiCKJ0n (ORCPT + 99 others); Fri, 11 Mar 2022 04:26:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238438AbiCKJ0k (ORCPT ); Fri, 11 Mar 2022 04:26:40 -0500 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E06B21168C5 for ; Fri, 11 Mar 2022 01:25:36 -0800 (PST) Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 7B5DF3F4BC for ; Fri, 11 Mar 2022 09:25:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1646990733; bh=D1XtJyL/qqPN2xLVrq6WSrUWrKPZ0qDx4WjygrxcxL4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=R9QK3LtHzp5UlaeI+G5RAqm8G7PXbanCWk1n2X5Yww5JKIjtS3gqFaufAIqo0Lh0g FG2vYcPDUY7Uqy4xi169gIBcFlkPtpABWjI5nL7/g4WRZBcS2Ln2/NkHggmoG9DaRw cDOFX5atDyPIySbzd22OLvtSoa7OKlXQm0Hmd7YSNiDzzspnnibYV5EP7VQ2ICa9fC JuzyiET6q46ECPBLtEgaRRP5aH9IZnYnGHSRtjQ039N9dUlv01Subisb/hpXs5YYgs Rvca/WmdGSYTrslmfY3yanEtQ4LB5+ZZw0+TF8VuPtsbpagIwAPvR3AVfUzaoI430J L45UIoHmxn3+Q== Received: by mail-ed1-f71.google.com with SMTP id b24-20020a50e798000000b0041631767675so4543873edn.23 for ; Fri, 11 Mar 2022 01:25:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=D1XtJyL/qqPN2xLVrq6WSrUWrKPZ0qDx4WjygrxcxL4=; b=5ZF4+ZKVLrv5ZYfr6eUCCpr+cUvWAoAh6MkXmvZg/oHcIQ1ozccN0O9mvPa92PO5K/ 9vKeqFGdpvLh98LLoUDNRUvdhNGkToXZc6wesBa5+lnWZIA7TpjB2JfotSol4W25T41M t2VyEwKgm33yFqt4Kj4TOaUBc/rEuuoHCXDvYlF1sgMnlt4CmkKXm2PaRru5HJRYkaqI 2expH9gwdXlSna6542dpZgyyjZOzB8IR94yT7fv3mDxwNIrSA0jUxPpO8Yu1yXRjCDZ6 bS400SktYj4IwV5guzVV/9m+qDrfi9gliAqXA9U83UUZjBHvwdmMIw/XI09aSqCSXZde PFCw== X-Gm-Message-State: AOAM532if+2TJbOGdd1eaK8dIEedPq51PsL8UX4Ra/OSlySUIG56PAlg 2lYhNp9K3uQendn4m6UEkGyoGM6b3+LaVRK7ctpXvw31cMs/XLRhmeGhqlXEGHjU6CoNsITgfTs hRdFjqVKtRTGrvzS8LpZKe+TsgqbsxGmdqhyrMQTHzQ== X-Received: by 2002:aa7:c54b:0:b0:415:c714:7a1f with SMTP id s11-20020aa7c54b000000b00415c7147a1fmr7914990edr.385.1646990733009; Fri, 11 Mar 2022 01:25:33 -0800 (PST) X-Received: by 2002:aa7:c54b:0:b0:415:c714:7a1f with SMTP id s11-20020aa7c54b000000b00415c7147a1fmr7914962edr.385.1646990732722; Fri, 11 Mar 2022 01:25:32 -0800 (PST) Received: from [192.168.0.148] (xdsl-188-155-174-239.adslplus.ch. [188.155.174.239]) by smtp.gmail.com with ESMTPSA id m13-20020a056402510d00b00416ca731b5fsm986108edd.9.2022.03.11.01.25.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Mar 2022 01:25:31 -0800 (PST) Message-ID: <49b19cf0-a4aa-69c3-a609-422a8b3f9798@canonical.com> Date: Fri, 11 Mar 2022 10:25:30 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v1 2/3] dt-bindings: support Nuvoton sgpio Content-Language: en-US To: jimliu2 , JJLIU0@nuvoton.com, KWLIU@nuvoton.com, linus.walleij@linaro.org, brgl@bgdev.pl, robh+dt@kernel.org, avifishman70@gmail.com, tmaimon77@gmail.com, tali.perry1@gmail.com, venture@google.com, yuenn@google.com, benjaminfair@google.com, CTCCHIEN@nuvoton.com Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org References: <20220311060936.10663-1-JJLIU0@nuvoton.com> <20220311060936.10663-3-JJLIU0@nuvoton.com> From: Krzysztof Kozlowski In-Reply-To: <20220311060936.10663-3-JJLIU0@nuvoton.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 11/03/2022 07:09, jimliu2 wrote: > Add nuvoton sgpio yaml in dt-bindings Missing full stop. Subject: missing prefix. Check git log history. > > Signed-off-by: jimliu2 > --- > .../bindings/gpio/nuvoton,sgpio.yaml | 78 +++++++++++++++++++ > 1 file changed, 78 insertions(+) > create mode 100644 Documentation/devicetree/bindings/gpio/nuvoton,sgpio.yaml > > diff --git a/Documentation/devicetree/bindings/gpio/nuvoton,sgpio.yaml b/Documentation/devicetree/bindings/gpio/nuvoton,sgpio.yaml > new file mode 100644 > index 000000000000..8766e1fa4528 > --- /dev/null > +++ b/Documentation/devicetree/bindings/gpio/nuvoton,sgpio.yaml > @@ -0,0 +1,78 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/gpio/nuvoton,sgpio.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Nuvoton SGPIO controller > + > +maintainers: > + - Jim LIU > + > +description: > + This SGPIO controller is for NUVOTON NPCM7xx and NPCM8xx SoC, > + NPCM7xx/NPCM8xx have two sgpio module each module can support up > + to 64 output pins,and up to 64 input pin. > + GPIO pins can be programmed to support the following options > + - Support interrupt option for each input port and various interrupt > + sensitivity option (level-high, level-low, edge-high, edge-low) > + - Directly connected to APB bus and its shift clock is from APB bus clock > + divided by a programmable value. > + - ngpios is number of nin_gpios GPIO lines and nout_gpios GPIO lines. > + > +properties: > + compatible: > + enum: > + - nuvoton,npcm750-sgpio > + - nuvoton,npcm845-sgpio > + > + reg: > + maxItems: 1 > + > + gpio-controller: true > + > + '#gpio-cells': > + const: 2 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + nin_gpios: true > + > + nout_gpios: true Both do not look like proper property. No description, no vendor prefix, no type, wrong value (true). > + > + bus-frequency: true Why a GPIO controller needs this legacy bus-frequency property? Which bus frequency is it? Internal? APB? If APB, use assigned-clocks. > + > +required: > + - compatible > + - reg > + - gpio-controller > + - '#gpio-cells' > + - interrupts > + - nin_gpios > + - nout_gpios > + - clocks > + - bus-frequency > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + sgpio1: sgpio@101000 { Generic node name, so "gpio". > + compatible = "nuvoton,npcm750-sgpio"; > + gpio-controller; > + #gpio-cells = <2>; > + interrupts = ; > + reg = <0x101000 0x200>; reg goes after compatible. > + clocks = <&clk NPCM7XX_CLK_APB3>; > + pinctrl-names = "default"; > + pinctrl-0 = <&iox1_pins>; > + nin_gpios = <64>; > + nout_gpios = <64>; > + bus-frequency = <16000000>; > + }; Best regards, Krzysztof