All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] arm: dts: zynq: Improvements to Zybo z7 board
@ 2018-07-12  5:50 ` Luis Araneda
  0 siblings, 0 replies; 10+ messages in thread
From: Luis Araneda @ 2018-07-12  5:50 UTC (permalink / raw)
  To: Rob Herring, Michal Simek
  Cc: Mark Rutland, devicetree, linux-arm-kernel, Luis Araneda

This patchset corrects and improves the device-tree
of the Zybo Z7 board

The first patch correct the RAM size
( supersedes https://lkml.org/lkml/2018/6/26/965 )

The second patch introduce the use of GPIO constants
to replace a literal

Finally, the third patch adds a gpio-leds node with
one LED

Luis Araneda (3):
  arm: dts: zynq: Fix memory size on the Zybo Z7 board
  arm: dts: zynq: Use gpio constants for the Zybo Z7 board
  arm: dts: zynq: Add LEDs to the Zybo Z7 board

 arch/arm/boot/dts/zynq-zybo-z7.dts | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

-- 
2.18.0

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

* [PATCH 0/3] arm: dts: zynq: Improvements to Zybo z7 board
@ 2018-07-12  5:50 ` Luis Araneda
  0 siblings, 0 replies; 10+ messages in thread
From: Luis Araneda @ 2018-07-12  5:50 UTC (permalink / raw)
  To: linux-arm-kernel

This patchset corrects and improves the device-tree
of the Zybo Z7 board

The first patch correct the RAM size
( supersedes https://lkml.org/lkml/2018/6/26/965 )

The second patch introduce the use of GPIO constants
to replace a literal

Finally, the third patch adds a gpio-leds node with
one LED

Luis Araneda (3):
  arm: dts: zynq: Fix memory size on the Zybo Z7 board
  arm: dts: zynq: Use gpio constants for the Zybo Z7 board
  arm: dts: zynq: Add LEDs to the Zybo Z7 board

 arch/arm/boot/dts/zynq-zybo-z7.dts | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

-- 
2.18.0

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

* [PATCH 1/3] arm: dts: zynq: Fix memory size on the Zybo Z7 board
  2018-07-12  5:50 ` Luis Araneda
@ 2018-07-12  5:50   ` Luis Araneda
  -1 siblings, 0 replies; 10+ messages in thread
From: Luis Araneda @ 2018-07-12  5:50 UTC (permalink / raw)
  To: Rob Herring, Michal Simek
  Cc: Mark Rutland, devicetree, linux-arm-kernel, Luis Araneda

According to the reference manual, the board has two Micron
MT41K256M16HA-125 DDR3L memory ICs, which have 512 MiB each

Tested on a ZYBO-Z7-20 board

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
---
 arch/arm/boot/dts/zynq-zybo-z7.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/zynq-zybo-z7.dts b/arch/arm/boot/dts/zynq-zybo-z7.dts
index 1e713dc98920..bc81ebee50fe 100644
--- a/arch/arm/boot/dts/zynq-zybo-z7.dts
+++ b/arch/arm/boot/dts/zynq-zybo-z7.dts
@@ -13,7 +13,7 @@
 
 	memory@0 {
 		device_type = "memory";
-		reg = <0x0 0x20000000>;
+		reg = <0x0 0x40000000>;
 	};
 
 	chosen {
-- 
2.18.0

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

* [PATCH 1/3] arm: dts: zynq: Fix memory size on the Zybo Z7 board
@ 2018-07-12  5:50   ` Luis Araneda
  0 siblings, 0 replies; 10+ messages in thread
From: Luis Araneda @ 2018-07-12  5:50 UTC (permalink / raw)
  To: linux-arm-kernel

According to the reference manual, the board has two Micron
MT41K256M16HA-125 DDR3L memory ICs, which have 512 MiB each

Tested on a ZYBO-Z7-20 board

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
---
 arch/arm/boot/dts/zynq-zybo-z7.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/zynq-zybo-z7.dts b/arch/arm/boot/dts/zynq-zybo-z7.dts
index 1e713dc98920..bc81ebee50fe 100644
--- a/arch/arm/boot/dts/zynq-zybo-z7.dts
+++ b/arch/arm/boot/dts/zynq-zybo-z7.dts
@@ -13,7 +13,7 @@
 
 	memory at 0 {
 		device_type = "memory";
-		reg = <0x0 0x20000000>;
+		reg = <0x0 0x40000000>;
 	};
 
 	chosen {
-- 
2.18.0

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

* [PATCH 2/3] arm: dts: zynq: Use gpio constants for the Zybo Z7 board
  2018-07-12  5:50 ` Luis Araneda
@ 2018-07-12  5:50   ` Luis Araneda
  -1 siblings, 0 replies; 10+ messages in thread
From: Luis Araneda @ 2018-07-12  5:50 UTC (permalink / raw)
  To: Rob Herring, Michal Simek
  Cc: Mark Rutland, devicetree, linux-arm-kernel, Luis Araneda

Include GPIO dt-bindings and use GPIO_ACTIVE_* constants
to improve readability

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
---
 arch/arm/boot/dts/zynq-zybo-z7.dts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/zynq-zybo-z7.dts b/arch/arm/boot/dts/zynq-zybo-z7.dts
index bc81ebee50fe..b68a5e921464 100644
--- a/arch/arm/boot/dts/zynq-zybo-z7.dts
+++ b/arch/arm/boot/dts/zynq-zybo-z7.dts
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0+
 /dts-v1/;
 #include "zynq-7000.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 
 / {
 	model = "Zynq ZYBO Z7 Development Board";
@@ -24,7 +25,7 @@
 	usb_phy0: phy0 {
 		#phy-cells = <0>;
 		compatible = "usb-nop-xceiv";
-		reset-gpios = <&gpio0 46 1>;
+		reset-gpios = <&gpio0 46 GPIO_ACTIVE_LOW>;
 	};
 };
 
-- 
2.18.0

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

* [PATCH 2/3] arm: dts: zynq: Use gpio constants for the Zybo Z7 board
@ 2018-07-12  5:50   ` Luis Araneda
  0 siblings, 0 replies; 10+ messages in thread
From: Luis Araneda @ 2018-07-12  5:50 UTC (permalink / raw)
  To: linux-arm-kernel

Include GPIO dt-bindings and use GPIO_ACTIVE_* constants
to improve readability

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
---
 arch/arm/boot/dts/zynq-zybo-z7.dts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/zynq-zybo-z7.dts b/arch/arm/boot/dts/zynq-zybo-z7.dts
index bc81ebee50fe..b68a5e921464 100644
--- a/arch/arm/boot/dts/zynq-zybo-z7.dts
+++ b/arch/arm/boot/dts/zynq-zybo-z7.dts
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0+
 /dts-v1/;
 #include "zynq-7000.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 
 / {
 	model = "Zynq ZYBO Z7 Development Board";
@@ -24,7 +25,7 @@
 	usb_phy0: phy0 {
 		#phy-cells = <0>;
 		compatible = "usb-nop-xceiv";
-		reset-gpios = <&gpio0 46 1>;
+		reset-gpios = <&gpio0 46 GPIO_ACTIVE_LOW>;
 	};
 };
 
-- 
2.18.0

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

* [PATCH 3/3] arm: dts: zynq: Add LEDs to the Zybo Z7 board
  2018-07-12  5:50 ` Luis Araneda
@ 2018-07-12  5:50   ` Luis Araneda
  -1 siblings, 0 replies; 10+ messages in thread
From: Luis Araneda @ 2018-07-12  5:50 UTC (permalink / raw)
  To: Rob Herring, Michal Simek
  Cc: Mark Rutland, devicetree, linux-arm-kernel, Luis Araneda

Add an LED node, connected to the Processing System (PS)

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
---
 arch/arm/boot/dts/zynq-zybo-z7.dts | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm/boot/dts/zynq-zybo-z7.dts b/arch/arm/boot/dts/zynq-zybo-z7.dts
index b68a5e921464..710076c9bc19 100644
--- a/arch/arm/boot/dts/zynq-zybo-z7.dts
+++ b/arch/arm/boot/dts/zynq-zybo-z7.dts
@@ -22,6 +22,15 @@
 		stdout-path = "serial0:115200n8";
 	};
 
+	gpio-leds {
+		compatible = "gpio-leds";
+
+		ld4 {
+			label = "zynq-zybo-z7:green:ld4";
+			gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
+		};
+	};
+
 	usb_phy0: phy0 {
 		#phy-cells = <0>;
 		compatible = "usb-nop-xceiv";
-- 
2.18.0

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

* [PATCH 3/3] arm: dts: zynq: Add LEDs to the Zybo Z7 board
@ 2018-07-12  5:50   ` Luis Araneda
  0 siblings, 0 replies; 10+ messages in thread
From: Luis Araneda @ 2018-07-12  5:50 UTC (permalink / raw)
  To: linux-arm-kernel

Add an LED node, connected to the Processing System (PS)

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
---
 arch/arm/boot/dts/zynq-zybo-z7.dts | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm/boot/dts/zynq-zybo-z7.dts b/arch/arm/boot/dts/zynq-zybo-z7.dts
index b68a5e921464..710076c9bc19 100644
--- a/arch/arm/boot/dts/zynq-zybo-z7.dts
+++ b/arch/arm/boot/dts/zynq-zybo-z7.dts
@@ -22,6 +22,15 @@
 		stdout-path = "serial0:115200n8";
 	};
 
+	gpio-leds {
+		compatible = "gpio-leds";
+
+		ld4 {
+			label = "zynq-zybo-z7:green:ld4";
+			gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
+		};
+	};
+
 	usb_phy0: phy0 {
 		#phy-cells = <0>;
 		compatible = "usb-nop-xceiv";
-- 
2.18.0

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

* Re: [PATCH 0/3] arm: dts: zynq: Improvements to Zybo z7 board
  2018-07-12  5:50 ` Luis Araneda
@ 2018-07-17 14:59   ` Michal Simek
  -1 siblings, 0 replies; 10+ messages in thread
From: Michal Simek @ 2018-07-17 14:59 UTC (permalink / raw)
  To: Luis Araneda, Rob Herring, Michal Simek
  Cc: Mark Rutland, devicetree, linux-arm-kernel

On 12.7.2018 07:50, Luis Araneda wrote:
> This patchset corrects and improves the device-tree
> of the Zybo Z7 board
> 
> The first patch correct the RAM size
> ( supersedes https://lkml.org/lkml/2018/6/26/965 )
> 
> The second patch introduce the use of GPIO constants
> to replace a literal
> 
> Finally, the third patch adds a gpio-leds node with
> one LED
> 
> Luis Araneda (3):
>   arm: dts: zynq: Fix memory size on the Zybo Z7 board
>   arm: dts: zynq: Use gpio constants for the Zybo Z7 board
>   arm: dts: zynq: Add LEDs to the Zybo Z7 board
> 
>  arch/arm/boot/dts/zynq-zybo-z7.dts | 14 ++++++++++++--
>  1 file changed, 12 insertions(+), 2 deletions(-)
> 

Applied all.

Thanks,
Michal

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

* [PATCH 0/3] arm: dts: zynq: Improvements to Zybo z7 board
@ 2018-07-17 14:59   ` Michal Simek
  0 siblings, 0 replies; 10+ messages in thread
From: Michal Simek @ 2018-07-17 14:59 UTC (permalink / raw)
  To: linux-arm-kernel

On 12.7.2018 07:50, Luis Araneda wrote:
> This patchset corrects and improves the device-tree
> of the Zybo Z7 board
> 
> The first patch correct the RAM size
> ( supersedes https://lkml.org/lkml/2018/6/26/965 )
> 
> The second patch introduce the use of GPIO constants
> to replace a literal
> 
> Finally, the third patch adds a gpio-leds node with
> one LED
> 
> Luis Araneda (3):
>   arm: dts: zynq: Fix memory size on the Zybo Z7 board
>   arm: dts: zynq: Use gpio constants for the Zybo Z7 board
>   arm: dts: zynq: Add LEDs to the Zybo Z7 board
> 
>  arch/arm/boot/dts/zynq-zybo-z7.dts | 14 ++++++++++++--
>  1 file changed, 12 insertions(+), 2 deletions(-)
> 

Applied all.

Thanks,
Michal

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

end of thread, other threads:[~2018-07-17 14:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-12  5:50 [PATCH 0/3] arm: dts: zynq: Improvements to Zybo z7 board Luis Araneda
2018-07-12  5:50 ` Luis Araneda
2018-07-12  5:50 ` [PATCH 1/3] arm: dts: zynq: Fix memory size on the Zybo Z7 board Luis Araneda
2018-07-12  5:50   ` Luis Araneda
2018-07-12  5:50 ` [PATCH 2/3] arm: dts: zynq: Use gpio constants for " Luis Araneda
2018-07-12  5:50   ` Luis Araneda
2018-07-12  5:50 ` [PATCH 3/3] arm: dts: zynq: Add LEDs to " Luis Araneda
2018-07-12  5:50   ` Luis Araneda
2018-07-17 14:59 ` [PATCH 0/3] arm: dts: zynq: Improvements to Zybo z7 board Michal Simek
2018-07-17 14:59   ` Michal Simek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.