Skip to contentSkip to conversation

arm: dts: add Nuvoton NPCM750 device tree

PATCH New Tomer Maimon 1 participant 2 messages Mar 21, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover arm: dts: add Nuvoton NPCM750 device tree

The NPCM7xx are a family of BMC's that include several chips as:
NPCM750, NPCM730 etc.

All of the NPCM7xx BMC's have the common modules like Cortex-A9, WDT, timers, etc, and there are a optional modules that can be added.

NPCM750 device tree already pushed to arm-soc.git:
https://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git/commit/?h=for-next&id=d6bdd009c21db3f677dd1d1bbb8c20bc819074bc

After discussion with Rob Herring we have modified the structure of the NPCM7xx device tree as follow:

nuvoton-common-npcm7xx device tree include all common modules nuvoton-npcm750 device tree include specific npcm750 modules, the nuvoton-npcm750 device tree include nuvoton-common-npcm7xx device tree

In addition, the NPCM7xx device tree include the following changes:
- watchdog module added
- clock module modification
- serial module modification

I will like to replace the device tree that pushed to arm-soc.git with this patch set.

Please review it, sorry if it cause more work after pushing NPCM750 device tree.

Thanks a lot,

Tomer

Tomer Maimon (1):
arm: dts: add Nuvoton NPCM750 device tree

 arch/arm/boot/dts/Makefile                    |   2 +
 arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi | 187 ++++++++++++++++++++++++++
 arch/arm/boot/dts/nuvoton-npcm750-evb.dts     |  39 ++++++
 arch/arm/boot/dts/nuvoton-npcm750.dtsi        |  45 +++++++
 4 files changed, 273 insertions(+)
 create mode 100644 arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi
 create mode 100644 arch/arm/boot/dts/nuvoton-npcm750-evb.dts
 create mode 100644 arch/arm/boot/dts/nuvoton-npcm750.dtsi
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 arm: dts: add Nuvoton NPCM750 device tree

Add a common device tree for all Nuvoton NPCM7xx BMCs and a board specific device tree for the NPCM750 (Poleg) evaluation board.

---
 arch/arm/boot/dts/Makefile                    |   2 +
 arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi | 187 ++++++++++++++++++++++++++
 arch/arm/boot/dts/nuvoton-npcm750-evb.dts     |  39 ++++++
 arch/arm/boot/dts/nuvoton-npcm750.dtsi        |  45 +++++++
 4 files changed, 273 insertions(+)
 create mode 100644 arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi
 create mode 100644 arch/arm/boot/dts/nuvoton-npcm750-evb.dts
 create mode 100644 arch/arm/boot/dts/nuvoton-npcm750.dtsi
arch/arm/boot/dts/Makefile +2 -0
index ade7a38543dc..ba3bfa674e32 100644
@@ -304,6 +304,8 @@ dtb-$(CONFIG_ARCH_LPC18XX) += \
 dtb-$(CONFIG_ARCH_LPC32XX) += \
 	lpc3250-ea3250.dtb \
 	lpc3250-phy3250.dtb
+dtb-$(CONFIG_ARCH_NPCM7XX) += \
+	nuvoton-npcm750-evb.dtb
 dtb-$(CONFIG_MACH_MESON6) += \
 	meson6-atv1200.dtb
 dtb-$(CONFIG_MACH_MESON8) += \
arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi new file +187 -0

187 lines not on this page · raw message

arch/arm/boot/dts/nuvoton-npcm750-evb.dts new file +39 -0
new file mode 100644
index 000000000000..15f744f1beea
@@ -0,0 +1,39 @@
+// SPDX-License-Identifier: GPL-2.0
+// Copyright (c) 2018 Nuvoton Technology tomer.maimon at nuvoton.com
+// Copyright 2018 Google, Inc.
+
+/dts-v1/;
+#include "nuvoton-npcm750.dtsi"
+
+/ {
+	model = "Nuvoton npcm750 Development Board (Device Tree)";
+	compatible = "nuvoton,npcm750";
+
+	chosen {
+		stdout-path = &serial3;
+	};
+
+	memory {
+		reg = <0 0x40000000>;
+	};
+};
+
+&watchdog1 {
+	status = "okay";
+};
+
+&serial0 {
+	status = "okay";
+};
+
+&serial1 {
+	status = "okay";
+};
+
+&serial2 {
+	status = "okay";
+};
+
+&serial3 {
+	status = "okay";
+};
arch/arm/boot/dts/nuvoton-npcm750.dtsi new file +45 -0

45 lines not on this page · raw message

Signature · 1 line
2.14.1