ARM: dts: vf610-zii-dev-c: Fix switch EEPROM size
PATCH 1/1 ARM: dts: vf610-zii-dev-c: Fix switch EEPROM size
The two Ethernet switches have an AT24C512 each. This is a 64K device, not 512 bytes as currently listed in the device tree.
--- arch/arm/boot/dts/vf610-zii-dev-rev-c.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/vf610-zii-dev-rev-c.dts +2 -2
@@ -73,7 +73,7 @@ #size-cells = <0>; reg = <0>; dsa,member = <0 0>; - eeprom-length = <512>; + eeprom-length = <65536>; interrupt-parent = <&gpio0>; interrupts = <27 IRQ_TYPE_LEVEL_LOW>; interrupt-controller;
@@ -170,7 +170,7 @@ #size-cells = <0>; reg = <0>; dsa,member = <0 1>; - eeprom-length = <512>; + eeprom-length = <65536>; interrupt-parent = <&gpio0>; interrupts = <26 IRQ_TYPE_LEVEL_LOW>; interrupt-controller;
Signature · 1 line
2.15.0
PATCH 1/1 ARM: dts: vf610-zii-dev-c: Fix switch EEPROM size
Quoted 34 lines · Andrew Lunn
The two Ethernet switches have an AT24C512 each. This is a 64K device, not 512 bytes as currently listed in the device tree.
Reported-by Chris Healy <[email protected]>Signed-off-by Andrew Lunn <[email protected]>--- arch/arm/boot/dts/vf610-zii-dev-rev-c.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/arm/boot/dts/vf610-zii-dev-rev-c.dts +2
-3@@ -73,7 +73,7 @@ #size-cells = <0>; reg = <0>; dsa,member = <0 0>; - eeprom-length = <512>; + eeprom-length = <65536>; interrupt-parent = <&gpio0>; interrupts = <27 IRQ_TYPE_LEVEL_LOW>; interrupt-controller;@@ -170,7 +170,7 @@ #size-cells = <0>; reg = <0>; dsa,member = <0 1>; - eeprom-length = <512>; + eeprom-length = <65536>; interrupt-parent = <&gpio0>; interrupts = <26 IRQ_TYPE_LEVEL_LOW>; interrupt-controller; --2.15.0
PATCH 1/1 ARM: dts: vf610-zii-dev-c: Fix switch EEPROM size
In reply to Andrew LunnHi Andrew,
Quoted 14 lines · Andrew Lunn
The two Ethernet switches have an AT24C512 each. This is a 64K device, not 512 bytes as currently listed in the device tree.
Reported-by Chris Healy <[email protected]>Signed-off-by Andrew Lunn <[email protected]>--- arch/arm/boot/dts/vf610-zii-dev-rev-c.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/arm/boot/dts/vf610-zii-dev-rev-c.dts +0
-0
arch/arm/boot/dts/vf610-zii-dev-rev-c.dts line 76
Quoted 5 lines
arch/arm/boot/dts/vf610-zii-dev-rev-c.dts +1
-1@@ -73,7 +73,7 @@ #size-cells = <0>; reg = <0>; dsa,member = <0 0>; - eeprom-length = <512>; + eeprom-length = <65536>;
vf610-zii-dev-rev-b.dts also uses 512.
Should it be also changed or is it correct for the rev-b?
PATCH 1/1 ARM: dts: vf610-zii-dev-c: Fix switch EEPROM size
Hi Fabio
Quoted 3 lines
vf610-zii-dev-rev-b.dtsalso uses 512.Should it be also changed or is it correct for the rev-b?
Rev-B is correct. Rev-C has a newer generation of Ethernet switch, which has a little microcontroller in it. That microcontroller gets its code from the EEPROM. So a bigger EEPROM is required.
Andrew
PATCH 1/1 ARM: dts: vf610-zii-dev-c: Fix switch EEPROM size
Quoted 9 lines · Andrew Lunn
Hi Fabio
Quoted 3 lines
vf610-zii-dev-rev-b.dtsalso uses 512.Should it be also changed or is it correct for the rev-b?
Rev-B is correct. Rev-C has a newer generation of Ethernet switch, which has a little microcontroller in it. That microcontroller gets its code from the EEPROM. So a bigger EEPROM is required.
Thanks for the clarification:
Shawn Guo
AppliedPATCH 1/1 ARM: dts: vf610-zii-dev-c: Fix switch EEPROM size
In reply to Andrew LunnQuoted 5 lines · Andrew Lunn
The two Ethernet switches have an AT24C512 each. This is a 64K device, not 512 bytes as currently listed in the device tree.
Reported-by Chris Healy <[email protected]>Signed-off-by Andrew Lunn <[email protected]>
Applied, thanks.