linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 1/3] doc: dt: vendor-prefixes: Add Digilent Inc
@ 2014-11-28 23:52 Peter Crosthwaite
  2014-11-28 23:52 ` [PATCH V2 2/3] arm: dts: zynq: Move crystal freq. to board level Peter Crosthwaite
  2014-11-28 23:52 ` [PATCH V2 3/3] arm: dts: zynq: Add Digilent ZYBO board Peter Crosthwaite
  0 siblings, 2 replies; 5+ messages in thread
From: Peter Crosthwaite @ 2014-11-28 23:52 UTC (permalink / raw)
  To: linux-kernel; +Cc: michals, sorenb, steven.wang

Digilent is a board designer, making various Linux capabable FPGA and
processor boards. Add to the vendor list.

Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
---
http://www.digilentinc.com
---
 Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt
index c177cd7..b1df0ad 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.txt
+++ b/Documentation/devicetree/bindings/vendor-prefixes.txt
@@ -41,6 +41,7 @@ dallas	Maxim Integrated Products (formerly Dallas Semiconductor)
 davicom	DAVICOM Semiconductor, Inc.
 denx	Denx Software Engineering
 digi	Digi International Inc.
+digilent	Diglent, Inc.
 dlg	Dialog Semiconductor
 dlink	D-Link Corporation
 dmo	Data Modul AG
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH V2 2/3] arm: dts: zynq: Move crystal freq. to board level
  2014-11-28 23:52 [PATCH V2 1/3] doc: dt: vendor-prefixes: Add Digilent Inc Peter Crosthwaite
@ 2014-11-28 23:52 ` Peter Crosthwaite
  2014-11-28 23:52 ` [PATCH V2 3/3] arm: dts: zynq: Add Digilent ZYBO board Peter Crosthwaite
  1 sibling, 0 replies; 5+ messages in thread
From: Peter Crosthwaite @ 2014-11-28 23:52 UTC (permalink / raw)
  To: linux-kernel; +Cc: michals, sorenb, steven.wang

The fact that all supported boards use the same 33MHz crystal is a
co-incidence. The Zynq PS support a range of crystal freqs so the
hardcoded setting should be removed from the dtsi. Re-implement it
on the board level.

This prepares support for Zynq boards with different crystal
frequencies (e.g. the Digilent ZYBO).

Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>

---
Changed since v1:
Alphabetize node ordering (Soren review)

Im guessing long term this should be converted to a fixed clock. But
I think this at least steps in that direction.
---
 arch/arm/boot/dts/zynq-7000.dtsi      | 1 -
 arch/arm/boot/dts/zynq-parallella.dts | 1 +
 arch/arm/boot/dts/zynq-zc702.dts      | 4 ++++
 arch/arm/boot/dts/zynq-zc706.dts      | 4 ++++
 arch/arm/boot/dts/zynq-zed.dts        | 4 ++++
 5 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/zynq-7000.dtsi b/arch/arm/boot/dts/zynq-7000.dtsi
index ce2ef5b..ee3e5d6 100644
--- a/arch/arm/boot/dts/zynq-7000.dtsi
+++ b/arch/arm/boot/dts/zynq-7000.dtsi
@@ -243,7 +243,6 @@
 			clkc: clkc@100 {
 				#clock-cells = <1>;
 				compatible = "xlnx,ps7-clkc";
-				ps-clk-frequency = <33333333>;
 				fclk-enable = <0>;
 				clock-output-names = "armpll", "ddrpll", "iopll", "cpu_6or4x",
 						"cpu_3or2x", "cpu_2x", "cpu_1x", "ddr2x", "ddr3x",
diff --git a/arch/arm/boot/dts/zynq-parallella.dts b/arch/arm/boot/dts/zynq-parallella.dts
index 0429bbd..b5792cab 100644
--- a/arch/arm/boot/dts/zynq-parallella.dts
+++ b/arch/arm/boot/dts/zynq-parallella.dts
@@ -35,6 +35,7 @@
 };
 
 &clkc {
+	ps-clk-frequency = <33333333>;
 	fclk-enable = <0xf>;
 };
 
diff --git a/arch/arm/boot/dts/zynq-zc702.dts b/arch/arm/boot/dts/zynq-zc702.dts
index 94e2cda..280f02d 100644
--- a/arch/arm/boot/dts/zynq-zc702.dts
+++ b/arch/arm/boot/dts/zynq-zc702.dts
@@ -42,6 +42,10 @@
 	status = "okay";
 };
 
+&clkc {
+	ps-clk-frequency = <33333333>;
+};
+
 &gem0 {
 	status = "okay";
 	phy-mode = "rgmii-id";
diff --git a/arch/arm/boot/dts/zynq-zc706.dts b/arch/arm/boot/dts/zynq-zc706.dts
index a8bbdfb..34f7812 100644
--- a/arch/arm/boot/dts/zynq-zc706.dts
+++ b/arch/arm/boot/dts/zynq-zc706.dts
@@ -29,6 +29,10 @@
 
 };
 
+&clkc {
+	ps-clk-frequency = <33333333>;
+};
+
 &gem0 {
 	status = "okay";
 	phy-mode = "rgmii-id";
diff --git a/arch/arm/boot/dts/zynq-zed.dts b/arch/arm/boot/dts/zynq-zed.dts
index 697779a..1c7cc99 100644
--- a/arch/arm/boot/dts/zynq-zed.dts
+++ b/arch/arm/boot/dts/zynq-zed.dts
@@ -29,6 +29,10 @@
 
 };
 
+&clkc {
+	ps-clk-frequency = <33333333>;
+};
+
 &gem0 {
 	status = "okay";
 	phy-mode = "rgmii-id";
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH V2 3/3] arm: dts: zynq: Add Digilent ZYBO board
  2014-11-28 23:52 [PATCH V2 1/3] doc: dt: vendor-prefixes: Add Digilent Inc Peter Crosthwaite
  2014-11-28 23:52 ` [PATCH V2 2/3] arm: dts: zynq: Move crystal freq. to board level Peter Crosthwaite
@ 2014-11-28 23:52 ` Peter Crosthwaite
  2014-11-29  3:34   ` Sören Brinkmann
  1 sibling, 1 reply; 5+ messages in thread
From: Peter Crosthwaite @ 2014-11-28 23:52 UTC (permalink / raw)
  To: linux-kernel; +Cc: michals, sorenb, steven.wang

Add a DTS describing the Digilent ZYBO board. Similar to ZED but with
a 50MHz crystal instead of 33MHz.

Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>

---
Changed since v1:
Change compat vendor prefix from xlnx to digilent (Soren review)
Alphabetise nodes
---
 arch/arm/boot/dts/Makefile      |  3 ++-
 arch/arm/boot/dts/zynq-zybo.dts | 52 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/zynq-zybo.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 7cd36a7..be2e8ce 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -513,7 +513,8 @@ dtb-$(CONFIG_ARCH_ZYNQ) += \
 	zynq-parallella.dtb \
 	zynq-zc702.dtb \
 	zynq-zc706.dtb \
-	zynq-zed.dtb
+	zynq-zed.dtb \
+	zynq-zybo.dtb
 dtb-$(CONFIG_MACH_ARMADA_370) += \
 	armada-370-db.dtb \
 	armada-370-mirabox.dtb \
diff --git a/arch/arm/boot/dts/zynq-zybo.dts b/arch/arm/boot/dts/zynq-zybo.dts
new file mode 100644
index 0000000..a9a12ce
--- /dev/null
+++ b/arch/arm/boot/dts/zynq-zybo.dts
@@ -0,0 +1,52 @@
+/*
+ *  Copyright (C) 2011 - 2014 Xilinx
+ *  Copyright (C) 2012 National Instruments Corp.
+ *
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+/dts-v1/;
+/include/ "zynq-7000.dtsi"
+
+/ {
+	model = "Zynq ZYBO Development Board";
+	compatible = "digilent,zynq-zybo", "xlnx,zynq-7000";
+
+	memory {
+		device_type = "memory";
+		reg = <0x0 0x20000000>;
+	};
+
+	chosen {
+		bootargs = "console=ttyPS0,115200 earlyprintk";
+	};
+
+};
+
+&clkc {
+	ps-clk-frequency = <50000000>;
+};
+
+&gem0 {
+	status = "okay";
+	phy-mode = "rgmii-id";
+	phy-handle = <&ethernet_phy>;
+
+	ethernet_phy: ethernet-phy@0 {
+		reg = <0>;
+	};
+};
+
+&sdhci0 {
+	status = "okay";
+};
+
+&uart1 {
+	status = "okay";
+};
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH V2 3/3] arm: dts: zynq: Add Digilent ZYBO board
  2014-11-28 23:52 ` [PATCH V2 3/3] arm: dts: zynq: Add Digilent ZYBO board Peter Crosthwaite
@ 2014-11-29  3:34   ` Sören Brinkmann
  2014-12-01  0:27     ` Peter Crosthwaite
  0 siblings, 1 reply; 5+ messages in thread
From: Sören Brinkmann @ 2014-11-29  3:34 UTC (permalink / raw)
  To: Peter Crosthwaite; +Cc: linux-kernel, michals, sorenb, steven.wang

Hi Peter,

The patches look all good to me. But you may want to check your CC
lists. I think at least the DT list should be included.

For the whole series:
Acked-by: Soren Brinkmann <soren.brinkmann@xilinx.com>

	Thanks,
	Sören


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH V2 3/3] arm: dts: zynq: Add Digilent ZYBO board
  2014-11-29  3:34   ` Sören Brinkmann
@ 2014-12-01  0:27     ` Peter Crosthwaite
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Crosthwaite @ 2014-12-01  0:27 UTC (permalink / raw)
  To: Sören Brinkmann; +Cc: linux-kernel, michals, sorenb, Steve Wang

On Sat, Nov 29, 2014 at 1:34 PM, Sören Brinkmann
<soren.brinkmann@xilinx.com> wrote:
> Hi Peter,
>
> The patches look all good to me. But you may want to check your CC
> lists. I think at least the DT list should be included.
>

Resent


> For the whole series:
> Acked-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
>

Thanks,

Regards,
Peter

>         Thanks,
>         Sören
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-12-01  0:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-28 23:52 [PATCH V2 1/3] doc: dt: vendor-prefixes: Add Digilent Inc Peter Crosthwaite
2014-11-28 23:52 ` [PATCH V2 2/3] arm: dts: zynq: Move crystal freq. to board level Peter Crosthwaite
2014-11-28 23:52 ` [PATCH V2 3/3] arm: dts: zynq: Add Digilent ZYBO board Peter Crosthwaite
2014-11-29  3:34   ` Sören Brinkmann
2014-12-01  0:27     ` Peter Crosthwaite

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).