Skip to contentSkip to conversation

ARM: dts: zynq: Prepare Parallella

PATCH Applied Andreas Färber 10 participants 64 messages Jul 24, 2014 – Oct 22, 2014 3 messages not in the archive

Subsystems (6)
lore
Share & tools
lore
#0 lore raw

v2 cover ARM: dts: zynq: Prepare Parallella

Hello,

This patch series adds an initial device tree for the Parallella board. UART, SD card, Ethernet are enabled.
Not yet enabled are HDMI, QSPI flash and 2x USB.

v2 adds some SPI and FPGA pieces and tidies the device tree with a compatible string and matching documentation.

Not having all pieces for testing all of this (most notably I'm missing ADI ADV7513 and AXI-HDMI support for VDMA and axi-clkgen, as well as the 25Q128A flash chip for QSPI), I've kept new things in separate patches so that we can make progress on the basic version and possibly squash further cherry-picked pieces.

Punnaiah Choudary Kalluri had recently proposed to extend the Chipidea USB driver for Zynq; it kept complaining about the PHY though, and I haven't spotted a revised version based on the generic driver yet.
https://patchwork.kernel.org/patch/4434681/

My rebasing work branch is here:
https://github.com/afaerber/linux/commits/parallella-next

Regards,
Andreas

Cc Punnaiah Choudary Kalluri <[email protected]> (USB)
Cc Lars-Peter Clausen <[email protected]> (HDMI)

Andreas F?rber (11):
Documentation: devicetree: Adapteva vendor prefix
Documentation: devicetree: Adapteva boards
ARM: dts: zynq: Add Parallella device tree
ARM: dts: zynq: Update deprecated xuartps clock names
ARM: dts: zynq: Add QSPI for Parallella
ARM: dts: zynq: Add DMAC for Parallella
Documentation: devicetree: Fix Xilinx VDMA specification
ARM: dts: zynq: Add VDMA to Parallella
Documentation: devicetree: Fix ADI AXI SPDIF specification
ARM: dts: zynq: Add SPDIF for Parallella
ARM: dts: zynq: Add AXI clkgen for Parallella

 Documentation/devicetree/bindings/arm/adapteva.txt |   7 ++
 .../devicetree/bindings/dma/xilinx/xilinx_vdma.txt |   2 +-
 .../devicetree/bindings/sound/adi,axi-spdif-tx.txt |   2 +-
 .../devicetree/bindings/vendor-prefixes.txt        |   1 +
 arch/arm/boot/dts/Makefile                         |   4 +-
 arch/arm/boot/dts/zynq-7000.dtsi                   |  58 +++++++++-
 arch/arm/boot/dts/zynq-parallella.dts              | 119 +++++++++++++++++++++
 7 files changed, 188 insertions(+), 5 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/arm/adapteva.txt
 create mode 100644 arch/arm/boot/dts/zynq-parallella.dts
Signature · 1 line
1.9.3
#1 lore raw

PATCH v2 1/11 Documentation: devicetree: Adapteva vendor prefix

Cc Andreas Olofsson <[email protected]>

---
v2: New

 Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
index 46a311e..a8708c7 100644
@@ -6,6 +6,7 @@ using them to avoid name-space collisions.
 abilis	Abilis Systems
 active-semi	Active-Semi International Inc
 ad	Avionic Design GmbH
+adapteva	Adapteva, Inc.
 adi	Analog Devices, Inc.
 aeroflexgaisler	Aeroflex Gaisler AB
 ak	Asahi Kasei Corp.
Signature · 1 line
1.9.3
#3 lore raw

PATCH v2 2/11 Documentation: devicetree: Adapteva boards

In reply to Andreas Färber

We're about to add a device tree for the Parallella board.

Cc Andreas Olofsson <[email protected]>

---
v2: New

 Documentation/devicetree/bindings/arm/adapteva.txt | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/adapteva.txt
Documentation/devicetree/bindings/arm/adapteva.txt new file +7 -0
new file mode 100644
index 0000000..1d8af9e
@@ -0,0 +1,7 @@
+Adapteva Platforms Device Tree Bindings
+---------------------------------------
+
+Parallella board
+
+Required root node properties:
+    - compatible = "adapteva,parallella";
Signature · 1 line
1.9.3
#5 lore raw

PATCH v2 3/11 ARM: dts: zynq: Add Parallella device tree

In reply to Andreas Färber

This allows to boot the Adapteva Parallella board to serial console.

Cc Andreas Olofsson <[email protected]>

---
v1 -> v2:
* Added board-specific compatible string (Olof Johansson).
* Added /chosen linux,stdout-path property (Olof Johansson).
* Fixed /memory reg size 0x20000000 -> 0x40000000 (0 considered).
* Added vendor name to root node's model property (Olof Johansson).

 arch/arm/boot/dts/Makefile            |  4 ++-
 arch/arm/boot/dts/zynq-parallella.dts | 64 +++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/zynq-parallella.dts
arch/arm/boot/dts/Makefile +3 -1
index adb5ed9..976720f 100644
@@ -419,7 +419,9 @@ dtb-$(CONFIG_ARCH_VT8500) += vt8500-bv07.dtb \
 	wm8650-mid.dtb \
 	wm8750-apc8750.dtb \
 	wm8850-w70v2.dtb
-dtb-$(CONFIG_ARCH_ZYNQ) += zynq-zc702.dtb \
+dtb-$(CONFIG_ARCH_ZYNQ) += \
+	zynq-parallella.dtb \
+	zynq-zc702.dtb \
 	zynq-zc706.dtb \
 	zynq-zed.dtb
 dtb-$(CONFIG_MACH_ARMADA_370) += \
arch/arm/boot/dts/zynq-parallella.dts new file +64 -0

64 lines not on this page · raw message

Signature · 1 line
1.9.3
#7 lore raw

PATCH v2 4/11 ARM: dts: zynq: Update deprecated xuartps clock names

In reply to Andreas Färber

Avoids deprecation warning messages.

---
v2: New

 arch/arm/boot/dts/zynq-7000.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/zynq-7000.dtsi +2 -2
index 760bbc4..8fd826a 100644
@@ -108,7 +108,7 @@
 			compatible = "xlnx,xuartps";
 			status = "disabled";
 			clocks = <&clkc 23>, <&clkc 40>;
-			clock-names = "ref_clk", "aper_clk";
+			clock-names = "uart_clk", "pclk";
 			reg = <0xE0000000 0x1000>;
 			interrupts = <0 27 4>;
 		};
@@ -117,7 +117,7 @@
 			compatible = "xlnx,xuartps";
 			status = "disabled";
 			clocks = <&clkc 24>, <&clkc 41>;
-			clock-names = "ref_clk", "aper_clk";
+			clock-names = "uart_clk", "pclk";
 			reg = <0xE0001000 0x1000>;
 			interrupts = <0 50 4>;
 		};
Signature · 1 line
1.9.3
#12 lore raw

PATCH v2 5/11 ARM: dts: zynq: Add QSPI for Parallella

In reply to Andreas Färber

Prepare SPI0 and SPI1 while at it.

---
v2: New

 arch/arm/boot/dts/zynq-7000.dtsi      | 37 +++++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/zynq-parallella.dts |  4 ++++
 2 files changed, 41 insertions(+)
arch/arm/boot/dts/zynq-7000.dtsi +37 -0
index 8fd826a..eed3df0 100644
@@ -122,6 +122,30 @@
 			interrupts = <0 50 4>;
 		};
 
+		spi0: spi at e0006000 {
+			compatible = "xlnx,zynq-spi-r1p6";
+			reg = <0xe0006000 0x1000>;
+			status = "disabled";
+			interrupt-parent = <&intc>;
+			interrupts = <0 26 4>;
+			clocks = <&clkc 25>, <&clkc 34>;
+			clock-names = "ref_clk", "pclk";
+			#address-cells = <1>;
+			#size-cells = <0>;
+		};
+
+		spi1: spi at e0007000 {
+			compatible = "xlnx,zynq-spi-r1p6";
+			reg = <0xe0007000 0x1000>;
+			status = "disabled";
+			interrupt-parent = <&intc>;
+			interrupts = <0 49 4>;
+			clocks = <&clkc 26>, <&clkc 35>;
+			clock-names = "ref_clk", "pclk";
+			#address-cells = <1>;
+			#size-cells = <0>;
+		};
+
 		gem0: ethernet at e000b000 {
 			compatible = "cdns,gem";
 			reg = <0xe000b000 0x4000>;
@@ -140,6 +164,19 @@
 			clock-names = "pclk", "hclk", "tx_clk";
 		};
 
+		qspi: qspi at e000d000 {
+			compatible = "xlnx,zynq-spi-r1p6";
+			reg = <0xe000d000 0x1000>;
+			status = "disabled";
+			interrupt-parent = <&intc>;
+			interrupts = <0 19 4>;
+			clocks = <&clkc 10>, <&clkc 43>;
+			clock-names = "ref_clk", "pclk";
+			num-cs = <1>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+		};
+
 		sdhci0: sdhci at e0100000 {
 			compatible = "arasan,sdhci-8.9a";
 			status = "disabled";
arch/arm/boot/dts/zynq-parallella.dts +4 -0
index 41afd9d..56f68ea 100644
@@ -55,6 +55,10 @@
 	status = "okay";
 };
 
+&qspi {
+	status = "okay";
+};
+
 &sdhci1 {
 	status = "okay";
 };
Signature · 1 line
1.9.3
#25 lore raw

PATCH v2 6/11 ARM: dts: zynq: Add DMAC for Parallella

In reply to Andreas Färber

---
v2: New

 arch/arm/boot/dts/zynq-7000.dtsi      | 17 +++++++++++++++++
 arch/arm/boot/dts/zynq-parallella.dts |  4 ++++
 2 files changed, 21 insertions(+)
arch/arm/boot/dts/zynq-7000.dtsi +17 -0
index eed3df0..1a70277 100644
@@ -223,6 +223,23 @@
 			};
 		};
 
+		dmac_s: dmac at f8003000 {
+			compatible = "arm,pl330", "arm,primecell";
+			reg = <0xf8003000 0x1000>;
+			status = "disabled";
+			interrupt-parent = <&intc>;
+			interrupts = <0 13 4>,
+			             <0 14 4>, <0 15 4>,
+			             <0 16 4>, <0 17 4>,
+			             <0 40 4>, <0 41 4>,
+			             <0 42 4>, <0 43 4>;
+			#dma-cells = <1>;
+			#dma-channels = <8>;
+			#dma-requests = <4>;
+			clocks = <&clkc 27>;
+			clock-names = "apb_pclk";
+		};
+
 		devcfg: devcfg at f8007000 {
 			compatible = "xlnx,zynq-devcfg-1.0";
 			reg = <0xf8007000 0x100>;
arch/arm/boot/dts/zynq-parallella.dts +4 -0
index 56f68ea..e60a0a9 100644
@@ -34,6 +34,10 @@
 	};
 };
 
+&dmac_s {
+	status = "okay";
+};
+
 &gem0 {
 	status = "okay";
 	phy-mode = "rgmii-id";
Signature · 1 line
1.9.3
#31 lore raw

PATCH v2 7/11 Documentation: devicetree: Fix Xilinx VDMA specification

In reply to Andreas Färber

The specification requires xlnx,data-width, but example and driver use xlnx,datawidth. Change the specification to match the implementation.

---
v2: New

 Documentation/devicetree/bindings/dma/xilinx/xilinx_vdma.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/dma/xilinx/xilinx_vdma.txt +1 -1
index 1405ed0..e4c4d47 100644
@@ -25,7 +25,7 @@ Required child node properties:
 - compatible: It should be either "xlnx,axi-vdma-mm2s-channel" or
 	"xlnx,axi-vdma-s2mm-channel".
 - interrupts: Should contain per channel VDMA interrupts.
-- xlnx,data-width: Should contain the stream data width, take values
+- xlnx,datawidth: Should contain the stream data width, take values
 	{32,64...1024}.
 
 Optional child node properties:
Signature · 1 line
1.9.3
#37 lore raw

PATCH v2 8/11 ARM: dts: zynq: Add VDMA to Parallella

In reply to Andreas Färber

---
v2: New

 arch/arm/boot/dts/zynq-parallella.dts | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
arch/arm/boot/dts/zynq-parallella.dts +25 -0
index e60a0a9..8beaacc 100644
@@ -32,6 +32,31 @@
 		bootargs = "console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait";
 		linux,stdout-path = "/amba/serial at e0001000";
 	};
+
+	fpga {
+		compatible = "simple-bus";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges;
+
+		axi_vdma: axi-vdma at 43000000 {
+			compatible = "xlnx,axi-vdma-1.00.a";
+			reg = <0x43000000 0x1000>;
+			#dma-cells = <1>;
+			xlnx,num-fstores = <3>;
+			xlnx,include-sg = <0>;
+			xlnx,flush-fsync = <2>;
+
+			dma-channel at 43000000 {
+				compatible = "xlnx,axi-vdma-mm2s-channel";
+				interrupt-parent = <&intc>;
+				interrupts = <0 59 4>;
+				xlnx,datawidth = <64>;
+				xlnx,include-dre = <0>;
+				xlnx,genlock-mode = <0>;
+			};
+		};
+	};
 };
 
 &dmac_s {
Signature · 1 line
1.9.3
#41 lore raw

PATCH v2 9/11 Documentation: devicetree: Fix ADI AXI SPDIF specification

In reply to Andreas Färber

The specification requires compatible = "adi,axi-spdif-1.00.a" but driver and example and file name indicate "adi,axi-spdif-tx-1.00.a". Change the specification to match the implementation.

---
v2: New

 Documentation/devicetree/bindings/sound/adi,axi-spdif-tx.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/sound/adi,axi-spdif-tx.txt +1 -1
index 46f3449..4eb7997 100644
@@ -1,7 +1,7 @@
 ADI AXI-SPDIF controller
 
 Required properties:
- - compatible : Must be "adi,axi-spdif-1.00.a"
+ - compatible : Must be "adi,axi-spdif-tx-1.00.a"
  - reg : Must contain SPDIF core's registers location and length
  - clocks : Pairs of phandle and specifier referencing the controller's clocks.
    The controller expects two clocks, the clock used for the AXI interface and
Signature · 1 line
1.9.3
#53 lore raw

PATCH v2 10/11 ARM: dts: zynq: Add SPDIF for Parallella

In reply to Andreas Färber

---
v2: New

 arch/arm/boot/dts/zynq-parallella.dts | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
arch/arm/boot/dts/zynq-parallella.dts +15 -0
index 8beaacc..65fbd8b 100644
@@ -56,6 +56,21 @@
 				xlnx,genlock-mode = <0>;
 			};
 		};
+
+		audio_clock: audio-clock {
+			compatible = "fixed-clock";
+			#clock-cells = <0>;
+			clock-frequency = <12288000>;
+		};
+
+		axi-spdif-tx at 0x75c00000 {
+			compatible = "adi,axi-spdif-tx-1.00.a";
+			reg = <0x75c00000 0x1000>;
+			clocks = <&clkc 15>, <&audio_clock>;
+			clock-names = "axi", "ref";
+			dmas = <&dmac_s 0>;
+			dma-names = "tx";
+		};
 	};
 };
 
Signature · 1 line
1.9.3
#54 lore raw

PATCH v2 11/11 ARM: dts: zynq: Add AXI clkgen for Parallella

In reply to Andreas Färber

---
v2: New

 arch/arm/boot/dts/zynq-parallella.dts | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/zynq-parallella.dts +7 -0
index 65fbd8b..d2eefad 100644
@@ -57,6 +57,13 @@
 			};
 		};
 
+		axi_clkgen: axi-clkgen at 66000000 {
+			compatible = "adi,axi-clkgen-1.00.a";
+			reg = <0x66000000 0x10000>;
+			#clock-cells = <0>;
+			clocks = <&clkc 17>;
+		};
+
 		audio_clock: audio-clock {
 			compatible = "fixed-clock";
 			#clock-cells = <0>;
Signature · 1 line
1.9.3
#8 lore raw

Re: [PATCH v2 04/11] ARM: dts: zynq: Update deprecated xuartps clock names

In reply to Andreas Färber
Quoted 1 line · Andreas F?rber

Avoids deprecation warning messages.

A patch that updates those names is already in armsoc.

S?ren

#9 lore raw

Re: [PATCH v2 04/11] ARM: dts: zynq: Update deprecated xuartps clock names

Am 25.07.2014 01:09, schrieb S?ren Brinkmann:

Quoted 4 lines · Andreas F?rber
Quoted 1 line

Avoids deprecation warning messages.

A patch that updates those names is already in armsoc.

Which tree/branch should I base this series on then? It seemed the Xilinx branches were all heavily outdated some days ago, so this is against vanilla v3.16-rc6.

Thanks,
Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imend?rffer; HRB 16746 AG N?rnberg
#13 lore raw

Re: [PATCH v2 05/11] ARM: dts: zynq: Add QSPI for Parallella

In reply to Andreas Färber
Quoted 32 lines · Andreas F?rber

Prepare SPI0 and SPI1 while at it.

---
v2: New

 arch/arm/boot/dts/zynq-7000.dtsi      | 37 +++++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/zynq-parallella.dts |  4 ++++
 2 files changed, 41 insertions(+)
arch/arm/boot/dts/zynq-7000.dtsi +14 -0
index 8fd826a..eed3df0 100644
@@ -122,6 +122,30 @@
 			interrupts = <0 50 4>;
 		};
 
+		spi0: spi at e0006000 {
+			compatible = "xlnx,zynq-spi-r1p6";
+			reg = <0xe0006000 0x1000>;
+			status = "disabled";
+			interrupt-parent = <&intc>;
+			interrupts = <0 26 4>;
+			clocks = <&clkc 25>, <&clkc 34>;
+			clock-names = "ref_clk", "pclk";
+			#address-cells = <1>;
+			#size-cells = <0>;
+		};
+
+		spi1: spi at e0007000 {
+			compatible = "xlnx,zynq-spi-r1p6";

arch/arm/boot/dts/zynq-7000.dtsi line 148

Quoted 10 lines
arch/arm/boot/dts/zynq-7000.dtsi +10 -0
+			reg = <0xe0007000 0x1000>;
+			status = "disabled";
+			interrupt-parent = <&intc>;
+			interrupts = <0 49 4>;
+			clocks = <&clkc 26>, <&clkc 35>;
+			clock-names = "ref_clk", "pclk";
+			#address-cells = <1>;
+			#size-cells = <0>;
+		};
+

Until here things look good.

Quoted 10 lines
arch/arm/boot/dts/zynq-7000.dtsi +3 -0
 		gem0: ethernet at e000b000 {
 			compatible = "cdns,gem";
 			reg = <0xe000b000 0x4000>;
@@ -140,6 +164,19 @@
 			clock-names = "pclk", "hclk", "tx_clk";
 		};
 
+		qspi: qspi at e000d000 {
+			compatible = "xlnx,zynq-spi-r1p6";
+			reg = <0xe000d000 0x1000>;

arch/arm/boot/dts/zynq-7000.dtsi line 179

Quoted 10 lines
arch/arm/boot/dts/zynq-7000.dtsi +10 -0
+			status = "disabled";
+			interrupt-parent = <&intc>;
+			interrupts = <0 19 4>;
+			clocks = <&clkc 10>, <&clkc 43>;
+			clock-names = "ref_clk", "pclk";
+			num-cs = <1>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+		};
+

I'm not sure what the status of this driver is. I think QSPI is still under review on the mailing lists and I don't think we should add this yet.

S?ren

#38 lore raw

Re: [PATCH v2 08/11] ARM: dts: zynq: Add VDMA to Parallella

In reply to Andreas Färber
Quoted 12 lines · Andreas F?rber

---
v2: New

 arch/arm/boot/dts/zynq-parallella.dts | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
arch/arm/boot/dts/zynq-parallella.dts +0 -0
index e60a0a9..8beaacc 100644

arch/arm/boot/dts/zynq-parallella.dts line 36

Quoted 5 lines
arch/arm/boot/dts/zynq-parallella.dts +2 -0
@@ -32,6 +32,31 @@
 		bootargs = "console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait";
 		linux,stdout-path = "/amba/serial at e0001000";
 	};
+
+	fpga {

Do you really want FPGA components in this DT?
If somebody tries booting with this DT without programming with a corresponding bitstream, the whole system might hang. Just something to consider.

S?ren

#10 lore raw

Re: [PATCH v2 04/11] ARM: dts: zynq: Update deprecated xuartps clock names

In reply to Andreas Färber
Quoted 9 lines · Andreas F?rber

Am 25.07.2014 01:09, schrieb S?ren Brinkmann:

Quoted 4 lines · Andreas F?rber
Quoted 1 line

Avoids deprecation warning messages.

A patch that updates those names is already in armsoc.

Which tree/branch should I base this series on then? It seemed the Xilinx branches were all heavily outdated some days ago, so this is against vanilla v3.16-rc6.

That is something for the maintainers to answer. But in general, you're adding a lot of stuff that is not yet upstream, AFAIK. Some is still under review I think (like QSPI), others are just staged for the next merge window and parts are still in flight. Michal hopefully has a better overview.
This particular patch can simply be omitted I think.

S?ren

Acked-by on v2 6/11
#26 lore raw

Re: [PATCH v2 06/11] ARM: dts: zynq: Add DMAC for Parallella

In reply to Andreas Färber
Quoted 13 lines · Andreas F?rber

---
v2: New

 arch/arm/boot/dts/zynq-7000.dtsi      | 17 +++++++++++++++++
 arch/arm/boot/dts/zynq-parallella.dts |  4 ++++
 2 files changed, 21 insertions(+)
arch/arm/boot/dts/zynq-7000.dtsi +0 -0
index eed3df0..1a70277 100644

arch/arm/boot/dts/zynq-7000.dtsi line 229

Quoted 7 lines
arch/arm/boot/dts/zynq-7000.dtsi +4 -0
@@ -223,6 +223,23 @@
 			};
 		};
 
+		dmac_s: dmac at f8003000 {
+			compatible = "arm,pl330", "arm,primecell";
+			reg = <0xf8003000 0x1000>;
+			status = "disabled";

I think for this IP we can omit the 'status' property since it is always enabled. I don't see a reason to override it in each board DT.

arch/arm/boot/dts/zynq-7000.dtsi line 242

Quoted 13 lines
arch/arm/boot/dts/zynq-7000.dtsi +13 -0
+			interrupt-parent = <&intc>;
+			interrupts = <0 13 4>,
+			             <0 14 4>, <0 15 4>,
+			             <0 16 4>, <0 17 4>,
+			             <0 40 4>, <0 41 4>,
+			             <0 42 4>, <0 43 4>;
+			#dma-cells = <1>;
+			#dma-channels = <8>;
+			#dma-requests = <4>;
+			clocks = <&clkc 27>;
+			clock-names = "apb_pclk";
+		};
+

S?ren

#55 lore raw
In reply to Andreas Färber

Hi Andreas,

Quoted 24 lines

-----Original Message-----
From: Andreas F?rber [mailto:afaerber at suse.de]
Sent: Friday, July 25, 2014 4:30 AM
To: Michal Simek
Cc: Andreas Olofsson; Matteo Vit; Sean Rickerd; devicetree at vger.kernel.org; linux-arm-kernel at lists.infradead.org; linux-kernel at vger.kernel.org; Andreas F?rber; Punnaiah Choudary Kalluri; Lars-Peter Clausen
Subject: [PATCH v2 00/11] ARM: dts: zynq: Prepare Parallella

Hello,

This patch series adds an initial device tree for the Parallella board. UART, SD card, Ethernet are enabled.
Not yet enabled are HDMI, QSPI flash and 2x USB.

v2 adds some SPI and FPGA pieces and tidies the device tree with a compatible string and matching documentation.

Not having all pieces for testing all of this (most notably I'm missing ADI ADV7513 and AXI-HDMI support for VDMA and axi-clkgen, as well as the 25Q128A flash chip for QSPI), I've kept new things in separate patches so that we can make progress on the basic version and possibly squash further cherry-picked pieces.

Quoted 4 lines

Punnaiah Choudary Kalluri had recently proposed to extend the Chipidea USB driver for Zynq; it kept complaining about the PHY though, and I haven't spotted a revised version based on the generic driver yet.
https://patchwork.kernel.org/patch/4434681/

The plan is, go with generic chip idea driver which is currently under review.
http://www.spinics.net/lists/linux-usb/msg109576.html

So, please wait some more time for extending the Chip idea driver support
to zynq.

Punnaiah

Quoted 37 lines

My rebasing work branch is here:
https://github.com/afaerber/linux/commits/parallella-next

Regards,
Andreas

Cc Punnaiah Choudary Kalluri <[email protected]> (USB)
Cc Lars-Peter Clausen <[email protected]> (HDMI)

Andreas F?rber (11):
Documentation: devicetree: Adapteva vendor prefix
Documentation: devicetree: Adapteva boards
ARM: dts: zynq: Add Parallella device tree
ARM: dts: zynq: Update deprecated xuartps clock names
ARM: dts: zynq: Add QSPI for Parallella
ARM: dts: zynq: Add DMAC for Parallella
Documentation: devicetree: Fix Xilinx VDMA specification
ARM: dts: zynq: Add VDMA to Parallella
Documentation: devicetree: Fix ADI AXI SPDIF specification
ARM: dts: zynq: Add SPDIF for Parallella
ARM: dts: zynq: Add AXI clkgen for Parallella

Documentation/devicetree/bindings/arm/adapteva.txt |   7 ++
.../devicetree/bindings/dma/xilinx/xilinx_vdma.txt |   2 +-
.../devicetree/bindings/sound/adi,axi-spdif-tx.txt |   2 +-
.../devicetree/bindings/vendor-prefixes.txt        |   1 +
arch/arm/boot/dts/Makefile                         |   4 +-
arch/arm/boot/dts/zynq-7000.dtsi                   |  58 +++++++++-
arch/arm/boot/dts/zynq-parallella.dts              | 119
+++++++++++++++++++++
7 files changed, 188 insertions(+), 5 deletions(-)

create mode 100644 Documentation/devicetree/bindings/arm/adapteva.txt create mode 100644 arch/arm/boot/dts/zynq-parallella.dts

--
1.9.3

#11 lore raw

Re: [PATCH v2 04/11] ARM: dts: zynq: Update deprecated xuartps clock names

In reply to Sören Brinkmann
Quoted 10 lines · S?ren Brinkmann
Quoted 9 lines · Andreas F?rber

Am 25.07.2014 01:09, schrieb S?ren Brinkmann:

Quoted 4 lines · Andreas F?rber
Quoted 1 line

Avoids deprecation warning messages.

A patch that updates those names is already in armsoc.

Which tree/branch should I base this series on then? It seemed the Xilinx branches were all heavily outdated some days ago, so this is against vanilla v3.16-rc6.

I have updated that branches. From my experience none is looking at these branches and I mainly use them for communication with arm-soc where sign tags are used which you can see them there.

Quoted 7 lines

That is something for the maintainers to answer. But in general, you're adding a lot of stuff that is not yet upstream, AFAIK. Some is still under review I think (like QSPI), others are just staged for the next merge window and parts are still in flight. Michal hopefully has a better overview.
This particular patch can simply be omitted I think.

There are several options and I think the best is arm-soc tree where you can see what have been accepted.
And also I believe all arm-soc trees are added to linux-next.

That's why I would use linux-next or arm-soc.

Thanks,
Michal

Signature · 14 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140725/3939a92d/attachment-0001.sig>
maintainer Acked-by on v2 9/11
#42 lore raw

Re: [PATCH v2 09/11] Documentation: devicetree: Fix ADI AXI SPDIF specification

In reply to Andreas Färber
Quoted 5 lines · Andreas F?rber

The specification requires compatible = "adi,axi-spdif-1.00.a" but driver and example and file name indicate "adi,axi-spdif-tx-1.00.a". Change the specification to match the implementation.

Thanks.

Quoted 20 lines

---
v2: New

  Documentation/devicetree/bindings/sound/adi,axi-spdif-tx.txt | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/sound/adi,axi-spdif-tx.txt +1 -1
index 46f3449..4eb7997 100644
@@ -1,7 +1,7 @@
  ADI AXI-SPDIF controller
 
  Required properties:
- - compatible : Must be "adi,axi-spdif-1.00.a"
+ - compatible : Must be "adi,axi-spdif-tx-1.00.a"
   - reg : Must contain SPDIF core's registers location and length
   - clocks : Pairs of phandle and specifier referencing the controller's clocks.
     The controller expects two clocks, the clock used for the AXI interface and
Reviewed-by on v2 7/11
#32 lore raw

Re: [PATCH v2 07/11] Documentation: devicetree: Fix Xilinx VDMA specification

In reply to Andreas Färber

Hi Vinod,

Quoted 16 lines · Andreas F?rber

The specification requires xlnx,data-width, but example and driver use xlnx,datawidth. Change the specification to match the implementation.

---
v2: New

 Documentation/devicetree/bindings/dma/xilinx/xilinx_vdma.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/dma/xilinx/xilinx_vdma.txt +0 -0
index 1405ed0..e4c4d47 100644

Documentation/devicetree/bindings/dma/xilinx/xilinx_vdma.txt Required child node properties: · line 31

Quoted 8 lines
Documentation/devicetree/bindings/dma/xilinx/xilinx_vdma.txt +1 -1
@@ -25,7 +25,7 @@ Required child node properties:
 - compatible: It should be either "xlnx,axi-vdma-mm2s-channel" or
 	"xlnx,axi-vdma-s2mm-channel".
 - interrupts: Should contain per channel VDMA interrupts.
-- xlnx,data-width: Should contain the stream data width, take values
+- xlnx,datawidth: Should contain the stream data width, take values
 	{32,64...1024}.
 
 Optional child node properties:

Can you please take this patch through your tree?

Thanks,
Michal

Signature · 14 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140725/eeca008a/attachment.sig>
#14 lore raw

Re: [PATCH v2 05/11] ARM: dts: zynq: Add QSPI for Parallella

In reply to Sören Brinkmann
Quoted 2 lines · S?ren Brinkmann
Quoted 1 line · Andreas F?rber

Prepare SPI0 and SPI1 while at it.

Patch subject is incorrect. You are adding SPI and QSPI.

Quoted 50 lines
Quoted 31 lines

---
v2: New

 arch/arm/boot/dts/zynq-7000.dtsi      | 37 +++++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/zynq-parallella.dts |  4 ++++
 2 files changed, 41 insertions(+)
arch/arm/boot/dts/zynq-7000.dtsi +14 -0
index 8fd826a..eed3df0 100644
@@ -122,6 +122,30 @@
 			interrupts = <0 50 4>;
 		};
 
+		spi0: spi at e0006000 {
+			compatible = "xlnx,zynq-spi-r1p6";
+			reg = <0xe0006000 0x1000>;
+			status = "disabled";
+			interrupt-parent = <&intc>;
+			interrupts = <0 26 4>;
+			clocks = <&clkc 25>, <&clkc 34>;
+			clock-names = "ref_clk", "pclk";
+			#address-cells = <1>;
+			#size-cells = <0>;
+		};
+
+		spi1: spi at e0007000 {
+			compatible = "xlnx,zynq-spi-r1p6";

arch/arm/boot/dts/zynq-7000.dtsi line 148

Quoted 10 lines
arch/arm/boot/dts/zynq-7000.dtsi +10 -0
+			reg = <0xe0007000 0x1000>;
+			status = "disabled";
+			interrupt-parent = <&intc>;
+			interrupts = <0 49 4>;
+			clocks = <&clkc 26>, <&clkc 35>;
+			clock-names = "ref_clk", "pclk";
+			#address-cells = <1>;
+			#size-cells = <0>;
+		};
+

Until here things look good.

Quoted 7 lines
arch/arm/boot/dts/zynq-7000.dtsi +0 -0
 		gem0: ethernet at e000b000 {
 			compatible = "cdns,gem";
 			reg = <0xe000b000 0x4000>;
@@ -140,6 +164,19 @@
 			clock-names = "pclk", "hclk", "tx_clk";
 		};
 
Quoted 16 lines

arch/arm/boot/dts/zynq-7000.dtsi line 179

Quoted 13 lines
arch/arm/boot/dts/zynq-7000.dtsi +13 -0
+		qspi: qspi at e000d000 {
+			compatible = "xlnx,zynq-spi-r1p6";
+			reg = <0xe000d000 0x1000>;
+			status = "disabled";
+			interrupt-parent = <&intc>;
+			interrupts = <0 19 4>;
+			clocks = <&clkc 10>, <&clkc 43>;
+			clock-names = "ref_clk", "pclk";
+			num-cs = <1>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+		};
+

I'm not sure what the status of this driver is. I think QSPI is still under review on the mailing lists and I don't think we should add this yet.

Driver for qspi is not in the mainline yet but it doesn't mean that this fragment won't work.
Harini: Can you please correct me if I am wrong?

I would prefer to send two separate patches.

1. just add SPI to zynq
2. if Harini confirms that it is working I think that make sense to enable at least simple mode for qspi. That's why not a problem to add it too. It means qspi patch with enabling for your board as second patch.

Thanks,
Michal

Signature · 14 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140725/ece305c0/attachment.sig>
#2 lore raw

Re: [PATCH v2 01/11] Documentation: devicetree: Adapteva vendor prefix

In reply to Andreas Färber
Quoted 14 lines · Andreas F?rber
Cc Andreas Olofsson <[email protected]>

---
v2: New

 Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/vendor-prefixes.txt +0 -0
index 46a311e..a8708c7 100644

Documentation/devicetree/bindings/vendor-prefixes.txt using them to avoid name-space collisions. · line 12

Quoted 7 lines
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
@@ -6,6 +6,7 @@ using them to avoid name-space collisions.
 abilis	Abilis Systems
 active-semi	Active-Semi International Inc
 ad	Avionic Design GmbH
+adapteva	Adapteva, Inc.
 adi	Analog Devices, Inc.
 aeroflexgaisler	Aeroflex Gaisler AB
 ak	Asahi Kasei Corp.

Applied zynq/dt branch.
https://github.com/Xilinx/linux-xlnx/commits/zynq/dt

Thanks,
Michal

Signature · 14 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140725/05ae300b/attachment.sig>
Applied
#4 lore raw

Re: [PATCH v2 02/11] Documentation: devicetree: Adapteva boards

In reply to Andreas Färber
Quoted 18 lines · Andreas F?rber

We're about to add a device tree for the Parallella board.

Cc Andreas Olofsson <[email protected]>

---
v2: New

 Documentation/devicetree/bindings/arm/adapteva.txt | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/adapteva.txt
Documentation/devicetree/bindings/arm/adapteva.txt new file +0 -0
new file mode 100644
index 0000000..1d8af9e

Documentation/devicetree/bindings/arm/adapteva.txt line 7

Quoted 7 lines
Documentation/devicetree/bindings/arm/adapteva.txt new file +7 -0
@@ -0,0 +1,7 @@
+Adapteva Platforms Device Tree Bindings
+---------------------------------------
+
+Parallella board
+
+Required root node properties:
+    - compatible = "adapteva,parallella";

Applied to zynq/dt branch.
https://github.com/Xilinx/linux-xlnx/commits/zynq/dt

Thanks,
Michal

Signature · 14 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140725/e97b3652/attachment.sig>
Applied
#6 lore raw

Re: [PATCH v2 03/11] ARM: dts: zynq: Add Parallella device tree

In reply to Andreas Färber
Quoted 92 lines · Andreas F?rber

This allows to boot the Adapteva Parallella board to serial console.

Cc Andreas Olofsson <[email protected]>

---
v1 -> v2:
* Added board-specific compatible string (Olof Johansson).
* Added /chosen linux,stdout-path property (Olof Johansson).
* Fixed /memory reg size 0x20000000 -> 0x40000000 (0 considered).
* Added vendor name to root node's model property (Olof Johansson).

 arch/arm/boot/dts/Makefile            |  4 ++-
 arch/arm/boot/dts/zynq-parallella.dts | 64 +++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/zynq-parallella.dts
arch/arm/boot/dts/Makefile +3 -1
index adb5ed9..976720f 100644
@@ -419,7 +419,9 @@ dtb-$(CONFIG_ARCH_VT8500) += vt8500-bv07.dtb \
 	wm8650-mid.dtb \
 	wm8750-apc8750.dtb \
 	wm8850-w70v2.dtb
-dtb-$(CONFIG_ARCH_ZYNQ) += zynq-zc702.dtb \
+dtb-$(CONFIG_ARCH_ZYNQ) += \
+	zynq-parallella.dtb \
+	zynq-zc702.dtb \
 	zynq-zc706.dtb \
 	zynq-zed.dtb
 dtb-$(CONFIG_MACH_ARMADA_370) += \
arch/arm/boot/dts/zynq-parallella.dts new file +54 -0
new file mode 100644
index 0000000..41afd9d
@@ -0,0 +1,64 @@
+/*
+ * Copyright (c) 2014 SUSE LINUX Products GmbH
+ *
+ * Derived from zynq-zed.dts:
+ *
+ *  Copyright (C) 2011 Xilinx
+ *  Copyright (C) 2012 National Instruments Corp.
+ *  Copyright (C) 2013 Xilinx
+ *
+ * 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 = "Adapteva Parallella Board";
+	compatible = "adapteva,parallella", "xlnx,zynq-7000";
+
+	memory {
+		device_type = "memory";
+		reg = <0 0x40000000>;
+	};
+
+	chosen {
+		bootargs = "console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait";
+		linux,stdout-path = "/amba/serial at e0001000";
+	};
+};
+
+&gem0 {
+	status = "okay";
+	phy-mode = "rgmii-id";
+	phy-handle = <&ethernet_phy>;
+	#address-cells = <1>;
+	#size-cells = <0>;
+
+	ethernet_phy: ethernet-phy at 0 {
+		/* Marvell 88E1318 */
+		compatible = "ethernet-phy-id0141.0e90",
+		             "ethernet-phy-ieee802.3-c22";
+		reg = <0>;
+		marvell,reg-init = <0x3 0x10 0xff00 0x1e>,
+		                   <0x3 0x11 0xfff0 0xa>;
+	};
+};
+
+&i2c0 {

arch/arm/boot/dts/zynq-parallella.dts line 64

Quoted 10 lines
arch/arm/boot/dts/zynq-parallella.dts new file +10 -0
+	status = "okay";
+};
+
+&sdhci1 {
+	status = "okay";
+};
+
+&uart1 {
+	status = "okay";
+};

Applied to zynq/dt branch.
https://github.com/Xilinx/linux-xlnx/commits/zynq/dt

Thanks,
Michal

Signature · 14 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140725/040ba75f/attachment.sig>
Applied
#27 lore raw

Re: [PATCH v2 06/11] ARM: dts: zynq: Add DMAC for Parallella

In reply to Sören Brinkmann
Quoted 17 lines · S?ren Brinkmann
Quoted 16 lines · Andreas F?rber

---
v2: New

 arch/arm/boot/dts/zynq-7000.dtsi      | 17 +++++++++++++++++
 arch/arm/boot/dts/zynq-parallella.dts |  4 ++++
 2 files changed, 21 insertions(+)
arch/arm/boot/dts/zynq-7000.dtsi +0 -0
index eed3df0..1a70277 100644
@@ -223,6 +223,23 @@
 			};
 		};
 
Quoted 6 lines

arch/arm/boot/dts/zynq-7000.dtsi line 229

Quoted 4 lines
arch/arm/boot/dts/zynq-7000.dtsi +4 -0
+		dmac_s: dmac at f8003000 {
+			compatible = "arm,pl330", "arm,primecell";
+			reg = <0xf8003000 0x1000>;
+			status = "disabled";

I think for this IP we can omit the 'status' property since it is always enabled. I don't see a reason to override it in each board DT.

Done this change myself

Quoted 16 lines
Quoted 4 lines
arch/arm/boot/dts/zynq-7000.dtsi +3 -0
+			interrupt-parent = <&intc>;
+			interrupts = <0 13 4>,
+			             <0 14 4>, <0 15 4>,

arch/arm/boot/dts/zynq-7000.dtsi line 242

Quoted 10 lines
arch/arm/boot/dts/zynq-7000.dtsi +10 -0
+			             <0 16 4>, <0 17 4>,
+			             <0 40 4>, <0 41 4>,
+			             <0 42 4>, <0 43 4>;
+			#dma-cells = <1>;
+			#dma-channels = <8>;
+			#dma-requests = <4>;
+			clocks = <&clkc 27>;
+			clock-names = "apb_pclk";
+		};
+

Applied to zynq/dt branch.
https://github.com/Xilinx/linux-xlnx/commits/zynq/dt

Thanks,
Michal

Signature · 14 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140725/a7752890/attachment-0001.sig>
Reviewed-by
#43 lore raw

Re: [PATCH v2 09/11] Documentation: devicetree: Fix ADI AXI SPDIF specification

In reply to Lars-Peter Clausen

Hi Mark,

Quoted 8 lines · Lars-Peter Clausen
Quoted 5 lines · Andreas F?rber

The specification requires compatible = "adi,axi-spdif-1.00.a" but driver and example and file name indicate "adi,axi-spdif-tx-1.00.a". Change the specification to match the implementation.

All these patches have been added through your tree that's why I think you should take this fix through his tree.

Here is my:

Thanks,
Michal

Signature · 14 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140725/3f7f6506/attachment.sig>
#28 lore raw

Re: [PATCH v2 06/11] ARM: dts: zynq: Add DMAC for Parallella

In reply to Michal Simek

Am 25.07.2014 10:02, schrieb Michal Simek:

Quoted 18 lines · S?ren Brinkmann
Quoted 17 lines · Andreas F?rber
Quoted 16 lines

---
v2: New

 arch/arm/boot/dts/zynq-7000.dtsi      | 17 +++++++++++++++++
 arch/arm/boot/dts/zynq-parallella.dts |  4 ++++
 2 files changed, 21 insertions(+)
arch/arm/boot/dts/zynq-7000.dtsi +0 -0
index eed3df0..1a70277 100644
@@ -223,6 +223,23 @@
 			};
 		};
 
Quoted 8 lines
Quoted 6 lines

arch/arm/boot/dts/zynq-7000.dtsi line 229

Quoted 4 lines
arch/arm/boot/dts/zynq-7000.dtsi +4 -0
+		dmac_s: dmac at f8003000 {
+			compatible = "arm,pl330", "arm,primecell";
+			reg = <0xf8003000 0x1000>;
+			status = "disabled";

I think for this IP we can omit the 'status' property since it is always enabled. I don't see a reason to override it in each board DT.

Done this change myself

Fine with me, but allow me to point out that the TRM documents the DMAC being mapped as DMAC S at the above address, and as DMAC NS at F800_4000 (secure vs. non-secure, ch. 4.6, p. 116). Not sure how this would be handled driver-wise if not through alternative dt nodes?

Quoted 17 lines
Quoted 7 lines
Quoted 7 lines
arch/arm/boot/dts/zynq-7000.dtsi +7 -0
+			interrupt-parent = <&intc>;
+			interrupts = <0 13 4>,
+			             <0 14 4>, <0 15 4>,
+			             <0 16 4>, <0 17 4>,
+			             <0 40 4>, <0 41 4>,
+			             <0 42 4>, <0 43 4>;
+			#dma-cells = <1>;
Quoted 8 lines

arch/arm/boot/dts/zynq-7000.dtsi line 242

Quoted 6 lines
arch/arm/boot/dts/zynq-7000.dtsi +6 -0
+			#dma-channels = <8>;
+			#dma-requests = <4>;
+			clocks = <&clkc 27>;
+			clock-names = "apb_pclk";
+		};
+
Quoted 2 lines

Applied to zynq/dt branch.
https://github.com/Xilinx/linux-xlnx/commits/zynq/dt

Thanks,
Andreas

Signature · 10 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imend?rffer; HRB 16746 AG N?rnberg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140725/a57e71e3/attachment-0001.sig>
#29 lore raw

Re: [PATCH v2 06/11] ARM: dts: zynq: Add DMAC for Parallella

Quoted 26 lines · Andreas F?rber

Am 25.07.2014 10:02, schrieb Michal Simek:

Quoted 25 lines · S?ren Brinkmann
Quoted 23 lines · Andreas F?rber
Quoted 13 lines

---
v2: New

 arch/arm/boot/dts/zynq-7000.dtsi      | 17 +++++++++++++++++
 arch/arm/boot/dts/zynq-parallella.dts |  4 ++++
 2 files changed, 21 insertions(+)
arch/arm/boot/dts/zynq-7000.dtsi +0 -0
index eed3df0..1a70277 100644

arch/arm/boot/dts/zynq-7000.dtsi line 229

Quoted 7 lines
arch/arm/boot/dts/zynq-7000.dtsi +4 -0
@@ -223,6 +223,23 @@
 			};
 		};
 
+		dmac_s: dmac at f8003000 {
+			compatible = "arm,pl330", "arm,primecell";
+			reg = <0xf8003000 0x1000>;
+			status = "disabled";

I think for this IP we can omit the 'status' property since it is always enabled. I don't see a reason to override it in each board DT.

Quoted 6 lines
Quoted 1 line

Done this change myself

Fine with me, but allow me to point out that the TRM documents the DMAC being mapped as DMAC S at the above address, and as DMAC NS at F800_4000 (secure vs. non-secure, ch. 4.6, p. 116). Not sure how this would be handled driver-wise if not through alternative dt nodes?

Kernel on zynq runs in secure world. All the sw on zynq from beginning runs in secure world. I haven't had any time to look at switching kernel to NS.
That's why having dmac in this dts as default configuration in secure world is fine.

It is not about how driver will handle - driver shouldn't care. It is how users will handle that kernel runs in non secure and how to change DTS to reflect this.
Bootloader can do this change for example. Or if there is an option to detect at run time by kernel that we are in NS than kernel itself can patch dmac node and use different address.
Definitely bootloader or setup correct address by user is preferred way.

Thanks,
Michal

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140725/ab55f6cc/attachment.sig>

#15 lore raw

Re: [PATCH v2 05/11] ARM: dts: zynq: Add QSPI for Parallella

In reply to Michal Simek

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 25.07.2014 09:59, schrieb Michal Simek:

Quoted 5 lines · S?ren Brinkmann
Quoted 2 lines · Andreas F?rber
Quoted 1 line

Prepare SPI0 and SPI1 while at it.

Patch subject is incorrect. You are adding SPI and QSPI.

Yes, it originally added only QSPI, but I considered it a good deed to add SPI as well while already reading that part of the TRM. :)

Quoted 41 lines
Quoted 31 lines
Quoted 17 lines

arch/arm/boot/dts/zynq-7000.dtsi | 37
+++++++++++++++++++++++++++++++++++
arch/arm/boot/dts/zynq-parallella.dts | 4 ++++ 2 files changed, 41 insertions(+)

(quoted diff) +0 -0

b/arch/arm/boot/dts/zynq-7000.dtsi index 8fd826a..eed3df0 100644 --- a/arch/arm/boot/dts/zynq-7000.dtsi +++ b/arch/arm/boot/dts/zynq-7000.dtsi @@ -122,6 +122,30 @@ interrupts = <0 50 4>; };

(quoted diff) +2 -0
+		spi0: spi at e0006000 { +			compatible = "xlnx,zynq-spi-r1p6"; 
+			reg = <0xe0006000 0x1000>; +			status = "disabled"; +

interrupt-parent = <&intc>; + interrupts = <0 26 4>; +

Quoted 8 lines

clocks = <&clkc 25>, <&clkc 34>; + clock-names = "ref_clk",
"pclk"; + #address-cells = <1>; + #size-cells = <0>; + };
+ + spi1: spi at e0007000 { + compatible =
"xlnx,zynq-spi-r1p6"; + reg = <0xe0007000 0x1000>; + status
= "disabled"; + interrupt-parent = <&intc>; + interrupts =
<0 49 4>; + clocks = <&clkc 26>, <&clkc 35>; + clock-names
= "ref_clk", "pclk"; + #address-cells = <1>; + #size-cells
= <0>; + }; +

Until here things look good.

Quoted 4 lines

gem0: ethernet at e000b000 { compatible = "cdns,gem"; reg = <0xe000b000 0x4000>; @@ -140,6 +164,19 @@ clock-names = "pclk", "hclk", "tx_clk"; };

Quoted 9 lines
Quoted 6 lines
(quoted diff) +1 -0
+		qspi: qspi at e000d000 { +			compatible =

"xlnx,zynq-spi-r1p6"; + reg = <0xe000d000 0x1000>; + status
= "disabled"; + interrupt-parent = <&intc>; + interrupts =
<0 19 4>; + clocks = <&clkc 10>, <&clkc 43>; + clock-names
= "ref_clk", "pclk"; + num-cs = <1>; + #address-cells =
<1>; + #size-cells = <0>; + }; +

I'm not sure what the status of this driver is. I think QSPI is still under review on the mailing lists and I don't think we should add this yet.

Quoted 3 lines

Driver for qspi is not in the mainline yet but it doesn't mean that this fragment won't work. Harini: Can you please correct me if I am wrong?

It did seem to find the flash chip (cf. parallella-next branch), but I didn't find a driver capable of handling its ID. The downstream tree was using m25p80; I tried both micron,n25q128a11 and ...a13 based on U-Boot output.

Quoted 1 line

I would prefer to send two separate patches.

Will do.

Quoted 1 line

1. just add SPI to zynq

As I don't have any of the other Zynq boards, can you please advise whether either of them should be enabled for some board?

Quoted 4 lines

2. if Harini confirms that it is working I think that make sense to enable at least simple mode for qspi. That's why not a problem to add it too. It means qspi patch with enabling for your board as second patch.

Thanks,
Andreas

- --
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imend?rffer; HRB 16746 AG N?rnberg -----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBAgAGBQJT0hiHAAoJEPou0S0+fgE/DQwP/1zkv0tkOemDedPDa9dVu/77 0Qc9LTsbBsbn6STakd2z1+Iz2qoy4dePjsGd3hYVgHV6S6MnEiSDTqKjGXmX4Dqu ALxksCLi0wezlQuEN2H110eivMGJ8DBz0qCq0t1acN5Y4YhF9tiCNQARF6XoAwcK 6FtGic/qVC92byGosbD4Y/SvZpJPuk+gACyIhUYEJTS/jKwB68jm5pZZbdGrVsB+ H4B9tGc+qs4bumdmbzxPXp66HyOqKsfRT0P/S6N0nvkqvNaWyM+MAmB4VDW3dnJJ 2ApbNJaPCoKtMHTQ2vnWstOVM4smsYJsszBF1zBIwUYgwW4q2Nv3vvjI23746m+x gq7Tlqa5yIuPe/9+f6ek4dbZWQ7Zj+xw68taLvFkw9+4HvFd9qul/BxryFGTkErH mZkEuQqTq1oppLGS+2ld+/VXt452UKF80Potra/Qt6D/LUA2UBcEIjoLpYxndjqz 3QrVNsw625LCyvJdYovO3FLHJ69U9VyZ4/8edDQzVvhD6/pcQp75W6mchWkxGnyS jZVwKsIKVAWC9k6N6ZOLC5A8KOHRGGY5SOOpOLUQkfTviI5r2eAY5CvX8HOqx9s9 +tVphTMSLc5rC26ePdMwqAWbax4xt1kmWSiSUZ8cOnKvaUpWEPsAfQNMDsBfWiLN aMQyrzdYs+nuCoIksVfN
=h5eC
-----END PGP SIGNATURE-----

#33 lore raw

Re: [PATCH v2 07/11] Documentation: devicetree: Fix Xilinx VDMA specification

In reply to Michal Simek

Hi Michal,

Am 25.07.2014 09:49, schrieb Michal Simek:

Quoted 11 lines · Andreas F?rber
Quoted 10 lines

The specification requires xlnx,data-width, but example and driver use xlnx,datawidth. Change the specification to match the implementation.

---
v2: New

 Documentation/devicetree/bindings/dma/xilinx/xilinx_vdma.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 11 lines

Documentation/devicetree/bindings/dma/xilinx/xilinx_vdma.txt Required child node properties: · line 29

Quoted 11 lines
Documentation/devicetree/bindings/dma/xilinx/xilinx_vdma.txt +1 -1
index 1405ed0..e4c4d47 100644
@@ -25,7 +25,7 @@ Required child node properties:
 - compatible: It should be either "xlnx,axi-vdma-mm2s-channel" or
 	"xlnx,axi-vdma-s2mm-channel".
 - interrupts: Should contain per channel VDMA interrupts.
-- xlnx,data-width: Should contain the stream data width, take values
+- xlnx,datawidth: Should contain the stream data width, take values
 	{32,64...1024}.

BTW I just notice that this values specification is ambiguous as to whether 96 is a valid value or only powers of 2 like 128. Maybe you want to clarify that in a follow-up patch?

Cheers,
Andreas

Quoted 10 lines

Documentation/devicetree/bindings/dma/xilinx/xilinx_vdma.txt Required child node properties: · line 31

Quoted 3 lines
Documentation/devicetree/bindings/dma/xilinx/xilinx_vdma.txt +0 -0
 Optional child node properties:
 

Can you please take this patch through your tree?

Thanks,
Michal

Signature · 10 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imend?rffer; HRB 16746 AG N?rnberg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140725/ece09d6f/attachment.sig>
#16 lore raw

Re: [PATCH v2 05/11] ARM: dts: zynq: Add QSPI for Parallella

In reply to Andreas Färber
Quoted 60 lines · Andreas F?rber

Am 25.07.2014 09:59, schrieb Michal Simek:

Quoted 5 lines · S?ren Brinkmann
Quoted 2 lines · Andreas F?rber
Quoted 1 line

Prepare SPI0 and SPI1 while at it.

Patch subject is incorrect. You are adding SPI and QSPI.

Yes, it originally added only QSPI, but I considered it a good deed to add SPI as well while already reading that part of the TRM. :)

Quoted 41 lines
Quoted 31 lines
Quoted 17 lines

arch/arm/boot/dts/zynq-7000.dtsi | 37
+++++++++++++++++++++++++++++++++++
arch/arm/boot/dts/zynq-parallella.dts | 4 ++++ 2 files changed, 41 insertions(+)

(quoted diff) +0 -0

b/arch/arm/boot/dts/zynq-7000.dtsi index 8fd826a..eed3df0 100644 --- a/arch/arm/boot/dts/zynq-7000.dtsi +++ b/arch/arm/boot/dts/zynq-7000.dtsi @@ -122,6 +122,30 @@ interrupts = <0 50 4>; };

(quoted diff) +2 -0
+		spi0: spi at e0006000 { +			compatible = "xlnx,zynq-spi-r1p6"; 
+			reg = <0xe0006000 0x1000>; +			status = "disabled"; +

interrupt-parent = <&intc>; + interrupts = <0 26 4>; +

Quoted 8 lines

clocks = <&clkc 25>, <&clkc 34>; + clock-names = "ref_clk",
"pclk"; + #address-cells = <1>; + #size-cells = <0>; + };
+ + spi1: spi at e0007000 { + compatible =
"xlnx,zynq-spi-r1p6"; + reg = <0xe0007000 0x1000>; + status
= "disabled"; + interrupt-parent = <&intc>; + interrupts =
<0 49 4>; + clocks = <&clkc 26>, <&clkc 35>; + clock-names
= "ref_clk", "pclk"; + #address-cells = <1>; + #size-cells
= <0>; + }; +

Until here things look good.

Quoted 4 lines

gem0: ethernet at e000b000 { compatible = "cdns,gem"; reg = <0xe000b000 0x4000>; @@ -140,6 +164,19 @@ clock-names = "pclk", "hclk", "tx_clk"; };

Quoted 9 lines
Quoted 6 lines
(quoted diff) +1 -0
+		qspi: qspi at e000d000 { +			compatible =

"xlnx,zynq-spi-r1p6"; + reg = <0xe000d000 0x1000>; + status
= "disabled"; + interrupt-parent = <&intc>; + interrupts =
<0 19 4>; + clocks = <&clkc 10>, <&clkc 43>; + clock-names
= "ref_clk", "pclk"; + num-cs = <1>; + #address-cells =
<1>; + #size-cells = <0>; + }; +

I'm not sure what the status of this driver is. I think QSPI is still under review on the mailing lists and I don't think we should add this yet.

Quoted 3 lines

Driver for qspi is not in the mainline yet but it doesn't mean that this fragment won't work. Harini: Can you please correct me if I am wrong?

It did seem to find the flash chip (cf. parallella-next branch), but I didn't find a driver capable of handling its ID. The downstream tree was using m25p80; I tried both micron,n25q128a11 and ...a13 based on U-Boot output.

Quoted 8 lines
Quoted 1 line

I would prefer to send two separate patches.

Will do.

Quoted 1 line

1. just add SPI to zynq

As I don't have any of the other Zynq boards, can you please advise whether either of them should be enabled for some board?

we don't have them enabled for any board in default configuration that's why just adding nodes with status = "disabled" is fine.

Thanks,
Michal

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140725/5a76e576/attachment.sig>

#34 lore raw

Re: [PATCH v2 07/11] Documentation: devicetree: Fix Xilinx VDMA specification

In reply to Andreas Färber

Hi Andreas,

Quoted 14 lines · Andreas F?rber

Hi Michal,

Am 25.07.2014 09:49, schrieb Michal Simek:

Quoted 11 lines · Andreas F?rber
Quoted 10 lines

The specification requires xlnx,data-width, but example and driver use xlnx,datawidth. Change the specification to match the implementation.

---
v2: New

 Documentation/devicetree/bindings/dma/xilinx/xilinx_vdma.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines
Quoted 11 lines

Documentation/devicetree/bindings/dma/xilinx/xilinx_vdma.txt Required child node properties: · line 29

Quoted 11 lines
Documentation/devicetree/bindings/dma/xilinx/xilinx_vdma.txt +1 -1
index 1405ed0..e4c4d47 100644
@@ -25,7 +25,7 @@ Required child node properties:
 - compatible: It should be either "xlnx,axi-vdma-mm2s-channel" or
 	"xlnx,axi-vdma-s2mm-channel".
 - interrupts: Should contain per channel VDMA interrupts.
-- xlnx,data-width: Should contain the stream data width, take values
+- xlnx,datawidth: Should contain the stream data width, take values
 	{32,64...1024}.

BTW I just notice that this values specification is ambiguous as to whether 96 is a valid value or only powers of 2 like 128. Maybe you want to clarify that in a follow-up patch?

really appreciate your help for improving this.
Srikanth T: Can you please look at it?

Thanks,
Michal

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140725/075d7662/attachment.sig>

#39 lore raw

Re: [PATCH v2 08/11] ARM: dts: zynq: Add VDMA to Parallella

In reply to Sören Brinkmann

Hi S?ren,

Am 25.07.2014 01:22, schrieb S?ren Brinkmann:

Quoted 8 lines · Andreas F?rber
Quoted 7 lines

---
v2: New

 arch/arm/boot/dts/zynq-parallella.dts | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
Quoted 14 lines

arch/arm/boot/dts/zynq-parallella.dts line 36

Quoted 10 lines
arch/arm/boot/dts/zynq-parallella.dts +2 -0
index e60a0a9..8beaacc 100644
@@ -32,6 +32,31 @@
 		bootargs = "console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait";
 		linux,stdout-path = "/amba/serial at e0001000";
 	};
+
+	fpga {

Do you really want FPGA components in this DT?
If somebody tries booting with this DT without programming with a corresponding bitstream, the whole system might hang. Just something to consider.

Well, that's related to a question that remained unanswered on v1:
whether we may need to turn this into a .dtsi to cope with variations.

The Parallella has an on-board ?HDMI connector, and two bitstreams are delivered - one for HDMI and one for headless usage. In my testing I am using the original HDMI bitstream but serial console for lack of upstream HDMI drivers. Do you think we need to provide zynq-parallella-hdmi.dts and zynq-parallella-headless.dts? (It gets worse if at some point we need to handle variations of the on-board Epiphany chip plus the bitstreams - at least the Z7010 vs. Z7020 doesn't affect DT AFAICT.)

Since, as noted in the cover letter, these FPGA patches are not yet fully testable, I wouldn't mind deferring them, but wanted to get them out for review early.

http://www.parallella.org/2014/07/14/new-parallella-product-offerings/
indicates there will be a new variation in gen2 without USB/HDMI. Would it be valid to #include a .dts (rather than .dtsi) to override status and keep number of Parallella files low?

Regards,
Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imend?rffer; HRB 16746 AG N?rnberg
#56 lore raw
In reply to Punnaiah Choudary Kalluri

Hi Punnaiah,

Am 25.07.2014 05:49, schrieb Punnaiah Choudary Kalluri:

Quoted 10 lines
Quoted 4 lines

Punnaiah Choudary Kalluri had recently proposed to extend the Chipidea USB driver for Zynq; it kept complaining about the PHY though, and I haven't spotted a revised version based on the generic driver yet.
https://patchwork.kernel.org/patch/4434681/

The plan is, go with generic chip idea driver which is currently under review.
http://www.spinics.net/lists/linux-usb/msg109576.html

So, please wait some more time for extending the Chip idea driver support
to zynq.

Thanks, I did understand that from the Patchwork link. I was however wondering whether you already have some work branch based on Antoine T?nart's series that you could share?

When we get HDMI working, a USB keyboard will come very handy. ;)

Otherwise, could you please take a look at my branch and let me know whether I'm doing something fundamentally wrong in wiring your old driver up in my DT? I did not see any .dts example doing so.

Cheers,
Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imend?rffer; HRB 16746 AG N?rnberg
maintainer
#44 lore raw

Re: [PATCH v2 09/11] Documentation: devicetree: Fix ADI AXI SPDIF specification

In reply to Michal Simek
Quoted 2 lines · Michal Simek

All these patches have been added through your tree that's why I think you should take this fix through his tree.

If someone could send me patches I'll take a look at them.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140725/819c58a4/attachment.sig>

#22 lore raw

RE: [PATCH v2 05/11] ARM: dts: zynq: Add QSPI for Parallella

In reply to a message not in the archive

Hi,

Quoted 64 lines

-----Original Message-----
From: Michal Simek [mailto:michal.simek at xilinx.com]
Sent: Friday, July 25, 2014 3:08 PM
To: Andreas F?rber; monstr at monstr.eu; Soren Brinkmann
Cc: Harini Katakam; Michal Simek; Andreas Olofsson; Matteo Vit; Sean Rickerd; devicetree at vger.kernel.org; linux-arm-kernel at lists.infradead.org; linux-kernel at vger.kernel.org; Rob Herring; Pawel Moll; Mark Rutland; Ian Campbell; Kumar Gala; Russell King
Subject: Re: [PATCH v2 05/11] ARM: dts: zynq: Add QSPI for Parallella

Quoted 18 lines · Andreas F?rber

Am 25.07.2014 09:59, schrieb Michal Simek:

Quoted 5 lines · S?ren Brinkmann
Quoted 2 lines · Andreas F?rber
Quoted 1 line

Prepare SPI0 and SPI1 while at it.

Patch subject is incorrect. You are adding SPI and QSPI.

Yes, it originally added only QSPI, but I considered it a good deed to add SPI as well while already reading that part of the TRM. :)

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

arch/arm/boot/dts/zynq-7000.dtsi | 37
+++++++++++++++++++++++++++++++++++
arch/arm/boot/dts/zynq-parallella.dts | 4 ++++ 2 files changed, 41 insertions(+)

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

Review

Quoted 7 lines
(quoted diff) +0 -0

b/arch/arm/boot/dts/zynq-7000.dtsi index 8fd826a..eed3df0 100644 --- a/arch/arm/boot/dts/zynq-7000.dtsi +++ b/arch/arm/boot/dts/zynq-7000.dtsi @@ -122,6 +122,30 @@ interrupts = <0 50 4>; };

(quoted diff) +1 -0
+		spi0: spi at e0006000 { +			compatible =

"xlnx,zynq-spi-r1p6";

Quoted 1 line
Quoted 1 line
Quoted 1 line

Review

Quoted 1 line
(quoted diff) +1 -0
+			reg = <0xe0006000 0x1000>; +			status

= "disabled"; +

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

interrupt-parent = <&intc>; + interrupts = <0 26 4>;

+

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

clocks = <&clkc 25>, <&clkc 34>; + clock-names =

"ref_clk",

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"pclk"; + #address-cells = <1>; + #size-

cells = <0>; + };

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

+ + spi1: spi at e0007000 { + compatible =
"xlnx,zynq-spi-r1p6"; + reg = <0xe0007000 0x1000>; +

status

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

= "disabled"; + interrupt-parent = <&intc>; +

interrupts =

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

<0 49 4>; + clocks = <&clkc 26>, <&clkc 35>; +

clock-names

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

= "ref_clk", "pclk"; + #address-cells = <1>; +

#size-cells

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 1 line

= <0>; + }; +

Until here things look good.

Quoted 6 lines

gem0: ethernet at e000b000 { compatible = "cdns,gem"; reg = <0xe000b000 0x4000>; @@ -140,6 +164,19 @@ clock-names = "pclk", "hclk", "tx_clk"; };

(quoted diff) +1 -0
+		qspi: qspi at e000d000 { +			compatible =

"xlnx,zynq-spi-r1p6"; + reg = <0xe000d000 0x1000>; +

status

Quoted 15 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

= "disabled"; + interrupt-parent = <&intc>; +

interrupts =

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

<0 19 4>; + clocks = <&clkc 10>, <&clkc 43>; +

clock-names

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

= "ref_clk", "pclk"; + num-cs = <1>; +

#address-cells =

Quoted 9 lines
Quoted 8 lines
Quoted 4 lines
Quoted 1 line

<1>; + #size-cells = <0>; + }; +

I'm not sure what the status of this driver is. I think QSPI is still under review on the mailing lists and I don't think we should add this yet.

Driver for qspi is not in the mainline yet but it doesn't mean that this fragment won't work. Harini: Can you please correct me if I am wrong?

It can be added but it will have to be disabled as there is no qspi driver at the moment in mainline.

Regards,
Harini

#45 lore raw

Re: [PATCH v2 09/11] Documentation: devicetree: Fix ADI AXI SPDIF specification

In reply to Mark Brown

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 25.07.2014 12:18, schrieb Mark Brown:

Quoted 6 lines · Michal Simek
Quoted 3 lines

All these patches have been added through your tree that's why I think you should take this fix through his tree.

If someone could send me patches I'll take a look at them.

I used scripts/get_maintainer.pl --nogit-fallback. If you were not CC'ed and need to be, please submit a MAINTAINERS patch. :)

Maybe this works for you?
https://patchwork.kernel.org/patch/4620191/

Otherwise I can resend with Ab/Rb.

Andreas

- --
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imend?rffer; HRB 16746 AG N?rnberg -----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBAgAGBQJT0jJLAAoJEPou0S0+fgE/od0QAItNVBWohkpacvB5M+Oh0x5H 40aYXWOPVrAHRfXlh5SsSQyba/2P6q719meJL3FseU7Jj+rbkPnICf3q5KWgN3Vb iXoO+UQPn/gvredRql9g5eUj0xeh6j3bIAmEYmmme3opg0siKV1Gd6D9vEezjL8x M3xroJ05EbhjAd1UrgW/xEINAfDExLXbUQhsbls1tzL7WL9Cx4Obi7/KWiAVATMU RPNQiz8zyVXoJq0i596fAKX+EPaID2ztr26IQtpH+vOJOpRhtQeX+B+HBxTm89yO mg7ZnklhXFFaAYhXKEm1itMbi8OnCUzDuk5hPklCJF+WgzBbyq29erx53VaRQAij jrebNU4UB0/si7Gnl/XwvRMDUaVDkF6OaeeSjwKZvk0R6o02lperM51gKOgsDdC9 G9VPb9AoNvbebEaNvonU22gB81RWg1MFkW7XF1Enj0C+xINePG86TXpWNiNUPfdV QAyYhwrAlePV4tKYqnyDd1d8orPs5TySVt3tuloUTB17IpYXM7OWj7db5so5V6O2 99m2rrcMCP5SxDiuB0LUbKxrBoIhGH2kZ0k476Xb/YOYgpBskOxFLqZ+ptzZDW7K a3frjJ98QKjb5z9fZ1qZBzbegggAEvXlhpIgcaWAkT1wV3vmZhQjycpDHNWuahsu ybMjvgNj/YiougCN+7bf
=zr8g
-----END PGP SIGNATURE-----

maintainer
#46 lore raw

Re: [PATCH v2 09/11] Documentation: devicetree: Fix ADI AXI SPDIF specification

Quoted 2 lines · Andreas F?rber

I used scripts/get_maintainer.pl --nogit-fallback. If you were not CC'ed and need to be, please submit a MAINTAINERS patch. :)

You need to think about what you're doing when you use get_maintainer, it gives both false positives and false negatives.

Quoted 4 lines

Maybe this works for you?
https://patchwork.kernel.org/patch/4620191/

Otherwise I can resend with Ab/Rb.

Documentation/SubmittingPatches.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140725/dbb66b33/attachment.sig>

#23 lore raw

Re: [PATCH v2 05/11] ARM: dts: zynq: Add QSPI for Parallella

In reply to Harini Katakam

Hi Harini,

Am 25.07.2014 12:31, schrieb Harini Katakam:

Quoted 75 lines
Quoted 75 lines

-----Original Message-----
From: Michal Simek [mailto:michal.simek at xilinx.com]
Sent: Friday, July 25, 2014 3:08 PM
To: Andreas F?rber; monstr at monstr.eu; Soren Brinkmann
Cc: Harini Katakam; Michal Simek; Andreas Olofsson; Matteo Vit; Sean Rickerd; devicetree at vger.kernel.org; linux-arm-kernel at lists.infradead.org; linux-kernel at vger.kernel.org; Rob Herring; Pawel Moll; Mark Rutland; Ian Campbell; Kumar Gala; Russell King
Subject: Re: [PATCH v2 05/11] ARM: dts: zynq: Add QSPI for Parallella

Quoted 18 lines · Andreas F?rber

Am 25.07.2014 09:59, schrieb Michal Simek:

Quoted 5 lines · S?ren Brinkmann
Quoted 2 lines · Andreas F?rber
Quoted 1 line

Prepare SPI0 and SPI1 while at it.

Patch subject is incorrect. You are adding SPI and QSPI.

Yes, it originally added only QSPI, but I considered it a good deed to add SPI as well while already reading that part of the TRM. :)

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

arch/arm/boot/dts/zynq-7000.dtsi | 37
+++++++++++++++++++++++++++++++++++
arch/arm/boot/dts/zynq-parallella.dts | 4 ++++ 2 files changed, 41 insertions(+)

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

Review

Quoted 7 lines
(quoted diff) +0 -0

b/arch/arm/boot/dts/zynq-7000.dtsi index 8fd826a..eed3df0 100644 --- a/arch/arm/boot/dts/zynq-7000.dtsi +++ b/arch/arm/boot/dts/zynq-7000.dtsi @@ -122,6 +122,30 @@ interrupts = <0 50 4>; };

(quoted diff) +1 -0
+		spi0: spi at e0006000 { +			compatible =

"xlnx,zynq-spi-r1p6";

Quoted 1 line
Quoted 1 line
Quoted 1 line

Review

Quoted 1 line
(quoted diff) +1 -0
+			reg = <0xe0006000 0x1000>; +			status

= "disabled"; +

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

interrupt-parent = <&intc>; + interrupts = <0 26 4>;

+

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

clocks = <&clkc 25>, <&clkc 34>; + clock-names =

"ref_clk",

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"pclk"; + #address-cells = <1>; + #size-

cells = <0>; + };

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

+ + spi1: spi at e0007000 { + compatible =
"xlnx,zynq-spi-r1p6"; + reg = <0xe0007000 0x1000>; +

status

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

= "disabled"; + interrupt-parent = <&intc>; +

interrupts =

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

<0 49 4>; + clocks = <&clkc 26>, <&clkc 35>; +

clock-names

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

= "ref_clk", "pclk"; + #address-cells = <1>; +

#size-cells

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 1 line

= <0>; + }; +

Until here things look good.

Quoted 6 lines

gem0: ethernet at e000b000 { compatible = "cdns,gem"; reg = <0xe000b000 0x4000>; @@ -140,6 +164,19 @@ clock-names = "pclk", "hclk", "tx_clk"; };

(quoted diff) +1 -0
+		qspi: qspi at e000d000 { +			compatible =

"xlnx,zynq-spi-r1p6"; + reg = <0xe000d000 0x1000>; +

status

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

= "disabled"; + interrupt-parent = <&intc>; +

interrupts =

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

<0 19 4>; + clocks = <&clkc 10>, <&clkc 43>; +

clock-names

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

= "ref_clk", "pclk"; + num-cs = <1>; +

#address-cells =

Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line

<1>; + #size-cells = <0>; + }; +

I'm not sure what the status of this driver is. I think QSPI is still under review on the mailing lists and I don't think we should add this yet.

Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines

Driver for qspi is not in the mainline yet but it doesn't mean that this fragment won't work. Harini: Can you please correct me if I am wrong?

It can be added but it will have to be disabled as there is no qspi driver at the moment in mainline.

Did you read the actual patch? It's using the upstream SPI driver for now, and it's disabled for anything but the new board I'm adding.

https://patchwork.kernel.org/patch/4620201/

Wouldn't a dedicated QSPI driver only result in a compatible string being prepended before the SPI compatible string?

Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imend?rffer; HRB 16746 AG N?rnberg
#24 lore raw

RE: [PATCH v2 05/11] ARM: dts: zynq: Add QSPI for Parallella

In reply to a message not in the archive

Hi,

Quoted 91 lines

-----Original Message-----
From: Harini Katakam
Sent: Friday, July 25, 2014 4:01 PM
To: 'Michal Simek'; Andreas F?rber; monstr at monstr.eu; Soren Brinkmann
Cc: Michal Simek; Andreas Olofsson; Matteo Vit; Sean Rickerd; devicetree at vger.kernel.org; linux-arm-kernel at lists.infradead.org; linux- kernel at vger.kernel.org; Rob Herring; Pawel Moll; Mark Rutland; Ian Campbell; Kumar Gala; Russell King
Subject: RE: [PATCH v2 05/11] ARM: dts: zynq: Add QSPI for Parallella

Hi,

Quoted 6 lines

-----Original Message-----
From: Michal Simek [mailto:michal.simek at xilinx.com]
Sent: Friday, July 25, 2014 3:08 PM
To: Andreas F?rber; monstr at monstr.eu; Soren Brinkmann
Cc: Harini Katakam; Michal Simek; Andreas Olofsson; Matteo Vit; Sean Rickerd; devicetree at vger.kernel.org; linux-arm-

kernel at lists.infradead.org;

Quoted 29 lines

linux-kernel at vger.kernel.org; Rob Herring; Pawel Moll; Mark Rutland; Ian Campbell; Kumar Gala; Russell King
Subject: Re: [PATCH v2 05/11] ARM: dts: zynq: Add QSPI for Parallella

Quoted 24 lines · Andreas F?rber

Am 25.07.2014 09:59, schrieb Michal Simek:

Quoted 5 lines · S?ren Brinkmann
Quoted 2 lines · Andreas F?rber
Quoted 1 line

Prepare SPI0 and SPI1 while at it.

Patch subject is incorrect. You are adding SPI and QSPI.

Yes, it originally added only QSPI, but I considered it a good deed to add SPI as well while already reading that part of the TRM. :)

Quoted 14 lines
Quoted 14 lines
Quoted 14 lines

arch/arm/boot/dts/zynq-7000.dtsi | 37
+++++++++++++++++++++++++++++++++++
arch/arm/boot/dts/zynq-parallella.dts | 4 ++++ 2 files changed, 41 insertions(+)

(quoted diff) +0 -0

b/arch/arm/boot/dts/zynq-7000.dtsi index 8fd826a..eed3df0 100644 --- a/arch/arm/boot/dts/zynq-7000.dtsi +++ b/arch/arm/boot/dts/zynq-7000.dtsi @@ -122,6 +122,30 @@ interrupts = <0 50 4>; };

Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

Review

Quoted 1 line
(quoted diff) +1 -0
+		spi0: spi at e0006000 { +			compatible =

"xlnx,zynq-spi-r1p6";

Quoted 1 line
Quoted 1 line
Quoted 1 line

Review

Quoted 1 line
(quoted diff) +1 -0
+			reg = <0xe0006000 0x1000>; +

status

Quoted 4 lines

= "disabled"; +

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

interrupt-parent = <&intc>; + interrupts = <0 26 4>;

+

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

clocks = <&clkc 25>, <&clkc 34>; + clock-names

=

Quoted 12 lines

"ref_clk",

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"pclk"; + #address-cells = <1>; + #size-

cells = <0>; + };

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

+ + spi1: spi at e0007000 { + compatible =
"xlnx,zynq-spi-r1p6"; + reg = <0xe0007000 0x1000>; +

status

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

= "disabled"; + interrupt-parent = <&intc>; +

interrupts =

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

<0 49 4>; + clocks = <&clkc 26>, <&clkc 35>; +

clock-names

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

= "ref_clk", "pclk"; + #address-cells = <1>; +

#size-cells

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 1 line

= <0>; + }; +

Until here things look good.

Review

Quoted 5 lines

gem0: ethernet at e000b000 { compatible = "cdns,gem"; reg = <0xe000b000 0x4000>; @@ -140,6 +164,19 @@ clock-names = "pclk", "hclk", "tx_clk"; };

(quoted diff) +1 -0
+		qspi: qspi at e000d000 { +

compatible =

Quoted 13 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"xlnx,zynq-spi-r1p6"; + reg = <0xe000d000 0x1000>; +

status

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

= "disabled"; + interrupt-parent = <&intc>; +

interrupts =

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

<0 19 4>; + clocks = <&clkc 10>, <&clkc 43>; +

clock-names

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

= "ref_clk", "pclk"; + num-cs = <1>; +

#address-cells =

Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line

<1>; + #size-cells = <0>; + }; +

I'm not sure what the status of this driver is. I think QSPI is still under review on the mailing lists and I don't think we should add this yet.

Quoted 8 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines

Driver for qspi is not in the mainline yet but it doesn't mean that this fragment won't work. Harini: Can you please correct me if I am wrong?

It can be added but it will have to be disabled as there is no qspi driver at the moment in mainline.

The cadence spi driver can't be used for qspi directly. It?s better not to add qspi now. Once qspi driver is in mainline, qspi can be added with the corresponding compatibility string.

Regards,
Harini

#17 lore raw

PATCH v3 1/1 ARM: dts: zynq: Add SPI

In reply to Michal Simek

---
v3: Split off from QSPI (Michal Simek).

 arch/arm/boot/dts/zynq-7000.dtsi | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
arch/arm/boot/dts/zynq-7000.dtsi +24 -0
index cf0f3e4..ef11dab 100644
@@ -140,6 +140,30 @@
 			interrupts = <0 50 4>;
 		};
 
+		spi0: spi at e0006000 {
+			compatible = "xlnx,zynq-spi-r1p6";
+			reg = <0xe0006000 0x1000>;
+			status = "disabled";
+			interrupt-parent = <&intc>;
+			interrupts = <0 26 4>;
+			clocks = <&clkc 25>, <&clkc 34>;
+			clock-names = "ref_clk", "pclk";
+			#address-cells = <1>;
+			#size-cells = <0>;
+		};
+
+		spi1: spi at e0007000 {
+			compatible = "xlnx,zynq-spi-r1p6";
+			reg = <0xe0007000 0x1000>;
+			status = "disabled";
+			interrupt-parent = <&intc>;
+			interrupts = <0 49 4>;
+			clocks = <&clkc 26>, <&clkc 35>;
+			clock-names = "ref_clk", "pclk";
+			#address-cells = <1>;
+			#size-cells = <0>;
+		};
+
 		gem0: ethernet at e000b000 {
 			compatible = "cdns,gem";
 			reg = <0xe000b000 0x4000>;
Signature · 1 line
1.9.3
#36 lore raw

RE: [PATCH v2 07/11] Documentation: devicetree: Fix Xilinx VDMA specification

In reply to a message not in the archive

Hi Andreas,

Quoted 47 lines

-----Original Message-----
From: Michal Simek [mailto:michal.simek at xilinx.com]
Sent: Friday, July 25, 2014 3:10 PM
To: Andreas F?rber; monstr at monstr.eu; Srikanth Thokala
Cc: Vinod Koul; Michal Simek; Andreas Olofsson; Matteo Vit; Sean Rickerd; devicetree at vger.kernel.org; linux-arm-kernel at lists.infradead.org; linux- kernel at vger.kernel.org; Rob Herring; Pawel Moll; Mark Rutland; Ian Campbell; Kumar Gala
Subject: Re: [PATCH v2 07/11] Documentation: devicetree: Fix Xilinx VDMA specification

Hi Andreas,

Quoted 24 lines · Andreas F?rber

Hi Michal,

Am 25.07.2014 09:49, schrieb Michal Simek:

Quoted 21 lines · Andreas F?rber
Quoted 20 lines

The specification requires xlnx,data-width, but example and driver use xlnx,datawidth. Change the specification to match the implementation.

---
v2: New

 Documentation/devicetree/bindings/dma/xilinx/xilinx_vdma.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/dma/xilinx/xilinx_vdma.txt b/Documentation/devicetree/bindings/dma/xilinx/xilinx_vdma.txt index 1405ed0..e4c4d47 100644

Documentation/devicetree/bindings/dma/xilinx/xilinx_vdma.txt +0 -0
@@ -25,7 +25,7 @@ Required child node properties:
 - compatible: It should be either "xlnx,axi-vdma-mm2s-channel" or
  "xlnx,axi-vdma-s2mm-channel".
 - interrupts: Should contain per channel VDMA interrupts.
Quoted 8 lines
Quoted 4 lines
Quoted 4 lines
Documentation/devicetree/bindings/dma/xilinx/xilinx_vdma.txt +0 -1
-- xlnx,data-width: Should contain the stream data width, take

values
+- xlnx,datawidth: Should contain the stream data width, take values
{32,64...1024}.

BTW I just notice that this values specification is ambiguous as to whether 96 is a valid value or only powers of 2 like 128. Maybe you want to clarify that in a follow-up patch?

Quoted 2 lines

really appreciate your help for improving this.
Srikanth T: Can you please look at it?

It should be only power of 2. I could send a patch, but it is design-specific and the design will not allow to take the intermediate values and so the device-tree script. So, I feel it should be fine to keep this way.

Thanks for this patch.

Srikanth

Quoted 5 lines

Thanks,
Michal

This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.

#30 lore raw

Re: [PATCH v2 06/11] ARM: dts: zynq: Add DMAC for Parallella

In reply to Andreas Färber
Quoted 26 lines · Andreas F?rber

Am 25.07.2014 10:02, schrieb Michal Simek:

Quoted 25 lines · S?ren Brinkmann
Quoted 23 lines · Andreas F?rber
Quoted 13 lines

---
v2: New

 arch/arm/boot/dts/zynq-7000.dtsi      | 17 +++++++++++++++++
 arch/arm/boot/dts/zynq-parallella.dts |  4 ++++
 2 files changed, 21 insertions(+)
arch/arm/boot/dts/zynq-7000.dtsi +0 -0
index eed3df0..1a70277 100644

arch/arm/boot/dts/zynq-7000.dtsi line 229

Quoted 7 lines
arch/arm/boot/dts/zynq-7000.dtsi +4 -0
@@ -223,6 +223,23 @@
 			};
 		};
 
+		dmac_s: dmac at f8003000 {
+			compatible = "arm,pl330", "arm,primecell";
+			reg = <0xf8003000 0x1000>;
+			status = "disabled";

I think for this IP we can omit the 'status' property since it is always enabled. I don't see a reason to override it in each board DT.

Quoted 6 lines
Quoted 1 line

Done this change myself

Fine with me, but allow me to point out that the TRM documents the DMAC being mapped as DMAC S at the above address, and as DMAC NS at F800_4000 (secure vs. non-secure, ch. 4.6, p. 116). Not sure how this would be handled driver-wise if not through alternative dt nodes?

The upstream Linux runs in secure state on Zynq, hence I think this is fine. If somebody wants to run Linux on Zynq non-secure they have to do some work anyhow. This way the standard configuration can use the DMA engine.

S?ren

#40 lore raw

Re: [PATCH v2 08/11] ARM: dts: zynq: Add VDMA to Parallella

In reply to Andreas Färber
Quoted 38 lines · Andreas F?rber

Hi S?ren,

Am 25.07.2014 01:22, schrieb S?ren Brinkmann:

Quoted 8 lines · Andreas F?rber
Quoted 7 lines

---
v2: New

 arch/arm/boot/dts/zynq-parallella.dts | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
Quoted 14 lines

arch/arm/boot/dts/zynq-parallella.dts line 36

Quoted 10 lines
arch/arm/boot/dts/zynq-parallella.dts +2 -0
index e60a0a9..8beaacc 100644
@@ -32,6 +32,31 @@
 		bootargs = "console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait";
 		linux,stdout-path = "/amba/serial at e0001000";
 	};
+
+	fpga {

Do you really want FPGA components in this DT?
If somebody tries booting with this DT without programming with a corresponding bitstream, the whole system might hang. Just something to consider.

Well, that's related to a question that remained unanswered on v1:
whether we may need to turn this into a .dtsi to cope with variations.

The Parallella has an on-board ?HDMI connector, and two bitstreams are delivered - one for HDMI and one for headless usage. In my testing I am using the original HDMI bitstream but serial console for lack of upstream HDMI drivers. Do you think we need to provide zynq-parallella-hdmi.dts and zynq-parallella-headless.dts? (It gets worse if at some point we need to handle variations of the on-board Epiphany chip plus the bitstreams - at least the Z7010 vs. Z7020 doesn't affect DT AFAICT.)

Quoted 8 lines

Since, as noted in the cover letter, these FPGA patches are not yet fully testable, I wouldn't mind deferring them, but wanted to get them out for review early.

http://www.parallella.org/2014/07/14/new-parallella-product-offerings/
indicates there will be a new variation in gen2 without USB/HDMI. Would it be valid to #include a .dts (rather than .dtsi) to override status and keep number of Parallella files low?

For these FPGA devices, it would be nice if it was possible to include a dts file. I think there were problems with that, but don't know what the current status of that is. Then it would be possible to have the SOC dtsi a board dts and systems with FPGA components can include the board dts.
I also heard that some people are getting upset with all the includes going on in the dts files.

And the next question would be: How many dts files do you really want in the upstream kernel tree? Since we deal with FPGAs, there is virtually and infinite number of different systems that you could create relatively easily.

S?ren

#47 lore raw

Re: [PATCH v2 09/11] Documentation: devicetree: Fix ADI AXI SPDIF specification

In reply to Mark Brown

Mark,

Am 25.07.2014 12:39, schrieb Mark Brown:

Quoted 8 lines · Andreas F?rber
Quoted 3 lines

I used scripts/get_maintainer.pl --nogit-fallback. If you were not CC'ed and need to be, please submit a MAINTAINERS patch. :)

You need to think about what you're doing when you use get_maintainer, it gives both false positives and false negatives.

Quoted 6 lines
Quoted 4 lines

Maybe this works for you?
https://patchwork.kernel.org/patch/4620191/

Otherwise I can resend with Ab/Rb.

Documentation/SubmittingPatches.

Not helpful here, nor is Documentation/devicetree/bindings/submitting-patches.txt. It's separate from code changes, sent via git-send-email, has a Sob, went to LKML and LAKML and DTML. I could add a Fixes: header and CC trivial for this one-line fix IIUC.
Doesn't tell me which patches I should CC you on in the future though. Therefore my request to fix the false negative in MAINTAINERS so that me and other kernel newbies don't run into it again.

I'll simply interpret your reply as "yes, please resend with broonie at kernel.org CC'ed" then.

Regards,
Andreas

Signature · 10 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imend?rffer; HRB 16746 AG N?rnberg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140728/844b92cc/attachment.sig>
maintainer
#48 lore raw

Re: [PATCH v2 09/11] Documentation: devicetree: Fix ADI AXI SPDIF specification

Quoted 8 lines · Andreas F?rber

Am 25.07.2014 12:39, schrieb Mark Brown:

Quoted 6 lines · Andreas F?rber
Quoted 5 lines

Maybe this works for you?
https://patchwork.kernel.org/patch/4620191/

Otherwise I can resend with Ab/Rb.

Quoted 7 lines
Quoted 1 line

Documentation/SubmittingPatches.

Not helpful here, nor is Documentation/devicetree/bindings/submitting-patches.txt. It's separate from code changes, sent via git-send-email, has a Sob, went to LKML and LAKML and DTML. I could add a Fixes: header and CC trivial for this one-line fix IIUC.

It's telling you that the kernel process is to review patches sent via e-mail, not random links to web appliations - notice the context to which I'm replying, I'm saying that sending a link to something on the web isn't a good way of submitting a patch.

Quoted 3 lines

Doesn't tell me which patches I should CC you on in the future though. Therefore my request to fix the false negative in MAINTAINERS so that me and other kernel newbies don't run into it again.

Feel free to submit patches if you want to see changes.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140728/fe57ca1d/attachment.sig>

#49 lore raw

Re: [PATCH v2 09/11] Documentation: devicetree: Fix ADI AXI SPDIF specification

Am 28.07.2014 14:20, schrieb Mark Brown:

Quoted 22 lines · Andreas F?rber
Quoted 8 lines

Am 25.07.2014 12:39, schrieb Mark Brown:

Quoted 6 lines · Andreas F?rber
Quoted 5 lines

Maybe this works for you?
https://patchwork.kernel.org/patch/4620191/

Otherwise I can resend with Ab/Rb.

Quoted 7 lines
Quoted 1 line

Documentation/SubmittingPatches.

Not helpful here, nor is Documentation/devicetree/bindings/submitting-patches.txt. It's separate from code changes, sent via git-send-email, has a Sob, went to LKML and LAKML and DTML. I could add a Fixes: header and CC trivial for this one-line fix IIUC.

It's telling you that the kernel process is to review patches sent via e-mail, not random links to web appliations - notice the context to which I'm replying, I'm saying that sending a link to something on the web isn't a good way of submitting a patch.

Quoted 5 lines
Quoted 3 lines

Doesn't tell me which patches I should CC you on in the future though. Therefore my request to fix the false negative in MAINTAINERS so that me and other kernel newbies don't run into it again.

Feel free to submit patches if you want to see changes.

Dude, this patch *was* submitted and has been reviewed by two people. Don't pretend I didn't follow the SubmittingPatches workflow.

The link I gave you contains an mbox-format link that can be used with wget and git-am to *apply* the patch if you apparently missed it on the mailing lists.

I will *re*-submit it for your convenience.

Andreas

Signature · 10 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imend?rffer; HRB 16746 AG N?rnberg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140728/ff5dcc7a/attachment.sig>
maintainer
#50 lore raw

Re: [PATCH v2 09/11] Documentation: devicetree: Fix ADI AXI SPDIF specification

Quoted 8 lines · Andreas F?rber

Dude, this patch *was* submitted and has been reviewed by two people. Don't pretend I didn't follow the SubmittingPatches workflow.

The link I gave you contains an mbox-format link that can be used with wget and git-am to *apply* the patch if you apparently missed it on the mailing lists.

I will *re*-submit it for your convenience.

Which is what I originally requested when I got CCed into the thread -
I'm being grumpy because instead of getting the patch sent to me as
requested I got sent a link to patchwork.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140728/fbaec500/attachment.sig>

#51 lore raw

Re: [PATCH v2 09/11] Documentation: devicetree: Fix ADI AXI SPDIF specification

Am 28.07.2014 15:44, schrieb Mark Brown:

Quoted 7 lines · Andreas F?rber
Quoted 2 lines

I will *re*-submit it for your convenience.

Which is what I originally requested when I got CCed into the thread - I'm being grumpy because instead of getting the patch sent to me as requested I got sent a link to patchwork.

Hindsight, had you simply replied with "Yes, please." instead of the non-telling "Documentation/SubmittingPatches.", you would've spared yourself keystrokes and us four mailing list messages. ;)

Similarly, your statement about false negatives didn't really help in resolving the not-CC'ed problem. I now know to CC you if I ever have something for adi,axi-spdif-tx.txt again, but the next person might make you grumpy again and potentially demotivates new contributors, so certainly worth fixing.

Regmap, SPI, regulators, touchscreen MAINTAINERS entries seem unrelated. Should your "SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEMENT (ASoC)" MAINTAINERS entry get an
F: Documentation/devicetree/bindings/sound/
or is the "ANALOG DEVICES Inc ASOC DRIVERS" entry missing a line
F: sound/soc/adi/
F: Documentation/devicetree/bindings/sound/adi,axi-spdif-tx.txt (which would then still not CC you)
or is a new MAINTAINERS section needed that CCs specifically Lars-Peter and you on the latter?

Regards,
Andreas

Signature · 10 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imend?rffer; HRB 16746 AG N?rnberg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140728/ba5abc57/attachment.sig>
#57 lore raw
In reply to Andreas Färber

Hi Lars-Peter,

Am 25.07.2014 01:00, schrieb Andreas Färber:

Quoted 2 lines

most notably I'm missing
ADI ADV7513 and AXI-HDMI support

[...]

Quoted 1 line
Cc Lars-Peter Clausen <lars-Qo5EllUWu/[email protected]> (HDMI)

Could you please enlighten us what the status of upstreaming ADV7511/ADV7513 support is? It is declared "work in progress" here:

http://wiki.analog.com/resources/tools-software/linux-drivers/drm/adv7511

I see some adv7511 V4L bits in drivers/media/i2c/adv7511.c, but no drivers/gpu/drm/i2c/adv7511_{core,audio}.c as on the xcomm_zynq branch, nor any devicetree documentation. Patchwork doesn't show any recent submissions to LKML.

Is any major rework needed for you to get the 3.14.12 based driver upstream?

AXI SPDIF I found in 3.16, as you noticed; what about AXI HDMI? [*] Is there any work ongoing to get that upstream as well?

Any pointers appreciated.

Thanks,
Andreas

[*]
http://wiki.analog.com/resources/tools-software/linux-drivers/platforms/zynq

Signature · 6 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#58 lore raw
Quoted 11 lines · Andreas Färber

Hi Lars-Peter,

Am 25.07.2014 01:00, schrieb Andreas Färber:

Quoted 2 lines

most notably I'm missing
ADI ADV7513 and AXI-HDMI support

[...]

Quoted 1 line
Cc Lars-Peter Clausen <[email protected]> (HDMI)

Could you please enlighten us what the status of upstreaming ADV7511/ADV7513 support is? It is declared "work in progress" here:

Quoted 9 lines

http://wiki.analog.com/resources/tools-software/linux-drivers/drm/adv7511

I see some adv7511 V4L bits in drivers/media/i2c/adv7511.c, but no drivers/gpu/drm/i2c/adv7511_{core,audio}.c as on the xcomm_zynq branch, nor any devicetree documentation. Patchwork doesn't show any recent submissions to LKML.

Is any major rework needed for you to get the 3.14.12 based driver upstream?

It's complicated. The plan for the driver was to wait for the common display framework (CDF) and convert it to use CDF and then submit it upstream. The CDF has been rejected though. Meanwhile the V4L2 adv7511 driver has been merged. So now we are in the ugly situation that we have two different drivers for two different frameworks. To fix this we need to merge these two drivers while still exposing the interfaces to both frameworks.

Quoted 2 lines

AXI SPDIF I found in 3.16, as you noticed; what about AXI HDMI? [*] Is there any work ongoing to get that upstream as well?

We need to teach the DMAengine framework about cyclic interleaved transfers before the AXI HDMI driver can be submitted upstream.

- Lars

maintainer
#52 lore raw

Re: [PATCH v2 09/11] Documentation: devicetree: Fix ADI AXI SPDIF specification

In reply to Andreas Färber
Quoted 6 lines · Andreas F?rber

Similarly, your statement about false negatives didn't really help in resolving the not-CC'ed problem. I now know to CC you if I ever have something for adi,axi-spdif-tx.txt again, but the next person might make you grumpy again and potentially demotivates new contributors, so certainly worth fixing.

Quoted 10 lines

Regmap, SPI, regulators, touchscreen MAINTAINERS entries seem unrelated. Should your "SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEMENT (ASoC)" MAINTAINERS entry get an
F: Documentation/devicetree/bindings/sound/
or is the "ANALOG DEVICES Inc ASOC DRIVERS" entry missing a line
F: sound/soc/adi/
F: Documentation/devicetree/bindings/sound/adi,axi-spdif-tx.txt (which would then still not CC you)
or is a new MAINTAINERS section needed that CCs specifically Lars-Peter and you on the latter?

What you're really talking about is making MAINTAINERS complete which is a very big job; even if only looking at the DT bindings you'd need to go through every binding and make sure that MAINTAINERS says the same things as it does for the matching driver code, and where there are missing entries add them. In the immediate case both bits are missing.

Really as with so much else it's much better advice to ask people to
look and think about what they're doing; it's the same thing as ensuring
that commit logs match the standard style for the thing being edited
(especially the subject lines) and that if there's people who normally
apply patches and work on the code they're included.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140728/f5f09457/attachment.sig>

#59 lore raw
In reply to Andreas Färber

Hi Andreas,

Quoted 5 lines · Andreas F?rber

Hello,

This patch series adds an initial device tree for the Parallella board. UART, SD card, Ethernet are enabled.
Not yet enabled are HDMI, QSPI flash and 2x USB.

Andreas (Olofsson) kindly sent me a board, and I added it to the boot farm today, it'll be included in boot reports from here on.

I did a test run with yesterday's -next It looks like networking isn't working there at the moment, clock related. Same happens with 3.17 and latest mainline, config multi_v7_defconfig:

[WARN] [ 7.943648] macb e000b000.ethernet eth0: unable to generate
target frequency: 125000000 Hz
[WARN] [ 10.948681] macb e000b000.ethernet eth0: unable to generate
target frequency: 125000000 Hz

Full boot log at:

http://arm-soc.lixom.net/bootlogs/misc/next-20141017/parallella-arm-multi_v7_defconfig.html

I'll be happy to try things, but I'm a bit short on cycles to debug myself. Should hopefully be easy to reproduce.

-Olof

#60 lore raw

Sorry, for top-posting, but I currently just have Outlook webmail.
The cause for this issue is relatively easily identified. The ethernet drivers sets the Ethernet clock according to the negotioated link speed. For this adjustment a 6-bit divider in the clock path is used. In this case, it seems, the input to the 6-bit divider doesn't allow generating the full range of required frequencies for all supported link speeds.

I guess this could be solved in multiple ways.
1. Disable 1G mode/auto negotiation, the other modes are probably fine (yeah, not a solution, but might give you a working ethernet link)
2. Ensure the divider input allows to generate all required frequencies. This essentially means to go back into Xilinx tools and play around with the clock/PLL setup and re-generating a bootloader that sets things up with the updated values.
3. Support to run-time-adust the PLLs in Zynq. This is definitely the most complex one. I never seriously pursued this, since it seemed close to impossible to change the PLLs at run-time without crashing pretty much every downstream user except for the one that requested the frequency change. And even if every driver would be able to handle such a change, I could imagine that frequency constraints from all the drivers together would still prevent any change.

Thanks,
S?ren

________________________________________
From: [email protected] [devicetree-owner at vger.kernel.org] on behalf of Olof Johansson [olof at lixom.net]
Sent: Friday, October 17, 2014 9:28 PM
To: Andreas F?rber
Cc: Michal Simek; Andreas Olofsson; Matteo Vit; Sean Rickerd; devicetree at vger.kernel.org; linux-arm-kernel at lists.infradead.org; linux-kernel at vger.kernel.org; Punnaiah Choudary Kalluri; Lars-Peter Clausen
Subject: Re: [PATCH v2 00/11] ARM: dts: zynq: Prepare Parallella

Hi Andreas,

Quoted 5 lines · Andreas F?rber

Hello,

This patch series adds an initial device tree for the Parallella board. UART, SD card, Ethernet are enabled.
Not yet enabled are HDMI, QSPI flash and 2x USB.

Andreas (Olofsson) kindly sent me a board, and I added it to the boot farm today, it'll be included in boot reports from here on.

I did a test run with yesterday's -next It looks like networking isn't working there at the moment, clock related. Same happens with 3.17 and latest mainline, config multi_v7_defconfig:

[WARN] [ 7.943648] macb e000b000.ethernet eth0: unable to generate
target frequency: 125000000 Hz
[WARN] [ 10.948681] macb e000b000.ethernet eth0: unable to generate
target frequency: 125000000 Hz

Full boot log at:

http://arm-soc.lixom.net/bootlogs/misc/next-20141017/parallella-arm-multi_v7_defconfig.html

I'll be happy to try things, but I'm a bit short on cycles to debug myself. Should hopefully be easy to reproduce.

-Olof
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.

#61 lore raw
In reply to Olof Johansson

Hi Olof and S?ren,

Am 18.10.2014 um 06:28 schrieb Olof Johansson:

Quoted 9 lines · Andreas F?rber
Quoted 5 lines

Hello,

This patch series adds an initial device tree for the Parallella board. UART, SD card, Ethernet are enabled.
Not yet enabled are HDMI, QSPI flash and 2x USB.

Andreas (Olofsson) kindly sent me a board, and I added it to the boot farm today, it'll be included in boot reports from here on.

Good to hear.

Quoted 8 lines

I did a test run with yesterday's -next It looks like networking isn't working there at the moment, clock related. Same happens with 3.17 and latest mainline, config multi_v7_defconfig:

[WARN] [ 7.943648] macb e000b000.ethernet eth0: unable to generate
target frequency: 125000000 Hz
[WARN] [ 10.948681] macb e000b000.ethernet eth0: unable to generate
target frequency: 125000000 Hz

I am unable to reproduce this in my setup - at Linus' tip c2661b806092d8ea2dccb7b02b65776555e0ee47 (v3.18-rc1-68-gc2661b8), make oldconfig'ing my /proc/config.gz.

S?ren, in light of your explanations, should I be expecting problems with 1GbE or with 100MbE? My board is connected to a 1GbE switch.

Regards,
Andreas

Signature · 10 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imend?rffer; HRB 16746 AG N?rnberg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20141021/1697e8d0/attachment.sig>
#62 lore raw
Quoted 24 lines · Andreas F?rber

Hi Olof and S?ren,

Am 18.10.2014 um 06:28 schrieb Olof Johansson:

Quoted 9 lines · Andreas F?rber
Quoted 5 lines

Hello,

This patch series adds an initial device tree for the Parallella board. UART, SD card, Ethernet are enabled.
Not yet enabled are HDMI, QSPI flash and 2x USB.

Andreas (Olofsson) kindly sent me a board, and I added it to the boot farm today, it'll be included in boot reports from here on.

Good to hear.

Quoted 8 lines

I did a test run with yesterday's -next It looks like networking isn't working there at the moment, clock related. Same happens with 3.17 and latest mainline, config multi_v7_defconfig:

[WARN] [ 7.943648] macb e000b000.ethernet eth0: unable to generate
target frequency: 125000000 Hz
[WARN] [ 10.948681] macb e000b000.ethernet eth0: unable to generate
target frequency: 125000000 Hz

Quoted 6 lines

I am unable to reproduce this in my setup - at Linus' tip c2661b806092d8ea2dccb7b02b65776555e0ee47 (v3.18-rc1-68-gc2661b8), make oldconfig'ing my /proc/config.gz.

S?ren, in light of your explanations, should I be expecting problems with 1GbE or with 100MbE? My board is connected to a 1GbE switch.

Not in general. As I said, I haven't seen that on our boards yet and I did a little bit of testing making sure that the fundamental code to switch between frequencies works. I.e. on our zc706 and zc702 boards I usually can use ethtool to force a certain speed on the interface and Zynq adjusts to it just fine.

But as I said, it does rely on the divider being sourced with a frequency that allows generating the required Ethernet clock by adjusting the 6-bit divider only. If this requirement is not met, I expect you may see issues like Olof posted.

Are you (Andreas/Olof) using the same bootloaders?

I hope that helps.

S?ren

#63 lore raw
In reply to Andreas Färber
Quoted 24 lines · Andreas F?rber

Hi Olof and S?ren,

Am 18.10.2014 um 06:28 schrieb Olof Johansson:

Quoted 9 lines · Andreas F?rber
Quoted 5 lines

Hello,

This patch series adds an initial device tree for the Parallella board. UART, SD card, Ethernet are enabled.
Not yet enabled are HDMI, QSPI flash and 2x USB.

Andreas (Olofsson) kindly sent me a board, and I added it to the boot farm today, it'll be included in boot reports from here on.

Good to hear.

Quoted 8 lines

I did a test run with yesterday's -next It looks like networking isn't working there at the moment, clock related. Same happens with 3.17 and latest mainline, config multi_v7_defconfig:

[WARN] [ 7.943648] macb e000b000.ethernet eth0: unable to generate
target frequency: 125000000 Hz
[WARN] [ 10.948681] macb e000b000.ethernet eth0: unable to generate
target frequency: 125000000 Hz

Quoted 6 lines

I am unable to reproduce this in my setup - at Linus' tip c2661b806092d8ea2dccb7b02b65776555e0ee47 (v3.18-rc1-68-gc2661b8), make oldconfig'ing my /proc/config.gz.

S?ren, in light of your explanations, should I be expecting problems with 1GbE or with 100MbE? My board is connected to a 1GbE switch.

My board might have old firmware/bitstream on it? It reports as:

U-Boot 2012.10-00003-g792c31c (Jan 03 2014 - 12:24:08)

-Olof

#64 lore raw

Am 21.10.2014 um 23:01 schrieb Olof Johansson:

Quoted 15 lines · Andreas F?rber
Quoted 14 lines

Am 18.10.2014 um 06:28 schrieb Olof Johansson:

Quoted 8 lines

I did a test run with yesterday's -next It looks like networking isn't working there at the moment, clock related. Same happens with 3.17 and latest mainline, config multi_v7_defconfig:

[WARN] [ 7.943648] macb e000b000.ethernet eth0: unable to generate
target frequency: 125000000 Hz
[WARN] [ 10.948681] macb e000b000.ethernet eth0: unable to generate
target frequency: 125000000 Hz

I am unable to reproduce this in my setup - at Linus' tip c2661b806092d8ea2dccb7b02b65776555e0ee47 (v3.18-rc1-68-gc2661b8), make oldconfig'ing my /proc/config.gz.

Quoted 6 lines
Quoted 2 lines

S?ren, in light of your explanations, should I be expecting problems with 1GbE or with 100MbE? My board is connected to a 1GbE switch.

My board might have old firmware/bitstream on it? It reports as:

U-Boot 2012.10-00003-g792c31c (Jan 03 2014 - 12:24:08)

Mine reports the same version.

sha512sum of non-headless bitstream:
decb37222a7da0de39b1c1eb95714500cc006506cc86d85ed9c6c7b30c7cd7b91ef3592b886311f4285b5ce0079b4ffcd83f91ae275435ac15cefefe7db00b08
/mnt/parallella.bit.bin

Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imend?rffer; HRB 16746 AG N?rnberg
#65 lore raw
Quoted 21 lines · Andreas F?rber

Am 21.10.2014 um 23:01 schrieb Olof Johansson:

Quoted 20 lines · Andreas F?rber
Quoted 10 lines

Am 18.10.2014 um 06:28 schrieb Olof Johansson:

Quoted 8 lines

I did a test run with yesterday's -next It looks like networking isn't working there at the moment, clock related. Same happens with 3.17 and latest mainline, config multi_v7_defconfig:

[WARN] [ 7.943648] macb e000b000.ethernet eth0: unable to generate
target frequency: 125000000 Hz
[WARN] [ 10.948681] macb e000b000.ethernet eth0: unable to generate
target frequency: 125000000 Hz

Quoted 6 lines

I am unable to reproduce this in my setup - at Linus' tip c2661b806092d8ea2dccb7b02b65776555e0ee47 (v3.18-rc1-68-gc2661b8), make oldconfig'ing my /proc/config.gz.

S?ren, in light of your explanations, should I be expecting problems with 1GbE or with 100MbE? My board is connected to a 1GbE switch.

My board might have old firmware/bitstream on it? It reports as:

Quoted 7 lines
Quoted 1 line

U-Boot 2012.10-00003-g792c31c (Jan 03 2014 - 12:24:08)

Mine reports the same version.

sha512sum of non-headless bitstream:
decb37222a7da0de39b1c1eb95714500cc006506cc86d85ed9c6c7b30c7cd7b91ef3592b886311f4285b5ce0079b4ffcd83f91ae275435ac15cefefe7db00b08
/mnt/parallella.bit.bin

Mine is booting with whatever bitstream is flashed, and i'm not sure how to actually look at what that is.

'fpga dump 0 0x10000000 0x1000000' doesn't do what I expect it to (target memory isn't modified).

-Olof

#66 lore raw
Quoted 30 lines · Olof Johansson
Quoted 21 lines · Andreas F?rber

Am 21.10.2014 um 23:01 schrieb Olof Johansson:

Quoted 20 lines · Andreas F?rber
Quoted 10 lines

Am 18.10.2014 um 06:28 schrieb Olof Johansson:

Quoted 8 lines

I did a test run with yesterday's -next It looks like networking isn't working there at the moment, clock related. Same happens with 3.17 and latest mainline, config multi_v7_defconfig:

[WARN] [ 7.943648] macb e000b000.ethernet eth0: unable to generate
target frequency: 125000000 Hz
[WARN] [ 10.948681] macb e000b000.ethernet eth0: unable to generate
target frequency: 125000000 Hz

Quoted 6 lines

I am unable to reproduce this in my setup - at Linus' tip c2661b806092d8ea2dccb7b02b65776555e0ee47 (v3.18-rc1-68-gc2661b8), make oldconfig'ing my /proc/config.gz.

S?ren, in light of your explanations, should I be expecting problems with 1GbE or with 100MbE? My board is connected to a 1GbE switch.

My board might have old firmware/bitstream on it? It reports as:

Quoted 7 lines
Quoted 1 line

U-Boot 2012.10-00003-g792c31c (Jan 03 2014 - 12:24:08)

Mine reports the same version.

sha512sum of non-headless bitstream:
decb37222a7da0de39b1c1eb95714500cc006506cc86d85ed9c6c7b30c7cd7b91ef3592b886311f4285b5ce0079b4ffcd83f91ae275435ac15cefefe7db00b08
/mnt/parallella.bit.bin

Quoted 5 lines

Mine is booting with whatever bitstream is flashed, and i'm not sure how to actually look at what that is.

'fpga dump 0 0x10000000 0x1000000' doesn't do what I expect it to (target memory isn't modified).

Dumping bitstream is not supported in u-boot that's why it won't work.

I have tested the board I have here and no problem to run at 100 or 1000Mbit/s.

[  188.898563] macb e000b000.ethernet eth0: link down
[  192.898600] macb e000b000.ethernet eth0: link up (1000/Full)
[  708.898556] macb e000b000.ethernet eth0: link down
[  715.898696] macb e000b000.ethernet eth0: link up (100/Full)
[  749.909764] macb e000b000.ethernet eth0: link down
[  761.915769] macb e000b000.ethernet eth0: link up (1000/Full)

I will send you my boot.bin in private email which you can try.

Thanks,
Michal