* [PATCH 2/7] ARM: dts: vf610-zii-dev-rev-c: Fix DSPI flash node name
2019-09-08 0:06 [PATCH 1/7] ARM: dts: vf610-zii-dev-rev-b: Fix SPI flash node name Andrey Smirnov
@ 2019-09-08 0:06 ` Andrey Smirnov
2019-09-08 0:06 ` [PATCH 3/7] ARM: dts: vf610-zii-cfu1: Configure "STATUS" LED as heartbeat Andrey Smirnov
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Andrey Smirnov @ 2019-09-08 0:06 UTC (permalink / raw)
To: barebox; +Cc: Andrey Smirnov
Latest upstream DTS renamed the node to flash@0, so we need to follow
suit.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
arch/arm/dts/vf610-zii-dev-rev-c.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/dts/vf610-zii-dev-rev-c.dts b/arch/arm/dts/vf610-zii-dev-rev-c.dts
index ecec0b1830..62c70c8905 100644
--- a/arch/arm/dts/vf610-zii-dev-rev-c.dts
+++ b/arch/arm/dts/vf610-zii-dev-rev-c.dts
@@ -21,7 +21,7 @@
};
&dspi0 {
- m25p128@0 {
+ flash@0 {
#address-cells = <1>;
#size-cells = <0>;
--
2.21.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 3/7] ARM: dts: vf610-zii-cfu1: Configure "STATUS" LED as heartbeat
2019-09-08 0:06 [PATCH 1/7] ARM: dts: vf610-zii-dev-rev-b: Fix SPI flash node name Andrey Smirnov
2019-09-08 0:06 ` [PATCH 2/7] ARM: dts: vf610-zii-dev-rev-c: Fix DSPI " Andrey Smirnov
@ 2019-09-08 0:06 ` Andrey Smirnov
2019-09-08 0:06 ` [PATCH 4/7] ARM: dts: vf610-zii-cfu1: Expose fiber optic module EEPROM Andrey Smirnov
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Andrey Smirnov @ 2019-09-08 0:06 UTC (permalink / raw)
To: barebox; +Cc: Andrey Smirnov, Chris Healy
Configure "STATUS" LED as heartbeat in addition to "DEBUG" LED not
exposed on the front panel. This way it becomes a bit easier to see
what part of the boot process the device is at.
Suggested-by: Chris Healy <cphealy@gmail.com>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
arch/arm/dts/vf610-zii-cfu1.dts | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/dts/vf610-zii-cfu1.dts b/arch/arm/dts/vf610-zii-cfu1.dts
index a9793adc3c..aace448e76 100644
--- a/arch/arm/dts/vf610-zii-cfu1.dts
+++ b/arch/arm/dts/vf610-zii-cfu1.dts
@@ -17,4 +17,10 @@
*/
switch-eeprom = &switch0;
};
+
+ gpio-leds {
+ led-status {
+ linux,default-trigger = "heartbeat";
+ };
+ };
};
--
2.21.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 4/7] ARM: dts: vf610-zii-cfu1: Expose fiber optic module EEPROM
2019-09-08 0:06 [PATCH 1/7] ARM: dts: vf610-zii-dev-rev-b: Fix SPI flash node name Andrey Smirnov
2019-09-08 0:06 ` [PATCH 2/7] ARM: dts: vf610-zii-dev-rev-c: Fix DSPI " Andrey Smirnov
2019-09-08 0:06 ` [PATCH 3/7] ARM: dts: vf610-zii-cfu1: Configure "STATUS" LED as heartbeat Andrey Smirnov
@ 2019-09-08 0:06 ` Andrey Smirnov
2019-09-08 0:06 ` [PATCH 5/7] ARM: dts: vf610-zii-scu4-aib: Expose fiber EEPROM modules Andrey Smirnov
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Andrey Smirnov @ 2019-09-08 0:06 UTC (permalink / raw)
To: barebox; +Cc: Andrey Smirnov
EEPROM on a fiber optic module present on CFU1 can be exposed as a
AT24 compatible device. Add corresponding DT node needed for that.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
arch/arm/dts/vf610-zii-cfu1.dts | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/dts/vf610-zii-cfu1.dts b/arch/arm/dts/vf610-zii-cfu1.dts
index aace448e76..70cd9d1ba9 100644
--- a/arch/arm/dts/vf610-zii-cfu1.dts
+++ b/arch/arm/dts/vf610-zii-cfu1.dts
@@ -16,6 +16,7 @@
* fact to create a desirable naming
*/
switch-eeprom = &switch0;
+ fiber-eeprom0 = &fiber_eeprom0;
};
gpio-leds {
@@ -24,3 +25,11 @@
};
};
};
+
+&i2c0 {
+ fiber_eeprom0: eeprom@50 {
+ compatible = "atmel,24c04";
+ reg = <0x50>;
+ label = "fiber0";
+ };
+};
--
2.21.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 5/7] ARM: dts: vf610-zii-scu4-aib: Expose fiber EEPROM modules
2019-09-08 0:06 [PATCH 1/7] ARM: dts: vf610-zii-dev-rev-b: Fix SPI flash node name Andrey Smirnov
` (2 preceding siblings ...)
2019-09-08 0:06 ` [PATCH 4/7] ARM: dts: vf610-zii-cfu1: Expose fiber optic module EEPROM Andrey Smirnov
@ 2019-09-08 0:06 ` Andrey Smirnov
2019-09-08 0:06 ` [PATCH 6/7] ARM: dts: imx8mq-zii-ultra: Add switch EEPROM alias Andrey Smirnov
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Andrey Smirnov @ 2019-09-08 0:06 UTC (permalink / raw)
To: barebox; +Cc: Andrey Smirnov
EEPROM on a fiber optic modules present on SCU4 can be exposed as a
AT24 compatible device. Add corresponding DT node needed for that.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
arch/arm/dts/vf610-zii-scu4-aib.dts | 90 +++++++++++++++++++++++++++++
1 file changed, 90 insertions(+)
diff --git a/arch/arm/dts/vf610-zii-scu4-aib.dts b/arch/arm/dts/vf610-zii-scu4-aib.dts
index abe9e14fd7..43a13e243d 100644
--- a/arch/arm/dts/vf610-zii-scu4-aib.dts
+++ b/arch/arm/dts/vf610-zii-scu4-aib.dts
@@ -17,5 +17,95 @@
switch1-eeprom = &switch1;
switch2-eeprom = &switch2;
switch3-eeprom = &switch3;
+ fiber-eeprom0 = &fiber_eeprom0;
+ fiber-eeprom1 = &fiber_eeprom1;
+ fiber-eeprom2 = &fiber_eeprom2;
+ fiber-eeprom3 = &fiber_eeprom3;
+ fiber-eeprom4 = &fiber_eeprom4;
+ fiber-eeprom5 = &fiber_eeprom5;
+ fiber-eeprom6 = &fiber_eeprom6;
+ fiber-eeprom7 = &fiber_eeprom7;
+ fiber-eeprom8 = &fiber_eeprom8;
+ fiber-eeprom9 = &fiber_eeprom9;
+ };
+};
+
+&sff0_i2c {
+ fiber_eeprom0: eeprom@50 {
+ compatible = "atmel,24c04";
+ reg = <0x50>;
+ label = "fiber0";
+ };
+};
+
+&sff1_i2c {
+ fiber_eeprom1: eeprom@50 {
+ compatible = "atmel,24c04";
+ reg = <0x50>;
+ label = "fiber1";
+ };
+};
+
+&sff2_i2c {
+ fiber_eeprom2: eeprom@50 {
+ compatible = "atmel,24c04";
+ reg = <0x50>;
+ label = "fiber2";
+ };
+};
+
+&sff3_i2c {
+ fiber_eeprom3: eeprom@50 {
+ compatible = "atmel,24c04";
+ reg = <0x50>;
+ label = "fiber3";
+ };
+};
+
+&sff4_i2c {
+ fiber_eeprom4: eeprom@50 {
+ compatible = "atmel,24c04";
+ reg = <0x50>;
+ label = "fiber4";
+ };
+};
+
+&sff5_i2c {
+ fiber_eeprom5: eeprom@50 {
+ compatible = "atmel,24c04";
+ reg = <0x50>;
+ label = "fiber5";
+ };
+};
+
+&sff6_i2c {
+ fiber_eeprom6: eeprom@50 {
+ compatible = "atmel,24c04";
+ reg = <0x50>;
+ label = "fiber6";
+ };
+};
+
+&sff7_i2c {
+ fiber_eeprom7: eeprom@50 {
+ compatible = "atmel,24c04";
+ reg = <0x50>;
+ label = "fiber7";
+ };
+};
+
+&sff8_i2c {
+ fiber_eeprom8: eeprom@50 {
+ compatible = "atmel,24c04";
+ reg = <0x50>;
+ label = "fiber8";
+ };
+};
+
+&sff9_i2c {
+ fiber_eeprom9: eeprom@50 {
+ compatible = "atmel,24c04";
+ reg = <0x50>;
+ label = "fiber9";
};
};
--
2.21.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 6/7] ARM: dts: imx8mq-zii-ultra: Add switch EEPROM alias
2019-09-08 0:06 [PATCH 1/7] ARM: dts: vf610-zii-dev-rev-b: Fix SPI flash node name Andrey Smirnov
` (3 preceding siblings ...)
2019-09-08 0:06 ` [PATCH 5/7] ARM: dts: vf610-zii-scu4-aib: Expose fiber EEPROM modules Andrey Smirnov
@ 2019-09-08 0:06 ` Andrey Smirnov
2019-09-08 0:06 ` [PATCH 7/7] ARM: zii-vf610-dev: Re-align SCU4's hostname with upstream kernel Andrey Smirnov
2019-09-09 8:53 ` [PATCH 1/7] ARM: dts: vf610-zii-dev-rev-b: Fix SPI flash node name Sascha Hauer
6 siblings, 0 replies; 8+ messages in thread
From: Andrey Smirnov @ 2019-09-08 0:06 UTC (permalink / raw)
To: barebox; +Cc: Andrey Smirnov
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
arch/arm/dts/imx8mq-zii-ultra.dtsi | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/dts/imx8mq-zii-ultra.dtsi b/arch/arm/dts/imx8mq-zii-ultra.dtsi
index 53679b0d3c..6e41e820b8 100644
--- a/arch/arm/dts/imx8mq-zii-ultra.dtsi
+++ b/arch/arm/dts/imx8mq-zii-ultra.dtsi
@@ -23,6 +23,15 @@
};
};
+ aliases {
+ /*
+ * NVMEM device corresponding to EEPROM attached to
+ * the switch shared DT node with it, so we use that
+ * fact to create a desirable naming
+ */
+ switch-eeprom = &switch;
+ };
+
mdio0: bitbang-mdio {
compatible = "virtual,mdio-gpio";
pinctrl-names = "default";
--
2.21.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 7/7] ARM: zii-vf610-dev: Re-align SCU4's hostname with upstream kernel
2019-09-08 0:06 [PATCH 1/7] ARM: dts: vf610-zii-dev-rev-b: Fix SPI flash node name Andrey Smirnov
` (4 preceding siblings ...)
2019-09-08 0:06 ` [PATCH 6/7] ARM: dts: imx8mq-zii-ultra: Add switch EEPROM alias Andrey Smirnov
@ 2019-09-08 0:06 ` Andrey Smirnov
2019-09-09 8:53 ` [PATCH 1/7] ARM: dts: vf610-zii-dev-rev-b: Fix SPI flash node name Sascha Hauer
6 siblings, 0 replies; 8+ messages in thread
From: Andrey Smirnov @ 2019-09-08 0:06 UTC (permalink / raw)
To: barebox; +Cc: Andrey Smirnov
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
arch/arm/boards/zii-vf610-dev/board.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boards/zii-vf610-dev/board.c b/arch/arm/boards/zii-vf610-dev/board.c
index 0697a1660e..1d10f12f63 100644
--- a/arch/arm/boards/zii-vf610-dev/board.c
+++ b/arch/arm/boards/zii-vf610-dev/board.c
@@ -128,7 +128,7 @@ static int zii_vf610_dev_set_hostname(void)
{ "zii,vf610cfu1", "cfu1" },
{ "zii,vf610dev-b", "dev-rev-b" },
{ "zii,vf610dev-c", "dev-rev-c" },
- { "zii,vf610scu4-aib-c", "scu4-aib-rev-c" },
+ { "zii,vf610scu4-aib", "scu4-aib" },
};
if (!of_machine_is_compatible("zii,vf610dev"))
--
2.21.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/7] ARM: dts: vf610-zii-dev-rev-b: Fix SPI flash node name
2019-09-08 0:06 [PATCH 1/7] ARM: dts: vf610-zii-dev-rev-b: Fix SPI flash node name Andrey Smirnov
` (5 preceding siblings ...)
2019-09-08 0:06 ` [PATCH 7/7] ARM: zii-vf610-dev: Re-align SCU4's hostname with upstream kernel Andrey Smirnov
@ 2019-09-09 8:53 ` Sascha Hauer
6 siblings, 0 replies; 8+ messages in thread
From: Sascha Hauer @ 2019-09-09 8:53 UTC (permalink / raw)
To: Andrey Smirnov; +Cc: barebox
On Sat, Sep 07, 2019 at 05:06:09PM -0700, Andrey Smirnov wrote:
> Latest upstream DTS renamed the node to flash@0, so we need to follow
> suit.
>
> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
> ---
> arch/arm/dts/vf610-zii-dev-rev-b.dts | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks. Some of the patches didn't apply cleanly, please check
the result.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 8+ messages in thread