Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp130280lqp; Mon, 10 Jun 2024 22:11:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX161Gez3qG5g5VQLiolKpW2bV7iffD5OZ//6+w6PnIqr1RWM4pOIpeMj5pbzHkz+twi7GTse2ZU90I5wsNeRPAChB7M6q1dDRfYSIIig== X-Google-Smtp-Source: AGHT+IHdxfNpqQTBgqvqqyXWoSaOxTYpkhBZr+ia7FHYvYPiYuGBw4Aq3Mzh0H6l+qWDTbe/2CGQ X-Received: by 2002:a17:90a:4a95:b0:2c2:d468:76df with SMTP id 98e67ed59e1d1-2c2d4687a71mr8702600a91.31.1718082681110; Mon, 10 Jun 2024 22:11:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718082681; cv=pass; d=google.com; s=arc-20160816; b=WpvbFfOuIphoVXwEXsz+47JwQ2etN1s7qMQgqyMApdlDxsfny+/YJHM8BVomNJriRj AF0sJolQygJzppDBx6KIunAX0WtXRTxAfBLsJu1+n1awQjIWYLzzmeYUenimnZJ9YXoI GfwvNA04NtqA4hsyQDIKFS+7+BKN50UKTJwyrSAYW6X+6GuHdRxXhec5mJP5llQOh+Jx WwGWTzmYPF1CE8uWDNYKFL5rl2ni/m+bdr/hMHr0gpWcXQ2OyuIf/InLtFOpa9VXcXpP zFrSVIwBeG09/Wz5p03vYPp54MJtrkcbLm7PrV3Ahk0j+I5imz1IsexjMX/1+69D0IKw GRWQ== 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=wu2g9Xo7OY5PmGHu6YrxAluvAS0RBrl8+hMC3DZr1i4=; fh=P5BitzFyLvo1XFboVe6i8AgqsusHPS599jv4Pr+An+Q=; b=oe3Bj7DKKbsHNPybwaTne7aVAuMzNGQdWK9R33n+zgN3CI8xWU3302imk4+nz6HbTV pjbcFxcYpwDay2e7dDaKI4ZxHQjxb/gIu9iAV+sEj0YNFdj8nWuIEjJPlCAuFAqFYNig EpZ7joWWOKzHvH0/OB9bN4BMYj5RjBzKUtqhXsI/WQiCpuhn9WTCed03R/guXhDejjHZ wSpmuIcA+4XzsxrFH9FnM9zIA/2+8p8wrw2kFETBFlTeWNGKb9tKxzui2ygZxh6LDBU8 BosjjlClUAv8VuF5gecApmH3gPK2uH6KZuq2wHyIfOzHdVAsvyWnp166svz/8lsy9k5x 4LrA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=szioNOFz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-209262-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209262-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-2c2d113c2e9si5661423a91.156.2024.06.10.22.11.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 22:11:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209262-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=szioNOFz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-209262-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209262-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 B18D1281D83 for ; Tue, 11 Jun 2024 05:11:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ADC38171079; 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="szioNOFz" 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 C72B763C; 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=jmcxGIA8UMyvpPNiqfn1WCQgv6o1SIpwB/vL6e+z8H10ssvG5mt0Ma2M2oAgzPgjOZdRuchANchaYA35tyKkqK7SePZ/gqReTEPbDZOG3WfDkIB3DXCE5cqTiM2qlw1I6wWVOWJgJH5xio7wmB0SnboF8iBg6ufBMEAHA2dUz+M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718082660; c=relaxed/simple; bh=fNglPpq1OR578DdMVdAmSf59MmLIadxgL7Jtj0YqXm8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DgSlgzVYCkYsYbQjdQs/zFYTh881syiaIuET/lnw/UndqLMMvR9RnZ/K199nD7Yow0oiaLfOnbhjZbLjxLbJqeEtpPMN19mfD1ziBIjwkObqyi2dvITCkDqkqpxhbYCHqVku5fvCDZbdwwlkLtKVdpVBfrF+AiQiBcpiPDR8v/M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=szioNOFz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 781D1C4AF51; 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=fNglPpq1OR578DdMVdAmSf59MmLIadxgL7Jtj0YqXm8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=szioNOFzEU16gF2REnhbCPQsvmebHMEDMhgN7l7rcDdPIi3BWJnTZc46OdZoUOMgz uxCw/oYU3bLzKNaBoo0JkUBO+qMr9Ma64tLaP+UXQhxNUtK3ESBd4xgIquAREdF7eF sJrM+by1SsnF+xLRSvPb9Bd5uofiF0xeyQ5ub2+EBoZnSl1XoygdpKnZunDpACL58V cjMgC+TvO/yxTHYNv/8qVCsxKJPlwoMSckc21vJlwHneXMJWpBzVtf4/T5xT1dxfzM pdpiI6waVMe3ANqi1rCpsy/aqE0eY9S+y8+AczpVm4wbZ5ca+5l8K8aZ7D1LhM+QTP Y80tJnWgau/0A== 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 63950C25B76; Tue, 11 Jun 2024 05:11:00 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Tue, 11 Jun 2024 13:10:59 +0800 Subject: [PATCH 3/3] arm64: dts: amlogic: a4: add pinctrl node 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-3-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=1392; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=dK1sBro4y44HxdZ7xq97Zu8WXKXsyY0hjnlhV/Rfko0=; b=fPWr6+NYpqH9T8KWCXZZwBxdMkk0QoKEll2gzJAqwC8lX8rYr4earPV3u9ulD3JKWLmCCM0Er J/t1A1E3N49DhS0Sn5+Kwlpv/+j4TTt7DWisWrT3bHqlHN9cgK+8iQa 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 pinctrl device to support Amlogic A4. Signed-off-by: Xianwei Zhao --- arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi index de10e7aebf21..5d858bb93eb7 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi @@ -47,4 +47,40 @@ pwrc: power-controller { #power-domain-cells = <1>; }; }; + + soc { + aobus_pinctrl: pinctrl@fe08e700 { + compatible = "amlogic,a4-aobus-pinctrl"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + ao_gpio: bank@fe08e700 { + reg = <0x0 0xfe08e700 0x0 0x04>, + <0x0 0xfe08e704 0x0 0x60>; + reg-names = "mux", "gpio"; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&aobus_pinctrl 0 0 8>; + }; + }; + }; +}; + +&apb { + periphs_pinctrl: pinctrl@4000 { + compatible = "amlogic,a4-periphs-pinctrl"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + gpio: bank@4000 { + reg = <0x0 0x4000 0x0 0x0050>, + <0x0 0x40c0 0x0 0x0220>; + reg-names = "mux", "gpio"; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&periphs_pinctrl 0 0 73>; + }; + }; }; -- 2.37.1