All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Klink <flokli@flokli.de>
To: linux-arm-kernel@lists.infradead.org
Cc: Florian Klink <flokli@flokli.de>, Thomas Heijligen <src@posteo.de>
Subject: [PATCH 2/2] ARM: dts: pynq: Add Digilent/TUL Zynq PYNQ Board
Date: Sun, 27 Dec 2020 20:38:46 +0100	[thread overview]
Message-ID: <20201227193846.11433-2-flokli@flokli.de> (raw)
In-Reply-To: <20201227193846.11433-1-flokli@flokli.de>

This adds the DTS for the Digilent/TUL Zynq PYNQ Board(s).

They're Zynq 7000 - based boards, the Z1 is from Digilent, the Z2 from
TUL.

They have a slightly different audio system, and a different pin header,
but these aren't really accessible from the PS, only from the PL, so the
DTB is the same.

Co-authored-by: Thomas Heijligen <src@posteo.de>
Signed-off-by: Florian Klink <flokli@flokli.de>
---
 arch/arm/boot/dts/Makefile      |  1 +
 arch/arm/boot/dts/zynq-pynq.dts | 68 +++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)
 create mode 100644 arch/arm/boot/dts/zynq-pynq.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 3d1ea0b25168..aedf76dc31fe 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -1309,6 +1309,7 @@ dtb-$(CONFIG_ARCH_ZYNQ) += \
 	zynq-cc108.dtb \
 	zynq-microzed.dtb \
 	zynq-parallella.dtb \
+	zynq-pynq.dtb \
 	zynq-zc702.dtb \
 	zynq-zc706.dtb \
 	zynq-zc770-xm010.dtb \
diff --git a/arch/arm/boot/dts/zynq-pynq.dts b/arch/arm/boot/dts/zynq-pynq.dts
new file mode 100644
index 000000000000..04ac0f7cdc7b
--- /dev/null
+++ b/arch/arm/boot/dts/zynq-pynq.dts
@@ -0,0 +1,68 @@
+// SPDX-License-Identifier: GPL-2.0+
+/dts-v1/;
+#include "zynq-7000.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+
+/ {
+	model = "Digilent/TUL Zynq PYNQ";
+	compatible = "digilent,zynq-pynq", "digilent,zynq-pynq-z1", "tul,zynq-pynq", "tul,zynq-pynq-z2", "xlnx,zynq-7000";
+
+	aliases {
+		ethernet0 = &gem0;
+		serial0 = &uart0;
+	};
+
+	memory@0 {
+		device_type = "memory";
+		reg = <0x0 0x20000000>;
+	};
+
+	chosen {
+		bootargs = "";
+		stdout-path = "serial0:115200n8";
+	};
+
+	gpio-leds {
+		compatible = "gpio-leds";
+
+		ld4 {
+			label = "zynq-pynq:green:ld4";
+			gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
+		};
+	};
+
+	usb_phy0: phy0 {
+		#phy-cells = <0>;
+		compatible = "usb-nop-xceiv";
+		reset-gpios = <&gpio0 46 GPIO_ACTIVE_LOW>;
+	};
+};
+
+&clkc {
+	ps-clk-frequency = <50000000>;
+};
+
+&gem0 {
+	status = "okay";
+	phy-mode = "rgmii-id";
+	phy-handle = <&ethernet_phy>;
+
+	ethernet_phy: ethernet-phy@0 {
+		reg = <0>;
+		device_type = "ethernet-phy";
+	};
+};
+
+&sdhci0 {
+	status = "okay";
+};
+
+&uart0 {
+	status = "okay";
+};
+
+&usb0 {
+	status = "okay";
+	dr_mode = "host";
+	usb-phy = <&usb_phy0>;
+};
-- 
2.29.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2020-12-27 19:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-27 19:38 [PATCH 1/2] dt-bindings: add TUL Corporation Florian Klink
2020-12-27 19:38 ` Florian Klink [this message]
2021-01-04  8:27   ` [PATCH 2/2] ARM: dts: pynq: Add Digilent/TUL Zynq PYNQ Board Michal Simek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201227193846.11433-2-flokli@flokli.de \
    --to=flokli@flokli.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=src@posteo.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.