Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1258764 > unrolled thread
| Started by | Pavel Fedin <p.fedin@samsung.com> |
|---|---|
| First post | 2015-10-29 13:50 +0100 |
| Last post | 2015-10-30 07:50 +0100 |
| Articles | 11 — 5 participants |
Back to article view | Back to linux.kernel
[PATCH v4 0/4] [PATCH v4 0/4] Exynos SROMc configuration and Ethernet support for SMDK5410 Pavel Fedin <p.fedin@samsung.com> - 2015-10-29 13:50 +0100
[PATCH v4 1/4] Documentation: dt-bindings: Describe SROMc configuration Pavel Fedin <p.fedin@samsung.com> - 2015-10-29 13:50 +0100
Re: [PATCH v4 1/4] Documentation: dt-bindings: Describe SROMc configuration Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2015-10-30 07:40 +0100
RE: [PATCH v4 1/4] Documentation: dt-bindings: Describe SROMc configuration Pavel Fedin <p.fedin@samsung.com> - 2015-10-30 08:00 +0100
Re: [PATCH v4 1/4] Documentation: dt-bindings: Describe SROMc configuration Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2015-10-30 08:30 +0100
Re: [PATCH v4 1/4] Documentation: dt-bindings: Describe SROMc configuration Rob Herring <robh+dt@kernel.org> - 2015-10-30 18:20 +0100
RE: [PATCH v4 1/4] Documentation: dt-bindings: Describe SROMc configuration Pavel Fedin <p.fedin@samsung.com> - 2015-10-30 11:50 +0100
[PATCH v4 4/4] ARM: dts: Add Ethernet chip to SMDK5410 Pavel Fedin <p.fedin@samsung.com> - 2015-10-29 13:50 +0100
Re: [PATCH v4 4/4] ARM: dts: Add Ethernet chip to SMDK5410 Pankaj Dubey <pankaj.dubey@samsung.com> - 2015-10-29 18:50 +0100
Re: [PATCH v4 0/4] [PATCH v4 0/4] Exynos SROMc configuration and Ethernet support for SMDK5410 Pankaj Dubey <dubepankaj1980@gmail.com> - 2015-10-29 18:50 +0100
RE: [PATCH v4 0/4] [PATCH v4 0/4] Exynos SROMc configuration and Ethernet support for SMDK5410 Pavel Fedin <p.fedin@samsung.com> - 2015-10-30 07:50 +0100
| From | Pavel Fedin <p.fedin@samsung.com> |
|---|---|
| Date | 2015-10-29 13:50 +0100 |
| Subject | [PATCH v4 0/4] [PATCH v4 0/4] Exynos SROMc configuration and Ethernet support for SMDK5410 |
| Message-ID | <qoUOt-dk-3@gated-at.bofh.it> |
This patch extends Exynos SROM controller driver with ability to configure controller outputs and enables SMSC9115 Ethernet chip on SMDK5410 board, which is connected via SROMc bank #3. With this patchset, support for the whole existing SMDK range can be added. Actually, only bank number is different. This patchset also depends on Exynos 5410 pinctrl support, introduced by patches 0003 and 0004 from this set: [PATCH v4 0/5] ARM: EXYNOS: ODROID-XU DT and LEDs http://lists.infradead.org/pipermail/linux-arm-kernel/2015-March/330862.html Pinctrl support is necessary in order to correctly configure multifunctional pins of the Exynos chip. v3 => v4: - Devices are now added as subnodes, with additional properties. This allows to cleary specify dependency. If configuration fails, error will be reported and child devices will not be probed. - These additional properties now have "samsung,srom-XXX" format - Fixed code style, now better understood. v2 => v3: - Fixed up SROMc region size in the device tree - Reordered patches, documentation goes first now v1 => v2: - Fixed some typos and bad labels in device tree - Improved documentation Pavel Fedin (4): Documentation: dt-bindings: Describe SROMc configuration ARM: dts: Add SROMc to Exynos 5410 drivers: exynos-srom: Add support for bank configuration ARM: dts: Add Ethernet chip to SMDK5410 .../bindings/arm/samsung/exynos-srom.txt | 50 ++++++++++++++++++- arch/arm/boot/dts/exynos5410-smdk5410.dts | 41 +++++++++++++++ arch/arm/boot/dts/exynos5410.dtsi | 15 ++++++ arch/arm/mach-exynos/Kconfig | 2 +- drivers/soc/samsung/Kconfig | 2 +- drivers/soc/samsung/exynos-srom.c | 58 +++++++++++++++++++++- 6 files changed, 162 insertions(+), 6 deletions(-) -- 2.4.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Pavel Fedin <p.fedin@samsung.com> |
|---|---|
| Date | 2015-10-29 13:50 +0100 |
| Subject | [PATCH v4 1/4] Documentation: dt-bindings: Describe SROMc configuration |
| Message-ID | <qoUOu-dk-19@gated-at.bofh.it> |
| In reply to | #1258764 |
Add documentation for new subnode properties, allowing bank configuration.
Based on u-boot implementation, but heavily reworked.
Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
---
.../bindings/arm/samsung/exynos-srom.txt | 50 +++++++++++++++++++++-
1 file changed, 48 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/arm/samsung/exynos-srom.txt b/Documentation/devicetree/bindings/arm/samsung/exynos-srom.txt
index 33886d5..02ecc7f 100644
--- a/Documentation/devicetree/bindings/arm/samsung/exynos-srom.txt
+++ b/Documentation/devicetree/bindings/arm/samsung/exynos-srom.txt
@@ -5,8 +5,54 @@ Required properties:
- reg: offset and length of the register set
-Example:
+- #address-cells, #size-cells : should be '1' if the device has sub-nodes
+ with 'reg' property.
+- ranges: allows valid 1:1 translation between child's address space and
+ parent's address space
+
+Sub-nodes:
+The SROM controller can be used to attach external peripherials. In this case
+device nodes should be added as subnodes to the SROMc node. These subnodes,
+except regular device specification, should contain the following properties,
+describing configuration of the relevant SROM bank:
+
+Required properties:
+- samsung,srom-bank : bank number (0 - 3)
+
+- samsung,srom-timing : array of 7 integers: PMC, Tacp, Tcah, Tcoh, Tacc, Tcos,
+ Tacs
+
+Optional properties:
+- samsung,srom-data-width : data width in bytes (1 or 2). If omitted, default
+ of 1 is used.
+
+Example: basic definition, no banks are configured
sromc@12570000 {
compatible = "samsung,exynos-srom";
- reg = <0x12570000 0x10>;
+ reg = <0x12570000 0x14>;
+ };
+
+Example: SROMc with smsc 911x ethernet chip on bank 3
+ sromc@12570000 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges;
+
+ compatible = "samsung,exynos-srom";
+ reg = <0x12570000 0x14>;
+
+ ethernet@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>;
+ };
};
--
2.4.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Krzysztof Kozlowski <k.kozlowski@samsung.com> |
|---|---|
| Date | 2015-10-30 07:40 +0100 |
| Subject | Re: [PATCH v4 1/4] Documentation: dt-bindings: Describe SROMc configuration |
| Message-ID | <qpbvY-2mp-11@gated-at.bofh.it> |
| In reply to | #1258765 |
On 29.10.2015 21:42, Pavel Fedin wrote:
> 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
1. Try to re-use existing bindings. Although I see existing bank-width
and gpmc,device-width but yours samsung,srom-data-width seems better.
Maybe there are other to re-use?
2. The array of "PMC, Tacp, Tcah, Tcoh, Tacc, Tcos, Tacs" is poorly
extendable and not very descriptive/readable. You mapped directly device
register which is the easier way for the driver but that is not the
purpose of binding.
3. Please provide ranges for valid values and units.
4. PMC is not a timing.
I doubt that TI GPMC could be used in Exynos SROM but please look at it
and get useful stuff from it.
Best regards,
Krzysztof
>
> Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
> ---
> .../bindings/arm/samsung/exynos-srom.txt | 50 +++++++++++++++++++++-
> 1 file changed, 48 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/arm/samsung/exynos-srom.txt b/Documentation/devicetree/bindings/arm/samsung/exynos-srom.txt
> index 33886d5..02ecc7f 100644
> --- a/Documentation/devicetree/bindings/arm/samsung/exynos-srom.txt
> +++ b/Documentation/devicetree/bindings/arm/samsung/exynos-srom.txt
> @@ -5,8 +5,54 @@ Required properties:
>
> - reg: offset and length of the register set
>
> -Example:
> +- #address-cells, #size-cells : should be '1' if the device has sub-nodes
> + with 'reg' property.
> +- ranges: allows valid 1:1 translation between child's address space and
> + parent's address space
> +
> +Sub-nodes:
> +The SROM controller can be used to attach external peripherials. In this case
> +device nodes should be added as subnodes to the SROMc node. These subnodes,
> +except regular device specification, should contain the following properties,
> +describing configuration of the relevant SROM bank:
> +
> +Required properties:
> +- samsung,srom-bank : bank number (0 - 3)
> +
> +- samsung,srom-timing : array of 7 integers: PMC, Tacp, Tcah, Tcoh, Tacc, Tcos,
> + Tacs
> +
> +Optional properties:
> +- samsung,srom-data-width : data width in bytes (1 or 2). If omitted, default
> + of 1 is used.
> +
> +Example: basic definition, no banks are configured
> sromc@12570000 {
> compatible = "samsung,exynos-srom";
> - reg = <0x12570000 0x10>;
> + reg = <0x12570000 0x14>;
> + };
> +
> +Example: SROMc with smsc 911x ethernet chip on bank 3
> + sromc@12570000 {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + ranges;
> +
> + compatible = "samsung,exynos-srom";
> + reg = <0x12570000 0x14>;
> +
> + ethernet@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>;
> + };
> };
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Pavel Fedin <p.fedin@samsung.com> |
|---|---|
| Date | 2015-10-30 08:00 +0100 |
| Subject | RE: [PATCH v4 1/4] Documentation: dt-bindings: Describe SROMc configuration |
| Message-ID | <qpbPj-2tf-7@gated-at.bofh.it> |
| In reply to | #1259245 |
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.
Pankaj:
> > +&sromc {
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&srom_ctl>, <&srom_ebi>;
> > +
> > + ethernet@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).
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Krzysztof Kozlowski <k.kozlowski@samsung.com> |
|---|---|
| Date | 2015-10-30 08:30 +0100 |
| Subject | Re: [PATCH v4 1/4] Documentation: dt-bindings: Describe SROMc configuration |
| Message-ID | <qpcil-2U7-3@gated-at.bofh.it> |
| In reply to | #1259252 |
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@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...
Best regards,
Krzysztof
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Rob Herring <robh+dt@kernel.org> |
|---|---|
| Date | 2015-10-30 18:20 +0100 |
| Subject | Re: [PATCH v4 1/4] Documentation: dt-bindings: Describe SROMc configuration |
| Message-ID | <qplvl-8A-21@gated-at.bofh.it> |
| In reply to | #1259271 |
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@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.
Rob
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Pavel Fedin <p.fedin@samsung.com> |
|---|---|
| Date | 2015-10-30 11:50 +0100 |
| Subject | RE: [PATCH v4 1/4] Documentation: dt-bindings: Describe SROMc configuration |
| Message-ID | <qpfpU-4J3-23@gated-at.bofh.it> |
| In reply to | #1259245 |
Hello!
> Please, carefully look at:
> Documentation/devicetree/bindings/net/gpmc-eth.txt
> Documentation/devicetree/bindings/bus/ti-gpmc.txt
>
> 1. Try to re-use existing bindings. Although I see existing bank-width
> and gpmc,device-width but yours samsung,srom-data-width seems better.
> Maybe there are other to re-use?
I've done this and this is what i currently came up with. I'd like to discuss this before respin because nobody needs this
back-and-forth bouncing.
--- cut exynos5410.dtsi ---
sromc: sromc@12250000 {
#address-cells = <2>;
#size-cells = <1>;
ranges = <0 0 0x04000000 0x20000
1 0 0x05000000 0x20000
2 0 0x06000000 0x20000
3 0 0x07000000 0x20000>;
compatible = "samsung,exynos-srom";
reg = <0x12250000 0x14>;
};
--- cut exynos5410.dtsi ---
--- cut exynos5410-smdk5410.dts ---
&sromc {
pinctrl-names = "default";
pinctrl-0 = <&srom_ctl>, <&srom_ebi>;
ethernet@3 {
compatible = "smsc,lan9115";
reg = <3 0 0x10000>;
phy-mode = "mii";
interrupt-parent = <&gpx0>;
interrupts = <5 8>;
reg-io-width = <2>;
smsc,irq-push-pull;
smsc,force-internal-phy;
samsung,srom-config = <1 9 12 1 9 1 1>;
};
};
--- cut exynos5410-smdk5410.dts ---
1. After writing proper ranges i was able to get rid of dedicated bank number property, because now it is the first value in
device's "reg".
2. I noticed that smsc binding already uses reg-io-width property. I searched for it, and it appears to be reused by many devices.
So, i decided to use it to specify bank width, since it's already there. ti-gpmc uses bank-width because it supports configurations
like reg-io-width = 4 && bank-width = 2. I don't know if it's possible to do the same with SROMc, Exynos doc doesn't tell anything
about 32-bit accesses. But, if you want to support it too, i would suggest the following algorithm:
if (have bank-width)
width = bank-width
else if (have reg-io-width)
width = reg-io-width
else
width = 1 /* default */
3. About samsung,srom-config array. I have the following reasons to keep if this way:
- listing every property under own name is just too much typing
- these values really do not make sense without each other, or partialy. I would say that in array form they are even better
readable, because it is the same order in which they go into the register. However, it is still a nice idea do document them, but...
my PDF has "confidential" watermark on it, and this would mean that i essentially copy some information from it into Linux doc. Is
it okay to do this?
If you still dislike the array, i'll redo is a set of properties like samsung,srom-tacs, samsung,srom-tcos, etc.
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Pavel Fedin <p.fedin@samsung.com> |
|---|---|
| Date | 2015-10-29 13:50 +0100 |
| Subject | [PATCH v4 4/4] ARM: dts: Add Ethernet chip to SMDK5410 |
| Message-ID | <qoUOu-dk-17@gated-at.bofh.it> |
| In reply to | #1258764 |
The chip is smsc9115, connected via SROMc bank 3. Additionally, some GPIO
initialization is required.
Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
---
arch/arm/boot/dts/exynos5410-smdk5410.dts | 41 +++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/arch/arm/boot/dts/exynos5410-smdk5410.dts b/arch/arm/boot/dts/exynos5410-smdk5410.dts
index cebeaab..311e7be 100644
--- a/arch/arm/boot/dts/exynos5410-smdk5410.dts
+++ b/arch/arm/boot/dts/exynos5410-smdk5410.dts
@@ -61,6 +61,27 @@
disable-wp;
};
+&pinctrl_0 {
+ srom_ctl: srom-ctl {
+ samsung,pins = "gpy0-3", "gpy0-4", "gpy0-5",
+ "gpy1-0", "gpy1-1", "gpy1-2", "gpy1-3";
+ samsung,pin-function = <2>;
+ samsung,pin-drv = <0>;
+ };
+
+ srom_ebi: srom-ebi {
+ samsung,pins = "gpy3-0", "gpy3-1", "gpy3-2", "gpy3-3",
+ "gpy3-4", "gpy3-5", "gpy3-6", "gpy3-7",
+ "gpy5-0", "gpy5-1", "gpy5-2", "gpy5-3",
+ "gpy5-4", "gpy5-5", "gpy5-6", "gpy5-7",
+ "gpy6-0", "gpy6-1", "gpy6-2", "gpy6-3",
+ "gpy6-4", "gpy6-5", "gpy6-6", "gpy6-7";
+ samsung,pin-function = <2>;
+ samsung,pin-pud = <3>;
+ samsung,pin-drv = <0>;
+ };
+};
+
&uart0 {
status = "okay";
};
@@ -72,3 +93,23 @@
&uart2 {
status = "okay";
};
+
+&sromc {
+ pinctrl-names = "default";
+ pinctrl-0 = <&srom_ctl>, <&srom_ebi>;
+
+ ethernet@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>;
+ };
+};
--
2.4.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Pankaj Dubey <pankaj.dubey@samsung.com> |
|---|---|
| Date | 2015-10-29 18:50 +0100 |
| Subject | Re: [PATCH v4 4/4] ARM: dts: Add Ethernet chip to SMDK5410 |
| Message-ID | <qoZuP-3fn-25@gated-at.bofh.it> |
| In reply to | #1258766 |
Hi Pavel,
On 29 October 2015 at 18:12, Pavel Fedin <p.fedin@samsung.com> wrote:
> The chip is smsc9115, connected via SROMc bank 3. Additionally, some GPIO
> initialization is required.
>
> Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
> ---
> arch/arm/boot/dts/exynos5410-smdk5410.dts | 41 +++++++++++++++++++++++++++++++
> 1 file changed, 41 insertions(+)
>
> diff --git a/arch/arm/boot/dts/exynos5410-smdk5410.dts b/arch/arm/boot/dts/exynos5410-smdk5410.dts
> index cebeaab..311e7be 100644
> --- a/arch/arm/boot/dts/exynos5410-smdk5410.dts
> +++ b/arch/arm/boot/dts/exynos5410-smdk5410.dts
> @@ -61,6 +61,27 @@
> disable-wp;
> };
>
> +&pinctrl_0 {
> + srom_ctl: srom-ctl {
> + samsung,pins = "gpy0-3", "gpy0-4", "gpy0-5",
> + "gpy1-0", "gpy1-1", "gpy1-2", "gpy1-3";
> + samsung,pin-function = <2>;
> + samsung,pin-drv = <0>;
> + };
> +
> + srom_ebi: srom-ebi {
> + samsung,pins = "gpy3-0", "gpy3-1", "gpy3-2", "gpy3-3",
> + "gpy3-4", "gpy3-5", "gpy3-6", "gpy3-7",
> + "gpy5-0", "gpy5-1", "gpy5-2", "gpy5-3",
> + "gpy5-4", "gpy5-5", "gpy5-6", "gpy5-7",
> + "gpy6-0", "gpy6-1", "gpy6-2", "gpy6-3",
> + "gpy6-4", "gpy6-5", "gpy6-6", "gpy6-7";
> + samsung,pin-function = <2>;
> + samsung,pin-pud = <3>;
> + samsung,pin-drv = <0>;
> + };
> +};
> +
> &uart0 {
> status = "okay";
> };
> @@ -72,3 +93,23 @@
> &uart2 {
> status = "okay";
> };
> +
> +&sromc {
> + pinctrl-names = "default";
> + pinctrl-0 = <&srom_ctl>, <&srom_ebi>;
> +
> + ethernet@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.
[1]: Documentation/devicetree/bindings/net/smsc911x.txt
Thanks,
Pankaj Dubey
> + };
> +};
> --
> 2.4.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Pankaj Dubey <dubepankaj1980@gmail.com> |
|---|---|
| Date | 2015-10-29 18:50 +0100 |
| Subject | Re: [PATCH v4 0/4] [PATCH v4 0/4] Exynos SROMc configuration and Ethernet support for SMDK5410 |
| Message-ID | <qoZuO-3fn-13@gated-at.bofh.it> |
| In reply to | #1258764 |
On 29 October 2015 at 18:12, Pavel Fedin <p.fedin@samsung.com> wrote: > This patch extends Exynos SROM controller driver with ability to configure > controller outputs and enables SMSC9115 Ethernet chip on SMDK5410 board, > which is connected via SROMc bank #3. > > With this patchset, support for the whole existing SMDK range can be added. > Actually, only bank number is different. > > This patchset also depends on Exynos 5410 pinctrl support, introduced by > patches 0003 and 0004 from this set: > [PATCH v4 0/5] ARM: EXYNOS: ODROID-XU DT and LEDs > http://lists.infradead.org/pipermail/linux-arm-kernel/2015-March/330862.html > > Pinctrl support is necessary in order to correctly configure > multifunctional pins of the Exynos chip. > > v3 => v4: > - Devices are now added as subnodes, with additional properties. This allows > to cleary specify dependency. If configuration fails, error will be reported > and child devices will not be probed. > - These additional properties now have "samsung,srom-XXX" format > - Fixed code style, now better understood. > > v2 => v3: > - Fixed up SROMc region size in the device tree > - Reordered patches, documentation goes first now > > v1 => v2: > - Fixed some typos and bad labels in device tree > - Improved documentation > > Pavel Fedin (4): > Documentation: dt-bindings: Describe SROMc configuration > ARM: dts: Add SROMc to Exynos 5410 > drivers: exynos-srom: Add support for bank configuration > ARM: dts: Add Ethernet chip to SMDK5410 > > .../bindings/arm/samsung/exynos-srom.txt | 50 ++++++++++++++++++- > arch/arm/boot/dts/exynos5410-smdk5410.dts | 41 +++++++++++++++ > arch/arm/boot/dts/exynos5410.dtsi | 15 ++++++ > arch/arm/mach-exynos/Kconfig | 2 +- > drivers/soc/samsung/Kconfig | 2 +- > drivers/soc/samsung/exynos-srom.c | 58 +++++++++++++++++++++- > 6 files changed, 162 insertions(+), 6 deletions(-) > Something wrong here, I am not able to find V4 1/4 and 3/4 in this mailing list. Thanks, Pankaj Dubey > -- > 2.4.4 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Pavel Fedin <p.fedin@samsung.com> |
|---|---|
| Date | 2015-10-30 07:50 +0100 |
| Subject | RE: [PATCH v4 0/4] [PATCH v4 0/4] Exynos SROMc configuration and Ethernet support for SMDK5410 |
| Message-ID | <qpbFD-2pD-3@gated-at.bofh.it> |
| In reply to | #1258933 |
Hello! > > .../bindings/arm/samsung/exynos-srom.txt | 50 ++++++++++++++++++- > > arch/arm/boot/dts/exynos5410-smdk5410.dts | 41 +++++++++++++++ > > arch/arm/boot/dts/exynos5410.dtsi | 15 ++++++ > > arch/arm/mach-exynos/Kconfig | 2 +- > > drivers/soc/samsung/Kconfig | 2 +- > > drivers/soc/samsung/exynos-srom.c | 58 +++++++++++++++++++++- > > 6 files changed, 162 insertions(+), 6 deletions(-) > > > > Something wrong here, I am not able to find V4 1/4 and 3/4 in this mailing list. Which mailing list is "this"? I've just rechecked, i've got my messages back on both (linux-samsung-soc and linux-arm-kernel). Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web