Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp130306lqp; Mon, 10 Jun 2024 22:11:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjPjkVeUdGDQ8Zw4WSdkx0yO2J2MzL8hqfeRE0u/oR9KTeBuUgkgiuTFRY+QJX70swaZRIZKcZiKst+qaOuD6DeLXwO8LyE6CzflBzAA== X-Google-Smtp-Source: AGHT+IHd3ntTK1rBZHp3hRSoN0BAVIL2XXtTYPg1LG8KJBxtHTsPfGA3FjSVHYjJtRkZk3cqKDl5 X-Received: by 2002:a05:6a21:78a0:b0:1b5:2c97:a88b with SMTP id adf61e73a8af0-1b52c97a961mr8905563637.9.1718082683346; Mon, 10 Jun 2024 22:11:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718082683; cv=pass; d=google.com; s=arc-20160816; b=u0F5H1CXXVXSzn81gLMsuPfURKOQgzppuCaaqCuDLqbDDu7/g5bLbkeuRhHN6e91U/ eDUy4YcaIW4isIF65IdXN53Ax1iSqF2kHN8BNcic8qzVKTolcWUvsOd9ZtakNk3qdVvW yRC8yiN+pKKTG/Gv5DlW2QGhP5R36GseCuFAIfFqB5M28YMGofXTj8O4AErvDTzaYP5X TbGlLuWczxx7aSmzCk/yS//VUgoH+WqsSjNOjlotHogF4WqwLPjh8yLeLxPhANtohwkJ 3QtG9dMnkNNpv/UYzq9e4ECNYgqWBOdJ9t/QiFwdiciTd4k1E8vi3O7Sfi3nV0/k6Lwr 9Qew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=oVLWM8lszMRqkK8tLovEl93dLS0RNq2UChdBwZwDOck=; fh=P5BitzFyLvo1XFboVe6i8AgqsusHPS599jv4Pr+An+Q=; b=ix7TW8+AMjE3uFEJEWU090QtC+EcvJe/o+zdPuJbpNQkzLNDEP0rqi9t//UJsKFnsf 36IjAKynag9V8v+/kDhx/p74KkQkTZBrRlJSJ2VwS59kDgX7NHgedmlMtnu4YRJ9oNeG db8w5Rrwjt4eMMqthLBbAB5yJPB87ZudSapXaAYZWEYk1ZzGlrUC0ZAhQnV9kkQa12oB Xa/jXp0LMft7BH8qMLSLMiVropWjbPE8X6L7jTKbK2fghm/RjtYGO2owG5CmhX6QLm6h 9Wvl7Iz4OyB9A5jizqaMQ2u/SBIUUHo31I6GeXyM3DaYaLIXhK8IrmkdmKvKwzQoikQw IQpA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D+ddU7jL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-209264-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209264-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c314e0e857si2238827a91.113.2024.06.10.22.11.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 22:11:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209264-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D+ddU7jL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-209264-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209264-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DDE2C2823CD for ; Tue, 11 Jun 2024 05:11:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2BEB17107C; Tue, 11 Jun 2024 05:11:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="D+ddU7jL" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C738A17083A; Tue, 11 Jun 2024 05:11:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718082660; cv=none; b=a8o58YHWBBIkoDGPHjXaFC0jp3GDurznKybBTVey7HT9QwtvmduuYneZCx3noSWIp90xNMcDCkoW9ZE3bkuN9fyLbyH4xX83bYReE+XHWNu4utPr4n6tX+BcgvHUAl5j0wR/zQFNpJzb9O5g9ASFqgw8kPiRD8Kk6cmEztaDj/o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718082660; c=relaxed/simple; bh=9u3gvPgyb/dIZN8X3PIz0NErbvp1nt9CMV23a03TY5o=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TK31UOgDtv4HqU+OWNy6hGxWFLXRl2UkCa2NLM3qvigwZ353Bu6M/ww4MxN+jZfZo0yJEClQsWWb3qvLMNg/uViOKUeGTiXyT6nukT3xuv63kgUmVNxwLbqfyvh7MilPlhwzdy7z+9V/lkYqHwvz8XDKOgjS2YAdJreToZzWbYA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=D+ddU7jL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 46C42C4AF1C; Tue, 11 Jun 2024 05:11:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718082660; bh=9u3gvPgyb/dIZN8X3PIz0NErbvp1nt9CMV23a03TY5o=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=D+ddU7jLw2XLi5/bxTsQLcOk6BOzfZfHOPfW9s+jvvykZqTGe8YkHsPkRd6Puhtvv U10eVVFR/uENGgWUc3hZegLijYo5J+7NFq2cWESIK28nmbj+Rb6PsjXlA2W8jRaZDO UayTUtITiBNZtSNSBepCvBWmq746NUa5JiHztoWNUlEcyeKqFIdWiO5xUndtBcgoJ7 r0XzXMVm2HUuFiPkeK/WoluHzl89bLK/1PdIiLoiNop6U4YC+y9u8bI1GZPiYEaAXA 6yb9hI2UADgCE+wKXTpAuBVUoPOhtWo7HXT5WZtYUSSIgmDAG/bTL3dvn9s2Yq/qKD FZG9sPTLzgEOw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2DCA5C27C5E; Tue, 11 Jun 2024 05:11:00 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Tue, 11 Jun 2024 13:10:57 +0800 Subject: [PATCH 1/3] dt-bindings: pinctrl: Add support for Amlogic A4 SoCs Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240611-a4_pinctrl-v1-1-dc487b1977b3@amlogic.com> References: <20240611-a4_pinctrl-v1-0-dc487b1977b3@amlogic.com> In-Reply-To: <20240611-a4_pinctrl-v1-0-dc487b1977b3@amlogic.com> To: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Bartosz Golaszewski Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Xianwei Zhao X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1718082658; l=4240; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=WJdLqydICRPbVCKDCtpTKEH09uhITX/xTeIPkd21RRQ=; b=PVSewCAjyLAxBYtjcUsmdwn415JiZNtIw03GJpTT6RaOOcEBj41islRy8V/RSzXvxA+MhCanC sPmwkT8iBFkCU0xsRg5JsoymYbsi5S2lS321dNcEECGHpeGhdaWWGyl X-Developer-Key: i=xianwei.zhao@amlogic.com; a=ed25519; pk=o4fDH8ZXL6xQg5h17eNzRljf6pwZHWWjqcOSsj3dW24= X-Endpoint-Received: by B4 Relay for xianwei.zhao@amlogic.com/20231208 with auth_id=107 X-Original-From: Xianwei Zhao Reply-To: xianwei.zhao@amlogic.com From: Xianwei Zhao Add the new compatible name for Amlogic A4 pin controller, and add a new dt-binding header file which document the detail pin names. Signed-off-by: Xianwei Zhao --- .../bindings/pinctrl/amlogic,meson-pinctrl-a1.yaml | 2 + .../dt-bindings/gpio/amlogic,a4-aobus-pinctrl.h | 21 +++++ .../dt-bindings/gpio/amlogic,a4-periphs-pinctrl.h | 93 ++++++++++++++++++++++ 3 files changed, 116 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/amlogic,meson-pinctrl-a1.yaml b/Documentation/devicetree/bindings/pinctrl/amlogic,meson-pinctrl-a1.yaml index d9e0b2c48e84..f5eefa0fab5b 100644 --- a/Documentation/devicetree/bindings/pinctrl/amlogic,meson-pinctrl-a1.yaml +++ b/Documentation/devicetree/bindings/pinctrl/amlogic,meson-pinctrl-a1.yaml @@ -15,6 +15,8 @@ allOf: properties: compatible: enum: + - amlogic,a4-aobus-pinctrl + - amlogic,a4-periphs-pinctrl - amlogic,c3-periphs-pinctrl - amlogic,t7-periphs-pinctrl - amlogic,meson-a1-periphs-pinctrl diff --git a/include/dt-bindings/gpio/amlogic,a4-aobus-pinctrl.h b/include/dt-bindings/gpio/amlogic,a4-aobus-pinctrl.h new file mode 100644 index 000000000000..7c7e746baed5 --- /dev/null +++ b/include/dt-bindings/gpio/amlogic,a4-aobus-pinctrl.h @@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */ +/* + * Copyright (c) 2024 Amlogic, Inc. All rights reserved. + * Author: Xianwei Zhao + */ + +#ifndef _DT_BINDINGS_AMLOGIC_A4_AOBUS_PINCTRL_H +#define _DT_BINDINGS_AMLOGIC_A4_AOBUS_PINCTRL_H + +/* GPIOAO */ +#define GPIOAO_0 0 +#define GPIOAO_1 1 +#define GPIOAO_2 2 +#define GPIOAO_3 3 +#define GPIOAO_4 4 +#define GPIOAO_5 5 +#define GPIOAO_6 6 + +#define GPIO_TEST_N 7 + +#endif diff --git a/include/dt-bindings/gpio/amlogic,a4-periphs-pinctrl.h b/include/dt-bindings/gpio/amlogic,a4-periphs-pinctrl.h new file mode 100644 index 000000000000..dfabca4b4790 --- /dev/null +++ b/include/dt-bindings/gpio/amlogic,a4-periphs-pinctrl.h @@ -0,0 +1,93 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */ +/* + * Copyright (c) 2024 Amlogic, Inc. All rights reserved. + * Author: Xianwei Zhao + */ + +#ifndef _DT_BINDINGS_AMLOGIC_A4_PERIPHS_PINCTRL_H +#define _DT_BINDINGS_AMLOGIC_A4_PERIPHS_PINCTRL_H + +/* GPIOE */ +#define GPIOE_0 0 +#define GPIOE_1 1 + +/* GPIOD */ +#define GPIOD_0 2 +#define GPIOD_1 3 +#define GPIOD_2 4 +#define GPIOD_3 5 +#define GPIOD_4 6 +#define GPIOD_5 7 +#define GPIOD_6 8 +#define GPIOD_7 9 +#define GPIOD_8 10 +#define GPIOD_9 11 +#define GPIOD_10 12 +#define GPIOD_11 13 +#define GPIOD_12 14 +#define GPIOD_13 15 +#define GPIOD_14 16 +#define GPIOD_15 17 + +/* GPIOB */ +#define GPIOB_0 18 +#define GPIOB_1 19 +#define GPIOB_2 20 +#define GPIOB_3 21 +#define GPIOB_4 22 +#define GPIOB_5 23 +#define GPIOB_6 24 +#define GPIOB_7 25 +#define GPIOB_8 26 +#define GPIOB_9 27 +#define GPIOB_10 28 +#define GPIOB_11 29 +#define GPIOB_12 30 +#define GPIOB_13 31 + +/* GPIOX */ +#define GPIOX_0 32 +#define GPIOX_1 33 +#define GPIOX_2 34 +#define GPIOX_3 35 +#define GPIOX_4 36 +#define GPIOX_5 37 +#define GPIOX_6 38 +#define GPIOX_7 39 +#define GPIOX_8 40 +#define GPIOX_9 41 +#define GPIOX_10 42 +#define GPIOX_11 43 +#define GPIOX_12 44 +#define GPIOX_13 45 +#define GPIOX_14 46 +#define GPIOX_15 47 +#define GPIOX_16 48 +#define GPIOX_17 49 + +/* GPIOT */ +#define GPIOT_0 50 +#define GPIOT_1 51 +#define GPIOT_2 52 +#define GPIOT_3 53 +#define GPIOT_4 54 +#define GPIOT_5 55 +#define GPIOT_6 56 +#define GPIOT_7 57 +#define GPIOT_8 58 +#define GPIOT_9 59 +#define GPIOT_10 60 +#define GPIOT_11 61 +#define GPIOT_12 62 +#define GPIOT_13 63 +#define GPIOT_14 64 +#define GPIOT_15 65 +#define GPIOT_16 66 +#define GPIOT_17 67 +#define GPIOT_18 68 +#define GPIOT_19 69 +#define GPIOT_20 70 +#define GPIOT_21 71 +#define GPIOT_22 72 + +#endif -- 2.37.1