All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kishon Vijay Abraham I <kishon-l0cyMroinI0@public.gmane.org>
To: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org>,
	Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
Cc: Gary Bisson
	<gary.bisson-Q5RJGjKts06CY9SHAMCTRUEOCMrvLtNR@public.gmane.org>,
	Grygorii Strashko
	<grygorii.strashko-l0cyMroinI0@public.gmane.org>,
	Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
	Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-gpio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Lokesh Vutla <lokeshvutla-l0cyMroinI0@public.gmane.org>,
	Linus Walleij
	<linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Subject: Re: [PATCH] ARM: dts: Add dra7 iodelay configuration and use it for MMC
Date: Wed, 15 Feb 2017 18:05:14 +0530	[thread overview]
Message-ID: <58A44B02.10204@ti.com> (raw)
In-Reply-To: <932aa035-27c9-0bb4-ffe2-81959aea6662-l0cyMroinI0@public.gmane.org>

Hi,

On Wednesday 15 February 2017 12:27 AM, Nishanth Menon wrote:
> On 02/14/2017 12:51 PM, Tony Lindgren wrote:
>> Nishanth,
>>
>> * Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> [161230 10:50]:
>>> Add dra7 iodelay configuration and use it for MMC.
>>
>> I just noticed that this patch should probably be:
>>
>> From: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org>
>>
>> I think I just added the description to the patch.
>>
>> Can you please confirm and reply with your Signed-off-by
>> if that's the case?
>>
> 
> Though I had introduced the node [
> http://git.ti.com/ti-linux-kernel/ti-linux-kernel/commit/34661cbccc679bb8d91768bc78495e94e6d40f1f
> ], the x15 values were first introduced by Kishon.
> 
> http://git.ti.com/ti-linux-kernel/ti-linux-kernel/commit/1463b1e8facb7180f5679b373411b3fbeb1608fd
> 
> 
> personally, From or not really does'nt matter as long as we can get the
> solution in.
> 
> So, as long as it helps..
> Signed-off-by: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org>
> 
>>
>>
>>> Signed-off-by: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
>>> ---
>>>  arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi | 21 ++++++++++++++++++++-
>>>  arch/arm/boot/dts/dra7.dtsi                     |  8 ++++++++
>>>  include/dt-bindings/pinctrl/dra.h               |  4 ++++
>>>  3 files changed, 32 insertions(+), 1 deletion(-)
>>> ---
>>>
>>> And ere are the related dts changes.
>>>
>>> diff --git a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
>>> b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
>>> --- a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
>>> +++ b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
>>> @@ -190,6 +190,25 @@
>>>          >;
>>>      };
>>>  };
>>> +
>>> +&dra7_iodelay_core
>>> +{
>>> +    mmc2_iodelay_3v3_conf: mmc2_iodelay_3v3_conf {
>>> +        pinctrl-pin-array = <
>>> +            0x18c A_DELAY_PS(0) G_DELAY_PS(120)    /* CFG_GPMC_A19_IN */
>>> +            0x1a4 A_DELAY_PS(265) G_DELAY_PS(360)    /* CFG_GPMC_A20_IN */
>>> +            0x1b0 A_DELAY_PS(0) G_DELAY_PS(120)    /* CFG_GPMC_A21_IN */
>>> +            0x1bc A_DELAY_PS(0) G_DELAY_PS(120)    /* CFG_GPMC_A22_IN */
>>> +            0x1c8 A_DELAY_PS(287) G_DELAY_PS(420)    /* CFG_GPMC_A23_IN */
>>> +            0x1d4 A_DELAY_PS(144) G_DELAY_PS(240)    /* CFG_GPMC_A24_IN */
>>> +            0x1e0 A_DELAY_PS(0) G_DELAY_PS(0)    /* CFG_GPMC_A25_IN */
>>> +            0x1ec A_DELAY_PS(120) G_DELAY_PS(0)    /* CFG_GPMC_A26_IN */
>>> +            0x1f8 A_DELAY_PS(120) G_DELAY_PS(180)    /* CFG_GPMC_A27_IN */
>>> +            0x360 A_DELAY_PS(0) G_DELAY_PS(0)    /* CFG_GPMC_CS1_IN */
>>> +        >;
>>> +    };
>>> +};
>>> +
>>>  &i2c1 {
>>>      status = "okay";
>>>      clock-frequency = <400000>;
>>> @@ -452,7 +471,7 @@
>>>      status = "okay";
>>>
>>>      pinctrl-names = "default";
>>> -    pinctrl-0 = <&mmc2_pins_default>;
>>> +    pinctrl-0 = <&mmc2_pins_default &mmc2_iodelay_3v3_conf>;

I had to remove the iodelay added here based on datasheet (patch [1]).

I also wanted to confirm if "MODE_SELECT" should be added in pinctrl values
like [2] for adding manual mode iodelay because that seems to be missing in
this patch.

Thanks
Kishon

[1] ->
http://git.ti.com/cgit/cgit.cgi/ti-linux-kernel/ti-linux-kernel.git/commit/?h=ti-linux-4.9.y&id=441f799d2d15a1ed2f0a89024bf3f2fd82816dbd

[2] ->
http://git.ti.com/cgit/cgit.cgi/ti-linux-kernel/ti-linux-kernel.git/commit/?h=ti-linux-4.9.y&id=decd3b433d6485d9176ce069bd66b109fb82fe07
>>>
>>>      vmmc-supply = <&vdd_3v3>;
>>>      bus-width = <8>;
>>> diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi
>>> --- a/arch/arm/boot/dts/dra7.dtsi
>>> +++ b/arch/arm/boot/dts/dra7.dtsi
>>> @@ -401,6 +401,14 @@
>>>              reg = <0x40d00000 0x100>;
>>>          };
>>>
>>> +        dra7_iodelay_core: padconf@4844a000 {
>>> +            compatible = "ti,dra7-iodelay";
>>> +            reg = <0x4844a000 0x0d1c>;
>>> +            #address-cells = <1>;
>>> +            #size-cells = <0>;
>>> +            #pinctrl-cells = <2>;
>>> +        };
>>> +
>>>          sdma: dma-controller@4a056000 {
>>>              compatible = "ti,omap4430-sdma";
>>>              reg = <0x4a056000 0x1000>;
>>> diff --git a/include/dt-bindings/pinctrl/dra.h
>>> b/include/dt-bindings/pinctrl/dra.h
>>> --- a/include/dt-bindings/pinctrl/dra.h
>>> +++ b/include/dt-bindings/pinctrl/dra.h
>>> @@ -73,5 +73,9 @@
>>>   */
>>>  #define DRA7XX_CORE_IOPAD(pa, val)    (((pa) & 0xffff) - 0x3400) (val)
>>>
>>> +/* DRA7 IODELAY configuration parameters */
>>> +#define A_DELAY_PS(val)        ((val) & 0xffff)
>>> +#define G_DELAY_PS(val)        ((val) & 0xffff)
>>> +
>>>  #endif
>>>
>>> -- 
>>> 2.11.0
>>> -- 
>>> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
>>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2017-02-15 12:35 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-30 18:37 [PATCH 0/2] Add TI iodelay driver using #pinctrl-cells Tony Lindgren
     [not found] ` <20161230183732.5595-1-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2016-12-30 18:37   ` [PATCH 1/2] pinctrl: core: Make dt_free_map optional Tony Lindgren
     [not found]     ` <20161230183732.5595-2-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-01-09 18:41       ` Linus Walleij
2016-12-30 18:37 ` [PATCH 2/2] pinctrl: Introduce TI IOdelay configuration driver Tony Lindgren
2016-12-30 18:49   ` [PATCH] ARM: dts: Add dra7 iodelay configuration and use it for MMC Tony Lindgren
     [not found]     ` <20161230184914.GC3940-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-01-09 18:47       ` Linus Walleij
2017-02-14 18:51     ` Tony Lindgren
     [not found]       ` <20170214185120.GL21809-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-02-14 18:57         ` Nishanth Menon
     [not found]           ` <932aa035-27c9-0bb4-ffe2-81959aea6662-l0cyMroinI0@public.gmane.org>
2017-02-15 12:35             ` Kishon Vijay Abraham I [this message]
     [not found]               ` <58A44B02.10204-l0cyMroinI0@public.gmane.org>
2017-02-15 15:50                 ` Tony Lindgren
2017-02-16 13:58                   ` Kishon Vijay Abraham I
     [not found]   ` <20161230183732.5595-3-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2016-12-31 22:52     ` [PATCH 2/2] pinctrl: Introduce TI IOdelay configuration driver kbuild test robot
     [not found]       ` <201701010645.EBjk2p8Y%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-01-02 18:04         ` Tony Lindgren
2017-01-01  2:02     ` kbuild test robot
2017-01-02 22:12     ` Tony Lindgren
2017-01-04 13:32       ` Rob Herring
2017-01-04 15:38       ` Nishanth Menon
     [not found]         ` <63a8a1ec-343a-8c96-a0d2-21d81f7ad10e-l0cyMroinI0@public.gmane.org>
2017-01-04 16:05           ` Tony Lindgren
     [not found]             ` <20170104160511.GF25222-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-01-04 16:51               ` Nishanth Menon
     [not found]       ` <20170102221228.GH9325-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-01-04 17:57         ` Nishanth Menon
2017-01-05 18:50           ` Tony Lindgren

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=58A44B02.10204@ti.com \
    --to=kishon-l0cymroini0@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=gary.bisson-Q5RJGjKts06CY9SHAMCTRUEOCMrvLtNR@public.gmane.org \
    --cc=grygorii.strashko-l0cyMroinI0@public.gmane.org \
    --cc=linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=linux-gpio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=lokeshvutla-l0cyMroinI0@public.gmane.org \
    --cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
    --cc=nm-l0cyMroinI0@public.gmane.org \
    --cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=tony-4v6yS6AI5VpBDgjK7y7TUQ@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.