public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
* [PATCH 0/3] arm64: marvell: few improvment for Armada 37xx device tree
@ 2016-04-27 15:46 Gregory CLEMENT
  2016-04-27 15:46 ` [PATCH 1/3] arm64: dts: marvell: Clean up armada-3720-db Gregory CLEMENT
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Gregory CLEMENT @ 2016-04-27 15:46 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

This series add few improvement on the dts for Armada 37xx. First it
send a second version of the patch from Andreas with the modification
initially asked. I also fix the compatibility property for the xHCI
node to conform to the documentation.


Thanks,

Gregory

Andreas F?rber (2):
  arm64: dts: marvell: Clean up armada-3720-db
  arm64: dts: marvell: Rename armada-37xx USB node

Gregory CLEMENT (1):
  arm64: dts: marvell: Use a SoC-specific compatible for xHCI on
    Armada37xx

 Documentation/devicetree/bindings/usb/usb-xhci.txt |  1 +
 arch/arm64/boot/dts/marvell/armada-3720-db.dts     | 32 ++++++++--------------
 arch/arm64/boot/dts/marvell/armada-372x.dtsi       |  1 -
 arch/arm64/boot/dts/marvell/armada-37xx.dtsi       |  7 +++--
 4 files changed, 17 insertions(+), 24 deletions(-)

-- 
2.5.0

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

* [PATCH 1/3] arm64: dts: marvell: Clean up armada-3720-db
  2016-04-27 15:46 [PATCH 0/3] arm64: marvell: few improvment for Armada 37xx device tree Gregory CLEMENT
@ 2016-04-27 15:46 ` Gregory CLEMENT
  2016-04-27 15:46 ` [PATCH 2/3] arm64: dts: marvell: Rename armada-37xx USB node Gregory CLEMENT
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Gregory CLEMENT @ 2016-04-27 15:46 UTC (permalink / raw)
  To: linux-arm-kernel

From: Andreas F?rber <afaerber@suse•de>

Instead of duplicating the SoC's node hierarchy, including a bus node
named "internal-regs", reference the actually desired nodes by label,
like Berlin already does. Add labels where necessary.

Drop an inconsistent white line while at it.
Cc: Gregory CLEMENT <gregory.clement@free-electrons•com>
Signed-off-by: Andreas F?rber <afaerber@suse•de>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons•com>
[gregory.clement at free-electrons.com: drop Fixes tag as it is not a bug fix.]
---
 arch/arm64/boot/dts/marvell/armada-3720-db.dts | 32 ++++++++++----------------
 arch/arm64/boot/dts/marvell/armada-372x.dtsi   |  1 -
 arch/arm64/boot/dts/marvell/armada-37xx.dtsi   |  4 ++--
 3 files changed, 14 insertions(+), 23 deletions(-)

diff --git a/arch/arm64/boot/dts/marvell/armada-3720-db.dts b/arch/arm64/boot/dts/marvell/armada-3720-db.dts
index 359050154511..86110a6ae330 100644
--- a/arch/arm64/boot/dts/marvell/armada-3720-db.dts
+++ b/arch/arm64/boot/dts/marvell/armada-3720-db.dts
@@ -60,27 +60,19 @@
 		device_type = "memory";
 		reg = <0x00000000 0x00000000 0x00000000 0x20000000>;
 	};
+};
 
-	soc {
-		internal-regs {
-			/*
-			* Exported on the micro USB connector CON32
-			* through an FTDI
-			*/
-			uart0: serial at 12000 {
-				status = "okay";
-			};
-
-			/* CON31 */
-			usb3 at 58000 {
-				status = "okay";
-			};
+/* CON3 */
+&sata {
+	status = "okay";
+};
 
-			/* CON3 */
-			sata at e0000 {
-			       status = "okay";
-			};
-		};
-	};
+/* Exported on the micro USB connector CON32 through an FTDI */
+&uart0 {
+	status = "okay";
 };
 
+/* CON31 */
+&usb3 {
+	status = "okay";
+};
diff --git a/arch/arm64/boot/dts/marvell/armada-372x.dtsi b/arch/arm64/boot/dts/marvell/armada-372x.dtsi
index f292a00ce97c..5120296596c2 100644
--- a/arch/arm64/boot/dts/marvell/armada-372x.dtsi
+++ b/arch/arm64/boot/dts/marvell/armada-372x.dtsi
@@ -59,5 +59,4 @@
 			enable-method = "psci";
 		};
 	};
-
 };
diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
index ba9df7ff2a72..4328c2408a8a 100644
--- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
+++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
@@ -105,14 +105,14 @@
 				status = "disabled";
 			};
 
-			usb3 at 58000 {
+			usb3: usb3 at 58000 {
 				compatible = "generic-xhci";
 				reg = <0x58000 0x4000>;
 				interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
 				status = "disabled";
 			};
 
-			sata at e0000 {
+			sata: sata at e0000 {
 				compatible = "marvell,armada-3700-ahci";
 				reg = <0xe0000 0x2000>;
 				interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
-- 
2.5.0

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

* [PATCH 2/3] arm64: dts: marvell: Rename armada-37xx USB node
  2016-04-27 15:46 [PATCH 0/3] arm64: marvell: few improvment for Armada 37xx device tree Gregory CLEMENT
  2016-04-27 15:46 ` [PATCH 1/3] arm64: dts: marvell: Clean up armada-3720-db Gregory CLEMENT
@ 2016-04-27 15:46 ` Gregory CLEMENT
  2016-04-27 15:46 ` [PATCH 3/3] arm64: dts: marvell: Use a SoC-specific compatible for xHCI on Armada37xx Gregory CLEMENT
  2016-04-29 13:00 ` [PATCH 0/3] arm64: marvell: few improvment for Armada 37xx device tree Gregory CLEMENT
  3 siblings, 0 replies; 5+ messages in thread
From: Gregory CLEMENT @ 2016-04-27 15:46 UTC (permalink / raw)
  To: linux-arm-kernel

From: Andreas F?rber <afaerber@suse•de>

No need to reflect the USB version in the node name.

Cc: Gregory CLEMENT <gregory.clement@free-electrons•com>
Signed-off-by: Andreas F?rber <afaerber@suse•de>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons•com>
[gregory.clement at free-electrons.com: drop Fixes tag as it is not a bug fix.]
---
 arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
index 4328c2408a8a..55a861d60fae 100644
--- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
+++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
@@ -105,7 +105,7 @@
 				status = "disabled";
 			};
 
-			usb3: usb3 at 58000 {
+			usb3: usb at 58000 {
 				compatible = "generic-xhci";
 				reg = <0x58000 0x4000>;
 				interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
-- 
2.5.0

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

* [PATCH 3/3] arm64: dts: marvell: Use a SoC-specific compatible for xHCI on Armada37xx
  2016-04-27 15:46 [PATCH 0/3] arm64: marvell: few improvment for Armada 37xx device tree Gregory CLEMENT
  2016-04-27 15:46 ` [PATCH 1/3] arm64: dts: marvell: Clean up armada-3720-db Gregory CLEMENT
  2016-04-27 15:46 ` [PATCH 2/3] arm64: dts: marvell: Rename armada-37xx USB node Gregory CLEMENT
@ 2016-04-27 15:46 ` Gregory CLEMENT
  2016-04-29 13:00 ` [PATCH 0/3] arm64: marvell: few improvment for Armada 37xx device tree Gregory CLEMENT
  3 siblings, 0 replies; 5+ messages in thread
From: Gregory CLEMENT @ 2016-04-27 15:46 UTC (permalink / raw)
  To: linux-arm-kernel

Even if the Armada 37xx does not any specific setup, the device tree
binding documentation requires to use a SoC-specific version
corresponding to the platform first followed by the generic version.

This patch introduce this new compatible string and updates the
documentation accordingly.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons•com>
---
 Documentation/devicetree/bindings/usb/usb-xhci.txt | 1 +
 arch/arm64/boot/dts/marvell/armada-37xx.dtsi       | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/usb/usb-xhci.txt b/Documentation/devicetree/bindings/usb/usb-xhci.txt
index 6a17aa85c4d5..966885c636d0 100644
--- a/Documentation/devicetree/bindings/usb/usb-xhci.txt
+++ b/Documentation/devicetree/bindings/usb/usb-xhci.txt
@@ -4,6 +4,7 @@ Required properties:
   - compatible: should be one or more of
 
     - "generic-xhci" for generic XHCI device
+    - "marvell,armada3700-xhci" for Armada 37xx SoCs
     - "marvell,armada-375-xhci" for Armada 375 SoCs
     - "marvell,armada-380-xhci" for Armada 38x SoCs
     - "renesas,xhci-r8a7790" for r8a7790 SoC
diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
index 55a861d60fae..1d4fb4d27787 100644
--- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
+++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
@@ -106,7 +106,8 @@
 			};
 
 			usb3: usb at 58000 {
-				compatible = "generic-xhci";
+				compatible = "marvell,armada3700-xhci",
+				"generic-xhci";
 				reg = <0x58000 0x4000>;
 				interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
 				status = "disabled";
-- 
2.5.0

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

* [PATCH 0/3] arm64: marvell: few improvment for Armada 37xx device tree
  2016-04-27 15:46 [PATCH 0/3] arm64: marvell: few improvment for Armada 37xx device tree Gregory CLEMENT
                   ` (2 preceding siblings ...)
  2016-04-27 15:46 ` [PATCH 3/3] arm64: dts: marvell: Use a SoC-specific compatible for xHCI on Armada37xx Gregory CLEMENT
@ 2016-04-29 13:00 ` Gregory CLEMENT
  3 siblings, 0 replies; 5+ messages in thread
From: Gregory CLEMENT @ 2016-04-29 13:00 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,
 
 On mer., avril 27 2016, Gregory CLEMENT <gregory.clement@free-electrons•com> wrote:

> Hi,
>
> This series add few improvement on the dts for Armada 37xx. First it
> send a second version of the patch from Andreas with the modification
> initially asked. I also fix the compatibility property for the xHCI
> node to conform to the documentation.
>
>

I just want to let you know that this series was already applied on
mvebu/dt64

Gregory

> Thanks,
>
> Gregory
>
> Andreas F?rber (2):
>   arm64: dts: marvell: Clean up armada-3720-db
>   arm64: dts: marvell: Rename armada-37xx USB node
>
> Gregory CLEMENT (1):
>   arm64: dts: marvell: Use a SoC-specific compatible for xHCI on
>     Armada37xx
>
>  Documentation/devicetree/bindings/usb/usb-xhci.txt |  1 +
>  arch/arm64/boot/dts/marvell/armada-3720-db.dts     | 32 ++++++++--------------
>  arch/arm64/boot/dts/marvell/armada-372x.dtsi       |  1 -
>  arch/arm64/boot/dts/marvell/armada-37xx.dtsi       |  7 +++--
>  4 files changed, 17 insertions(+), 24 deletions(-)
>
> -- 
> 2.5.0
>

-- 
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

end of thread, other threads:[~2016-04-29 13:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-27 15:46 [PATCH 0/3] arm64: marvell: few improvment for Armada 37xx device tree Gregory CLEMENT
2016-04-27 15:46 ` [PATCH 1/3] arm64: dts: marvell: Clean up armada-3720-db Gregory CLEMENT
2016-04-27 15:46 ` [PATCH 2/3] arm64: dts: marvell: Rename armada-37xx USB node Gregory CLEMENT
2016-04-27 15:46 ` [PATCH 3/3] arm64: dts: marvell: Use a SoC-specific compatible for xHCI on Armada37xx Gregory CLEMENT
2016-04-29 13:00 ` [PATCH 0/3] arm64: marvell: few improvment for Armada 37xx device tree Gregory CLEMENT

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