Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4209073rwd; Tue, 30 May 2023 01:56:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7YFfnd1fdXLgZTaVcHPEjzr+JeINBW0eHGHZ57LnXD4hnz1/zAxdQnamCFUqXFAmx/xP0d X-Received: by 2002:a05:6a00:21ca:b0:64e:bce9:3229 with SMTP id t10-20020a056a0021ca00b0064ebce93229mr1639943pfj.9.1685436989879; Tue, 30 May 2023 01:56:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685436989; cv=none; d=google.com; s=arc-20160816; b=VF6dvfvsuVd/3zZHKYTTig+fiHUJRCGgqIa/Xvhy0pg/C0Wa8q8kAxyc1VVRx6i9xU Rwred8mG0dcuIt08mibfe9g1T28f2T8nM0ZFvuDEKPh5qrVXZeO5nTOKyGLymJ50g7fj MXTYqb2MB+pe8mVg7DeYMwJFLLV7YCl2UcdK+mdQ7IMFLoE6yS2FSdoI4qDHPaC22EFj Q798gjpKnwNpuMTcN4L7Mb9/eyMcRN/etQzbml3dVwHtfSXTAbMcRpQiDF8Iw6z2blr5 wp7wOtu0v5t6T/6KeGOAE1PSYfcPcnOS7kFx5ena4jSgz67vjUzuvdZ+AWKE1LHNtCKH CJLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=6XRVWHAypnu32raoYPkLydBCpQf/QSqdlpI2jgGeJuM=; b=lXIRRaSBbke/QKLIxpr2qdezdr8ulO2KQd5eb+/bJt3oeBoIq6G+hp76HliLIooGrI MvFVOO4/7vgfEOkaQpdq6qGaBXnzdGQsXuI1Xuea+J9IuItqQ+IfcV5bSpkCdWaknSUC ZplhHvTiGl3Erk90qbR9S6CRZZrKs6o9rBOxkOdMdl1r0n6AKxGgvGYxjHnpRUyjAUbI NngDkrC4e7t1vbXaVOIhin4lTjRox36Ok/Bvb3Y3zKtkdGnrg/OXMyfsZNHh/yh1K+8a pNFxocdGJuHPB74cQpA/INK+otiOd4wvteiB0mmOhm8wsKEICdKCAcFhHAZwDjqzZOfC d0KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=DBIMMx4p; 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 z6-20020aa79e46000000b0064f8adc3fa6si1389390pfq.70.2023.05.30.01.56.17; Tue, 30 May 2023 01:56:29 -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=DBIMMx4p; 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 S230012AbjE3Ii7 (ORCPT + 99 others); Tue, 30 May 2023 04:38:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229591AbjE3Ii5 (ORCPT ); Tue, 30 May 2023 04:38:57 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C56FC9; Tue, 30 May 2023 01:38:56 -0700 (PDT) Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34U8Ri1s011756; Tue, 30 May 2023 10:38:34 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=6XRVWHAypnu32raoYPkLydBCpQf/QSqdlpI2jgGeJuM=; b=DBIMMx4p7vAigngOucRzM3KQsG5V2Afxd+sxur5VrsCRnoUouWacwqtUPAuqGqLhori+ 8hjFtEaPLv4dHnRLT6mfnXoY3aKkhRBkVuM81MdaJoKiKHpjx8uR6eORwJdEUeykUWCh ZmlKdQAV+x0q//GQTGYKzD1aPydi3EIQxlZYhtX5cb8iUX8SDM9eRJa00jQ7YNWbE8S6 /PdE2N6tEEhefOboTI50c+LwkEEu+1TfDal2Kg2SMoa6Gz9BT5+XiptWO+XlXh+Rh270 qyP8q6cdif2TYT9sUgezFixmSG9WybPXgGAFv+gr3oJHRzcjfGfSHT5qoV/OxmeCoVcv tw== 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 3qvsnnnx46-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 May 2023 10:38:34 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 6266410002A; Tue, 30 May 2023 10:38:31 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 39FF321683B; Tue, 30 May 2023 10:38:31 +0200 (CEST) Received: from [10.201.21.93] (10.201.21.93) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 30 May 2023 10:38:30 +0200 Message-ID: <879b7689-5663-28b5-9431-2fdd243ffff2@foss.st.com> Date: Tue, 30 May 2023 10:38:30 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH 02/11] pinctrl: stm32: add stm32mp257 pinctrl support Content-Language: en-US To: Conor Dooley CC: , , Conor Dooley , Linus Walleij , Catalin Marinas , Will Deacon , Arnd Bergmann , Olof Johansson , , , , , , References: <20230529162034.20481-1-alexandre.torgue@foss.st.com> <20230529162034.20481-3-alexandre.torgue@foss.st.com> <20230529-enrich-clammy-14b498baf09f@spud> From: Alexandre TORGUE In-Reply-To: <20230529-enrich-clammy-14b498baf09f@spud> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.201.21.93] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-30_05,2023-05-29_02,2023-05-22_02 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,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 Hi Conor On 5/29/23 20:04, Conor Dooley wrote: > On Mon, May 29, 2023 at 06:20:25PM +0200, Alexandre Torgue wrote: >> Add stm32mp257 pinctrl support. >> diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.h b/drivers/pinctrl/stm32/pinctrl-stm32.h >> index e0c31c4c8bca..5e5de92ddd58 100644 >> --- a/drivers/pinctrl/stm32/pinctrl-stm32.h >> +++ b/drivers/pinctrl/stm32/pinctrl-stm32.h >> @@ -24,6 +24,9 @@ >> #define STM32MP_PKG_AB BIT(1) >> #define STM32MP_PKG_AC BIT(2) >> #define STM32MP_PKG_AD BIT(3) >> +#define STM32MP_PKG_AI BIT(8) >> +#define STM32MP_PKG_AK BIT(10) >> +#define STM32MP_PKG_AL BIT(11) > > Mainly out of curiosity, why have you go duplicate defines for these? Mainly to fit with available packages for various STM32 MPU. Currently MP1 SoCs are available with packages AB/AC/AD and MP2 series with AI/AK/AL but in the future we could have package AB/AC/AD/AI available for a particular SoC and then I need to anticipate this case. Cheers Alex > > Cheers, > Conor.