Message ID | 20231128061118.575847-1-ychuang570808@gmail.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 49492C4167B for <linux-arm-kernel@archiver.kernel.org>; Tue, 28 Nov 2023 06:11:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=7HD3WRyrYh5uqqsDBckHCMTEau5W2hitLyFNxaEBjwo=; b=OyRbuuDBpCM5Lv JWtDFTr+vi6cJLYM7rxiveBT1aFYj+X8OjwZZUMToazb/96bro/s3OREfIeCNb4wxMogcIW7mxrGT bwB4h5QIJVtbTQrNIRwoAA9NyPA/T7YneIM+E+5k2N9wFMo3rbZYmf2OqfHx0oyeh8otXp43ywkaN xAZxIactPT5iIoBVwSJhtrc0T5sbJGqCAynwbZw7wC8lI1ZYxphijHkTleXvVep/27rnhXw2zkIC2 rcEy7BdV/FUZ1Oly/QGmYkXPJLKXlfI5b8JaoQBpaMUbdToGlEK0/uaSZC0pI7L0077zCH0aohm3I PF3EOyejeI3A7UlTjV6Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r7rJi-004EIi-09; Tue, 28 Nov 2023 06:11:30 +0000 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r7rJe-004EH8-3A for linux-arm-kernel@lists.infradead.org; Tue, 28 Nov 2023 06:11:28 +0000 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-6cb9dd2ab56so4424336b3a.3 for <linux-arm-kernel@lists.infradead.org>; 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=lists.infradead.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=mGgI90wzKCfJePsq+Aqi5/BC6jZSlgE7zRBsyzbcEpzZVIonuvQ1KHRjjRTI5IqoNP 1xGzzwDQk+C3IN9ukufcxKqaPu4Bef5mWq/XJoKg7bmR+zlmBwtAoUuRCPvYf0ue+MPd m0j3q7+hSN4pAG+Ue1LEm6jSzw9744k24NxZqNeXNa0jd+oeHi1ciDH13Lez4o9NWfxm W2ZQ/2TiTFzpu8rhY+Jw/3W8cIvrTwQOrNxXA2Qy5p8hjObMAG56bAT8ElVu5ywyAWoT wNbcWxm8ImS2C+bWoxQ47HWvT1GGwtTEd/G+rLadt2njqUlxi7Jxx9wSGsWQNXz8y5RZ lLqA== 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=k8+GLABaYMJUyGgzqNPq9gfvk4AsCAxag96nL52yFcNalchsLxvJGRkIy9hy7JgTf+ 9CUrYvVjPlNI+al60qB9zqNdmMW9AhmrJG8yp42ey+D79VFeQF0wiFZNTSigeySLZILI YjOnHqL3aj/qe2dERhSCGQeAU7VELugFLHoHHSXgwyjK9xIv6j+QiA16mxXgclaHXY+2 P2jVytcFSt5AzH39vL5hAylSwpoKIWc8ZaPNtSTJOlRRr9TNa26IUv8K9xI51YPoAEPz Ou/ClaBN6Mzj+FtLPkvOKNKRmxMVfcQcunbi5nsKI9C//DmEvc6kalSDC/vpE4CDVquZ 6Osw== X-Gm-Message-State: AOJu0YyIEtHlkl5u7P9z+834LH0BpQrN/cf1CZIkjiyn1qAEF3docEAZ a+yN2u0AYWZyD+mn2FO7dAo= X-Google-Smtp-Source: AGHT+IHlFbaobrz+1OcrIeW466cpBxRQKq4iOTPU9K0wUEM7utEJrFl4DVEsvHXKV0aaNylqZGV8ow== 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 <ychuang570808@gmail.com> 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231127_221127_018204_57226D52 X-CRM114-Status: GOOD ( 14.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Add support for nuvoton ma35d1 pin control
|
expand
|
From: Jacky Huang <ychuang3@nuvoton.com> 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