* [U-Boot] [PATCH 1/1] arm: zynq: Fix device tree for Avnet Picozed boards
@ 2018-07-31 22:00 Andreas Galauner
2018-08-02 12:07 ` Michal Simek
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Galauner @ 2018-07-31 22:00 UTC (permalink / raw)
To: u-boot
This change adds the necessary /chosen/stdout-path to the device tree
for the Avnet Picozed boards. This node is mandatory for the SPL. Without
it the board resets in a loop without any output. The change also adds
the USB, QSPI and Ethernet MAC nodes of the corresponding devices present
on the board.
Signed-off-by: Andreas Galauner <andreas@galauner.de>
---
arch/arm/dts/zynq-picozed.dts | 40 +++++++++++++++++++++++++++++++++--
1 file changed, 38 insertions(+), 2 deletions(-)
diff --git a/arch/arm/dts/zynq-picozed.dts b/arch/arm/dts/zynq-picozed.dts
index dea6a422c3..db5bb8a6fe 100644
--- a/arch/arm/dts/zynq-picozed.dts
+++ b/arch/arm/dts/zynq-picozed.dts
@@ -14,13 +14,33 @@
aliases {
serial0 = &uart1;
spi0 = &qspi;
- mmc0 = &sdhci1;
+ mmc0 = &sdhci0;
+ mmc1 = &sdhci1;
};
memory at 0 {
device_type = "memory";
reg = <0 0x40000000>;
};
+
+ chosen {
+ bootargs = "earlyprintk";
+ stdout-path = "serial0:115200n8";
+ };
+
+ usb_phy0: phy0 {
+ compatible = "usb-nop-xceiv";
+ #phy-cells = <0>;
+ };
+};
+
+&clkc {
+ ps-clk-frequency = <33333333>;
+};
+
+&qspi {
+ u-boot,dm-pre-reloc;
+ status = "okay";
};
&uart1 {
@@ -28,7 +48,17 @@
status = "okay";
};
-&qspi {
+&gem0 {
+ status = "okay";
+ phy-mode = "rgmii-id";
+ phy-handle = <ðernet_phy>;
+
+ ethernet_phy: ethernet-phy at 0 {
+ reg = <0>;
+ };
+};
+
+&sdhci0 {
u-boot,dm-pre-reloc;
status = "okay";
};
@@ -37,3 +67,9 @@
u-boot,dm-pre-reloc;
status = "okay";
};
+
+&usb0 {
+ status = "okay";
+ dr_mode = "host";
+ usb-phy = <&usb_phy0>;
+};
--
2.18.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH 1/1] arm: zynq: Fix device tree for Avnet Picozed boards
2018-07-31 22:00 [U-Boot] [PATCH 1/1] arm: zynq: Fix device tree for Avnet Picozed boards Andreas Galauner
@ 2018-08-02 12:07 ` Michal Simek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2018-08-02 12:07 UTC (permalink / raw)
To: u-boot
Hi Andreas,
On 1.8.2018 00:00, Andreas Galauner wrote:
> This change adds the necessary /chosen/stdout-path to the device tree
> for the Avnet Picozed boards. This node is mandatory for the SPL. Without
> it the board resets in a loop without any output. The change also adds
> the USB, QSPI and Ethernet MAC nodes of the corresponding devices present
> on the board.
>
> Signed-off-by: Andreas Galauner <andreas@galauner.de>
> ---
> arch/arm/dts/zynq-picozed.dts | 40 +++++++++++++++++++++++++++++++++--
> 1 file changed, 38 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/dts/zynq-picozed.dts b/arch/arm/dts/zynq-picozed.dts
> index dea6a422c3..db5bb8a6fe 100644
> --- a/arch/arm/dts/zynq-picozed.dts
> +++ b/arch/arm/dts/zynq-picozed.dts
> @@ -14,13 +14,33 @@
> aliases {
> serial0 = &uart1;
> spi0 = &qspi;
> - mmc0 = &sdhci1;
> + mmc0 = &sdhci0;
> + mmc1 = &sdhci1;
> };
>
> memory at 0 {
> device_type = "memory";
> reg = <0 0x40000000>;
> };
> +
> + chosen {
> + bootargs = "earlyprintk";
> + stdout-path = "serial0:115200n8";
> + };
> +
> + usb_phy0: phy0 {
> + compatible = "usb-nop-xceiv";
> + #phy-cells = <0>;
> + };
> +};
> +
> +&clkc {
> + ps-clk-frequency = <33333333>;
> +};
> +
> +&qspi {
> + u-boot,dm-pre-reloc;
> + status = "okay";
> };
>
> &uart1 {
> @@ -28,7 +48,17 @@
> status = "okay";
> };
>
> -&qspi {
> +&gem0 {
> + status = "okay";
> + phy-mode = "rgmii-id";
> + phy-handle = <ðernet_phy>;
> +
> + ethernet_phy: ethernet-phy at 0 {
> + reg = <0>;
> + };
> +};
> +
> +&sdhci0 {
> u-boot,dm-pre-reloc;
> status = "okay";
> };
> @@ -37,3 +67,9 @@
> u-boot,dm-pre-reloc;
> status = "okay";
> };
> +
> +&usb0 {
> + status = "okay";
> + dr_mode = "host";
> + usb-phy = <&usb_phy0>;
> +};
>
We have been discussing this topic some months ago here
https://lists.denx.de/pipermail/u-boot/2018-May/327267.html
This is a SoM. You need to do it differently because you need to
describe carrier board and then include SoM dtsi.
Thanks,
Michal
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-08-02 12:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-31 22:00 [U-Boot] [PATCH 1/1] arm: zynq: Fix device tree for Avnet Picozed boards Andreas Galauner
2018-08-02 12:07 ` Michal Simek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.