ARM: mvebu: Added dts defintion for Lenovo Iomega ix4-300d NAS
PATCH 2/2 ARM: mvebu: Added dts defintion for Lenovo Iomega ix4-300d NAS
The Lenovo Iomega ix4-300d is a 4-Bay sata NAS with dual Gb,
USB2.0 & 3.0, powered by a Marvell Armada XP MV78230 dual core CPU.
http://shop.lenovo.com/us/en/servers/network-storage/lenovoemc/ix4-300d/
--- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts | 286 ++++++++++++++++++++++++ 2 files changed, 288 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts
arch/arm/boot/dts/Makefile +2 -1
@@ -437,8 +437,9 @@ dtb-$(CONFIG_MACH_ARMADA_XP) += \ armada-xp-axpwifiap.dtb \ armada-xp-db.dtb \ armada-xp-gp.dtb \ - armada-xp-netgear-rn2120.dtb \ + armada-xp-lenovo-ix4-300d.dtb \ armada-xp-matrix.dtb \ + armada-xp-netgear-rn2120.dtb \ armada-xp-openblocks-ax3-4.dtb dtb-$(CONFIG_MACH_DOVE) += dove-cm-a510.dtb \ dove-cubox.dtb \
arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts new file +286 -0
286 lines not on this page · raw message
Signature · 1 line
1.9.1
Hi Benoit
arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts line 121
Quoted 3 lines
arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts new file +3
-0+ i2c at 11000 { + compatible = "marvell,mv78230-a0-i2c", + "marvell,mv64xxx-i2c";
The point of my patches is that you don't need the "marvell,mv78230-a0-i2c". It will work out at runtime if the SoC is A0 stepping and automatically enable the workaround. Please test with only "marvell,mv64xxx-i2c";
Andrew
Arnd Bergmann
maintainerQuoted 11 lines · On Sunday 27 July 2014 03:52:44 Andrew Lunn wrote:
Hi Benoit
arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts line 121
Quoted 3 lines
arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts new file +3
-0+ i2c at 11000 { + compatible = "marvell,mv78230-a0-i2c", + "marvell,mv64xxx-i2c";The point of my patches is that you don't need the "marvell,mv78230-a0-i2c". It will work out at runtime if the SoC is A0 stepping and automatically enable the workaround. Please test with only "marvell,mv64xxx-i2c";
It should still list both "marvell,mv78230-i2c" and "marvell,mv64xxx-i2c", as the generic name may not be enough to describe the register layout correctly.
Arnd
Le 28 juil. 2014 ? 10:49, Arnd Bergmann <[email protected]> a ?crit :
Quoted 2 lines · On Sunday 27 July 2014 03:52:44 Andrew Lunn wrote:
Quoted 1 line
Hi Benoit
Hi Arnd,
Quoted 11 lines
Quoted 10 lines
arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts line 121
Quoted 4 lines
arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts new file +3
-0+ i2c at 11000 { + compatible = "marvell,mv78230-a0-i2c", + "marvell,mv64xxx-i2c";The point of my patches is that you don't need the "marvell,mv78230-a0-i2c". It will work out at runtime if the SoC is A0 stepping and automatically enable the workaround. Please test with only "marvell,mv64xxx-i2c";
Quoted 3 lines
It should still list both "marvell,mv78230-i2c" and "marvell,mv64xxx-i2c", as the generic name may not be enough to describe the register layout correctly.
I tend to disagree since the dts include the armada-xp.dtsi, which already declare
"i2c0: i2c at 11000 {
compatible = "marvell,mv78230-i2c", "marvell,mv64xxx-i2c";
reg = <0x11000 0x100>;
};"
I tested the dts on the device and it does inherits the i2c declaration, did I miss something here ?
Benoit
Quoted 1 line
Arnd
Arnd Bergmann
maintainerQuoted 7 lines · On Monday 28 July 2014 12:50:47 Benoit Masson wrote:
Quoted 4 lines
It should still list both "marvell,mv78230-i2c" and "marvell,mv64xxx-i2c", as the generic name may not be enough to describe the register layout correctly.
I tend to disagree since the dts include the
armada-xp.dtsi, which already declare
Quoted 8 lines
"i2c0: i2c at 11000 { compatible = "marvell,mv78230-i2c", "marvell,mv64xxx-i2c"; reg = <0x11000 0x100>; };"
I tested the dts on the device and it does inherits the i2c declaration, did I miss something here ?
Inheriting from armada-xp.dtsi is fine, but if you manually set "marvell,mv64xxx-i2c", that will override the old setting and drop the "marvell,mv78230-i2c" part, which is bad because it may break things later if it turns out that the mv78230 variant is not completely compatible with the old mv64xxx variant.
Arnd
Le 28 juil. 2014 ? 13:02, Arnd Bergmann <[email protected]> a ?crit :
Quoted 17 lines · On Monday 28 July 2014 12:50:47 Benoit Masson wrote:
Quoted 7 lines
Quoted 4 lines
It should still list both "marvell,mv78230-i2c" and "marvell,mv64xxx-i2c", as the generic name may not be enough to describe the register layout correctly.
I tend to disagree since the dts include the
armada-xp.dtsi, which already declareQuoted 8 lines
"i2c0: i2c at 11000 { compatible = "marvell,mv78230-i2c", "marvell,mv64xxx-i2c"; reg = <0x11000 0x100>; };"
I tested the dts on the device and it does inherits the i2c declaration, did I miss something here ?
Quoted 6 lines
Inheriting from
armada-xp.dtsiis fine, but if you manually set "marvell,mv64xxx-i2c", that will override the old setting and drop the "marvell,mv78230-i2c" part, which is bad because it may break things later if it turns out that the mv78230 variant is not completely compatible with the old mv64xxx variant.
Ok then does this mean I can simply remove the "compatible" line to only inherits from armada-xp-dtsi ?
"i2c at 11000 {
clock-frequency = <400000>;
status = "okay";"
Would this be enough ?
Benoit
Quoted 2 lines
Arnd
Arnd Bergmann
maintainerQuoted 9 lines · On Monday 28 July 2014 13:17:56 Benoit Masson wrote:
Ok then does this mean I can simply remove the "compatible" line to only inherits from armada-xp-dtsi ?
"i2c at 11000 { clock-frequency = <400000>; status = "okay";"
Would this be enough ?
Yes, this looks ideal.
Arnd