Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4516485rdb; Tue, 12 Dec 2023 01:27:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IHpl0NmtCP/4ranZFgkfsMr++eBs8ThPJKGDwSuw3KvpD5CwHYHIUamp45DvqaSPkSKCpKB X-Received: by 2002:a05:6a20:daa0:b0:190:37f5:f7da with SMTP id iy32-20020a056a20daa000b0019037f5f7damr2737039pzb.59.1702373234931; Tue, 12 Dec 2023 01:27:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702373234; cv=none; d=google.com; s=arc-20160816; b=dNJVt85BtYl3bIDrDUXUUgZwnIb/2ZQ3KdpJZOaXOtcPsWQkw2ZQGJSD787gRWaTYH E2MFXLIOI/f1VnZR9rcv/XRiGKiJ/viVR17X9oA131Cw8k8Sxc93bMtj3CeA5twiDsRO /enGQG/oC/a6z5XpqWGTOhIW4roSyfXjCHU+GCxRbGOuWoRlZf3xGDxU2Yfrhkb08k3J 3TS8MzwkPTBnuVqzUfpJNM/PxGhNiFLb7iQ6ZMtHtxWzg4pAIEMj+2s/9PEySKTgAfjD C14SUz0T8TYQIDMRbpzNUgxZ1OajFs3qZH8IHcNM+dVMDbTaolf71jDYMANqVGIIaiI3 qHOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=oPld8vpr14XTiVIBO9OqUWjltLKOYMI1v6JQhvMLahY=; fh=jrJQw6/zV6t7asjPu4JABonO+om3cg+HgecijvyFhWE=; b=hwjCL/D8oJHndyNEdpi7vY9GuLKdZcejPseiSu7rNg0PqN9WWHTHUNMaHwYm+RvaWZ M3vxnzFrL3bPdQ7bHk58wL1CYuUHC8y9uvxEE0eDT9/Q1nzWBY9NzeE64cO4VoSXX2PW 4wZh6ryIr0Mfe+ZzrlHRJZxuEhAMfxX24LkLfeT9qjbmUVZjdbdIh8C7VM2F2Nv8hNEr 66bFQ5+zEh3q5FASNQQJYtACiuGkbTy1kKlYZRoBDV+c5sT8jPJiECvn+aprrbs7tbn/ KJSnDk+rtZV5E3eXHtN/B1GWpU5DTXSuGwI1RMj07qzfiykZrH+kxcOO4wscfyPoChNQ lMPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HTf1RxFw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id l5-20020a17090270c500b001c60c5bbff2si7407599plt.201.2023.12.12.01.27.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 01:27:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HTf1RxFw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 44E688079B7E; Tue, 12 Dec 2023 01:27:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230497AbjLLJ0r (ORCPT + 99 others); Tue, 12 Dec 2023 04:26:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235091AbjLLIlk (ORCPT ); Tue, 12 Dec 2023 03:41:40 -0500 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04881CD; Tue, 12 Dec 2023 00:41:46 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-50c0478f970so5606681e87.3; Tue, 12 Dec 2023 00:41:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702370504; x=1702975304; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=oPld8vpr14XTiVIBO9OqUWjltLKOYMI1v6JQhvMLahY=; b=HTf1RxFwlSjD4YK19k7c3zbDHQ1AjW3ba+pig2Mkg/8rAf5mwbevdbYVrF2SZIfOl1 LG0kfhFtXXDKlYN7rlNDl822x7ynWVEnEYWnRRWtakJSn1pe6ByuZPhlq/+9Jc+nmMog ZUkOeNS849m5tWJ39Y4Uh99WSlFHS5tBlMNGA7XNKTRKKJNc6gBwbbfKuZlBjxR6YB33 GI4VrWWSQBgfyWm46lzmiCbufAcwYfmbuXIUeTCM2rZPHJAfc4DG/j7g8ynvapurSugL V0Rjd4YL5Xo4JjPyistF/LmmOaanE08CTdG4aVHzsJFTlpRlHLilrHXoa5qZxCHrfv09 wxPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702370504; x=1702975304; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oPld8vpr14XTiVIBO9OqUWjltLKOYMI1v6JQhvMLahY=; b=nbx7JqNIwXRLObmHuFR/XIh9gYG9xJoElNKb9ZzgLD2IeHNSvgA3/xBQap5pK2lN1P DXqNL80WHOWxjiMTtH798lvMVSDHeUOwt2ajGsGKbB2na5F8OdyjhSBIO0/3Z7cq8dfc 6cb+xExxlgigDdtIE1y+OQMnxrDiByp8f1o4WgnjOXWY/b8unAJKaoEOCm+Ke7QZenOl grrbTAgdLazBKFCX6Jm67+boBC5mrsukXRAFOw4vZ5CuH1ZZgVkNmQn3k2Ij9tNjQnXj rPKXhZ/EUIWhWM92pgpwarBbRjmF4p2r3E9iU6bpYDZjg3mnWOLSdB310Sok6Xyrd1VJ MqFg== X-Gm-Message-State: AOJu0Yy7FAnQHgIj66/RK9Wn3D23W9OpLMmQo6H9VdsUEesgBMuBawtQ p1m8qRLpb+5R/tUldxAjmPUrIkIdJYAtpy0fiqc= X-Received: by 2002:a05:6512:2019:b0:50b:d764:8046 with SMTP id a25-20020a056512201900b0050bd7648046mr2243403lfb.121.1702370503834; Tue, 12 Dec 2023 00:41:43 -0800 (PST) MIME-Version: 1.0 References: <20231212065147.3475413-1-jim.t90615@gmail.com> <20231212065147.3475413-2-jim.t90615@gmail.com> <72fe6f18-e3d7-4c74-9734-01a33dc8e100@molgen.mpg.de> In-Reply-To: <72fe6f18-e3d7-4c74-9734-01a33dc8e100@molgen.mpg.de> From: Jim Liu Date: Tue, 12 Dec 2023 16:41:32 +0800 Message-ID: Subject: Re: [PATCH v9 1/3] dt-bindings: gpio: add NPCM sgpio driver bindings To: Paul Menzel Cc: Jim Liu , KWLIU@nuvoton.com, linus.walleij@linaro.org, brgl@bgdev.pl, andy@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, Rob Herring , linux-gpio@vger.kernel.org, openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Tue, 12 Dec 2023 01:27:12 -0800 (PST) Hi Paul Thanks for your review. I will modify it in the next version. Best regards, Jim On Tue, Dec 12, 2023 at 3:00=E2=80=AFPM Paul Menzel = wrote: > > Dear Jim, > > > Thank you for your patch. > > Am 12.12.23 um 07:51 schrieb Jim Liu: > > Add dt-bindings document for the Nuvoton NPCM7xx sgpio driver > > > > Signed-off-by: Jim Liu > > Reviewed-by: Linus Walleij > > Reviewed-by: Rob Herring > > As you seem to be employed by Nuvoton, should your company/work email be > listed somehow, and even be used for the author address? > > > --- > > Changes for v9: > > - no changed > > Changes for v8: > > - no changed > > Changes for v7: > > - no changed > > --- > > .../bindings/gpio/nuvoton,sgpio.yaml | 86 ++++++++++++++++++= + > > 1 file changed, 86 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/gpio/nuvoton,sgp= io.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..84e0dbcb066c > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/gpio/nuvoton,sgpio.yaml > > @@ -0,0 +1,86 @@ > > +# 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. > > + Nuvoton NPCM7xx SGPIO module is combine serial to parallel IC (HC595= ) > > s/is combine/combines a/ > > > + and parallel to serial IC (HC165), and use APB3 clock to control it. > > use*s* > > > + This interface has 4 pins (D_out , D_in, S_CLK, LDSH). > > Only one space before the (. > > > + NPCM7xx/NPCM8xx have two sgpio module each module can support up > > =E2=80=A6 modules. Each module =E2=80=A6 > > > + to 64 output pins,and up to 64 input pin, the pin is only for gpi or= gpo. > > 1. Space after the comma. > 2. 64 input pin*s > > > + GPIO pins have sequential, First half is gpo and second half is gpi. > > have sequential ?. > > > + 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) > > option*s* > > > + - ngpios is number of nuvoton,input-ngpios GPIO lines and nuvoton,ou= tput-ngpios GPIO lines. > > + nuvoton,input-ngpios GPIO lines is only for gpi. > > s/is/are/ > > > + nuvoton,output-ngpios GPIO lines is only for gpo. > > s/is/are/ > > It=E2=80=99d be great if you mentioned the datasheet name and revision in= the > description. > > > + > > +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 > > + > > + nuvoton,input-ngpios: > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + description: > > + The numbers of GPIO's exposed. GPIO lines is only for gpi. > > s/is/are/ > > > + minimum: 0 > > + maximum: 64 > > + > > + nuvoton,output-ngpios: > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + description: > > + The numbers of GPIO's exposed. GPIO lines is only for gpo. > > s/is/are/ > > > + minimum: 0 > > + maximum: 64 > > + > > +required: > > + - compatible > > + - reg > > + - gpio-controller > > + - '#gpio-cells' > > + - interrupts > > + - nuvoton,input-ngpios > > + - nuvoton,output-ngpios > > + - clocks > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + #include > > + #include > > + gpio8: gpio@101000 { > > + compatible =3D "nuvoton,npcm750-sgpio"; > > + reg =3D <0x101000 0x200>; > > + clocks =3D <&clk NPCM7XX_CLK_APB3>; > > + interrupts =3D ; > > + gpio-controller; > > + #gpio-cells =3D <2>; > > + nuvoton,input-ngpios =3D <64>; > > + nuvoton,output-ngpios =3D <64>; > > + }; > > Reviewed-by: Paul Menzel > > > Kind regards, > > Paul Menzel