From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751374AbdGQLT7 (ORCPT ); Mon, 17 Jul 2017 07:19:59 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:60066 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751294AbdGQLT6 (ORCPT ); Mon, 17 Jul 2017 07:19:58 -0400 Subject: Re: [RFC PATCH] ARM: dts: stm32: change pinctrl bindings definition To: Arnd Bergmann CC: Maxime Coquelin , Linus Walleij , Rob Herring , Mark Rutland , Russell King , Linux ARM , , Linux Kernel Mailing List References: <1500289258-3700-1-git-send-email-alexandre.torgue@st.com> <1500289258-3700-2-git-send-email-alexandre.torgue@st.com> From: Alexandre Torgue Message-ID: <25cebb45-b770-c0b4-a478-13b01b5cfd0e@st.com> Date: Mon, 17 Jul 2017 13:19:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG3NODE1.st.com (10.75.127.7) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-07-17_08:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi On 07/17/2017 01:15 PM, Arnd Bergmann wrote: > On Mon, Jul 17, 2017 at 1:00 PM, Alexandre TORGUE > wrote: >> blabla >> >> Signed-off-by: Alexandre TORGUE > > You may want to provide a little more detail here ;-) > Oh!! Sorry, I changed it but no sent the good commit :). Please translate blablable by: Initially each pin was declared in "include/dt-bindings/stm32f429-pinfunc.h"and each definition contained SOC names (ex: STM32F429_PA9_FUNC_USART1_TX). Since this approach was approved, the number of supported MCU has increased (STM32F429/STM32F469/STM32f746/STM32H743). To avoid to add a new file in "include/dt-bindings" each time a new STM32 SOC arrives I propose a new approach which consist to use a macro to define pin muxing in device tree. All STM32 will use the common macro to define pinmux. Furthermore, it will make easy maintenance and integration of new SOC. Regards Alex > Arnd >