From: Javier Martinez Canillas <javier.martinez-ZGY8ohtN/8pPYcu2f3hruQ@public.gmane.org>
To: Benoit Cousson <b-cousson-l0cyMroinI0@public.gmane.org>
Cc: Matthias Brugger
<matthias.bgg-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Enric Balletbo i Serra
<eballetbo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Enrico Butera <ebutera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: Re: [PATCH v2 1/3] ARM/dts: omap3: Add generic DT support for IGEP devices
Date: Mon, 03 Dec 2012 13:16:51 +0100 [thread overview]
Message-ID: <50BC9833.6060205@collabora.co.uk> (raw)
In-Reply-To: <50BC8685.20105-l0cyMroinI0@public.gmane.org>
On 12/03/2012 12:01 PM, Benoit Cousson wrote:
> On 11/30/2012 11:08 AM, Javier Martinez Canillas wrote:
>> Add a generic .dtsi device tree source file for the
>> common characteristics across IGEP Technology devices.
>>
>> Signed-off-by: Javier Martinez Canillas <javier.martinez-ZGY8ohtN/8pPYcu2f3hruQ@public.gmane.org>
>> Acked-by: Matthias Brugger <matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>> ---
>> arch/arm/boot/dts/omap3-igep.dtsi | 93 +++++++++++++++++++++++++++++++++++++
>> 1 files changed, 93 insertions(+), 0 deletions(-)
>> create mode 100644 arch/arm/boot/dts/omap3-igep.dtsi
>>
>> diff --git a/arch/arm/boot/dts/omap3-igep.dtsi b/arch/arm/boot/dts/omap3-igep.dtsi
>> new file mode 100644
>> index 0000000..a093bff
>> --- /dev/null
>> +++ b/arch/arm/boot/dts/omap3-igep.dtsi
>> @@ -0,0 +1,93 @@
>> +/*
>> + * Device Tree Source for IGEP Technology devices
>> + *
>> + * Copyright (C) 2012 Javier Martinez Canillas <javier-ZGY8ohtN/8pPYcu2f3hruQ@public.gmane.org>
>> + * Copyright (C) 2012 Enric Balletbo i Serra <eballetbo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>> + *
>> + * This program is free software; you can redistribute it and/or modify
>> + * it under the terms of the GNU General Public License version 2 as
>> + * published by the Free Software Foundation.
>> + */
>> +/dts-v1/;
>> +
>> +/include/ "omap3.dtsi"
>> +
>> +/ {
>> + memory {
>> + device_type = "memory";
>> + reg = <0x80000000 0x20000000>; /* 512 MB */
>> + };
>> +
>> + sound {
>> + compatible = "ti,omap-twl4030";
>> + ti,model = "igep2";
>> + ti,mcbsp = <&mcbsp2>;
>> + ti,codec = <&twl_audio>;
>> + };
>> +};
>> +
>> +&omap3_pmx_core {
>> + pinctrl-names = "default";
>> + pinctrl-0 = <
>> + &mcbsp2_pins
>> + >;
>
> Tony made a comment to avoid associating these data inside the pmx_core
> and instead do that in the dedicated device part.
>
Hi Benoit,
Thanks a lot for your feedback.
I didn't know about this convention, the OMAP mcspi1_cs2 pin is configured in
gpio_176 mode (OMAP_MUX_MODE4) because this GPIO line is used as the SMSC9221
LAN Ethernet controller IRQ.
But since the ethernet chip is connected to the OMAP3 processor thourgh its GPMC
and the DT support for GPMC is still not merged in mainline, DT support this
this pheripheral is still missing on this initial DT.
So, I'll just removes mcbsp2_pins for now and this can be added again on the
ethernet device part once support for this pheripheral is added.
>> +
>> + uart3_pins: pinmux_uart3_pins {
>> + pinctrl-single,pins = <
>> + 0x16e 0x100 /* uart3_rx.uart3_rx INPUT | MODE0 */
>> + 0x170 0 /* uart3_tx.uart3_tx OUTPUT | MODE0 */
>> + >;
>> + };
>> +
>> + mcbsp2_pins: pinmux_mcbsp2_pins {
>> + pinctrl-single,pins = <
>> + 0x1a2 0x0104 /* mcspi1_cs2.gpio_176 INPUT | MODE4 */
>> + >;
>> + };
>
> BTW, in this case, the UART3 does not seems to have any connection with
> the pins settings. Sine your don't have it in the pmx_core you should
> have it in side the UART3 node.
>
> &uart3 {
> pinctrl-names = "default";
> pinctrl-0 = <&uart3_pins>;
> };
>
Yes, I missed that. Thanks for pointing this out.
> The rational is that, the mux will be done only if the driver is probed
> and not unconditionally during pmx_core probe like it will be the case
> otherwise.
>
> Regards,
> Benoit
>
>
I'll post a v3 with your suggestions.
Thanks a lot and best regards,
Javier
next prev parent reply other threads:[~2012-12-03 12:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-30 10:08 [PATCH v2 0/3] ARM/dts: omap3: Add DT support for IGEP devices Javier Martinez Canillas
2012-11-30 10:08 ` [PATCH v2 1/3] ARM/dts: omap3: Add generic " Javier Martinez Canillas
2012-12-03 10:38 ` Enric Balletbo Serra
2012-12-03 11:01 ` Benoit Cousson
[not found] ` <50BC8685.20105-l0cyMroinI0@public.gmane.org>
2012-12-03 12:16 ` Javier Martinez Canillas [this message]
2012-11-30 10:08 ` [PATCH v2 2/3] ARM/dts: omap3: Add support for IGEPv2 board Javier Martinez Canillas
2012-12-03 10:39 ` Enric Balletbo Serra
[not found] ` <1354270137-31538-1-git-send-email-javier.martinez-ZGY8ohtN/8pPYcu2f3hruQ@public.gmane.org>
2012-11-30 10:08 ` [PATCH v2 3/3] ARM/dts: omap3: Add support for IGEP COM Module Javier Martinez Canillas
2012-12-03 10:39 ` Enric Balletbo Serra
2012-12-03 10:49 ` [PATCH v2 0/3] ARM/dts: omap3: Add DT support for IGEP devices Benoit Cousson
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=50BC9833.6060205@collabora.co.uk \
--to=javier.martinez-zgy8ohtn/8ppycu2f3hruq@public.gmane.org \
--cc=b-cousson-l0cyMroinI0@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=eballetbo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=ebutera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=matthias.bgg-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.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).