* [PATCH] ARM: dts: zynq: Add support for Z-turn Lite board
@ 2020-02-26 9:03 Joni Lepistö
2020-02-27 7:44 ` Michal Simek
0 siblings, 1 reply; 2+ messages in thread
From: Joni Lepistö @ 2020-02-26 9:03 UTC (permalink / raw)
To: robh+dt, mark.rutland
Cc: Joni Lepistö,
Michal Simek, devicetree, linux-kernel, linux-arm-kernel
Add a dts for MYIR Z-turn Lite and respective target in Makefile
based on the existing Z-turn dts which is compatible except for
memory size.
Signed-off-by: Joni Lepistö <joni.m.lepisto@gmail.com>
---
arch/arm/boot/dts/Makefile | 1 +
arch/arm/boot/dts/zynq-zturn-lite.dts | 115 ++++++++++++++++++++++++++
2 files changed, 116 insertions(+)
create mode 100644 arch/arm/boot/dts/zynq-zturn-lite.dts
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index d6546d2676b9..56b1bce92744 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -1241,6 +1241,7 @@ dtb-$(CONFIG_ARCH_ZYNQ) += \
zynq-zc770-xm013.dtb \
zynq-zed.dtb \
zynq-zturn.dtb \
+ zynq-zturn-lite.dtb \
zynq-zybo.dtb \
zynq-zybo-z7.dtb
dtb-$(CONFIG_MACH_ARMADA_370) += \
diff --git a/arch/arm/boot/dts/zynq-zturn-lite.dts b/arch/arm/boot/dts/zynq-zturn-lite.dts
new file mode 100644
index 000000000000..96c0babe8267
--- /dev/null
+++ b/arch/arm/boot/dts/zynq-zturn-lite.dts
@@ -0,0 +1,115 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2015 Andrea Merello <adnrea.merello@gmail.com>
+ * Copyright (C) 2017 Alexander Graf <agraf@suse.de>
+ * Copyright (C) 2020 Joni Lepistö <joni.m.lepisto@gmail.com>
+ *
+ * Based on zynq-zed.dts which is:
+ * Copyright (C) 2011 - 2014 Xilinx
+ * Copyright (C) 2012 National Instruments Corp.
+ *
+ */
+
+/dts-v1/;
+/include/ "zynq-7000.dtsi"
+
+/ {
+ model = "Zynq Z-Turn Lite MYIR Board";
+ compatible = "myir,zynq-zturn-lite", "xlnx,zynq-7000";
+
+ aliases {
+ ethernet0 = &gem0;
+ serial0 = &uart1;
+ serial1 = &uart0;
+ mmc0 = &sdhci0;
+ };
+
+ memory@0 {
+ device_type = "memory";
+ reg = <0x0 0x20000000>;
+ };
+
+ chosen {
+ stdout-path = "serial0:115200n8";
+ };
+
+ gpio-leds {
+ compatible = "gpio-leds";
+ usr-led1 {
+ label = "usr-led1";
+ gpios = <&gpio0 0x0 0x1>;
+ default-state = "off";
+ };
+
+ usr-led2 {
+ label = "usr-led2";
+ gpios = <&gpio0 0x9 0x1>;
+ default-state = "off";
+ };
+ };
+
+ gpio-keys {
+ compatible = "gpio-keys";
+ autorepeat;
+ K1 {
+ label = "K1";
+ gpios = <&gpio0 0x32 0x1>;
+ linux,code = <0x66>;
+ wakeup-source;
+ autorepeat;
+ };
+ };
+};
+
+&clkc {
+ ps-clk-frequency = <33333333>;
+};
+
+&gem0 {
+ status = "okay";
+ phy-mode = "rgmii-id";
+ phy-handle = <ðernet_phy>;
+
+ ethernet_phy: ethernet-phy@0 {
+ reg = <0x0>;
+ };
+};
+
+&sdhci0 {
+ status = "okay";
+};
+
+&uart0 {
+ status = "okay";
+};
+
+&uart1 {
+ status = "okay";
+};
+
+&usb0 {
+ status = "okay";
+ dr_mode = "host";
+};
+
+&can0 {
+ status = "okay";
+};
+
+&i2c0 {
+ status = "okay";
+ clock-frequency = <400000>;
+
+ stlm75@49 {
+ status = "okay";
+ compatible = "lm75";
+ reg = <0x49>;
+ };
+
+ accelerometer@53 {
+ compatible = "adi,adxl345", "adxl345", "adi,adxl34x", "adxl34x";
+ reg = <0x53>;
+ interrupt-parent = <&intc>;
+ interrupts = <0x0 0x1e 0x4>;
+ };
+};
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: dts: zynq: Add support for Z-turn Lite board
2020-02-26 9:03 [PATCH] ARM: dts: zynq: Add support for Z-turn Lite board Joni Lepistö
@ 2020-02-27 7:44 ` Michal Simek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2020-02-27 7:44 UTC (permalink / raw)
To: Joni Lepistö, robh+dt, mark.rutland
Cc: Michal Simek, devicetree, linux-kernel, linux-arm-kernel
On 26. 02. 20 10:03, Joni Lepistö wrote:
> Add a dts for MYIR Z-turn Lite and respective target in Makefile
> based on the existing Z-turn dts which is compatible except for
> memory size.
Just a side note - I can't see any reason to duplicate the whole dts
file if it is just the same - you can simply #include "zynq-zturn.dts"
and then change/rewrite things.
Second thing is that myir,zynq-zturn is not even listed in any yaml
binding file that's why dtbs_check will fail.
I expect you use standard boot flow via u-boot which can detect and
update memory size automatically for you. It means for kernel you can
even place there <0 0> and u-boot will fill it.
Just a summary I don't think it is worth to add support to this board in
Linux. And in U-Boot you should enable memory autodetection and you will
get support for this lite board for free.
Thanks,
Michal
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-27 7:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-26 9:03 [PATCH] ARM: dts: zynq: Add support for Z-turn Lite board Joni Lepistö
2020-02-27 7:44 ` Michal Simek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).