From patchwork Thu Sep 21 08:34:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huqiang Qin X-Patchwork-Id: 142812 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5010075vqi; Thu, 21 Sep 2023 10:21:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFWU+pEIhs3sM4N9daWoQTPDKc2Kk1JYyhYqqnEOUipR3I/e03shNxD1yaBwkUMzCMrm9o0 X-Received: by 2002:a17:90a:fb8d:b0:26d:4421:854d with SMTP id cp13-20020a17090afb8d00b0026d4421854dmr5928959pjb.37.1695316918081; Thu, 21 Sep 2023 10:21:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695316918; cv=none; d=google.com; s=arc-20160816; b=etzRQGad9jhnnYaR4fYEK6OkVEIavWlYlDFwP9jAL5qHD0U2YHaRCF2yEdA2Gs5USb shb8Q5HAxZdKPFv7Fn6ePYboENCX5UT5sYRjfb+1DYeBzr/DNqETke5oZcUdJ3UVE10X 7lroYCWnaT/l5U2eYa95nWqARwBYEYFfoESy3t9aUOd110Sz/A21nsLcdn/rwzV+Okr6 rALbdrvPd3HH1HvWFNbnKxKdQtAbA6WEQewGLjieK3iHdlgdgyqJRIbvUSCQzuCB7+y1 lWAQCB4YPbx3WujEcV4MDeEWiO5PIAolRoJnsN8MT3+ofSpHVofInbBC0AINGgzqxDpd DUpQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=zvLO15jMeXWNL2vBF9TGWzZ52/9t8txP8DVSzOYs8UE=; fh=Unu24A6OtFVVWCPBK0xVewK08evrG6/FSGLBjCc1y2I=; b=IPk+jNogmQJMJ6nTcTVXvR5CjWM6P2IotQzyzqFsECixbRHmEnDeiJp3X0M2slHmUz PNefsI+CODcSGVWAhlzi+BAFD4EuLGRpmR2HPYeIJ3diwNgRsp2t3SxwG+nDUGnSmBf4 hW4GiQWDzgaO2uSYu8/UQjeQBYhfkyGagXCCb9ULZl0zTgnhlToNUS/9vBc/4szWs4IV 8JfDsYC1kYquACGGKBGA15Yzijcgsn4W5KQ9ZRFGKXg0a/bnw3Fgnno+gZMQbZMaNwCs NvbXCOgge3D9K/sYC0bPBxBEmVhLv1N8i/G/SjShQMP+AN0Rj/pWJofhGD8I2AKylSqv Mw5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id nh4-20020a17090b364400b0027400759b2fsi4025716pjb.31.2023.09.21.10.21.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 10:21:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id B0C9A80A1E1D; Thu, 21 Sep 2023 10:11:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229545AbjIURLJ (ORCPT + 29 others); Thu, 21 Sep 2023 13:11:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230510AbjIURKE (ORCPT ); Thu, 21 Sep 2023 13:10:04 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1657B59D8; Thu, 21 Sep 2023 10:05:17 -0700 (PDT) Received: from rd02-sz.amlogic.software (10.28.11.83) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.2507.13; Thu, 21 Sep 2023 16:34:59 +0800 From: Huqiang Qin To: , , , , , , , , , CC: , , , , , Huqiang Qin Subject: [PATCH V2 3/3] arm64: dts: Add pinctrl node for Amlogic T7 SoCs Date: Thu, 21 Sep 2023 16:34:08 +0800 Message-ID: <20230921083407.1167510-5-huqiang.qin@amlogic.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230921083407.1167510-2-huqiang.qin@amlogic.com> References: <20230921083407.1167510-2-huqiang.qin@amlogic.com> MIME-Version: 1.0 X-Originating-IP: [10.28.11.83] 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 (howler.vger.email [0.0.0.0]); Thu, 21 Sep 2023 10:11:20 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777668632426688982 X-GMAIL-MSGID: 1777668632426688982 Add pinctrl device. Signed-off-by: Huqiang Qin Reviewed-by: Neil Armstrong --- V1 -> V2: Unchanged. arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi index dae3465bd39b..a03c7667d2b6 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi @@ -155,6 +155,22 @@ watchdog@2100 { clocks = <&xtal>; }; + periphs_pinctrl: pinctrl@4000 { + compatible = "amlogic,t7-periphs-pinctrl"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + gpio: bank@4000 { + reg = <0x0 0x4000 0x0 0x0064>, + <0x0 0x40c0 0x0 0x0220>; + reg-names = "mux", "gpio"; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&periphs_pinctrl 0 0 157>; + }; + }; + uart_a: serial@78000 { compatible = "amlogic,t7-uart", "amlogic,meson-s4-uart"; reg = <0x0 0x78000 0x0 0x18>;