From patchwork Fri Feb 23 10:17:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 13568841 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0CBC9C5478C for ; Fri, 23 Feb 2024 10:18:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=mnHop3w6+jTdyHgUawQX/j6OOEdw/6bsiv3Ekn9RuN0=; b=cbE5wwyuLHfl+O cNX6JoFD9fFbcjp9d4dlaoZ89SL5nPivZdZfII3tct8WEgke/FZ0LiZ8uLcDOAWXzh9KC88gUf54y KUWOO4pMnvDTQGvWWTJFThVEhwzZUC3LOJKud88GdiFyl3WesBEi3RzUvhHl1cEeijIQu5I/bC7oI 7Pio1Ikh0YHV054PB8x7lRMFqbmTJN/dF4EvAEx69i9FnBnUyIwiP4ak9nP/blYZJjQgsHkI5XK0G GGUsLQ6P2ORrQqQq2fCDrHjjGHDwNAj0sjYhEPRUE1m6k+JU1vpqWc5zgPJ8RwF+pxHYRBbjnx+mN 78S+5xIyyyVE9yw5DP6Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdSdD-00000008rss-02eV; Fri, 23 Feb 2024 10:18:15 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdScO-00000008raJ-1yGO; Fri, 23 Feb 2024 10:17:33 +0000 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a3e5d82ad86so87685466b.2; Fri, 23 Feb 2024 02:17:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708683442; x=1709288242; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=y/O3ksA4hTWY+K92YS4jtl+yo4GjNFqWPajb0hU9Fy0=; b=l8ovIqwQmMV1bflaowB54xU3SNvFZExIJxZg8xjqE+uvJfH8jYkhJe1X0MdC9y+ve7 JFbVW85/LC8GwHiqgcUkPWHY4++PhIwmruxzmec6Rxdyc6S5S8ScXQ604tqlF7+BWMJ9 mhTsNL1DXzO9MICwPjCTJSI+NIIlq4e3xlW0Cj4Jcjv5kDmroJvKXs4dy5meX3Nipum+ PRW/7I7yDhkCcfel8cOQSeFsyyuno9OFbDpvhcfTDoBGtsZ9F3kIJnJpyfeCweZgK7Ew 9foLNd4mdzIVPJbq6pXOjCkUqFDfPwU72PXXJX0wxU8iLmSj3XjVW+lcI7iPqpEgxABK /rVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708683442; x=1709288242; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=y/O3ksA4hTWY+K92YS4jtl+yo4GjNFqWPajb0hU9Fy0=; b=t5HVhODxw98yeKGsyDKA+4Oq8NI0WF90z9pjtgccYiegLs4+pNEjbjDDSQPF62KtX1 Mirk/u2dQ9kclhdhjRcug+9wXLlNar35UhdJT5rDvufeCW3fIIYq1OjVW3jvvdfyaRnb R6v9Kms3BU5+RzXZA5K6qyjVgUQHml59htqIhYR3FnFPouPObF1S6zPosix9F/j+Y4fb EpIS1W1RtLZT9SNx014x4PYG8SjJndjUHPzVmx+ABzZ3iteOIJZVV3PfUWZMNBhEXpES qMEAUk5KD5q3U01slGqFhDVcVLVlTfrTOrFUMtenfuSazBNfOOcxsDphh/RKxt9TDleA IdFg== X-Forwarded-Encrypted: i=1; AJvYcCXk2aKe9iLuVwLDJGxcGXW9guREVues+Jnnct5hYS6h5/WNEwGAkingIKz5zlifsPZJYn0VIP049plg9Az8HFQ6Thxd1gcFrUzqyTK/UOolVtaEPmQZ6Qw93vzWw4MMGNJE2mpS2CuMAq4BU1xjx6lsq+PTb8oKQY4= X-Gm-Message-State: AOJu0Ywf4aFeUTCVRnW6TadN/1h9982L/m/hm4rfSX+NsocuQAVN8/4g Sjhwkk6dU7rxIwotmpOuYxcKZxTWh8qajHke+D9CPmGRZToKP/TB X-Google-Smtp-Source: AGHT+IG5VUmyyKRrQhInbKERyLXwLXU4+G+23MuclTDO4DirdFc5S4LWW/fcfGxF1T3ne/aCDoNwpg== X-Received: by 2002:a17:906:2297:b0:a3f:8968:78dd with SMTP id p23-20020a170906229700b00a3f896878ddmr925100eja.55.1708683442666; Fri, 23 Feb 2024 02:17:22 -0800 (PST) Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id ti7-20020a170907c20700b00a3d99dc3f3asm6667250ejc.67.2024.02.23.02.17.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 02:17:22 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Matthias Brugger , AngeloGioacchino Del Regno , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Chen-Yu Tsai , Hsin-Yi Wang , =?utf-8?q?N=C3=ADcolas_F_=2E_R_=2E_A_=2E_Prado?= , Heiko Stuebner , Jernej Skrabec , Chris Morgan , Linus Walleij , Sean Wang , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH V2 3/4] arm64: dts: mediatek: mt7981: add pinctrl Date: Fri, 23 Feb 2024 11:17:08 +0100 Message-Id: <20240223101709.30072-4-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240223101709.30072-1-zajec5@gmail.com> References: <20240223101709.30072-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240223_021731_545187_34426843 X-CRM114-Status: GOOD ( 10.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki MT7981 contains on-SoC PIN controller that is also a GPIO provider. Signed-off-by: Rafał Miłecki Reviewed-by: AngeloGioacchino Del Regno --- V2: Drop board specific code arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi index a187a34d12ee..5674ac81d1f8 100644 --- a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi @@ -94,6 +94,28 @@ pwm@10048000 { #pwm-cells = <2>; }; + pio: pinctrl@11d00000 { + compatible = "mediatek,mt7981-pinctrl"; + reg = <0 0x11d00000 0 0x1000>, + <0 0x11c00000 0 0x1000>, + <0 0x11c10000 0 0x1000>, + <0 0x11d20000 0 0x1000>, + <0 0x11e00000 0 0x1000>, + <0 0x11e20000 0 0x1000>, + <0 0x11f00000 0 0x1000>, + <0 0x11f10000 0 0x1000>, + <0 0x1000b000 0 0x1000>; + reg-names = "gpio", "iocfg_rt", "iocfg_rm", "iocfg_rb", "iocfg_lb", + "iocfg_bl", "iocfg_tm", "iocfg_tl", "eint"; + interrupt-controller; + interrupts = ; + interrupt-parent = <&gic>; + gpio-ranges = <&pio 0 0 56>; + gpio-controller; + #gpio-cells = <2>; + #interrupt-cells = <2>; + }; + clock-controller@15000000 { compatible = "mediatek,mt7981-ethsys", "syscon"; reg = <0 0x15000000 0 0x1000>;