Skip to contentSkip to conversation

ARM: u300: basic device tree support

PATCH In review Linus Walleij 2 participants 2 messages Apr 22, 2013

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

PATCH 6/23 ARM: u300: basic device tree support

From: Linus Walleij <[email protected]>

This register the most basic peripherals and makes the U300 boot to prompt from a device tree.

---
 Documentation/devicetree/bindings/arm/ste-u300.txt |  9 +++
 arch/arm/boot/dts/Makefile                         |  1 +
 arch/arm/boot/dts/ste-u300.dts                     | 86 ++++++++++++++++++++++
 arch/arm/mach-u300/core.c                          | 80 ++++++++++++++++++++
 4 files changed, 176 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/ste-u300.txt
 create mode 100644 arch/arm/boot/dts/ste-u300.dts
Documentation/devicetree/bindings/arm/ste-u300.txt new file +9 -0
new file mode 100644
index 0000000..222dca5
@@ -0,0 +1,9 @@
+ST-Ericsson U300 Device Tree Bindings
+
+For various board the "board" node may contain specific properties
+that pertain to this particular board, such as board-specific GPIOs
+or board power regulator supplies.
+
+Required root node property:
+
+compatible="stericsson,u300";
arch/arm/boot/dts/Makefile +1 -0
index 9c62558..369fba7 100644
@@ -165,6 +165,7 @@ dtb-$(CONFIG_ARCH_TEGRA) += tegra20-harmony.dtb \
 	tegra30-cardhu-a04.dtb \
 	tegra114-dalmore.dtb \
 	tegra114-pluto.dtb
+dtb-$(CONFIG_ARCH_U300) += ste-u300.dtb
 dtb-$(CONFIG_ARCH_VEXPRESS) += vexpress-v2p-ca5s.dtb \
 	vexpress-v2p-ca9.dtb \
 	vexpress-v2p-ca15-tc1.dtb \
arch/arm/boot/dts/ste-u300.dts new file +86 -0

86 lines not on this page · raw message

arch/arm/mach-u300/core.c +80 -0

89 lines not on this page · raw message

Signature · 1 line
1.7.11.3
maintainer
#1 lore raw

PATCH 6/23 ARM: u300: basic device tree support

Quoted 1 line · Linus Walleij

+/ {

We don't really care about the device node names in Linux, but please use the common ones, without any trailing digits:

arch/arm/boot/dts/ste-u300.dts line 32

Quoted 6 lines
arch/arm/boot/dts/ste-u300.dts new file +6 -0
+	timer: timer0 at c0014000 {
+		compatible = "stericsson,u300-apptimer";
+		reg = <0xc0014000 0x1000>;
+		interrupt-parent = <&vica>;
+		interrupts = <24 25 26 27>;
+	};

timer at c0014000

arch/arm/boot/dts/ste-u300.dts line 36

Quoted 4 lines
arch/arm/boot/dts/ste-u300.dts new file +4 -0
+
+	gpio: gpio0 at c0016000 {
+		compatible = "stericsson,gpio-coh901";
+		reg = <0xc0016000 0x1000>;

gpio at c0016000

arch/arm/boot/dts/ste-u300.dts line 50

Quoted 4 lines
arch/arm/boot/dts/ste-u300.dts new file +4 -0
+	pinctrl: pinctrl0 at c0011000 {
+		compatible = "stericsson,pinctrl-u300";
+		reg = <0xc0011000 0x1000>;
+	};

pinctrl at c0011000

arch/arm/boot/dts/ste-u300.dts line 63

Quoted 6 lines
arch/arm/boot/dts/ste-u300.dts new file +6 -0
+		vica: intc at 0xa0001000 {
+			compatible = "arm,versatile-vic";
+			interrupt-controller;
+			#interrupt-cells = <1>;
+			reg = <0xa0001000 0x20>;
+		};

interrupt-controller at a0001000

Note also the erroneous 0x part you have in the name here.

arch/arm/boot/dts/ste-u300.dts line 77

Quoted 6 lines
arch/arm/boot/dts/ste-u300.dts new file +6 -0
+		uart0: uart at c0013000 {
+			compatible = "arm,pl011", "arm,primecell";
+			reg = <0xc0013000 0x1000>;
+			interrupt-parent = <&vica>;
+			interrupts = <22>;
+		};

serial at c0013000

Arnd