From patchwork Tue Aug 8 09:31:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrice CHOTARD X-Patchwork-Id: 13345898 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 EF860C04E69 for ; Tue, 8 Aug 2023 09:32:36 +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=3qVOtnQwm17zC6y7T8TVi5xgbxYyA0HGhwY5ObN6l9A=; b=Nl0DqO/walZ8Fr O1zc551+RjIgJYZRcyrr8y/Mvm+F4VXlCMfTD7ort0Uv5kv0qF0Ml8zRxEaXX0kbKqxeaBXU+wrlz Oc+6g64d9VB6UVxOrzBcICglb+f8eMjmt0GaT0hpDtkQDz0NJn1PAg+oiePTv4je7ju+f7jF9Z1XT 3/BKMquVkW6Hv5o2DLVCWQ3XPY0Cp83rLEKaPSqOwsisJAb7T0qybOSQkV9A9JX4fJZfTLB2NmHdQ XBqyLx4e8PqxG64zERW8nlZ0b5VdtJ8J0erf5iHfB/pals0VvD7x7rExG7lVvwcF/Qs9oXyN2WRT+ 3dHZtIkDZhUb42Nj1C6g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qTJ4T-00293L-1d; Tue, 08 Aug 2023 09:32:09 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qTJ4O-00291q-11 for linux-arm-kernel@lists.infradead.org; Tue, 08 Aug 2023 09:32:05 +0000 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3788jZQ1008146; Tue, 8 Aug 2023 11:31:40 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= selector1; bh=RFrhqxY+1JPbM3Si0hysdjsFhaVnalme3KqSl5ihKaA=; b=PX xq1Dc9ItnpmF78PBMNyGisc5k/ITi2Q95TNXYW3y/Dl8q2aiGRhbpCdSUdTPYBqR O+5AL8fYHgb2IKB1PSSc+mG3kJ8gvTcNiUIugPiWaStfIPq8hJ/F6Xh98Q7gwTB/ +O3nHB7caixmtKM5vzw7k0J8p+FDC8M7Eyqg36ibi79wrAmVAmR12d7imiE7WwFt UB9Sb0g4E8hmo9qAoHCDwvzwPN2omqdn7/UpgFqNyQXhweZ2NXuyDsRlQYLmy/hs CFsrpmoif8PX+U5EY4oDg7jczyHxQNfDqhoCOQ1A7iDg0fRGzTD4SHLFQzYKVEwM e6oaSeN2k90wJ7VJ+H4g== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3sbjfn09nn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 08 Aug 2023 11:31:40 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B986C100061; Tue, 8 Aug 2023 11:31:39 +0200 (CEST) Received: from Webmail-eu.st.com (eqndag1node4.st.com [10.75.129.133]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id B0045216850; Tue, 8 Aug 2023 11:31:39 +0200 (CEST) Received: from localhost (10.201.20.38) by EQNDAG1NODE4.st.com (10.75.129.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 8 Aug 2023 11:31:39 +0200 From: To: , Krzysztof Kozlowski , CC: , , , , Patrice Chotard Subject: [PATCH 1/2] ARM: dts: stm32: Add gpio-ranges for stm32f746-pinctrl Date: Tue, 8 Aug 2023 11:31:18 +0200 Message-ID: <20230808093119.714224-2-patrice.chotard@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230808093119.714224-1-patrice.chotard@foss.st.com> References: <20230808093119.714224-1-patrice.chotard@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.201.20.38] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To EQNDAG1NODE4.st.com (10.75.129.133) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-08_08,2023-08-03_01,2023-05-22_02 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230808_023204_643414_91EA8A29 X-CRM114-Status: GOOD ( 10.92 ) 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: Patrice Chotard Since commit 913a956c4363 ("pinctrl: stm32: use dynamic allocation of GPIO base"), it's impossible to retrieve gpios from phandle, for example, mmc driver can't retrieve cd-gpios. Add missing gpio-ranges properties to fix it. Signed-off-by: Patrice Chotard --- arch/arm/boot/dts/st/stm32f746-pinctrl.dtsi | 44 +++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/st/stm32f746-pinctrl.dtsi b/arch/arm/boot/dts/st/stm32f746-pinctrl.dtsi index 781197ef42d6..139f72b790c0 100644 --- a/arch/arm/boot/dts/st/stm32f746-pinctrl.dtsi +++ b/arch/arm/boot/dts/st/stm32f746-pinctrl.dtsi @@ -8,4 +8,48 @@ &pinctrl { compatible = "st,stm32f746-pinctrl"; + + gpioa: gpio@40020000 { + gpio-ranges = <&pinctrl 0 0 16>; + }; + + gpiob: gpio@40020400 { + gpio-ranges = <&pinctrl 0 16 16>; + }; + + gpioc: gpio@40020800 { + gpio-ranges = <&pinctrl 0 32 16>; + }; + + gpiod: gpio@40020c00 { + gpio-ranges = <&pinctrl 0 48 16>; + }; + + gpioe: gpio@40021000 { + gpio-ranges = <&pinctrl 0 64 16>; + }; + + gpiof: gpio@40021400 { + gpio-ranges = <&pinctrl 0 80 16>; + }; + + gpiog: gpio@40021800 { + gpio-ranges = <&pinctrl 0 96 16>; + }; + + gpioh: gpio@40021c00 { + gpio-ranges = <&pinctrl 0 112 16>; + }; + + gpioi: gpio@40022000 { + gpio-ranges = <&pinctrl 0 128 16>; + }; + + gpioj: gpio@40022400 { + gpio-ranges = <&pinctrl 0 144 16>; + }; + + gpiok: gpio@40022800 { + gpio-ranges = <&pinctrl 0 160 8>; + }; };