mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/3] Enable devicetree for Ritmix RZX-50 board
@ 2013-09-18  5:20 Dmitry Smagin
  2013-09-18  5:20 ` [PATCH 1/3] Add missing dependency ENV_HANDLING for OF_BAREBOX_DRIVER option Dmitry Smagin
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Dmitry Smagin @ 2013-09-18  5:20 UTC (permalink / raw)
  To: barebox

  This series of patches enables devicetree using for mips-based
Ritmix RZX-50 board. Besides that it fixes missing dependency
and linking error when enabling OF_BAREBOX_DRIVER which actually
needs ENV_HANDLING to be activated.

[PATCH 1/3] Add missing dependency ENV_HANDLING for OF_BAREBOX_DRIVER
[PATCH 2/3] MIPS: rxz50: add initial devicetree support
[PATCH 3/3] MIPS: rzx50_defconfig: enable devicetree

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* [PATCH 1/3] Add missing dependency ENV_HANDLING for OF_BAREBOX_DRIVER option
  2013-09-18  5:20 [PATCH 0/3] Enable devicetree for Ritmix RZX-50 board Dmitry Smagin
@ 2013-09-18  5:20 ` Dmitry Smagin
  2013-09-18  5:20 ` [PATCH 2/3] MIPS: rxz50: add initial devicetree support Dmitry Smagin
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Dmitry Smagin @ 2013-09-18  5:20 UTC (permalink / raw)
  To: barebox; +Cc: Dmitry Smagin

This patch fixes linker error:
  barebox.c:(.text.environment_probe+0x48): undefined reference to `default_environment_path`

Which appears when compiling env-less boards with enabled devicetree.

Signed-off-by: Dmitry Smagin <dmitry.s.smagin@gmail.com>
---
 drivers/of/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig
index ab5eac8..6b893d7 100644
--- a/drivers/of/Kconfig
+++ b/drivers/of/Kconfig
@@ -21,6 +21,7 @@ config OF_NET
 
 config OF_BAREBOX_DRIVERS
 	depends on OFDEVICE
+	depends on ENV_HANDLING
 	bool "Enable barebox specific devicetree configuration drivers"
 	help
 	  barebox supports being configured from devicetree. This enables
-- 
1.8.4.rc3


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* [PATCH 2/3] MIPS: rxz50: add initial devicetree support
  2013-09-18  5:20 [PATCH 0/3] Enable devicetree for Ritmix RZX-50 board Dmitry Smagin
  2013-09-18  5:20 ` [PATCH 1/3] Add missing dependency ENV_HANDLING for OF_BAREBOX_DRIVER option Dmitry Smagin
@ 2013-09-18  5:20 ` Dmitry Smagin
  2013-09-18  5:20 ` [PATCH 3/3] MIPS: rzx50_defconfig: enable devicetree Dmitry Smagin
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Dmitry Smagin @ 2013-09-18  5:20 UTC (permalink / raw)
  To: barebox; +Cc: Dmitry Smagin

Memory initialization is moved from board.c to rzx50.dts file.

Signed-off-by: Dmitry Smagin <dmitry.s.smagin@gmail.com>
---
 arch/mips/boards/rzx50/Makefile |  1 -
 arch/mips/boards/rzx50/board.c  | 12 ------------
 arch/mips/boards/rzx50/serial.c |  1 -
 arch/mips/dts/rzx50.dts         | 12 ++++++++++++
 4 files changed, 12 insertions(+), 14 deletions(-)
 delete mode 100644 arch/mips/boards/rzx50/board.c
 create mode 100644 arch/mips/dts/rzx50.dts

diff --git a/arch/mips/boards/rzx50/Makefile b/arch/mips/boards/rzx50/Makefile
index 9e14763..ff1a655 100644
--- a/arch/mips/boards/rzx50/Makefile
+++ b/arch/mips/boards/rzx50/Makefile
@@ -1,2 +1 @@
-obj-y += board.o
 obj-$(CONFIG_DRIVER_SERIAL_NS16550) += serial.o
diff --git a/arch/mips/boards/rzx50/board.c b/arch/mips/boards/rzx50/board.c
deleted file mode 100644
index 9e655ab..0000000
--- a/arch/mips/boards/rzx50/board.c
+++ /dev/null
@@ -1,12 +0,0 @@
-#include <common.h>
-#include <init.h>
-#include <sizes.h>
-#include <asm/memory.h>
-
-static int mem_init(void)
-{
-	mips_add_ram0(SZ_64M);
-
-	return 0;
-}
-mem_initcall(mem_init);
diff --git a/arch/mips/boards/rzx50/serial.c b/arch/mips/boards/rzx50/serial.c
index 0038c1d..566356a 100644
--- a/arch/mips/boards/rzx50/serial.c
+++ b/arch/mips/boards/rzx50/serial.c
@@ -22,7 +22,6 @@
 
 static int rzx50_console_init(void)
 {
-	barebox_set_model("Ritmix RZX-50");
 	barebox_set_hostname("rzx50");
 
 	/* Register the serial port */
diff --git a/arch/mips/dts/rzx50.dts b/arch/mips/dts/rzx50.dts
new file mode 100644
index 0000000..69320dd
--- /dev/null
+++ b/arch/mips/dts/rzx50.dts
@@ -0,0 +1,12 @@
+/dts-v1/;
+
+/include/ "skeleton.dtsi"
+
+/ {
+	model = "Ritmix RZX-50";
+	compatible = "ritmix,rzx50";
+
+	memory {
+		reg = <0x00000000 0x4000000>;
+	};
+};
-- 
1.8.4.rc3


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* [PATCH 3/3] MIPS: rzx50_defconfig: enable devicetree
  2013-09-18  5:20 [PATCH 0/3] Enable devicetree for Ritmix RZX-50 board Dmitry Smagin
  2013-09-18  5:20 ` [PATCH 1/3] Add missing dependency ENV_HANDLING for OF_BAREBOX_DRIVER option Dmitry Smagin
  2013-09-18  5:20 ` [PATCH 2/3] MIPS: rxz50: add initial devicetree support Dmitry Smagin
@ 2013-09-18  5:20 ` Dmitry Smagin
  2013-09-19  6:30 ` [PATCH 0/3] Enable devicetree for Ritmix RZX-50 board Antony Pavlov
  2013-09-19  6:54 ` Sascha Hauer
  4 siblings, 0 replies; 6+ messages in thread
From: Dmitry Smagin @ 2013-09-18  5:20 UTC (permalink / raw)
  To: barebox; +Cc: Dmitry Smagin

Signed-off-by: Dmitry Smagin <dmitry.s.smagin@gmail.com>
---
 arch/mips/configs/rzx50_defconfig | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/mips/configs/rzx50_defconfig b/arch/mips/configs/rzx50_defconfig
index 7b75909..7691bae 100644
--- a/arch/mips/configs/rzx50_defconfig
+++ b/arch/mips/configs/rzx50_defconfig
@@ -1,3 +1,5 @@
+CONFIG_BUILTIN_DTB=y
+CONFIG_BUILTIN_DTB_NAME="rzx50"
 CONFIG_MACH_MIPS_XBURST=y
 CONFIG_JZ4750D_DEBUG_LL_UART1=y
 CONFIG_PBL_IMAGE=y
@@ -27,6 +29,10 @@ CONFIG_CMD_UIMAGE=y
 CONFIG_CMD_RESET=y
 CONFIG_CMD_POWEROFF=y
 CONFIG_CMD_GO=y
+CONFIG_CMD_OFTREE=y
+CONFIG_CMD_OF_PROPERTY=y
+CONFIG_CMD_OF_NODE=y
+CONFIG_OFDEVICE=y
 # CONFIG_SPI is not set
 CONFIG_SHA1=y
 CONFIG_SHA224=y
-- 
1.8.4.rc3


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH 0/3] Enable devicetree for Ritmix RZX-50 board
  2013-09-18  5:20 [PATCH 0/3] Enable devicetree for Ritmix RZX-50 board Dmitry Smagin
                   ` (2 preceding siblings ...)
  2013-09-18  5:20 ` [PATCH 3/3] MIPS: rzx50_defconfig: enable devicetree Dmitry Smagin
@ 2013-09-19  6:30 ` Antony Pavlov
  2013-09-19  6:54 ` Sascha Hauer
  4 siblings, 0 replies; 6+ messages in thread
From: Antony Pavlov @ 2013-09-19  6:30 UTC (permalink / raw)
  To: Dmitry Smagin, Sascha Hauer; +Cc: barebox

On Wed, 18 Sep 2013 09:20:30 +0400
Dmitry Smagin <dmitry.s.smagin@gmail.com> wrote:

Acked-by: Antony Pavlov <antonynpavlov@gmail.com>

>   This series of patches enables devicetree using for mips-based
> Ritmix RZX-50 board. Besides that it fixes missing dependency
> and linking error when enabling OF_BAREBOX_DRIVER which actually
> needs ENV_HANDLING to be activated.
> 
> [PATCH 1/3] Add missing dependency ENV_HANDLING for OF_BAREBOX_DRIVER
> [PATCH 2/3] MIPS: rxz50: add initial devicetree support
> [PATCH 3/3] MIPS: rzx50_defconfig: enable devicetree
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox


-- 
-- 
Best regards,
  Antony Pavlov

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH 0/3] Enable devicetree for Ritmix RZX-50 board
  2013-09-18  5:20 [PATCH 0/3] Enable devicetree for Ritmix RZX-50 board Dmitry Smagin
                   ` (3 preceding siblings ...)
  2013-09-19  6:30 ` [PATCH 0/3] Enable devicetree for Ritmix RZX-50 board Antony Pavlov
@ 2013-09-19  6:54 ` Sascha Hauer
  4 siblings, 0 replies; 6+ messages in thread
From: Sascha Hauer @ 2013-09-19  6:54 UTC (permalink / raw)
  To: Dmitry Smagin; +Cc: barebox

On Wed, Sep 18, 2013 at 09:20:30AM +0400, Dmitry Smagin wrote:
>   This series of patches enables devicetree using for mips-based
> Ritmix RZX-50 board. Besides that it fixes missing dependency
> and linking error when enabling OF_BAREBOX_DRIVER which actually
> needs ENV_HANDLING to be activated.
> 
> [PATCH 1/3] Add missing dependency ENV_HANDLING for OF_BAREBOX_DRIVER
> [PATCH 2/3] MIPS: rxz50: add initial devicetree support
> [PATCH 3/3] MIPS: rzx50_defconfig: enable devicetree

Applied with Antonys Ack.

Thanks
Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2013-09-19  6:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-18  5:20 [PATCH 0/3] Enable devicetree for Ritmix RZX-50 board Dmitry Smagin
2013-09-18  5:20 ` [PATCH 1/3] Add missing dependency ENV_HANDLING for OF_BAREBOX_DRIVER option Dmitry Smagin
2013-09-18  5:20 ` [PATCH 2/3] MIPS: rxz50: add initial devicetree support Dmitry Smagin
2013-09-18  5:20 ` [PATCH 3/3] MIPS: rzx50_defconfig: enable devicetree Dmitry Smagin
2013-09-19  6:30 ` [PATCH 0/3] Enable devicetree for Ritmix RZX-50 board Antony Pavlov
2013-09-19  6:54 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox