Message ID | 20231128061118.575847-1-ychuang570808@gmail.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp3710786vqx; Mon, 27 Nov 2023 22:12:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IGNVP8W3rVr2xHEfB2ovrE2oPlEv8R6rhCkTxtACAetMSuSzx0MqH/t5Ej4aNNa2D52yWyH X-Received: by 2002:a17:903:454:b0:1ca:a07b:36d with SMTP id iw20-20020a170903045400b001caa07b036dmr14418354plb.48.1701151929997; 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=errquGmJKqX1nN2UOanTDMgiB75a5hSGeZUmsX8bDhJu5GEpdOB3aE4BL1j+OrB3Id KBNBxLFR8JX2ygCuBorpvJC40A7DKoER7zFf0wGZxJNWWIkYwi6SFoxyYylQpD8H7nLo EiE+IY2mV5XwgZeKnJDmQw80a2XQWP0DqEwSt7jacgxnFbtJ0YtHpgLaZHWzBkBpGOqN AmSL8lZ34RCfRxvIBxQeyFkCXxkbv2L9iyP+jaZNu20Vcajz+TE+P6hkxryJT7LiTdde Espe3qwKytiwTag5sxQkDYZtzZkV0jaTqqEKZtMOeUoV9Re72/RElMBclegl5AFxACLx 4rHg== 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 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id x11-20020a170902ea8b00b001cff53d43c4si967602plb.178.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 23.128.96.37 as permitted sender) client-ip=23.128.96.37; 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 23.128.96.37 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 9CD4E8072A3A; Mon, 27 Nov 2023 22:11:33 -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 <rfc822;toshivichauhan@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <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 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: <linux-kernel.vger.kernel.org> 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:33 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783787086316985199 X-GMAIL-MSGID: 1783787086316985199 |
Series |
Add support for nuvoton ma35d1 pin control
|
|
Message
Jacky Huang
Nov. 28, 2023, 6:11 a.m. UTC
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