Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2293975rwb; Fri, 11 Nov 2022 07:31:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf5KqPogPA6T4i9evwtQaR+7nP/wngEFMaGfGa6SODJMRc6fpW6mFB7tQOzzlSJrNlxTq+F6 X-Received: by 2002:a17:907:119a:b0:7ad:b45d:810c with SMTP id uz26-20020a170907119a00b007adb45d810cmr2351885ejb.181.1668180707775; Fri, 11 Nov 2022 07:31:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668180707; cv=none; d=google.com; s=arc-20160816; b=yWM265lKOqfXeRrRGdtJDq2AQdadYmrg0oFNQQ9NZH2fwSIkUGpCzL30gBTxlUYkUA VdDjISHixKuWOrbabGlyuo0ZyDl04Xg9AN9RSkXkLiPCenXtqKi/pQu0d3WtqNW5VAcq WQRaJL7zCq3m3P9xhR7gzpr4I3UKHb23SlYwDeDkQxazSfFWrpgaQK3oxcmPOsQ2Nw8u Lz2ESy1qq7egVROdxC6yiB5uc6GDNK7vbLfiivUP6yTvdsAYPLSwL4t5cXv5wkF/+xjD cNyxeP8687VptBvniGlRj7HNW6TuinONNHEmb3KYQ4fAgJKJVTaWNDUow/90Cn5Hs6/E 6B9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=8XnWoqHqROPGOcHnPLYRMUbIWz7bYGAQqwcf2qs2Ipc=; b=yi2JZI8mRWG81bDHrdgM7cyWjTMXMMs67LuAuzp32hzpY2pdVMtFM0cEz1/J+ken4/ Rqi9SusK/DNDEdV7W4myT5msIBtahO/qjl6HhfAsjbqhMcfsVEaEK9jRhrkOfudVCCF8 HZpgp48o8HsGB5/4VmiKjhsypicSrmB8n5zTgB/PhIhMAtNyJxyzUhk8XYc74WjyIzXU knA7rZBtKL9F4n8/Wno5zPlWw+gsdl9+xkLETe32H14CcKdTrCI9iiqT/Hbm6ZXE6Lr7 LrJuYmD4sJxjNglG6AVhOmTawtp2DL3/4FK+spnR5+rZe7nmwOYwOajMspAdp6DZKjS/ UjNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PeZS2Cec; 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 du4-20020a17090772c400b00741a0c28f07si2344356ejc.943.2022.11.11.07.31.24; Fri, 11 Nov 2022 07:31:47 -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=@linaro.org header.s=google header.b=PeZS2Cec; 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 S234190AbiKKOXH (ORCPT + 92 others); Fri, 11 Nov 2022 09:23:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233945AbiKKOWr (ORCPT ); Fri, 11 Nov 2022 09:22:47 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EECD787A6 for ; Fri, 11 Nov 2022 06:20:15 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id y14so12870058ejd.9 for ; Fri, 11 Nov 2022 06:20:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=8XnWoqHqROPGOcHnPLYRMUbIWz7bYGAQqwcf2qs2Ipc=; b=PeZS2Cec6kqzUIH/C6si5K5+55feIDD54TJPB19WX4Zcoql/RyX4YgLOpYMHgn4XHh 9yRdI++voSchETEZQNwseFKrJo6xkO2WVjPYcY71RIeYBEL38KmwtXSPYUaF+aD7PfZ2 s70iFz5H6e+Rd60Nvywe33lLde8Vra+pmA7Va1+doOoTIjkR9sh5eywJ2JL+lJFMPDuM zjXwP+wdJwrBp/qXzd6hXHMkW8yW8ZGdKRD7B2cmd4rYhtZMYnPQkq3Ywgg5tFhuQZd+ QCL9HXsVCJcDPrMW2dY3UJHGOylAgruM448ZhHeUV/hllLejfdj/bmM+Va1eTVtXV7ig Jptg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=8XnWoqHqROPGOcHnPLYRMUbIWz7bYGAQqwcf2qs2Ipc=; b=tvPX0wPAKIsY3Hl4J9LdgVGl8D4+SNWxGVOw6JdZdD8Xpy5MciIb79gDGEjnk1WIph wvL4sLYl3FwPVPcOuF2+MRtxkHOa6UH6kh4aQcU3eDxW+tQIBOxbgLYZbuGK8TadxQgg gEBRJDGTMhLR3ExtU7nD3afzQjkU+/77uwBQghkmEhNN8HAO4MPMNxse2BMKgFYP9Hnj jIPQhCGF2a7EXMRbDWesaAQAfDGHjpxnXJJyUl7dequUGIvFOrvtiTdcbXJI6bChxwlX C+zS1U/bBf32wj4T5pG6q9fzttBoq2IXWXf3R3KpZZ18A/GS+7RLygmxjc606/mEIutr p5Mg== X-Gm-Message-State: ANoB5pmJViYSYu0cfuxl91TD8lGMVTCvCh4fkaM2p6M4boo34QW7aKzB aU3qaxuDtEr63HAcl5SDSpGM3JwszecZbi29gx7X3g== X-Received: by 2002:a17:906:b44:b0:7ad:b8c0:3057 with SMTP id v4-20020a1709060b4400b007adb8c03057mr1992303ejg.440.1668176414026; Fri, 11 Nov 2022 06:20:14 -0800 (PST) MIME-Version: 1.0 References: <20221108092840.14945-1-JJLIU0@nuvoton.com> <20221108092840.14945-4-JJLIU0@nuvoton.com> In-Reply-To: From: Linus Walleij Date: Fri, 11 Nov 2022 15:20:02 +0100 Message-ID: Subject: Re: [PATCH v2 3/3] dt-bindings: gpio: Add Nuvoton NPCM750 serial I/O expansion interface(SGPIO) To: Jim Liu Cc: JJLIU0@nuvoton.com, KWLIU@nuvoton.com, brgl@bgdev.pl, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, openbmc@lists.ozlabs.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 Fri, Nov 11, 2022 at 10:30 AM Jim Liu wrote: > -D_out: > the output data is the serial data needed to connect to hc595 and the > data will output to hc595 parallel pins. > you can use dts nout_gpios to create the number of pins. > > -D_in > this pin need to connect to hc165 and get the serial data from hc165. > you can use dts nin_gpios to create the number of pins. In the example it seems you enable d_out and d_in for *all* 64 pins, correct? So they are all either input or output. That in effect turns them into GPIOs, so I don't see the problem with simply always doing this? Just that things are configurable doesn't mean we always need to provide means to configure them. If you have a use case where the user wants to control this, then that is another thing. Otherwise just make all pins input and output and wait for a usecase that needs more control, maybe it will never appear. Yours, Linus Walleij