From: k.kozlowski@samsung.com (Krzysztof Kozlowski)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 1/4] Documentation: dt-bindings: Describe SROMc configuration
Date: Sun, 1 Nov 2015 17:15:44 +0900 [thread overview]
Message-ID: <5635CA30.8070901@samsung.com> (raw)
In-Reply-To: <CAL_JsqKhyB7d+HQ08241-za-7vHbU49TiWJHM2vrp6jVVh4h=A@mail.gmail.com>
W dniu 31.10.2015 o 02:15, Rob Herring pisze:
> On Fri, Oct 30, 2015 at 2:23 AM, Krzysztof Kozlowski
> <k.kozlowski@samsung.com> wrote:
>> On 30.10.2015 15:58, Pavel Fedin wrote:
>>> Hello!
>>>
>>>>> Add documentation for new subnode properties, allowing bank configuration.
>>>>> Based on u-boot implementation, but heavily reworked.
>>>>
>>>> Please, carefully look at:
>>>> Documentation/devicetree/bindings/net/gpmc-eth.txt
>>>> Documentation/devicetree/bindings/bus/ti-gpmc.txt
>>>
>>> Thank you very much. Indeed, this looks very similar. By the way, should i document smsc over sromc in the same manner, writing
>>> devicetree/bindings/net/sromc-eth.txt?
>>>
>>> This is a short reply for now, i'll make longer one (or just a new version) after studying these existing bindings and trying to
>>> apply them.
>>
>> Existing SROMC bindings document is small so one document for everything
>> should be sufficient. This can be always split if new type of devices
>> will be using SROMC (BTW, do you know of any other devices using SROMC
>> on Exynos?).
>>
>>>
>>> Pankaj:
>>>
>>>>> +&sromc {
>>>>> + pinctrl-names = "default";
>>>>> + pinctrl-0 = <&srom_ctl>, <&srom_ebi>;
>>>>> +
>>>>> + ethernet at 07000000 {
>>>>> + compatible = "smsc,lan9115";
>>>>> + reg = <0x07000000 0x10000>;
>>>>> + phy-mode = "mii";
>>>>> + interrupt-parent = <&gpx0>;
>>>>> + interrupts = <5 8>;
>>>>> + reg-io-width = <2>;
>>>>> + smsc,irq-push-pull;
>>>>> + smsc,force-internal-phy;
>>>>> +
>>>>> + samsung,srom-bank = <3>;
>>>>> + samsung,srom-data-width = <2>;
>>>>> + samsung,srom-timing = <1 9 12 1 9 1 1>;
>>>>
>>>> I think this is not correct. We can't change binding of "smsc,lan9115"
>>>> which is already documented here [1]. These samsung specific srom
>>>> properties should be in srom node or its subnode, but not in this way.
>>>
>>> So, if you look at gpmc-eth.txt, you'll see that this approach is perfectly valid (this is a reply to another msg, just don't want
>>> to post one more single-line reply).
>>
>>
>> Yes, the binding of smsc,lan9115 is not changed.
>>
>> Putting srom properties in separate bank node would be good also but
>> then some mapping (connection) between ethernet and bank should be added
>> probably...
>
> Is this to get some data needed by the ethernet from the ROM? We have
> the nvmem binding to support that.
No, this does not act like nvram driver. It is rather a memory
controller. The same as existing TI GPMC:
Documentation/devicetree/bindings/net/gpmc-eth.txt
although configuration is different so gpmc driver cannot be reused.
Best regards,
Krzysztof
next prev parent reply other threads:[~2015-11-01 8:15 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-29 12:42 [PATCH v4 0/4] [PATCH v4 0/4] Exynos SROMc configuration and Ethernet support for SMDK5410 Pavel Fedin
2015-10-29 12:42 ` [PATCH v4 1/4] Documentation: dt-bindings: Describe SROMc configuration Pavel Fedin
2015-10-30 6:30 ` Krzysztof Kozlowski
2015-10-30 6:58 ` Pavel Fedin
2015-10-30 7:23 ` Krzysztof Kozlowski
2015-10-30 17:15 ` Rob Herring
2015-11-01 8:15 ` Krzysztof Kozlowski [this message]
2015-10-30 10:43 ` Pavel Fedin
2015-11-01 8:48 ` Krzysztof Kozlowski
2015-11-02 7:31 ` Pavel Fedin
2015-11-03 0:16 ` Krzysztof Kozlowski
2015-11-03 6:58 ` Pavel Fedin
2015-11-03 7:18 ` Krzysztof Kozlowski
2015-10-29 12:42 ` [PATCH v4 2/4] ARM: dts: Add SROMc to Exynos 5410 Pavel Fedin
2015-10-29 17:28 ` Pankaj Dubey
2015-10-30 6:41 ` Pavel Fedin
2015-10-30 9:24 ` Pankaj Dubey
2015-10-30 10:51 ` Pavel Fedin
2015-10-29 12:42 ` [PATCH v4 3/4] drivers: exynos-srom: Add support for bank configuration Pavel Fedin
2015-10-29 12:42 ` [PATCH v4 4/4] ARM: dts: Add Ethernet chip to SMDK5410 Pavel Fedin
2015-10-29 17:40 ` Pankaj Dubey
2015-10-29 17:46 ` [PATCH v4 0/4] [PATCH v4 0/4] Exynos SROMc configuration and Ethernet support for SMDK5410 Pankaj Dubey
2015-10-30 6:43 ` Pavel Fedin
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=5635CA30.8070901@samsung.com \
--to=k.kozlowski@samsung.com \
--cc=linux-arm-kernel@lists.infradead.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).