Skip to contentSkip to conversation

ODROID-X: dts: Add board dts file for ODROID-X

PATCH Superseded Dongjin Kim 2 participants 6 messages Dec 21, 2012 – Dec 22, 2012 1 message not in the archive

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH v2 1/4 ODROID-X: dts: Add board dts file for ODROID-X

Add initial dtb file for Hardkernel's ODROID-X board based on EXYNOS4412 SoC.

---
 arch/arm/boot/dts/Makefile               |    1 +
 arch/arm/boot/dts/exynos4412-odroidx.dts |   47 ++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+)
 create mode 100644 arch/arm/boot/dts/exynos4412-odroidx.dts
arch/arm/boot/dts/Makefile +1 -0
index d077ef8..364d67b 100644
@@ -44,6 +44,7 @@ dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210-origen.dtb \
 	exynos4210-trats.dtb \
 	exynos5250-smdk5250.dtb \
 	exynos5440-ssdk5440.dtb \
+	exynos4412-odroidx.dtb \
 	exynos4412-smdk4412.dtb \
 	exynos5250-smdk5250.dtb \
 	exynos5250-snow.dtb
arch/arm/boot/dts/exynos4412-odroidx.dts new file +47 -0

47 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#2 lore raw
Quoted 24 lines · Dongjin Kim

Add initial dtb file for Hardkernel's ODROID-X board based on EXYNOS4412 SoC.

---
 arch/arm/boot/dts/Makefile               |    1 +
 arch/arm/boot/dts/exynos4412-odroidx.dts |   47
++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+)
 create mode 100644 arch/arm/boot/dts/exynos4412-odroidx.dts
arch/arm/boot/dts/Makefile +1 -0
index d077ef8..364d67b 100644
@@ -44,6 +44,7 @@ dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210-
 origen.dtb \
 	exynos4210-trats.dtb \
 	exynos5250-smdk5250.dtb \
 	exynos5440-ssdk5440.dtb \
+	exynos4412-odroidx.dtb \
 	exynos4412-smdk4412.dtb \
 	exynos5250-smdk5250.dtb \
Quoted 1 line

exynos5250-snow.dtb

Just now, I sorted out the ordering alphabetically and submitted.

Quoted 19 lines
arch/arm/boot/dts/exynos4412-odroidx.dts new file +6 -0
new file mode 100644
index 0000000..323ed177
@@ -0,0 +1,47 @@
+/*
+ * Hardkernel's Exynos4412 based ODROID-X board device tree source
+ *
+ * Copyright (c) 2012 Dongjin Kim <[email protected]>
+ *
+ * Device tree source file for Hardkernel's ODROID-X board which is based

on
+ * Samsung's Exynos4412 SoC.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.

arch/arm/boot/dts/exynos4412-odroidx.dts line 19

Quoted 8 lines
arch/arm/boot/dts/exynos4412-odroidx.dts new file +8 -0
+*/
+
+/dts-v1/;
+/include/ "exynos4412.dtsi"
+
+/ {
+	model = "Hardkernel ODROID-X board based on Exynos4412";
+	compatible = "hardkernel,exynos4412", "samsung,exynos4412";

Probably,

+ compatible = "hardkernel,odroid-x", "samsung,exynos4412";

arch/arm/boot/dts/exynos4412-odroidx.dts line 22

Quoted 3 lines
arch/arm/boot/dts/exynos4412-odroidx.dts new file +3 -0
+
+	memory {
+		reg = <0x40000000 0x40000000>;

If you can't see any error message in kernel boot, boot-loader should inform the memory size and bank information to the kernel. So should be separated with bank size, 256MiB. But I need to think again as Olof said in other thread.

Quoted 26 lines
arch/arm/boot/dts/exynos4412-odroidx.dts new file +25 -1
+	};
+
+	serial at 13800000 {
+		status = "okay";
+	};
+
+	serial at 13810000 {
+		status = "okay";
+	};
+
+	serial at 13820000 {
+		status = "okay";
+	};
+
+	serial at 13830000 {
+		status = "okay";
+	};
+
+	sdhci at 12530000 {
+		bus-width = <4>;
+		pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
+		pinctrl-names = "default";
+		status = "okay";
+	};
+};
--
Quoted 1 line

1.7.9.5

BTW, you don't need any bootargs as default?

- Kukjin

#3 lore raw

Hi Kukjin,

Thank you for your review.

I was confused a little bit about bootargs what is better removing or including it in the board file, obviously I saw error message failing mount the root file system if I remove bootargs from board file and with default bootargs from u-boot.

What I thought is passing bootargs from boot-loader would be better to give more options like boot device and partition setup to the developers. If board file has fixed bootargs, then DTS file has to be updated whenever boot partition is changed or arguments need to be changed. And bootargs and other boot configuration could be set up from u-boot itself with certain script as well, I believe that this is much easier and comfortable rather than changing DTS file. We also can start the hardware with initramfs with default bootargs like "boot=/dev/ram0 rw ramdisk=8192..." and mount the expected boot partition for rootfs, anyhow real boot media has to be specified in bootargs as well.

Thanks and any advice will be welcomed a lot.

Best regrds,
Dongjin.

Quoted 102 lines · Kukjin Kim
Quoted 24 lines · Dongjin Kim

Add initial dtb file for Hardkernel's ODROID-X board based on EXYNOS4412 SoC.

---
 arch/arm/boot/dts/Makefile               |    1 +
 arch/arm/boot/dts/exynos4412-odroidx.dts |   47
++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+)
 create mode 100644 arch/arm/boot/dts/exynos4412-odroidx.dts
arch/arm/boot/dts/Makefile +1 -0
index d077ef8..364d67b 100644
@@ -44,6 +44,7 @@ dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210-
 origen.dtb \
      exynos4210-trats.dtb \
      exynos5250-smdk5250.dtb \
      exynos5440-ssdk5440.dtb \
+     exynos4412-odroidx.dtb \
      exynos4412-smdk4412.dtb \
      exynos5250-smdk5250.dtb \
Quoted 1 line
      exynos5250-snow.dtb

Just now, I sorted out the ordering alphabetically and submitted.

Quoted 19 lines
arch/arm/boot/dts/exynos4412-odroidx.dts new file +6 -0
new file mode 100644
index 0000000..323ed177
@@ -0,0 +1,47 @@
+/*
+ * Hardkernel's Exynos4412 based ODROID-X board device tree source
+ *
+ * Copyright (c) 2012 Dongjin Kim <[email protected]>
+ *
+ * Device tree source file for Hardkernel's ODROID-X board which is based

on
+ * Samsung's Exynos4412 SoC.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.

arch/arm/boot/dts/exynos4412-odroidx.dts line 19

Quoted 8 lines
arch/arm/boot/dts/exynos4412-odroidx.dts new file +8 -0
+*/
+
+/dts-v1/;
+/include/ "exynos4412.dtsi"
+
+/ {
+     model = "Hardkernel ODROID-X board based on Exynos4412";
+     compatible = "hardkernel,exynos4412", "samsung,exynos4412";

Probably,

+ compatible = "hardkernel,odroid-x", "samsung,exynos4412";

arch/arm/boot/dts/exynos4412-odroidx.dts line 22

Quoted 3 lines
arch/arm/boot/dts/exynos4412-odroidx.dts new file +3 -0
+
+     memory {
+             reg = <0x40000000 0x40000000>;

If you can't see any error message in kernel boot, boot-loader should inform the memory size and bank information to the kernel. So should be separated with bank size, 256MiB. But I need to think again as Olof said in other thread.

Quoted 26 lines
arch/arm/boot/dts/exynos4412-odroidx.dts new file +25 -1
+     };
+
+     serial at 13800000 {
+             status = "okay";
+     };
+
+     serial at 13810000 {
+             status = "okay";
+     };
+
+     serial at 13820000 {
+             status = "okay";
+     };
+
+     serial at 13830000 {
+             status = "okay";
+     };
+
+     sdhci at 12530000 {
+             bus-width = <4>;
+             pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
+             pinctrl-names = "default";
+             status = "okay";
+     };
+};
--
Quoted 1 line

1.7.9.5

BTW, you don't need any bootargs as default?

- Kukjin

#4 lore raw

PATCH v2 2/4 ODROID-X: dts: Add fixed-regulator for peripherals.

In reply to a message not in the archive

This patch adds the node to support fixed voltage for peripherals like LED, ethernet controller.

---
 arch/arm/boot/dts/exynos4412-odroidx.dts |   10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm/boot/dts/exynos4412-odroidx.dts +10 -0
index 323ed177..3d53663 100644
@@ -44,4 +44,14 @@
 		pinctrl-names = "default";
 		status = "okay";
 	};
+
+	regulator_p3v3 {
+		compatible = "regulator-fixed";
+		regulator-name = "p3v3_en";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		gpio = <&gpa1 1 0>;
+		enable-active-high;
+		regulator-boot-on;
+	};
 };
Signature · 1 line
1.7.9.5
#5 lore raw

PATCH v2 3/4 ODROID-X: dts: Add nodes for leds based on GPIO.

In reply to a message not in the archive

This patch adds GPIO connected LEDS on ODROID-X board, and describe its properties.

---
 arch/arm/boot/dts/exynos4412-odroidx.dts |   14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm/boot/dts/exynos4412-odroidx.dts +14 -0
index 3d53663..e5c57c1 100644
@@ -54,4 +54,18 @@
 		enable-active-high;
 		regulator-boot-on;
 	};
+
+	leds {
+		compatible = "gpio-leds";
+		led1 {
+			label = "led1:heart";
+			gpios = <&gpc1 0 0>;
+			linux,default-trigger = "heartbeat";
+		};
+		led2 {
+			label = "led2:mmc0";
+			gpios = <&gpc1 2 0>;
+			linux,default-trigger = "mmc0";
+		};
+	};
 };
Signature · 1 line
1.7.9.5
#6 lore raw

PATCH v2 4/4 ODROID-X: dts: Add mshc node for ODROID-X board

In reply to a message not in the archive

Adding the device node to support eMMC storage on SDCARD4 ports, controlled by Mobile Storage Host Controller.

---
 arch/arm/boot/dts/exynos4412-odroidx.dts |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
arch/arm/boot/dts/exynos4412-odroidx.dts +20 -0
index e5c57c1..7a2df8e 100644
@@ -68,4 +68,24 @@
 			linux,default-trigger = "mmc0";
 		};
 	};
+
+	mshc at 12550000 {
+		bus-width = <8>;
+		pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bus4 &sd4_bus8>;
+		pinctrl-names = "default";
+		status = "okay";
+
+		num-slots = <1>;
+		supports-highspeed;
+		broken-cd;
+		fifo-depth = <0x80>;
+		card-detect-delay = <200>;
+		samsung,dw-mshc-ciu-div = <3>;
+		samsung,dw-mshc-sdr-timing = <2 3 3>;
+		samsung,dw-mshc-ddr-timing = <1 2 3>;
+
+		slot at 0 {
+			reg = <0>;
+		};
+	};
 };
Signature · 1 line
1.7.9.5