Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7038425rdb; Wed, 3 Jan 2024 02:26:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IHIphTE0ifdq0/WaG+gudBWQKHOS4N6rf0Tm0QPeZjlPZK+ACDXMqiMkt3dSdiGtfFqEF45 X-Received: by 2002:a50:ed0c:0:b0:556:a311:223c with SMTP id j12-20020a50ed0c000000b00556a311223cmr1168600eds.77.1704277596919; Wed, 03 Jan 2024 02:26:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704277596; cv=none; d=google.com; s=arc-20160816; b=oW+gF4nR73v3+cWANLTyE4jdHCFzCLyxKYUuuSJdc5/3XvPBqgFM8wCRahaq0tUffS YFk1pd2qFIfG7SRR9nzs35hW0d0MJnwYwBEoAUwhci6rEgWt8M6yT0lrHClMvHECsURq aULGXnatnloCY9SF8/nUElpj0Lpet/xwL39ssHOtUiW+LYwjxtnYWIgrjnxBs67OPbzJ 6awgmmKtwdgQq837Mm5aoZX5G6cBX50HrAKiMsAfpQ/eMq7uVTe3aLYZTl+kTco4OpGI 48l7k0ItgfTkTxz9JBiC5jRvKwZg9udpmPprcq9VT3Gv7KfKOZ/Cy6ER57o+l9caQ7Go eWOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=1d7qdkI7VcKd65R+llbhREgSlk8bC5HVMhsfJ3f5O8Q=; fh=IRQbdVTZpn4tJUlLx2uqN3anGN0ptCWa9KjzhDRb0RE=; b=wAe0oa7dIlQCW+Vhn/wrq1ttuTCihZeqvzyNXFHWJzECEDhlIB98319mV0J7/E0RvT siRgxBmYlQ9JzNV0ykxs14evp9mZP6lnemSHdvagfr9kIby2qe6Vg6aadXJ9QrzkqLdL RP5WEObw8J2k6GjPnFS3kYYGn6jyRMQHQuy1JuFZDVRvrN1Fk4KaxDUUOFdR0lo9OGC/ +lmSOcJ5KIeywV9ZkVczBtFuvzzU1BJ++QRGuy854isNgdSZo00gtD1EC3MvxkEQAuq+ ZygPYdLoAs/3bWCRrdYDtmLkuseaK/EfGP5Ft31qGp7G2hgNyFKG1NSOCZ8g2Po9SavT OaUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=gBdXRcKJ; spf=pass (google.com: domain of linux-kernel+bounces-15386-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15386-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id u20-20020a50d514000000b005532b0414b0si11596645edi.384.2024.01.03.02.26.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 02:26:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15386-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=gBdXRcKJ; spf=pass (google.com: domain of linux-kernel+bounces-15386-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15386-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A40961F240A2 for ; Wed, 3 Jan 2024 10:26:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2820718B16; Wed, 3 Jan 2024 10:26:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="gBdXRcKJ" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ua1-f47.google.com (mail-ua1-f47.google.com [209.85.222.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CD92D18C24 for ; Wed, 3 Jan 2024 10:26:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-ua1-f47.google.com with SMTP id a1e0cc1a2514c-7cc9da9995bso2196981241.3 for ; Wed, 03 Jan 2024 02:26:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1704277578; x=1704882378; 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=1d7qdkI7VcKd65R+llbhREgSlk8bC5HVMhsfJ3f5O8Q=; b=gBdXRcKJFmRY66aM7eCJ7oVfMGK52ggM2gfVCX5IbNN7JWMo+ueV/HOvi2225x2OPb i8cx/i4O5NUnXTg866sioGWa2zGXu2iH3VZ0WSlAzFWoFgUDYY3OeNPTmU4EpK7uveBF Z/h6J2hWG/6PhyEkQLRTlKR5eCKxn7QlxpL4NQRZNozT0bzIXQxCZU5AGePIV/qQNnky gabq6OSlFHKMPGsynlrZQjivGCA8B5IcmA3t60jYX40E6OYiYee5GH4JzHvFu6WEsdLR 1GjBF9iYnEQ18ES/nUToyiu8Q7/eApml/iui6+KbMRT6raWApfClgRoC6SECZN6BoqJw 2IRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704277578; x=1704882378; 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=1d7qdkI7VcKd65R+llbhREgSlk8bC5HVMhsfJ3f5O8Q=; b=SnrY0KCY4djAeqId+7RTj7hWiqbQIR2dDOqPVc6CNLa+PnpCPNZT3KJfptOp3L9ttO mXR5R1UafFm80ECilcIKda834kJU7KAUzVUxF2n9P0WRBxHCI5tSRhRmvVyvUB8H7310 Cb2NfyRbmoFGT5b03+zaQkTeUpVKht++VErz7IOETLuNO9hEiLZIQNnPzrCtXBFCER1T xGhEAVLcPKZF9NJI3F5wGauefwc/41sfdrxB8fWwQDErCuSavTB1DjvHPZkAUZv2vrm/ ep4wKxjQtz+GbgrZ704hXB3R/3VBoE/d0n1SAtWX4D7NYi4korYYNpqhM6Lxf72mPaM1 TgsQ== X-Gm-Message-State: AOJu0YzuWS+SON/Afq4jaRgGJFCIftO6Q29m62xCmacrv9SRC+knfov3 EzQoum73F8CV0b7Op6wHAZZiNZmN+QkNLbW5M9R7RYX6k+Z3gg== X-Received: by 2002:a05:6102:2d05:b0:466:fd31:def8 with SMTP id ih5-20020a0561022d0500b00466fd31def8mr7847832vsb.55.1704277578749; Wed, 03 Jan 2024 02:26:18 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231229074508.2709093-1-JJLIU0@nuvoton.com> In-Reply-To: <20231229074508.2709093-1-JJLIU0@nuvoton.com> From: Bartosz Golaszewski Date: Wed, 3 Jan 2024 11:26:07 +0100 Message-ID: Subject: Re: [PATCH v10 0/3] Add Nuvoton NPCM SGPIO feature To: jim.t90615@gmail.com Cc: JJLIU0@nuvoton.com, KWLIU@nuvoton.com, linus.walleij@linaro.org, andy@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Dec 29, 2023 at 8:45=E2=80=AFAM wrote: > > From: Jim Liu > > This SGPIO controller is for NUVOTON NPCM7xx and NPCM8xx SoC. > Nuvoton NPCM SGPIO module is combine serial to parallel IC (HC595) > and parallel to serial IC (HC165), and use APB3 clock to control it. > This interface has 4 pins (D_out , D_in, S_CLK, LDSH). > NPCM7xx/NPCM8xx have two sgpio module each module can support up > to 64 output pins,and up to 64 input pin, the pin is only for GPI or GPO. > > Jim Liu (3): > dt-bindings: gpio: add NPCM sgpio driver bindings > arm: dts: nuvoton: npcm: Add sgpio feature > gpio: nuvoton: Add Nuvoton NPCM sgpio driver > > .../bindings/gpio/nuvoton,sgpio.yaml | 87 +++ > .../dts/nuvoton/nuvoton-common-npcm7xx.dtsi | 24 + > drivers/gpio/Kconfig | 7 + > drivers/gpio/Makefile | 1 + > drivers/gpio/gpio-npcm-sgpio.c | 612 ++++++++++++++++++ > 5 files changed, 731 insertions(+) > create mode 100644 Documentation/devicetree/bindings/gpio/nuvoton,sgpio.= yaml > create mode 100644 drivers/gpio/gpio-npcm-sgpio.c > > -- > 2.25.1 > Applied patches 1 and 3. Bart