From: "Raphaël POGGI" <poggi.raph@gmail.com>
To: barebox@lists.infradead.org
Cc: "Raphaël POGGI" <poggi.raph@gmail.com>
Subject: [PATCH 2/2] ARM: Rework device tree of UDOO Board to be more flexible.
Date: Mon, 17 Feb 2014 14:04:13 -0800 [thread overview]
Message-ID: <1392674653-26759-2-git-send-email-poggi.raph@gmail.com> (raw)
In-Reply-To: <1392674653-26759-1-git-send-email-poggi.raph@gmail.com>
Device tree of UDOO Board have to be more flexible.
There are a dual imx6 and a quad imx6 boards, with this patch
we can have a same device tree file as a base: arch/arm/dts/imx6qdl-udoo.dtsi
and an other device tree file for specific configuration depending of the board.
Signed-off-by: Raphael Poggi <poggi.raph@gmail.com>
---
arch/arm/boards/udoo/board.c | 6 +++---
arch/arm/dts/imx6q-udoo.dts | 3 ++-
arch/arm/dts/imx6qdl-udoo.dtsi | 5 +++--
3 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/arch/arm/boards/udoo/board.c b/arch/arm/boards/udoo/board.c
index 5853f36..3cbc0f5 100644
--- a/arch/arm/boards/udoo/board.c
+++ b/arch/arm/boards/udoo/board.c
@@ -166,7 +166,7 @@ static void udoo_epit_init(void)
static int udoo_devices_init(void)
{
- if (!of_machine_is_compatible("fsl,imx6q-udoo"))
+ if (!of_machine_is_compatible("udoo,imx6qdl-udoo"))
return 0;
setup_iomux_wdog();
@@ -181,7 +181,7 @@ device_initcall(udoo_devices_init);
static int udoo_coredevices_init(void)
{
- if (!of_machine_is_compatible("fsl,imx6q-udoo"))
+ if (!of_machine_is_compatible("udoo,imx6qdl-udoo"))
return 0;
phy_register_fixup_for_uid(PHY_ID_KSZ9021, MICREL_PHY_ID_MASK,
@@ -192,7 +192,7 @@ coredevice_initcall(udoo_coredevices_init);
static int udoo_postcore_init(void)
{
- if (!of_machine_is_compatible("fsl,imx6q-udoo"))
+ if (!of_machine_is_compatible("udoo,imx6qdl-udoo"))
return 0;
imx6_init_lowlevel();
diff --git a/arch/arm/dts/imx6q-udoo.dts b/arch/arm/dts/imx6q-udoo.dts
index 2e95978..106a0be 100644
--- a/arch/arm/dts/imx6q-udoo.dts
+++ b/arch/arm/dts/imx6q-udoo.dts
@@ -13,10 +13,11 @@
/dts-v1/;
+#include "imx6q.dtsi"
#include "imx6qdl-udoo.dtsi"
/ {
model = "Freescale i.MX6 Quad UDOO Board";
- compatible = "fsl,imx6q-udoo", "fsl,imx6q";
+ compatible = "udoo,imx6q-udoo", "udoo,imx6qdl-udoo", "fsl,imx6q";
};
diff --git a/arch/arm/dts/imx6qdl-udoo.dtsi b/arch/arm/dts/imx6qdl-udoo.dtsi
index 6220751..4cb6572 100644
--- a/arch/arm/dts/imx6qdl-udoo.dtsi
+++ b/arch/arm/dts/imx6qdl-udoo.dtsi
@@ -11,12 +11,13 @@
* http://www.gnu.org/copyleft/gpl.html
*/
-#include "imx6q.dtsi"
-
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
+ model = "Freescale i.MX6 UDOO Board";
+ compatible = "udoo,imx6qdl-udoo", "fsl,imx6q";
+
chosen {
linux,stdout-path = &uart2;
--
1.8.3.2
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2014-02-17 22:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-17 22:04 [PATCH v2 1/2] ARM: add minimal support for the Freescale Quad UDOO Board Raphaël POGGI
2014-02-17 22:04 ` Raphaël POGGI [this message]
2014-02-19 10:58 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1392674653-26759-2-git-send-email-poggi.raph@gmail.com \
--to=poggi.raph@gmail.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox