Skip to contentSkip to conversation

ARM: zynq: Extend picozed board support

PATCH New Michal Simek 3 participants 9 messages Oct 17, 2016 – Oct 18, 2016 3 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#2 lore raw

PATCH 1/1 ARM: zynq: Extend picozed board support

In reply to a message not in the archive

Hi,

and I forget to mentioned. Use mainline mailing list instead of xilinx one.

Thanks,
Michal

Quoted 53 lines · Michal Simek
Quoted 12 lines · Oscar Gomez Fuente

Add missing DT nodes.

---
 arch/arm/dts/zynq-picozed.dts | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
arch/arm/dts/zynq-picozed.dts +0 -0
index 3408df8..5f703a2 100644

arch/arm/dts/zynq-picozed.dts line 29

Quoted 4 lines
arch/arm/dts/zynq-picozed.dts +1 -0
@@ -26,3 +26,23 @@
 	u-boot,dm-pre-reloc;
 	status = "okay";
 };
+

please also extended aliases list.

arch/arm/dts/zynq-picozed.dts line 36

Quoted 7 lines
arch/arm/dts/zynq-picozed.dts +7 -0
+&gem0 {
+	status = "okay";
+	phy-mode = "rgmii-id";
+	phy-handle = <&ethernet_phy>;
+
+	ethernet_phy: ethernet-phy at 0 {
+		reg = <0>;

I expect that this is on board 88e1512

arch/arm/dts/zynq-picozed.dts line 43

Quoted 7 lines
arch/arm/dts/zynq-picozed.dts +7 -0
+	};
+};
+
+&qspi {
+	u-boot,dm-pre-reloc;
+	status = "okay";
+	};

wrong indentation here.

arch/arm/dts/zynq-picozed.dts line 45

Quoted 2 lines
arch/arm/dts/zynq-picozed.dts +2 -0
+
+&sdhci0 {

is this sd0 or sd1 hard IP? I expect that this is emmc right?

arch/arm/dts/zynq-picozed.dts line 48

Quoted 4 lines
arch/arm/dts/zynq-picozed.dts +3 -0
+	u-boot,dm-pre-reloc;
+	status = "okay";
+};

Thanks,
Michal

#4 lore raw

PATCH 1/1 ARM: zynq: Extend picozed board support

In reply to a message not in the archive
Quoted 35 lines · Oscar Gomez Fuente

Hi everyone,

Sorry for the errors, I know is a very simple patch but it's my first time.

------------------------------------------------------------------------------------------

Quoted 12 lines

Add missing DT nodes.

---
 arch/arm/dts/zynq-picozed.dts | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
arch/arm/dts/zynq-picozed.dts +0 -0
index 3408df8..5f703a2 100644

arch/arm/dts/zynq-picozed.dts line 29

Quoted 4 lines
arch/arm/dts/zynq-picozed.dts +1 -0
@@ -26,3 +26,23 @@
      u-boot,dm-pre-reloc;
      status = "okay";
 };
+

please also extended aliases list.
------------------------------------------------------------------------------------------
-> Ok, Understood.

------------------------------------------------------------------------------------------

arch/arm/dts/zynq-picozed.dts line 36

Quoted 7 lines
arch/arm/dts/zynq-picozed.dts +7 -0
+&gem0 {
+     status = "okay";
+     phy-mode = "rgmii-id";
+     phy-handle = <&ethernet_phy>;
+
+     ethernet_phy: ethernet-phy at 0 {
+             reg = <0>;
Quoted 4 lines

I expect that this is on board 88e1512
------------------------------------------------------------------------------------------
-> Yes, this is on board 88e1512. Do I have to modify anything? I think that's good, isn't it?

nope.

Quoted 14 lines

------------------------------------------------------------------------------------------

arch/arm/dts/zynq-picozed.dts line 43

Quoted 7 lines
arch/arm/dts/zynq-picozed.dts +7 -0
+     };
+};
+
+&qspi {
+     u-boot,dm-pre-reloc;
+     status = "okay";
+     };

wrong indentation here.
------------------------------------------------------------------------------------------
-> Ok, sorry.

Quoted 7 lines

------------------------------------------------------------------------------------------

arch/arm/dts/zynq-picozed.dts line 45

Quoted 2 lines
arch/arm/dts/zynq-picozed.dts +2 -0
+
+&sdhci0 {

is this sd0 or sd1 hard IP? I expect that this is emmc right?
------------------------------------------------------------------------------------------
-> sdhci0 is sd0 IP, the Sd Card on the PicoZed FMC Carrier.

Then this shouldn't be the part of this file. picozed is SOM and you should describe all stuff which are just on this module. If you want to support Picozed with any carrier board you should describe it separately. The best carrier and include picozed dts.

Quoted 8 lines

arch/arm/dts/zynq-picozed.dts line 48

Quoted 5 lines
arch/arm/dts/zynq-picozed.dts +3 -0
+     u-boot,dm-pre-reloc;
+     status = "okay";
+};

If everything is ok now, I'll send the patch to mainline mailing list instead of xilinx one.

I have changed emails.

Quoted 5 lines

Another question: Do you know if there is any perl script to check dts files before sending it? I've run the ./scripts/checkpatch.pl to check the arch/arm/dts/zynq-picozed.dts file and I didn't get any error.

checkpatch is not designed to parse DTS files and I am not sure if there is any parser.

Thanks,
Michal

#5 lore raw

PATCH 1/1 ARM: zynq: Extend picozed board support

Ok Michal,

Then you're suggesting change the zynq-picozed.dts file to:

arch/arm/dts/zynq-picozed.dts +17 -0
index 3408df8..d8ed298 100644
@@ -14,6 +14,8 @@
 
        aliases {
                serial0 = &uart1;
+               spi0 = &qspi;
+               ethernet0 = &gem0;
        };
 
        memory {
@@ -26,3 +28,18 @@
        u-boot,dm-pre-reloc;
        status = "okay";
 };
+
+&qspi {
+       u-boot,dm-pre-reloc;
+       status = "okay";
+};
+
+&gem0 {
+       status = "okay";
+       phy-mode = "rgmii-id";
+       phy-handle = <&ethernet_phy>;
+
+       ethernet_phy: ethernet-phy at 0 {
+               reg = <0>;
+       };
+};

And add a new dts file with the configuration of the PizoZed FMC Carrier V2 (in this case V2. Avnet has two PicoZed FMC carriers V1 and V2). For
example: zynq-picozed-fmc-v2.dts

*
* Avnet PicoZed FMC carrier V2 DTS
*
* Copyright (C) 2015 Xilinx, Inc.
*
* SPDX-License-Identifier: GPL-2.0+
*/
/dts-v1/;
#include "zynq-picozed.dts"

/ {
compatible = "xlnx,zynq-picozed", "xlnx,zynq-7000";

aliases {
mmc0 = &sdhci0;
};
};

&sdhci0 {
u-boot,dm-pre-reloc;
status = "okay";
};

Do you think the is the best way?

Best regards.

Oscar Gomez Fuente

Quoted 106 lines · Michal Simek
Quoted 3 lines · Oscar Gomez Fuente

Hi everyone,

Sorry for the errors, I know is a very simple patch but it's my first

time.

Quoted 2 lines

------------------------------------------------------------

------------------------------

Quoted 8 lines

Review

Quoted 8 lines

Add missing DT nodes.

---
 arch/arm/dts/zynq-picozed.dts | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
(quoted diff) +0 -0

b/arch/arm/dts/zynq-picozed.dts

Quoted 11 lines

arch/arm/dts/zynq-picozed.dts line 29

Quoted 8 lines

index 3408df8..5f703a2 100644

arch/arm/dts/zynq-picozed.dts +1 -0
@@ -26,3 +26,23 @@
      u-boot,dm-pre-reloc;
      status = "okay";
 };
+

please also extended aliases list.
------------------------------------------------------------

------------------------------

Quoted 3 lines

-> Ok, Understood.

------------------------------------------------------------

------------------------------

Quoted 10 lines

arch/arm/dts/zynq-picozed.dts line 36

Quoted 7 lines
arch/arm/dts/zynq-picozed.dts +7 -0
+&gem0 {
+     status = "okay";
+     phy-mode = "rgmii-id";
+     phy-handle = <&ethernet_phy>;
+
+     ethernet_phy: ethernet-phy at 0 {
+             reg = <0>;

I expect that this is on board 88e1512
------------------------------------------------------------

------------------------------

Quoted 2 lines

-> Yes, this is on board 88e1512. Do I have to modify anything? I think that's good, isn't it?

nope.

Quoted 2 lines

------------------------------------------------------------

------------------------------

Quoted 10 lines

arch/arm/dts/zynq-picozed.dts line 43

Quoted 7 lines
arch/arm/dts/zynq-picozed.dts +7 -0
+     };
+};
+
+&qspi {
+     u-boot,dm-pre-reloc;
+     status = "okay";
+     };

wrong indentation here.
------------------------------------------------------------

------------------------------

Quoted 3 lines

-> Ok, sorry.

------------------------------------------------------------

------------------------------

Quoted 5 lines

arch/arm/dts/zynq-picozed.dts line 45

Quoted 2 lines
arch/arm/dts/zynq-picozed.dts +2 -0
+
+&sdhci0 {

is this sd0 or sd1 hard IP? I expect that this is emmc right?
------------------------------------------------------------

------------------------------

Quoted 1 line

-> sdhci0 is sd0 IP, the Sd Card on the PicoZed FMC Carrier.

Then this shouldn't be the part of this file. picozed is SOM and you should describe all stuff which are just on this module. If you want to support Picozed with any carrier board you should describe it separately. The best carrier and include picozed dts.

Quoted 8 lines

arch/arm/dts/zynq-picozed.dts line 48

Quoted 5 lines
arch/arm/dts/zynq-picozed.dts +3 -0
+     u-boot,dm-pre-reloc;
+     status = "okay";
+};

If everything is ok now, I'll send the patch to mainline mailing list instead of xilinx one.

I have changed emails.

Quoted 4 lines

Another question: Do you know if there is any perl script to check dts files before sending it? I've run the ./scripts/checkpatch.pl to check

the

Quoted 1 line

arch/arm/dts/zynq-picozed.dts file and I didn't get any error.

checkpatch is not designed to parse DTS files and I am not sure if there is any parser.

Thanks,
Michal

#6 lore raw

PATCH 1/1 ARM: zynq: Extend picozed board support

Hi Oscar,

Quoted 3 lines · Oscar Gomez Fuente

Ok Michal,

Then you're suggesting change the zynq-picozed.dts file to:

If you're planning to include this into others, make it a .dtsi file.

Quoted 38 lines
arch/arm/dts/zynq-picozed.dts +17 -0
index 3408df8..d8ed298 100644
@@ -14,6 +14,8 @@
 
        aliases {
                serial0 = &uart1;
+               spi0 = &qspi;
+               ethernet0 = &gem0;
        };
 
        memory {
@@ -26,3 +28,18 @@
        u-boot,dm-pre-reloc;
        status = "okay";
 };
+
+&qspi {
+       u-boot,dm-pre-reloc;
+       status = "okay";
+};
+
+&gem0 {
+       status = "okay";
+       phy-mode = "rgmii-id";
+       phy-handle = <&ethernet_phy>;
+
+       ethernet_phy: ethernet-phy at 0 {
+               reg = <0>;
+       };
+};

And add a new dts file with the configuration of the PizoZed FMC Carrier V2 (in this case V2. Avnet has two PicoZed FMC carriers V1 and V2). For
example: zynq-picozed-fmc-v2.dts

Quoted 9 lines

*
* Avnet PicoZed FMC carrier V2 DTS
*
* Copyright (C) 2015 Xilinx, Inc.
*
* SPDX-License-Identifier: GPL-2.0+
*/
/dts-v1/;
#include "zynq-picozed.dts"

should be a .dtsi file then.

Quoted 126 lines

/ {
compatible = "xlnx,zynq-picozed", "xlnx,zynq-7000";

aliases {
mmc0 = &sdhci0;
};
};

&sdhci0 {
u-boot,dm-pre-reloc;
status = "okay";
};

Do you think the is the best way?

Best regards.

Oscar Gomez Fuente

Quoted 103 lines · Michal Simek
Quoted 3 lines · Oscar Gomez Fuente

Hi everyone,

Sorry for the errors, I know is a very simple patch but it's my first

time.

Quoted 2 lines

------------------------------------------------------------

------------------------------

Quoted 8 lines

Review

Quoted 8 lines

Add missing DT nodes.

---
 arch/arm/dts/zynq-picozed.dts | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
(quoted diff) +0 -0

b/arch/arm/dts/zynq-picozed.dts

Quoted 11 lines

arch/arm/dts/zynq-picozed.dts line 29

Quoted 8 lines

index 3408df8..5f703a2 100644

arch/arm/dts/zynq-picozed.dts +1 -0
@@ -26,3 +26,23 @@
      u-boot,dm-pre-reloc;
      status = "okay";
 };
+

please also extended aliases list.
------------------------------------------------------------

------------------------------

Quoted 3 lines

-> Ok, Understood.

------------------------------------------------------------

------------------------------

Quoted 10 lines

arch/arm/dts/zynq-picozed.dts line 43

Quoted 7 lines
arch/arm/dts/zynq-picozed.dts +7 -0
+&gem0 {
+     status = "okay";
+     phy-mode = "rgmii-id";
+     phy-handle = <&ethernet_phy>;
+
+     ethernet_phy: ethernet-phy at 0 {
+             reg = <0>;

I expect that this is on board 88e1512
------------------------------------------------------------

------------------------------

Quoted 2 lines

-> Yes, this is on board 88e1512. Do I have to modify anything? I think that's good, isn't it?

nope.

Quoted 2 lines

------------------------------------------------------------

------------------------------

Quoted 10 lines

arch/arm/dts/zynq-picozed.dts line 35

Quoted 7 lines
arch/arm/dts/zynq-picozed.dts +7 -0
+     };
+};
+
+&qspi {
+     u-boot,dm-pre-reloc;
+     status = "okay";
+     };

wrong indentation here.
------------------------------------------------------------

------------------------------

Quoted 3 lines

-> Ok, sorry.

------------------------------------------------------------

------------------------------

Quoted 5 lines

arch/arm/dts/zynq-picozed.dts line 45

Quoted 2 lines
arch/arm/dts/zynq-picozed.dts +2 -0
+
+&sdhci0 {

is this sd0 or sd1 hard IP? I expect that this is emmc right?
------------------------------------------------------------

------------------------------

Quoted 1 line

-> sdhci0 is sd0 IP, the Sd Card on the PicoZed FMC Carrier.

Then this shouldn't be the part of this file. picozed is SOM and you should describe all stuff which are just on this module. If you want to support Picozed with any carrier board you should describe it separately. The best carrier and include picozed dts.

Quoted 8 lines

arch/arm/dts/zynq-picozed.dts line 35

Quoted 5 lines
arch/arm/dts/zynq-picozed.dts +3 -0
+     u-boot,dm-pre-reloc;
+     status = "okay";
+};

If everything is ok now, I'll send the patch to mainline mailing list instead of xilinx one.

I have changed emails.

Quoted 4 lines

Another question: Do you know if there is any perl script to check dts files before sending it? I've run the ./scripts/checkpatch.pl to check

the

Quoted 1 line

arch/arm/dts/zynq-picozed.dts file and I didn't get any error.

checkpatch is not designed to parse DTS files and I am not sure if there is any parser.

Quoted 7 lines
Quoted 3 lines

Thanks,
Michal

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Thanks,

Moritz

#7 lore raw

PATCH 1/1 ARM: zynq: Extend picozed board support

Quoted 48 lines · Moritz Fischer

Hi Oscar,

Quoted 3 lines · Oscar Gomez Fuente

Ok Michal,

Then you're suggesting change the zynq-picozed.dts file to:

If you're planning to include this into others, make it a .dtsi file.

Quoted 38 lines
arch/arm/dts/zynq-picozed.dts +17 -0
index 3408df8..d8ed298 100644
@@ -14,6 +14,8 @@
 
        aliases {
                serial0 = &uart1;
+               spi0 = &qspi;
+               ethernet0 = &gem0;
        };
 
        memory {
@@ -26,3 +28,18 @@
        u-boot,dm-pre-reloc;
        status = "okay";
 };
+
+&qspi {
+       u-boot,dm-pre-reloc;
+       status = "okay";
+};
+
+&gem0 {
+       status = "okay";
+       phy-mode = "rgmii-id";
+       phy-handle = <&ethernet_phy>;
+
+       ethernet_phy: ethernet-phy at 0 {
+               reg = <0>;
+       };
+};

And add a new dts file with the configuration of the PizoZed FMC Carrier V2 (in this case V2. Avnet has two PicoZed FMC carriers V1 and V2). For
example: zynq-picozed-fmc-v2.dts

Quoted 11 lines
Quoted 9 lines

*
* Avnet PicoZed FMC carrier V2 DTS
*
* Copyright (C) 2015 Xilinx, Inc.
*
* SPDX-License-Identifier: GPL-2.0+
*/
/dts-v1/;
#include "zynq-picozed.dts"

should be a .dtsi file then.

If you can't use picozed without carrier board then zynq-picozed should be dtsi.

Thanks,
Michal

#8 lore raw

PATCH 1/1 ARM: zynq: Extend picozed board support

In reply to Oscar Gomez Fuente
Quoted 3 lines · Oscar Gomez Fuente

Ok Michal,

Then you're suggesting change the zynq-picozed.dts file to:

dtsi.

Quoted 15 lines
arch/arm/dts/zynq-picozed.dts +2 -0
index 3408df8..d8ed298 100644
@@ -14,6 +14,8 @@
 
        aliases {
                serial0 = &uart1;
+               spi0 = &qspi;
+               ethernet0 = &gem0;
        };
 
        memory {

arch/arm/dts/zynq-picozed.dts line 35

Quoted 8 lines
arch/arm/dts/zynq-picozed.dts +5 -0
@@ -26,3 +28,18 @@
        u-boot,dm-pre-reloc;
        status = "okay";
 };
+
+&qspi {
+       u-boot,dm-pre-reloc;
+       status = "okay";
+};

keep node names sorted.

Quoted 15 lines
arch/arm/dts/zynq-picozed.dts +10 -0
+
+&gem0 {
+       status = "okay";
+       phy-mode = "rgmii-id";
+       phy-handle = <&ethernet_phy>;
+
+       ethernet_phy: ethernet-phy at 0 {
+               reg = <0>;
+       };
+};

And add a new dts file with the configuration of the PizoZed FMC Carrier V2 (in this case V2. Avnet has two PicoZed FMC carriers V1 and V2). For
example: zynq-picozed-fmc-v2.dts

Quoted 8 lines

*
* Avnet PicoZed FMC carrier V2 DTS
*
* Copyright (C) 2015 Xilinx, Inc.
*
* SPDX-License-Identifier: GPL-2.0+
*/
/dts-v1/;

Depends how zynq-picozed.dtsi will look but this line above can be already there.

Quoted 4 lines

#include "zynq-picozed.dts"

/ {
compatible = "xlnx,zynq-picozed", "xlnx,zynq-7000";

here
"xlnx,zynq-picozed-fmc-v2", "xlnx,zynq-picozed", "xlnx,zynq-7000";

Quoted 6 lines

aliases {
mmc0 = &sdhci0;
};
};

Quoted 6 lines

&sdhci0 {
u-boot,dm-pre-reloc;
status = "okay";
};

Do you think the is the best way?

with changes above it looks reasonable.

Thanks,
Michal

#9 lore raw

PATCH 1/1 ARM: zynq: Extend picozed board support

Hi everyone,

In my opinion, use the picozed without a carrier board it doesn't make
sense. You always are going to need a carrier board. Avnet has two models
the PicoZed FMC Carrier V2 and the PicoZed FMC Carrier V1. And the company I'm working, it is going to desing a custom carrier board according to our necessity.

So maybe, it's better to have only two .dts files. zynq-picozed-fmc-v2.dts and zynq-picozed-fmc-v1.dts.

If we decide to have the zynq-picozed.dtsi and zynq-picozed-fmc-v2.dts, we'll have to decide what hardware description is going to be in the zynq-picozed-fmc-v2.dts and what hardware description is going to be in zynq-picozed.dtsi.

for example the spi0 hw is in the picozed board, but the SD (mmc0), eth0 (gem0) and serial0 (uart1) the HW is in the picoZed but the connectors are in the PicoZed FMC Carrier V2, so It's a little bit confused if this HW description has to be on the zynq-picozed.dtsi file or in the zynq-picozed-fmc-v2.dts file. Do you know what I mean?

Please let me see you opinions about that.

Best regards.

[image: photo] ?scar G?mez Fuente
Electronic Engineer & Degree in Physical Sciences
Mobile: 659.28.97.90
Email: oscargomezf at gmail.com
Website: www.oscargomezf.com
<http://facebook.com/oscargomezf> <http://plus.google.com/oscargomezf>
<http://us.linkedin.com/in/oscargomezf>
<http://twitter.com/oscargomezf_com>

Quoted 90 lines · Michal Simek
Quoted 3 lines · Oscar Gomez Fuente

Ok Michal,

Then you're suggesting change the zynq-picozed.dts file to:

dtsi.

arch/arm/dts/zynq-picozed.

Quoted 2 lines
arch/arm/dts/zynq-picozed. renamed from arch/arm/dts/zynq-picozed.dts +0 -0

dts

Quoted 13 lines

index 3408df8..d8ed298 100644

arch/arm/dts/zynq-picozed.dts +2 -0
@@ -14,6 +14,8 @@
 
        aliases {
                serial0 = &uart1;
+               spi0 = &qspi;
+               ethernet0 = &gem0;
        };
 
        memory {

arch/arm/dts/zynq-picozed.dts line 35

Quoted 8 lines
arch/arm/dts/zynq-picozed.dts +5 -0
@@ -26,3 +28,18 @@
        u-boot,dm-pre-reloc;
        status = "okay";
 };
+
+&qspi {
+       u-boot,dm-pre-reloc;
+       status = "okay";
+};

keep node names sorted.

Quoted 11 lines
arch/arm/dts/zynq-picozed.dts +10 -0
+
+&gem0 {
+       status = "okay";
+       phy-mode = "rgmii-id";
+       phy-handle = <&ethernet_phy>;
+
+       ethernet_phy: ethernet-phy at 0 {
+               reg = <0>;
+       };
+};
Quoted 1 line

And add a new dts file with the configuration of the PizoZed FMC Carrier

V2

Quoted 11 lines

(in this case V2. Avnet has two PicoZed FMC carriers V1 and V2). For
example: zynq-picozed-fmc-v2.dts

*
* Avnet PicoZed FMC carrier V2 DTS
*
* Copyright (C) 2015 Xilinx, Inc.
*
* SPDX-License-Identifier: GPL-2.0+
*/
/dts-v1/;

Depends how zynq-picozed.dtsi will look but this line above can be already there.

Quoted 4 lines

#include "zynq-picozed.dts"

/ {
compatible = "xlnx,zynq-picozed", "xlnx,zynq-7000";

here
"xlnx,zynq-picozed-fmc-v2", "xlnx,zynq-picozed", "xlnx,zynq-7000";

Quoted 6 lines

aliases {
mmc0 = &sdhci0;
};
};

Quoted 6 lines

&sdhci0 {
u-boot,dm-pre-reloc;
status = "okay";
};

Do you think the is the best way?

with changes above it looks reasonable.

Thanks,
Michal

#11 lore raw

PATCH 1/1 ARM: zynq: Extend picozed board support

In reply to Michal Simek

Hi everyone,

It seems to be that the mailbox of the email address albert.u.boot at aribaud.net is quota exceeded, and all emails are rejected.

-----
Final-Recipient: rfc822; albert.u.boot at aribaud.net.rmap1.bookmyname.com
Original-Recipient: rfc822;albert.u.boot at aribaud.net
Action: failed
Status: 5.0.0
Remote-MTA: dns; 127.0.0.1
Diagnostic-Code: smtp; 552 4.2.2
<[email protected]>: Mailbox full -- Quota exceeded
...
-----

could anyone inform about that please?

Best regards.

[image: photo] ?scar G?mez Fuente
Electronic Engineer & Degree in Physical Sciences
Mobile: 659.28.97.90
Email: oscargomezf at gmail.com
Website: www.oscargomezf.com
<http://facebook.com/oscargomezf> <http://plus.google.com/oscargomezf>
<http://us.linkedin.com/in/oscargomezf>
<http://twitter.com/oscargomezf_com>

Quoted 90 lines · Michal Simek
Quoted 3 lines · Oscar Gomez Fuente

Ok Michal,

Then you're suggesting change the zynq-picozed.dts file to:

dtsi.

arch/arm/dts/zynq-picozed.

Quoted 2 lines
arch/arm/dts/zynq-picozed. renamed from arch/arm/dts/zynq-picozed.dts +0 -0

dts

Quoted 13 lines

index 3408df8..d8ed298 100644

arch/arm/dts/zynq-picozed.dts +2 -0
@@ -14,6 +14,8 @@
 
        aliases {
                serial0 = &uart1;
+               spi0 = &qspi;
+               ethernet0 = &gem0;
        };
 
        memory {

arch/arm/dts/zynq-picozed.dts line 35

Quoted 8 lines
arch/arm/dts/zynq-picozed.dts +5 -0
@@ -26,3 +28,18 @@
        u-boot,dm-pre-reloc;
        status = "okay";
 };
+
+&qspi {
+       u-boot,dm-pre-reloc;
+       status = "okay";
+};

keep node names sorted.

Quoted 11 lines
arch/arm/dts/zynq-picozed.dts +10 -0
+
+&gem0 {
+       status = "okay";
+       phy-mode = "rgmii-id";
+       phy-handle = <&ethernet_phy>;
+
+       ethernet_phy: ethernet-phy at 0 {
+               reg = <0>;
+       };
+};
Quoted 1 line

And add a new dts file with the configuration of the PizoZed FMC Carrier

V2

Quoted 11 lines

(in this case V2. Avnet has two PicoZed FMC carriers V1 and V2). For
example: zynq-picozed-fmc-v2.dts

*
* Avnet PicoZed FMC carrier V2 DTS
*
* Copyright (C) 2015 Xilinx, Inc.
*
* SPDX-License-Identifier: GPL-2.0+
*/
/dts-v1/;

Depends how zynq-picozed.dtsi will look but this line above can be already there.

Quoted 4 lines

#include "zynq-picozed.dts"

/ {
compatible = "xlnx,zynq-picozed", "xlnx,zynq-7000";

here
"xlnx,zynq-picozed-fmc-v2", "xlnx,zynq-picozed", "xlnx,zynq-7000";

Quoted 6 lines

aliases {
mmc0 = &sdhci0;
};
};

Quoted 6 lines

&sdhci0 {
u-boot,dm-pre-reloc;
status = "okay";
};

Do you think the is the best way?

with changes above it looks reasonable.

Thanks,
Michal

#10 lore raw

PATCH 1/1 ARM: zynq: Extend picozed board support

In reply to Oscar Gomez Fuente

Hi,

Quoted 16 lines · Oscar Gomez Fuente

Hi everyone,

In my opinion, use the picozed without a carrier board it doesn't make
sense. You always are going to need a carrier board. Avnet has two models
the PicoZed FMC Carrier V2 and the PicoZed FMC Carrier V1. And the company I'm working, it is going to desing a custom carrier board according to our necessity.

So maybe, it's better to have only two .dts files. zynq-picozed-fmc-v2.dts and zynq-picozed-fmc-v1.dts.

If we decide to have the zynq-picozed.dtsi and zynq-picozed-fmc-v2.dts, we'll have to decide what hardware description is going to be in the zynq-picozed-fmc-v2.dts and what hardware description is going to be in zynq-picozed.dtsi.

Quoted 7 lines

for example the spi0 hw is in the picozed board, but the SD (mmc0), eth0 (gem0) and serial0 (uart1) the HW is in the picoZed but the connectors are in the PicoZed FMC Carrier V2, so It's a little bit confused if this HW description has to be on the zynq-picozed.dtsi file or in the zynq-picozed-fmc-v2.dts file. Do you know what I mean?

Please let me see you opinions about that.

I understand your concern. These SOMs are problematic and it is up2you how you want to do it. My preference would be to add common stuff to dtsi file and carried board stuff to dts file. If that configurations have nothing in common then using just fmc dts is fine for me. When ps7_init.* files are in place it should be visible how MIOs are configured.

Thanks,
Michal