From patchwork Wed Feb 21 07:35:23 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: 13565045 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 92F59C48BF6 for ; Wed, 21 Feb 2024 07:36:49 +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=hYFQVoZ7Qaz5QAlpd73J3eDGIK4PWnHOXoh7o/rwxJA=; b=YLbFMcejzBcUzF I4LtZUgKk1ha4jzCmJmYK1KdNbf7CBuotbowOfGQEyt8XvDnPP23qegsPlp68+IBhmxXx3y5H4aAC Xd3qV93BqrBV/nYgug2jX8uuHkhXu79luRDjJi/NhwopRS2290J3ynFd3f6zVmSyTw9zWRYvLhdNu QaCnZsBc7o5zZ6jH+tiquX+IOoKGoLeE47syXXFd3LyjBf1xBY18GYVYZO4dZmaHF97GC/Yfj6WWf CrgOQlUv9gRvdKyK2Mr3LSU0Hdi8OvhxAPl6CYzdlyxPsj2Q/PB44jnSzsS67pePFakgiNRdma1sR SwhbtiVQCYCXtqwrpBcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rch9c-0000000HVrY-3Unk; Wed, 21 Feb 2024 07:36:32 +0000 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rch9G-0000000HVd5-3mBK; Wed, 21 Feb 2024 07:36:12 +0000 Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2d2305589a2so3456351fa.1; Tue, 20 Feb 2024 23:36:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708500969; x=1709105769; 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=5K+LPUTpDWl7CTSQ7wwWQlCqZnBOjCKam3sPzq3LFCk=; b=lOZbmmRYfjSpkTCqBp6qP7Hep4ocFWYGQF6Xgy17Qym/fcHUR8U8N1frXm/4Vnns3H tSoyNIGbFOYytPrQ+6ZAZIj/D8ka+4N/k/W+dVvJeqtV1+i9Y1LARWzqZzheGF0UvwZs Irf1+8UoMoHDyyPQNK4njV5TQPT+58h44pMUNaOWovDmoJhIEOJpkPeZsvLw8EFGmwRy fKYQFtj3fsMDavBJhu8sfuWqc6xuNALE7BLRwjcMyEtS8y8mFPXLXOyuLw1gex+mcyQR maKLRXWDS48t2p9dfNkKkd3ObZ7aXR6pAyEgNg6jsoeF0f2twhO3z92ETye5mYuJkzbm Z8Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708500969; x=1709105769; 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=5K+LPUTpDWl7CTSQ7wwWQlCqZnBOjCKam3sPzq3LFCk=; b=a6xFS+5uk8WPEfCoxOfu0CzDARyTbGDQpGRcntf4vdrsOzK1XlyQ0LJP2yU5wqbpGI x8GqTgBQp7VmdbClGqeeV35L6P5LYJ5lGPxANcDoqHWXvXnavRfLbjd7Y2hMHFYjJ2xX Mn6H/qFfusdZz7XMvccOtU0PNRlZy2zAeODIWnkzp4UI4pkRNe8EC03gscLAnb+fewoJ GHv8eQWZmYV0EvSaJJCf6HrfwcSvdeg2soTNAhUNm1L5CAB6utnSqPgfL/SxzccupRYv fb3ljmGVMb5dRcwvFflXD3xoaQLEXreZ+z6vPwZTu5o2NO14NdUkqUUVArCgFt44EoIN qD8A== X-Forwarded-Encrypted: i=1; AJvYcCUzp4zoxFLF0h6uC8+KwW4wU9Jt4EAASEyvC0uPxMc3P7KBoLaBHl11hdecyOpzS57XB5DFfRamS8gbefKXeyDnmBRDKj5wHvPaW+Gi1Yhn+ZSxZeoXTfe3PO4EUFc5V1+2988dm4/eSUM3Ul6gdeoPhBhR6V9G+Rk= X-Gm-Message-State: AOJu0YyOEL90LEAR8D3Jawg5u0ZfuQy+f42moUHBobqGVMFpTDG457rf n5rL8XGslJG95b+tQFeB8KaVqnKpTuIjl1a1p5N0pWjGO1yYXqQ0 X-Google-Smtp-Source: AGHT+IFCRIUB71wvbXRhTRzpy+rQD1aWwOBIh3hXm5/xx0yOSjW8vja0s/q45MUSdS0SGtkyDZ9S2A== X-Received: by 2002:a2e:854d:0:b0:2d2:3a2d:d2fa with SMTP id u13-20020a2e854d000000b002d23a2dd2famr4765275ljj.28.1708500968737; Tue, 20 Feb 2024 23:36:08 -0800 (PST) Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id z3-20020a2e7e03000000b002d0f99a7fc4sm1722330ljc.79.2024.02.20.23.36.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 23:36:08 -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 3/4] arm64: dts: mediatek: mt7981: add pinctrl Date: Wed, 21 Feb 2024 08:35:23 +0100 Message-Id: <20240221073524.20947-4-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240221073524.20947-1-zajec5@gmail.com> References: <20240221073524.20947-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240220_233611_030728_006A9951 X-CRM114-Status: GOOD ( 12.16 ) 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 --- arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 37 +++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi index 4feff3d1c5f4..fdd5c22cfc9c 100644 --- a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi @@ -86,6 +86,43 @@ 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>; + + mdio-pins { + mux { + function = "eth"; + groups = "smi_mdc_mdio"; + }; + }; + + spi0-pins { + mux { + function = "spi"; + groups = "spi0", "spi0_wp_hold"; + }; + }; + + }; + clock-controller@15000000 { compatible = "mediatek,mt7981-ethsys", "syscon"; reg = <0 0x15000000 0 0x1000>;