From patchwork Fri Sep 22 09:43:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huqiang Qin X-Patchwork-Id: 143333 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5457620vqi; Fri, 22 Sep 2023 03:23:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGGUNP0oP0HZmSrLjXECewySCKHlXhzZ/BUYaH2QRorhfpok5m0H/3vST6RkMMlMbiMcRuL X-Received: by 2002:a05:6358:4411:b0:142:fba8:dcfc with SMTP id z17-20020a056358441100b00142fba8dcfcmr8363007rwc.16.1695378202570; Fri, 22 Sep 2023 03:23:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695378202; cv=none; d=google.com; s=arc-20160816; b=Pi6nmiPFfBsSVRAzrxiIoCfAkNgbZfpNl6MdiomiARy4Tmfb+aD2v53ml3zDVcVyWe /q3fpT/wPuH1enyKEVj/hJymclpRtXMoXy/4no7ZzTcCZ9ljhPN+2U7V4hfHzH+Cs8oV YArbnYhtfTyYAvB12xZiJalTyySlkZwlEy5DBqXNI/3xvs6KYS6AYuC7I3NLT+M/ZkBe x/gugR4V8bbtBo/4Z/E16I2gfJhZxsNPC1JPr4ZA/xKTZOtCQpQ992AA2T+ZsLJIgWRc aZl+37LtQSitcQg+PD5s71LMka8o79+VSy8PTah1z7bJeuq6DFlE7zQpt9ZUiIAZwRoq ZhpA== 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=juSsBdzewr+vVhRCRELHSYBwKQ6Rbc5+5fVefcLtTdc=; fh=Unu24A6OtFVVWCPBK0xVewK08evrG6/FSGLBjCc1y2I=; b=0U8J2FGNqbUBAiNpYnAJ9F+P0P2W8oT7KTS/8CLQZmzGd75FDzeqRgwq64hMZeCxc/ BYuxKVv+iCsQV8bPn+8TUdIcBH9eC6SmrMFSlJ6zfJKSLTfeYviivHjXLo0ZPx0pBaxz USAePUDWsqcff1US7fnIWFuTdrLLlSQlQTMhHri5cFx4sygWPRUSpGKD4ZnH+JUemD/w WSuV+pdHL2laEiWWasis6ih3iCf3arphBc0YmuHr8N1qgM00SyeTBvwZ5+y9n8xAaEFI PxT+kyTKABdF0eglhQqPoYByD218r6Qd/ZF1+WvgMsLh981ZNM3Thf64Berz34t2JuG3 zkfQ== 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:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id d15-20020a63360f000000b0056c2f508886si3422552pga.423.2023.09.22.03.23.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 03:23:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 0AF2A83C7452; Fri, 22 Sep 2023 02:45:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232958AbjIVJo2 (ORCPT + 30 others); Fri, 22 Sep 2023 05:44:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231827AbjIVJoS (ORCPT ); Fri, 22 Sep 2023 05:44:18 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77C471AC; Fri, 22 Sep 2023 02:44:07 -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; Fri, 22 Sep 2023 17:43:52 +0800 From: Huqiang Qin To: , , , , , , , , , CC: , , , , , Huqiang Qin Subject: [PATCH V3 3/3] arm64: dts: Add pinctrl node for Amlogic T7 SoCs Date: Fri, 22 Sep 2023 17:43:42 +0800 Message-ID: <20230922094342.637251-4-huqiang.qin@amlogic.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230922094342.637251-1-huqiang.qin@amlogic.com> References: <20230922094342.637251-1-huqiang.qin@amlogic.com> MIME-Version: 1.0 X-Originating-IP: [10.28.11.83] X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Fri, 22 Sep 2023 02:45:00 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777732894058710926 X-GMAIL-MSGID: 1777732894058710926 Add pinctrl device. Signed-off-by: Huqiang Qin Reviewed-by: Neil Armstrong Tested-by: Lucas Tanure --- V1 -> V2: Unchanged. V2 -> V3: 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>;