Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3634922rdh; Mon, 27 Nov 2023 22:12:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IFpurrZMh087A58xeimHNdbhfGYIRroS44iSv98B4qdHmOm1aL8HAFhJCNGVozN29vMl6WR X-Received: by 2002:a05:6a00:3a17:b0:6bd:2c0a:e82 with SMTP id fj23-20020a056a003a1700b006bd2c0a0e82mr16487489pfb.7.1701151929893; Mon, 27 Nov 2023 22:12:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701151929; cv=none; d=google.com; s=arc-20160816; b=RB6MgAfi3KuMXPC/rc6Rdz7cPmtydioMZ2jwhjMM2QdjNkC5KPTDkiwTmBbWDFBD1N 1jp5+qGGuxNwg5WTN2PCSoJ2OFrLhmD8pHMYomT04xZDfKPPMj1SVxk0j6xbZ2UuL5zU /YyeRmwazSzCh0S/LiZW3imVxW+UPs5GDnBd6CZmG6d5x1pdN4qJARWD90eCIiUxEApf 6Rw1ogOKajX8hk8Kc3+UTUM+8Y6RKE1jbFg8T2CbksfLLoucuMuxk5CIQBBCVQBiDVmb KlcE7fdAaLcDPwWR9TvQAsvNcl7IRDrYSmPd+SFPv+WPmS2FsOpjAg3ZeNaYV1b9zsQB IPbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=u5W5LkCBhH5FAS1jATODbsmfalZ7+kdMimPXWoxa9EQ=; fh=tgUrbkNhf6DIZqZzkpsgQ15JawBXa6kDAtx2UnddeWA=; b=cOnGfqTM6HvgxDY+HMMhOUt29Fp2pGHPaSskznAoDG2yVUYVGJbDWrMto6snX+CVC3 nkrKvLVaUZ9tmRimXACEg84MzzcHdisiOhgUCXel+oLxGpnd+BGJh6zE09Fu2yhFgDxZ Indjaibz/RMgFFG0sGNssY/Egq4GOOxOCVGbFqkuwEwBYid33AkoC4fSK93yZXzQQiKQ 2HzwcOE1snelAKvU1j9USqavUjmWlPKSgSvl4bku0TGDkJzLlzQGUuXZol/CZ6EaVF4k CHM+VcFJgai88SgxiOaJulOzixAacXW5GzBRXbI1usXQ9IC6EvDh7m3H3m6uBFg9Q08p P2yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Qu1Pp+FX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id fj6-20020a056a003a0600b006cb8abd39d3si11578576pfb.180.2023.11.27.22.12.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 22:12:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Qu1Pp+FX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 52750809849C; Mon, 27 Nov 2023 22:11:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343576AbjK1GLT (ORCPT + 99 others); Tue, 28 Nov 2023 01:11:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232615AbjK1GLS (ORCPT ); Tue, 28 Nov 2023 01:11:18 -0500 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8E3EC4; Mon, 27 Nov 2023 22:11:24 -0800 (PST) Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-6cd97c135e8so1229332b3a.0; Mon, 27 Nov 2023 22:11:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701151884; x=1701756684; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=u5W5LkCBhH5FAS1jATODbsmfalZ7+kdMimPXWoxa9EQ=; b=Qu1Pp+FXvcQWp5QYD6fV7Uhk1DW3WE9188A52/99YxyZNR7w/V90w3FI+HBAFzh65H TlWigLgxYkKfC3KvDtDRwUNAsWjB/UCb1jGfZr9ReQD7aZhjN2tmFahyna3O54YZPpa3 j3ktfBvVujOLoDnzGDtGbANV2WBS79w+1Wtd/yjE3RtAQdZ9/5UIQGxi9YACLmk4ysuU F9mhK//AAVoMb6/lnn+aqn5OVwWOQ+xI3ujTsJ7JaaA/etD6pu6LnPLEYML7K/mFp5pu wRH8sct4M0/baWG9r+X+Z52NlJFd4/X6F4u1zwNk5qO0L5nk+o+iRy4/WRqKLHUcR+zC uAXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701151884; x=1701756684; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=u5W5LkCBhH5FAS1jATODbsmfalZ7+kdMimPXWoxa9EQ=; b=n0WKPWzyIWzguwLi7mvaeb66TATYxt4z7WojFvFgL0g/WEIMSExLLS+OGn9Jg0Z+2Y bpvN9f879ptj6W3D5Ttp1+51P+Qy0sGNq3EhNyC7PnWWPXcu9b2JX8a09v1uINkUmnzk HNcg4tOPN0FtZQPC9X6xxw5h4Fffi2A0cl73lrHo4D6RVob6QyYzJq/S6anrGtspwJLa 96sJ+ZOBrAJxQspJf0a5VzmgEZgcvF5R086bhf8yEticU7/dcZuLqt0/0jxW5MJ0dlo4 Uv1xR6c0ZjJ+JcQ6C0AdVTRapxzrQWjRt1OQrphYlBfOLz65YB20StOscAQIIGOXSsBy WISQ== X-Gm-Message-State: AOJu0YwhoTwYULW57uOLf8Cz0ySBQzF47wrVQrqh9N+2S9iQPGm17S/z 095auG9K9LXWnoDfOoc5rqk= X-Received: by 2002:a05:6a20:258b:b0:18c:64e0:447b with SMTP id k11-20020a056a20258b00b0018c64e0447bmr10036183pzd.28.1701151884056; Mon, 27 Nov 2023 22:11:24 -0800 (PST) Received: from a28aa0606c51.. (60-250-192-107.hinet-ip.hinet.net. [60.250.192.107]) by smtp.gmail.com with ESMTPSA id jj14-20020a170903048e00b001c73f3a9b7fsm9402694plb.185.2023.11.27.22.11.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 22:11:22 -0800 (PST) From: Jacky Huang To: linus.walleij@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, p.zabel@pengutronix.de, j.neuschaefer@gmx.net Cc: linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ychuang3@nuvoton.com, schung@nuvoton.com Subject: [PATCH v2 0/4] Add support for nuvoton ma35d1 pin control Date: Tue, 28 Nov 2023 06:11:14 +0000 Message-Id: <20231128061118.575847-1-ychuang570808@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 27 Nov 2023 22:11:35 -0800 (PST) From: Jacky Huang This patch series adds the pin control and GPIO driver for the nuvoton ma35d1 ARMv8 SoC. It includes DT binding documentation, the ma35d1 pin control driver, and device tree updates. This pin control driver has been tested on the ma35d1 som board with Linux 6.7. v2: - Update nuvoton,ma35d1-pinctrl.yaml - Update the 'nuvoton,pins' to follow the style of rockchip pinctrl approch. - Use power-source to indicate the pin voltage selection which follow the realtek pinctrl approch. - Instead of integer, use drive-strength-microamp to specify the real driving strength capability of IO pins. - Update ma35d1 pinctrl driver - Add I/O drive strength lookup table for translating device tree setting into control register. - Remove ma35d1-pinfunc.h which is unused after update definition of 'nuvoton,pins'. Jacky Huang (4): dt-bindings: reset: Add syscon to nuvoton ma35d1 system-management node dt-bindings: pinctrl: Document nuvoton ma35d1 pin control arm64: dts: nuvoton: Add pinctrl support for ma35d1 pinctrl: nuvoton: Add ma35d1 pinctrl and GPIO driver .../pinctrl/nuvoton,ma35d1-pinctrl.yaml | 189 ++ .../bindings/reset/nuvoton,ma35d1-reset.yaml | 3 +- .../boot/dts/nuvoton/ma35d1-iot-512m.dts | 70 +- .../boot/dts/nuvoton/ma35d1-som-256m.dts | 73 +- arch/arm64/boot/dts/nuvoton/ma35d1.dtsi | 159 +- drivers/pinctrl/nuvoton/Kconfig | 22 + drivers/pinctrl/nuvoton/Makefile | 2 + drivers/pinctrl/nuvoton/pinctrl-ma35.c | 1244 ++++++++++++ drivers/pinctrl/nuvoton/pinctrl-ma35.h | 50 + drivers/pinctrl/nuvoton/pinctrl-ma35d1.c | 1797 +++++++++++++++++ 10 files changed, 3599 insertions(+), 10 deletions(-) create mode 100644 Documentation/devicetree/bindings/pinctrl/nuvoton,ma35d1-pinctrl.yaml create mode 100644 drivers/pinctrl/nuvoton/pinctrl-ma35.c create mode 100644 drivers/pinctrl/nuvoton/pinctrl-ma35.h create mode 100644 drivers/pinctrl/nuvoton/pinctrl-ma35d1.c -- 2.34.1