From: Shawn Lin <shawn.lin@rock-chips.com>
To: "Heiko Stübner" <heiko@sntech.de>
Cc: shawn.lin@rock-chips.com,
Krzysztof Kozlowski <k.kozlowski@samsung.com>,
Ulf Hansson <ulf.hansson@linaro.org>,
Jaehoon Chung <jh80.chung@samsung.com>,
Seungwon Jeon <tgih.jun@samsung.com>,
dianders@chromium.org, linux-mips@linux-mips.org,
Arnd Bergmann <arnd@arndb.de>,
Alexandre Belloni <alexandre.belloni@free-electrons.com>,
Alexey Brodkin <abrodkin@synopsys.com>,
Stefan Agner <stefan@agner.ch>,
Zhou Wang <wangzhou.bry@gmail.com>,
Kumar Gala <galak@codeaurora.org>,
Alim Akhtar <alim.akhtar@samsung.com>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Wang Long <long.wanglong@huawei.com>,
Rob Herring <robh+dt@kernel.org>,
Chaotian Jing <chaotian.jing@mediatek.com>,
Lukasz Majewski <l.majewski@samsung.com>,
Jun Nie <jun.nie@linaro.org>,
Catalin
Subject: Re: [RFC PATCH v3 2/5] Documentation: synopsys-dw-mshc: add bindings for idmac and edmac
Date: Wed, 5 Aug 2015 16:56:10 +0800 [thread overview]
Message-ID: <55C1CFAA.4090100@rock-chips.com> (raw)
In-Reply-To: <2567191.z5Kn3VDlTS@diego>
在 2015/8/5 16:45, Heiko Stübner 写道:
> Am Mittwoch, 5. August 2015, 16:43:20 schrieb Shawn Lin:
>> 在 2015/8/5 16:27, Krzysztof Kozlowski 写道:
>>> On 05.08.2015 17:17, Shawn Lin wrote:
>>>> synopsys-dw-mshc supports three types of transfer mode. We add bindings
>>>> and description for how to use them at runtime. Without idmac and edmac
>>>> property, pio is the default transfer mode. Make sure that Idmac and
>>>> emdac
>>>> should not be used simultaneously.
>>>>
>>>> Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
>>>> ---
>>>>
>>>> Changes in v3: None
>>>> Changes in v2: None
>>>>
>>>> .../devicetree/bindings/mmc/synopsys-dw-mshc.txt | 41
>>>> ++++++++++++++++++++++ 1 file changed, 41 insertions(+)
>>>>
>>>> diff --git a/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt
>>>> b/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt index
>>>> 346c609..30369cb 100644
>>>> --- a/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt
>>>> +++ b/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt
>>>>
>>>> @@ -75,6 +75,25 @@ Optional properties:
>>>> * vmmc-supply: The phandle to the regulator to use for vmmc. If this
>>>> is
>>>>
>>>> specified we'll defer probe until we can find this regulator.
>>>>
>>>> +* supports-idmac: Enables support for internal DMAC block within the
>>>> Synopsys + Designware Mobile Storage IP block. If supports-idmac
>>>> property is present, then + we MUST NOT add supports-edmac property
>>>> since we'd assume that dw-mshc IP is + integrated with only one type of
>>>> dma master.
>>>> +
>>>> +* supports-edmac: Enables support for external DMAC block outside the
>>>> Synopsys + Designware Mobile Storage IP block. If supports-edmac
>>>> property is present, then + we MUST NOT add supports-idmac property
>>>> since we'd assume that dw-mshc IP is + integrated with only one type of
>>>> dma master.
>>>> +
>>>> + (Without "supports-idmac" and "supports-edmac", use PIO as default
>>>> transfer mode)>
>>> Aren't you breaking here backward compatibility with existing DTB?
>>>
>>> Best regards,
>>> Krzysztof
>> Thanks, Krzysztof.
>> I guess you mean that I should keep existing DTB w/o these two
>> properties work fine using idmac?
> yep
Okay, I got it.
>
>>>> +
>>>> +* dmas: List of DMA specifiers with the controller specific format as
>>>> described + in the generic DMA client binding. This property should be
>>>> combined with + supports-edmac. Refer to dma.txt for details.
>>>> +
>>>> +* dma-names: DMA request names. Must be "rx-tx". And This property
>>>> should be + combined with supports-edmac. Refer to dma.txt for details.
>>>> +
> Similarly the use of an external dmac could simply be detected, by the
> presence of the dma-* properties. So when the machine defines dma channels use
> the external dma, otherwise the internal (or none). So you wouldn't need
> separate new properties at all.
Thanks, Heiko. I understand your point.
It will be done in v4.
>
>>>> Aliases:
>>>>
>>>> - All the MSHC controller nodes should be represented in the aliases
>>>> node using>>
>>>> @@ -95,6 +114,8 @@ board specific portions as listed below.
>>>>
>>>> #size-cells = <0>;
>>>>
>>>> };
>>>>
>>>> +[board specific internal DMA resources]
>>>> +
>>>>
>>>> dwmmc0@12200000 {
>>>>
>>>> clock-frequency = <400000000>;
>>>> clock-freq-min-max = <400000 200000000>;
>>>>
>>>> @@ -106,4 +127,24 @@ board specific portions as listed below.
>>>>
>>>> bus-width = <8>;
>>>> cap-mmc-highspeed;
>>>> cap-sd-highspeed;
>>>>
>>>> + supports-idmac;
>>>>
>>>> };
>>>>
>>>> +
>>>> +[board specific generic DMA request binding]
>>>> +
>>>> + dwmmc0@12200000 {
>>>> + clock-frequency = <400000000>;
>>>> + clock-freq-min-max = <400000 200000000>;
>>>> + num-slots = <1>;
>>>> + broken-cd;
>>>> + fifo-depth = <0x80>;
>>>> + card-detect-delay = <200>;
>>>> + vmmc-supply = <&buck8>;
>>>> + bus-width = <8>;
>>>> + cap-mmc-highspeed;
>>>> + cap-sd-highspeed;
>>>> + supports-edmac;
>>>> + dmas = <&pdma 12>;
>>>> + dma-names = "rx-tx";
>>>> + };
>>>> +
>
>
>
--
Shawn Lin
next prev parent reply other threads:[~2015-08-05 8:56 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-05 8:16 [RFC PATCH v3 0/5] Shawn Lin
2015-08-05 8:17 ` [RFC PATCH v3 1/5] mmc: dw_mmc: Add external dma interface support Shawn Lin
2015-08-05 8:49 ` Heiko Stübner
2015-08-05 9:11 ` Shawn Lin
2015-08-06 2:27 ` Jaehoon Chung
2015-08-06 3:35 ` Shawn Lin
2015-08-05 8:17 ` [RFC PATCH v3 2/5] Documentation: synopsys-dw-mshc: add bindings for idmac and edmac Shawn Lin
2015-08-05 8:27 ` Krzysztof Kozlowski
2015-08-05 8:43 ` Shawn Lin
2015-08-05 8:45 ` Heiko Stübner
2015-08-05 8:56 ` Shawn Lin [this message]
2015-08-06 2:16 ` Doug Anderson
2015-08-06 2:20 ` Jaehoon Chung
2015-08-06 3:13 ` Shawn Lin
2015-08-05 8:18 ` [RFC PATCH v3 3/5] arm: configs: remove CONFIG_MMC_DW_IDMAC Shawn Lin
2015-08-05 8:34 ` Vineet Gupta
2015-08-05 8:48 ` Shawn Lin
2015-08-05 8:18 ` [RFC PATCH v3 4/5] mips: " Shawn Lin
2015-08-05 8:18 ` [RFC PATCH v3 5/5] ARM: dts: add supports-idmac property Shawn Lin
2015-08-05 8:52 ` Alexey Brodkin
2015-08-05 9:25 ` Shawn Lin
2015-08-05 23:45 ` [RFC PATCH v3 0/5] Krzysztof Kozlowski
2015-08-06 0:45 ` Shawn Lin
2015-08-06 1:47 ` Jaehoon Chung
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=55C1CFAA.4090100@rock-chips.com \
--to=shawn.lin@rock-chips.com \
--cc=abrodkin@synopsys.com \
--cc=alexandre.belloni@free-electrons.com \
--cc=alim.akhtar@samsung.com \
--cc=arnd@arndb.de \
--cc=chaotian.jing@mediatek.com \
--cc=dianders@chromium.org \
--cc=galak@codeaurora.org \
--cc=heiko@sntech.de \
--cc=ijc+devicetree@hellion.org.uk \
--cc=jh80.chung@samsung.com \
--cc=jun.nie@linaro.org \
--cc=k.kozlowski@samsung.com \
--cc=l.majewski@samsung.com \
--cc=linux-mips@linux-mips.org \
--cc=long.wanglong@huawei.com \
--cc=robh+dt@kernel.org \
--cc=stefan@agner.ch \
--cc=tgih.jun@samsung.com \
--cc=ulf.hansson@linaro.org \
--cc=wangzhou.bry@gmail.com \
/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).