devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexandre Torgue <alexandre.torgue@st.com>
To: Linus Walleij <linus.walleij@linaro.org>,
	Ludovic Barre <ludovic.Barre@st.com>
Cc: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
	<devicetree@vger.kernel.org>, Arnd Bergmann <arnd@arndb.de>,
	Russell King <linux@armlinux.org.uk>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Rob Herring <robh+dt@kernel.org>,
	Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	Gerald Baeza <gerald.baeza@st.com>,
	Linux ARM <linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH V2 9/9] ARM: dts: stm32: add initial support of stm32mp157c eval board
Date: Wed, 20 Dec 2017 10:19:51 +0100	[thread overview]
Message-ID: <27a339f7-33a7-eb73-27fe-9927838729d6@st.com> (raw)
In-Reply-To: <CACRpkdZaEjdGB2k6HdPt1_E0jRXEimEUxT9NmMwMw7OiyeqGLA@mail.gmail.com>

Hi Linus

On 12/20/2017 08:44 AM, Linus Walleij wrote:
> On Mon, Dec 18, 2017 at 4:17 PM, Ludovic Barre <ludovic.Barre@st.com> wrote:
> 
>> From: Ludovic Barre <ludovic.barre@st.com>
>>
>> Add support of stm32mp157c evaluation board (part number: STM32MP157C-EV1)
>> split in 2 elements:
>> -Daughter board (part number: STM32MP157C-ED1)
>>   which includes CPU, memory and power supply
>> -Mother board (part number: STM32MP157C-EM1)
>>   which includes external peripherals (like display, camera,...)
>>   and extension connectors.
>>
>> The daughter board can run alone, this is why the device tree files
>> are split in two layers, for the complete evaluation board (ev1)
>> and for the daughter board alone (ed1).
>>
>> Signed-off-by: Ludovic Barre <ludovic.barre@st.com>
>> Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
> (...)
>> diff --git a/arch/arm/boot/dts/stm32mp157c-ev1.dts b/arch/arm/boot/dts/stm32mp157c-ev1.dts
> 
> Evaluation boards are important because they set a pattern that customers
> will use.
> 
> Please consider to include nodes for all GPIO blocks used in this
> evaluation board, and add:
> 
> gpio-line-names = "foo", "bar" ...;
> 
> See for example
> arch/arm/boot/dts/bcm2835-rpi-a.dts
> arch/arm/boot/dts/ste-snowball.dts
> 
> It's good to have because probably you guys have proper schematics and
> know rail names of the stuff connected to those GPIO lines and so on,
> so you can give the lines proper names.

It looks like useful for pins used as gpio line. Are you saying that we 
also have to describe pins used as Alternate Function ? Currently for 
stm32 MCU we add (for each pins in a group) a comment in 
stm32xxx-pinctrl.dtsi file to describe the pinmux (to help developers). 
On driver side for each stm32 pinctrl driver (ex: 
drivers/pinctrl/stm32/pinctrl-stm32f429.c) we add for each possible 
muxing a name:


	STM32_PIN(
		PINCTRL_PIN(0, "PA0"),
		STM32_FUNCTION(0, "GPIOA0"),
		STM32_FUNCTION(2, "TIM2_CH1 TIM2_ETR"),
		STM32_FUNCTION(3, "TIM5_CH1"),
		STM32_FUNCTION(4, "TIM8_ETR"),
		STM32_FUNCTION(8, "USART2_CTS"),
		STM32_FUNCTION(9, "UART4_TX"),
		STM32_FUNCTION(12, "ETH_MII_CRS"),
		STM32_FUNCTION(16, "EVENTOUT"),
		STM32_FUNCTION(17, "ANALOG")
	),

To be honest, currently there is a an issue to printout the name :) but 
I have a patch to send for that.


regards
Alex


> 
> It will be helpful for people using the reference design, especially with the
> new character device, and also sets a pattern for people doing devices
> based on the reference design and we really want to do that.
> 
> Yours,
> Linus Walleij
> 

  reply	other threads:[~2017-12-20  9:19 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-18 15:17 [PATCH V2 0/9] ARM: stm32: add initial STM32MPU support Ludovic Barre
2017-12-18 15:17 ` [PATCH V2 3/9] ARM: stm32: prepare stm32 family to welcome armv7 architecture Ludovic Barre
2017-12-18 20:24   ` Arnd Bergmann
2017-12-19 14:38     ` Alexandre Torgue
     [not found]       ` <8092d8f9-c097-136f-4f6f-0b7ffea17c91-qxv4g6HH51o@public.gmane.org>
2017-12-21 16:39         ` Ludovic BARRE
     [not found]           ` <4093a02c-3216-d668-a6d8-1ce76046b554-qxv4g6HH51o@public.gmane.org>
2017-12-21 20:48             ` Arnd Bergmann
     [not found]     ` <CAK8P3a1WzkVQ3591XjVQPLCqP0_zZ4ksqJqWvm7de_OnkE3oaQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-12-19 14:43       ` Ludovic BARRE
     [not found]         ` <45e2f530-1e72-6933-4367-95aadd709873-qxv4g6HH51o@public.gmane.org>
2017-12-19 15:26           ` Arnd Bergmann
2017-12-19 15:54             ` Ludovic BARRE
2017-12-18 15:17 ` [PATCH V2 4/9] devicetree: bindings: stm32: add support of STM32MP157 Ludovic Barre
     [not found]   ` <1513610272-7824-5-git-send-email-ludovic.Barre-qxv4g6HH51o@public.gmane.org>
2017-12-20 18:24     ` Rob Herring
     [not found] ` <1513610272-7824-1-git-send-email-ludovic.Barre-qxv4g6HH51o@public.gmane.org>
2017-12-18 15:17   ` [PATCH V2 1/9] devicetree: bindings: Document supported STM32 SoC family Ludovic Barre
     [not found]     ` <1513610272-7824-2-git-send-email-ludovic.Barre-qxv4g6HH51o@public.gmane.org>
2017-12-20  7:33       ` Linus Walleij
2017-12-18 15:17   ` [PATCH V2 2/9] Documentation: arm: stm32: move to rst format Ludovic Barre
2017-12-18 15:17   ` [PATCH V2 5/9] ARM: stm32: add initial support for STM32MP157 Ludovic Barre
2017-12-18 15:17   ` [PATCH V2 6/9] pinctrl: stm32: Add STM32MP157 MPU support Ludovic Barre
2017-12-20  7:38     ` Linus Walleij
2017-12-18 15:17 ` [PATCH V2 7/9] ARM: configs: multi_v7: add stm32 support Ludovic Barre
2017-12-18 15:17 ` [PATCH V2 8/9] ARM: dts: stm32: add stm32mp157c initial support Ludovic Barre
2017-12-18 15:17 ` [PATCH V2 9/9] ARM: dts: stm32: add initial support of stm32mp157c eval board Ludovic Barre
     [not found]   ` <1513610272-7824-10-git-send-email-ludovic.Barre-qxv4g6HH51o@public.gmane.org>
2017-12-18 20:20     ` Arnd Bergmann
     [not found]       ` <CAK8P3a14KzxGK8j75UUBfWgexg2fdzrtdgcqUT=uHfjWrVaWbA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-12-19  8:45         ` Ludovic BARRE
2017-12-19  9:17         ` Alexandre Torgue
2017-12-20  7:44     ` Linus Walleij
2017-12-20  9:19       ` Alexandre Torgue [this message]
2017-12-21  9:18         ` Linus Walleij
2017-12-21 10:44           ` Alexandre Torgue

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=27a339f7-33a7-eb73-27fe-9927838729d6@st.com \
    --to=alexandre.torgue@st.com \
    --cc=arnd@arndb.de \
    --cc=devicetree@vger.kernel.org \
    --cc=gerald.baeza@st.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=ludovic.Barre@st.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).