From: afaerber@suse.de (Andreas Färber)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/4] arm64: dts: marvell: Clean up armada-7040-db
Date: Wed, 23 Mar 2016 23:24:20 +0100 [thread overview]
Message-ID: <1458771861-12392-4-git-send-email-afaerber@suse.de> (raw)
In-Reply-To: <1458771861-12392-1-git-send-email-afaerber@suse.de>
Instead of duplicating the node hierarchy, reference the nodes by label,
adding labels where necessary.
Drop some trailing or inconsistent white lines while at it.
Fixes: ec7e5a569bce ("arm64: dts: marvell: add Device Tree files for Armada 7K/8K")
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Andreas F?rber <afaerber@suse.de>
---
Is it intentional that there are no aliases for the two serial nodes and no /chosen/stdout-path?
arch/arm64/boot/dts/marvell/armada-7040-db.dts | 52 ++++++++++------------
arch/arm64/boot/dts/marvell/armada-ap806-dual.dtsi | 1 -
arch/arm64/boot/dts/marvell/armada-ap806-quad.dtsi | 2 -
arch/arm64/boot/dts/marvell/armada-ap806.dtsi | 7 +--
4 files changed, 26 insertions(+), 36 deletions(-)
diff --git a/arch/arm64/boot/dts/marvell/armada-7040-db.dts b/arch/arm64/boot/dts/marvell/armada-7040-db.dts
index 064a251346dd..ee5778395bea 100644
--- a/arch/arm64/boot/dts/marvell/armada-7040-db.dts
+++ b/arch/arm64/boot/dts/marvell/armada-7040-db.dts
@@ -55,38 +55,34 @@
device_type = "memory";
reg = <0x0 0x0 0x0 0x80000000>;
};
+};
- ap806 {
- config-space {
- spi at 510600 {
- status = "okay";
-
- spi-flash at 0 {
- #address-cells = <1>;
- #size-cells = <1>;
- compatible = "n25q128a13";
- reg = <0>; /* Chip select 0 */
- spi-max-frequency = <10000000>;
+&i2c0 {
+ status = "okay";
+ clock-frequency = <100000>;
+};
- partition at 0 {
- label = "U-Boot";
- reg = <0 0x200000>;
- };
- partition at 400000 {
- label = "Filesystem";
- reg = <0x200000 0xce0000>;
- };
- };
- };
+&spi0 {
+ status = "okay";
- i2c at 511000 {
- status = "okay";
- clock-frequency = <100000>;
- };
+ spi-flash at 0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "n25q128a13";
+ reg = <0>; /* Chip select 0 */
+ spi-max-frequency = <10000000>;
- serial at 512000 {
- status = "okay";
- };
+ partition at 0 {
+ label = "U-Boot";
+ reg = <0 0x200000>;
+ };
+ partition at 400000 {
+ label = "Filesystem";
+ reg = <0x200000 0xce0000>;
};
};
};
+
+&uart0 {
+ status = "okay";
+};
diff --git a/arch/arm64/boot/dts/marvell/armada-ap806-dual.dtsi b/arch/arm64/boot/dts/marvell/armada-ap806-dual.dtsi
index f25c5c17fad7..95a1ff60f6c1 100644
--- a/arch/arm64/boot/dts/marvell/armada-ap806-dual.dtsi
+++ b/arch/arm64/boot/dts/marvell/armada-ap806-dual.dtsi
@@ -68,4 +68,3 @@
};
};
};
-
diff --git a/arch/arm64/boot/dts/marvell/armada-ap806-quad.dtsi b/arch/arm64/boot/dts/marvell/armada-ap806-quad.dtsi
index baa7d9a516b3..ba43a4357b89 100644
--- a/arch/arm64/boot/dts/marvell/armada-ap806-quad.dtsi
+++ b/arch/arm64/boot/dts/marvell/armada-ap806-quad.dtsi
@@ -79,6 +79,4 @@
enable-method = "psci";
};
};
-
};
-
diff --git a/arch/arm64/boot/dts/marvell/armada-ap806.dtsi b/arch/arm64/boot/dts/marvell/armada-ap806.dtsi
index 556a92bcc2f6..3ecf9b1798fa 100644
--- a/arch/arm64/boot/dts/marvell/armada-ap806.dtsi
+++ b/arch/arm64/boot/dts/marvell/armada-ap806.dtsi
@@ -59,7 +59,6 @@
method = "smc";
};
-
ap806 {
#address-cells = <2>;
#size-cells = <2>;
@@ -190,7 +189,7 @@
status = "disabled";
};
- serial at 512000 {
+ uart0: serial at 512000 {
compatible = "snps,dw-apb-uart";
reg = <0x512000 0x100>;
reg-shift = <2>;
@@ -200,7 +199,7 @@
status = "disabled";
};
- serial at 512100 {
+ uart1: serial at 512100 {
compatible = "snps,dw-apb-uart";
reg = <0x512100 0x100>;
reg-shift = <2>;
@@ -232,6 +231,4 @@
};
};
};
-
};
-
--
2.6.2
next prev parent reply other threads:[~2016-03-23 22:24 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-23 22:24 [PATCH 0/4] ARM64: mvebu: Armada 3700/7K/8K DT cleanups Andreas Färber
2016-03-23 22:24 ` [PATCH 1/4] arm64: dts: marvell: Clean up armada-3720-db Andreas Färber
2016-03-24 16:11 ` Gregory CLEMENT
2016-03-24 16:46 ` Andreas Färber
2016-03-25 8:16 ` Gregory CLEMENT
2016-04-07 19:00 ` Gregory CLEMENT
2016-03-23 22:24 ` [PATCH 2/4] arm64: dts: marvell: Rename armada-37xx USB node Andreas Färber
2016-03-23 22:24 ` Andreas Färber [this message]
2016-03-24 8:18 ` [PATCH 3/4] arm64: dts: marvell: Clean up armada-7040-db Thomas Petazzoni
2016-03-24 10:27 ` Gregory CLEMENT
2016-03-24 10:40 ` Thomas Petazzoni
2016-03-24 13:37 ` Andrew Lunn
2016-03-24 13:59 ` Jason Cooper
2016-03-23 22:24 ` [PATCH 4/4] arm64: dts: marvell: Rename armada-ap806 XOR nodes Andreas Färber
2016-03-24 8:17 ` Thomas Petazzoni
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=1458771861-12392-4-git-send-email-afaerber@suse.de \
--to=afaerber@suse.de \
--cc=linux-arm-kernel@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;
as well as URLs for NNTP newsgroup(s).