From patchwork Thu Sep 14 05:45:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huqiang Qin X-Patchwork-Id: 139331 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp132950vqi; Wed, 13 Sep 2023 22:50:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEHdYf5yZNZBb2pItOBSxFwYKjnIwD27wAXdPDMVi6rizG0Ww8m/6XXslniOM8koVYn2/oY X-Received: by 2002:a05:6358:6f86:b0:134:c650:cc0a with SMTP id s6-20020a0563586f8600b00134c650cc0amr3965079rwn.15.1694670602195; Wed, 13 Sep 2023 22:50:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694670602; cv=none; d=google.com; s=arc-20160816; b=VWQVaeaZ0yKPduDLfE0/gzCBovuKSwA62THyZm9fMbEFELiMWLkBYcFqo1a20QtRIm Vmo/H3OaeJa5NL/cyjDAt7NXXaUOuUjbyXQw4YkXRXbN/KLtAOeIbKktFyHmeNcwIFoV cgTOZ/V4gf5t+Z/oNYfmMBFznHvw65j/n1LuzhKLfOImYwaNCgLctReRyubI+GOzGbdN VovGvEUt9mtIMMez9e5Ip//WQ6dky9k7fcbDq0Ui7lhNcYOejHEn9UTdYfc7sjU6SHiL OLpACpEkPYm+0grN0ki/MulVx7vUJ6sPAuSbJtT7zjL9qLwSwZVbpkvWJDg4v5OicfQO MpPA== 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=ZLGtSfYe5moasE4eFc9E1LWA8512ZMg5flYqjgZ6UoY=; fh=Unu24A6OtFVVWCPBK0xVewK08evrG6/FSGLBjCc1y2I=; b=b12kawbnFW+olTu4eBHgIUz7EEFooJc2g7fZwPE6bxNWMBmEFwcsSpu1/+mDT4LY1U y3LAMheMKlKfQ0uPGgcx+9Zv+vBbXcUzeTbiNC/CoizZGimukmhtQ/lDABtR1rrAETAX qRhQFRYiQHmrDrUVDC74MUzUlU/0W+W3mmSDGFZIDLR7TYl74c3YOlU7cjlbVFBhKWhu hLgFbRHfFXZwJO/RYbHwZXyC3iA/0a7zWJVhQTRuFqYNAxG2fKRozbSA7xxy4f+W9h0w Vg5fmKja1rDTYz1mLzytNojyFhtN0lgEQCIZq1o7ZxCkEt4mZm//tFXP6kNFama8oLPO GStA== 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 c5-20020a6566c5000000b00577808bf793si761516pgw.795.2023.09.13.22.50.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 22:50:02 -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 2FE4B833843F; Wed, 13 Sep 2023 22:47:30 -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 S235001AbjINFrF (ORCPT + 35 others); Thu, 14 Sep 2023 01:47:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234984AbjINFrA (ORCPT ); Thu, 14 Sep 2023 01:47:00 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4E51269F; Wed, 13 Sep 2023 22:45:41 -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, 14 Sep 2023 13:45:38 +0800 From: Huqiang Qin To: , , , , , , , , , CC: , , , , , Huqiang Qin Subject: [PATCH 3/3] arm64: dts: Add pinctrl node for Amlogic T7 SoCs Date: Thu, 14 Sep 2023 13:45:25 +0800 Message-ID: <20230914054525.1180595-4-huqiang.qin@amlogic.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230914054525.1180595-1-huqiang.qin@amlogic.com> References: <20230914054525.1180595-1-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 (groat.vger.email [0.0.0.0]); Wed, 13 Sep 2023 22:47:30 -0700 (PDT) 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776990921058284283 X-GMAIL-MSGID: 1776990921058284283 Add pinctrl device. Signed-off-by: Huqiang Qin Reviewed-by: Neil Armstrong --- 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>;