Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4611635rwb; Tue, 8 Aug 2023 10:57:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHB5dPgNKFB9nP7tyzakrzNbVsM4SXzM1ZFdZlQGMtOWRnea4VFfHJCTW34DuSuIjQ47aTL X-Received: by 2002:a05:6a20:ddaf:b0:137:e595:8312 with SMTP id kw47-20020a056a20ddaf00b00137e5958312mr183409pzb.14.1691517458208; Tue, 08 Aug 2023 10:57:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691517458; cv=none; d=google.com; s=arc-20160816; b=NaF/hcsgly08bbQzsOzONu+QluycxBxB21TaZBEveIlEDB5m0q8ai3sd7ML8Y2St27 EuCaQd4VF3rivS8JggwpW4DnAzmUU6xs2GmcUd7tOSBAAVLiGiJIXey10Uq/R1eEDQyp vJnBbSTkQwQjFue+TyrxMOn8mfsP+CscKsLJ+gcCCIP84TfhNi6pg2Iu1fP8D7Ccic+j eIK0bvs7Hh5RgHR1+zbIxhJGMd8VyMAXeg6zcz71rTndfyUA64T3aGOLbW2zYAgl4itW kCwWIRc0KtjMPhmO1Z2g/Z0MWrDkSgmmCzYdVnIhQu1FMyty3t78Q4T49zFTnVRuj+Ec +cXA== 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 :dkim-signature; bh=M+IuYoEUiyN+G/GS5dPfHhgm4XbDSRY/d6hoesq7He4=; fh=AGJG7XvD3ZYcSheSma1dy0KQK+1qqNMKcFHs0m5/SxA=; b=xvXXl2xYn16BbZfZ6+KHzMgrw4cUPTZMnLrX+2/hUlLjKBqX5YLRoOU3wD9q75OMPs KxKsrwL47iOfsa5THy+Aoxc10OuNs7p+sK/jL/L7fLYgld8KRqJY3nGxg/gUcTKShub0 nThjUm0SxXXfUP8CRXk5nvSX9/lsxh3InIG+bkm8kMyxEdsaEQ9uY3i2EJ9IDZYSzwDF z75U0QluRDyBoKaKbKG/1ugXVoJqVnrmoRSNt/Tq9GbGksWhP9JWR5HGlh5r9ReaOn0H hfOCByji1pllthzgUTv6x69rUmS57JXHz16+emyZ1iSlR/D0ydYdMDLXhhSLVoNskZE3 9t/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=GFgdqTee; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v202-20020a6361d3000000b00563d9ff5157si174960pgb.547.2023.08.08.10.57.25; Tue, 08 Aug 2023 10:57:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=GFgdqTee; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233520AbjHHQtY (ORCPT + 99 others); Tue, 8 Aug 2023 12:49:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232087AbjHHQsh (ORCPT ); Tue, 8 Aug 2023 12:48:37 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6578CE56; Tue, 8 Aug 2023 08:57:13 -0700 (PDT) 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 3788jJI3008038; Tue, 8 Aug 2023 11:31:41 +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=M+IuYoEUiyN+G/GS5dPfHhgm4XbDSRY/d6hoesq7He4=; b=GF gdqTeegucgb8ERKFBUsDKK87BQ/6zrK/DlxOS00ecMz71JY8vlWha2ZrLV1CNUu7 gn6e3Od8a+/Q1DSoCm0PAxvT98C9HmpguMJ3BrJeu1BaetHOE6RDLjF3SUXcjyia CKzKRyUGRYrcOZOGhxh4G2f7YCvwswU0WwS0o4I6h85Qlwo0dS6eXt80uTPzPUM9 nZ6bblRnyjiuNKjeM88ebg09GWO0mNAAhDPzwnO3e25j4kO7/GzswCWb6feAh63B 5i9Z3Vvm7eP1kO/I/el6Hkm88kLr/bwxpw5XBJ5++DZ9yRB47ALqLir+foM+7O0d a/sHjUaHKEF5+oUpnlAg== 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 3sbjfn09nr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 08 Aug 2023 11:31:41 +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 90EAA100063; Tue, 8 Aug 2023 11:31:40 +0200 (CEST) Received: from Webmail-eu.st.com (eqndag1node4.st.com [10.75.129.133]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 86EE0216850; Tue, 8 Aug 2023 11:31:40 +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:40 +0200 From: To: , Krzysztof Kozlowski , CC: , , , , Patrice Chotard Subject: [PATCH 2/2] ARM: dts: stm32: Add gpio-ranges for stm32f769-pinctrl Date: Tue, 8 Aug 2023 11:31:19 +0200 Message-ID: <20230808093119.714224-3-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 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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/stm32f769-pinctrl.dtsi | 44 +++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/st/stm32f769-pinctrl.dtsi b/arch/arm/boot/dts/st/stm32f769-pinctrl.dtsi index c26abc04e2ce..02c2a8b08468 100644 --- a/arch/arm/boot/dts/st/stm32f769-pinctrl.dtsi +++ b/arch/arm/boot/dts/st/stm32f769-pinctrl.dtsi @@ -8,4 +8,48 @@ &pinctrl { compatible = "st,stm32f769-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>; + }; }; -- 2.25.1