Skip to contentSkip to conversation

Add Exynos4412 based Odroid X2 and U2/U3/U3+ support

PATCH Superseded Marek Szyprowski 6 participants 19 messages Jun 25, 2014 – Aug 20, 2014

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover Add Exynos4412 based Odroid X2 and U2/U3/U3+ support

Hello,

This is the second version of the initial patch series adding support for Exynos 4412 based Odroid X2 and U2/U3/U3+ boards and improving support for Odroid X.

Complete USB support for Odroid U2/U3/U3+ still requires some fixes in Exynos4 USB2 Phy driver and clock driver for CLKOUT:
http://thread.gmane.org/gmane.linux.kernel/1731843/
http://www.spinics.net/lists/linux-usb/msg109587.html
The above changes however don't affect Odroid DTS files, but without them, usb3503 hub is not yet functional.

Support for audio codec will be posted separately by Sylwester Nawrocki soon. Support for HDMI video output will be also posted separately together with the required ExynosDRM-HDMI fixes.

If one is interested in more complete and open-source Odroid board support, there are also patches for u-boot project:
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/188295/focus=188610

Best regards
Marek Szyprowski
Samsung R&D Institute Poland

Changelog:

v2:
- added fix for broken LAN after reboot (removed BUCK8 always on property)
- restored all 4 uarts for Odroid X/X2 until correct patch for UART driver is developed
- rmoved incorrect port@2 node in ehci node for odroidx dts
- updated links for latest version of CLKOUT and PHY patches

v1:
- initial version

Kamil Debski (2):
ARM: dts: exynos4412-odroidx: add support for USB (phy, host, device)
ARM: dts: exynos4412-odroid-common: disable 'always on' for BUCK8
regulator

Marek Szyprowski (3):
ARM: dts: exynos4: add port sub-nodes to exynos usb host modules
ARM: dts: exynos4412-odroidx: enable common hardware blocks
ARM: dts: refactor Odroid DTS file and add support for Odroid X2 and

    U2/U3
 arch/arm/boot/dts/Makefile                      |   2 +
 arch/arm/boot/dts/exynos4.dtsi                  |  24 ++
 arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 318 ++++++++++++++++++++++++
 arch/arm/boot/dts/exynos4412-odroidu3.dts       |  49 ++++
 arch/arm/boot/dts/exynos4412-odroidx.dts        | 264 +-------------------
 arch/arm/boot/dts/exynos4412-odroidx2.dts       |  23 ++
 6 files changed, 427 insertions(+), 253 deletions(-)
 create mode 100644 arch/arm/boot/dts/exynos4412-odroid-common.dtsi
 create mode 100644 arch/arm/boot/dts/exynos4412-odroidu3.dts
 create mode 100644 arch/arm/boot/dts/exynos4412-odroidx2.dts
Signature · 1 line
1.9.2
#1 lore raw

PATCH v2 1/5 ARM: dts: exynos4: add port sub-nodes to exynos usb host modules

This patch adds port sub-nodes to exynos4 ehci and ohci modules, which are required by recently merged new exynos4 usb2 phy support.

---
 arch/arm/boot/dts/exynos4.dtsi | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
arch/arm/boot/dts/exynos4.dtsi +24 -0
index b8ece4be41ca..c91284441694 100644
@@ -322,6 +322,23 @@
 		clocks = <&clock CLK_USB_HOST>;
 		clock-names = "usbhost";
 		status = "disabled";
+		#address-cells = <1>;
+		#size-cells = <0>;
+		port@0 {
+		    reg = <0>;
+		    phys = <&exynos_usbphy 1>;
+		    status = "disabled";
+		};
+		port@1 {
+		    reg = <1>;
+		    phys = <&exynos_usbphy 2>;
+		    status = "disabled";
+		};
+		port@2 {
+		    reg = <2>;
+		    phys = <&exynos_usbphy 3>;
+		    status = "disabled";
+		};
 	};
 
 	ohci@12590000 {
@@ -331,6 +348,13 @@
 		clocks = <&clock CLK_USB_HOST>;
 		clock-names = "usbhost";
 		status = "disabled";
+		#address-cells = <1>;
+		#size-cells = <0>;
+		port@0 {
+		    reg = <0>;
+		    phys = <&exynos_usbphy 1>;
+		    status = "disabled";
+		};
 	};
 
 	i2s1: i2s@13960000 {
Signature · 1 line
1.9.2
#2 lore raw

PATCH v2 2/5 ARM: dts: exynos4412-odroidx: enable common hardware blocks

In reply to Marek Szyprowski

This patch adds support for common hardware modules available on all Exynos4412-based Odroid boards, which already have complete support in mainline kernel. This includes secure firmware calls, watchdog, g2d and fimc (mem2mem) multimedia accelerators.

---
 arch/arm/boot/dts/exynos4412-odroidx.dts | 35 ++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
arch/arm/boot/dts/exynos4412-odroidx.dts +35 -0
index 31db28a4bb33..fda9ac23dd55 100644
@@ -22,6 +22,11 @@
 		reg = <0x40000000 0x40000000>;
 	};
 
+	firmware@0204F000 {
+		compatible = "samsung,secure-firmware";
+		reg = <0x0204F000 0x1000>;
+	};
+
 	leds {
 		compatible = "gpio-leds";
 		led1 {
@@ -68,10 +73,40 @@
 		regulator-boot-on;
 	};
 
+	watchdog@10060000 {
+		status = "okay";
+	};
+
 	rtc@10070000 {
 		status = "okay";
 	};
 
+	g2d@10800000 {
+		status = "okay";
+	};
+
+	camera {
+		status = "okay";
+		pinctrl-names = "default";
+		pinctrl-0 = <>;
+
+		fimc_0: fimc@11800000 {
+			status = "okay";
+		};
+
+		fimc_1: fimc@11810000 {
+			status = "okay";
+		};
+
+		fimc_2: fimc@11820000 {
+			status = "okay";
+		};
+
+		fimc_3: fimc@11830000 {
+			status = "okay";
+		};
+	};
+
 	sdhci@12530000 {
 		bus-width = <4>;
 		pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
Signature · 1 line
1.9.2
#3 lore raw

PATCH v2 3/5 ARM: dts: exynos4412-odroidx: add support for USB (phy, host, device)

In reply to Marek Szyprowski

From: Kamil Debski <[email protected]>

This patch adds basic support for USB modules (host and device) on OdroidX board.

[removed incorrect port@2 node]
---
 arch/arm/boot/dts/exynos4412-odroidx.dts | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
arch/arm/boot/dts/exynos4412-odroidx.dts +27 -0
index fda9ac23dd55..4c853fbf7202 100644
@@ -148,6 +148,16 @@
 		pinctrl-names = "default";
 		status = "okay";
 
+		usb3503@08 {
+			compatible = "smsc,usb3503";
+			reg = <0x08>;
+
+			intn-gpios = <&gpx3 0 0>;
+			connect-gpios = <&gpx3 4 0>;
+			reset-gpios = <&gpx3 5 0>;
+			initial-mode = <1>;
+		};
+
 		max77686: pmic@09 {
 			compatible = "maxim,max77686";
 			reg = <0x09>;
@@ -338,4 +348,21 @@
 			};
 		};
 	};
+
+	exynos-usbphy@125B0000 {
+		status = "okay";
+	};
+
+	hsotg@12480000 {
+		status = "okay";
+		vusb_d-supply = <&ldo15_reg>;
+		vusb_a-supply = <&ldo12_reg>;
+	};
+
+	ehci@12580000 {
+		status = "okay";
+		port@1 {
+			status = "okay";
+		};
+	};
 };
Signature · 1 line
1.9.2
#4 lore raw

Re: [PATCH v2 3/5] ARM: dts: exynos4412-odroidx: add support for USB (phy, host, device)

Quoted 36 lines · Marek Szyprowski

From: Kamil Debski <[email protected]>

This patch adds basic support for USB modules (host and device) on OdroidX board.

[removed incorrect port@2 node]
---
 arch/arm/boot/dts/exynos4412-odroidx.dts | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
arch/arm/boot/dts/exynos4412-odroidx.dts +10 -0
index fda9ac23dd55..4c853fbf7202 100644
@@ -148,6 +148,16 @@
                pinctrl-names = "default";
                status = "okay";
 
+               usb3503@08 {
+                       compatible = "smsc,usb3503";
+                       reg = <0x08>;
+
+                       intn-gpios = <&gpx3 0 0>;
+                       connect-gpios = <&gpx3 4 0>;
+                       reset-gpios = <&gpx3 5 0>;
+                       initial-mode = <1>;
+               };
+
                max77686: pmic@09 {
                        compatible = "maxim,max77686";
                        reg = <0x09>;
@@ -338,4 +348,21 @@
                        };
                };

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

Quoted 10 lines
arch/arm/boot/dts/exynos4412-odroidx.dts +9 -0
        };
+
+       exynos-usbphy@125B0000 {
+               status = "okay";
+       };
+
+       hsotg@12480000 {
+               status = "okay";
+               vusb_d-supply = <&ldo15_reg>;
+               vusb_a-supply = <&ldo12_reg>;

Can you please point me to the documentation for these two properties in the DT bindings ?
Which tree i should grep to find that ?
We have similar supplies for ehci/ohci and other host controllers too, so just wondering
if we can use similar nomenclature for hsotg as well as host.

I have posted driver side patches for host (with DT documentation) a while back :
https://lkml.org/lkml/2014/6/25/363

[snip]

Signature · 4 lines
Best Regards
Vivek Gautam
Samsung R&D Institute, Bangalore
India
#5 lore raw

Re: [PATCH v2 3/5] ARM: dts: exynos4412-odroidx: add support for USB (phy, host, device)

Hello,

Quoted 42 lines · Vivek Gautam
Quoted 40 lines · Marek Szyprowski

From: Kamil Debski <[email protected]>

This patch adds basic support for USB modules (host and device) on OdroidX board.

[removed incorrect port@2 node]
---
  arch/arm/boot/dts/exynos4412-odroidx.dts | 27 +++++++++++++++++++++++++++
  1 file changed, 27 insertions(+)
arch/arm/boot/dts/exynos4412-odroidx.dts +13 -0
index fda9ac23dd55..4c853fbf7202 100644
@@ -148,6 +148,16 @@
                 pinctrl-names = "default";
                 status = "okay";
 
+               usb3503@08 {
+                       compatible = "smsc,usb3503";
+                       reg = <0x08>;
+
+                       intn-gpios = <&gpx3 0 0>;
+                       connect-gpios = <&gpx3 4 0>;
+                       reset-gpios = <&gpx3 5 0>;
+                       initial-mode = <1>;
+               };
+
                 max77686: pmic@09 {
                         compatible = "maxim,max77686";
                         reg = <0x09>;
@@ -338,4 +348,21 @@
                         };
                 };
         };
+
+       exynos-usbphy@125B0000 {
+               status = "okay";
Quoted 8 lines

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

Quoted 6 lines
arch/arm/boot/dts/exynos4412-odroidx.dts +6 -0
+       };
+
+       hsotg@12480000 {
+               status = "okay";
+               vusb_d-supply = <&ldo15_reg>;
+               vusb_a-supply = <&ldo12_reg>;

Can you please point me to the documentation for these two properties in the DT bindings ?

Documentation/devicetree/bindings/usb/samsung-hsotg.txt:
- vusb_d-supply: phandle to voltage regulator of digital section,
- vusb_a-supply: phandle to voltage regulator of analog section.

Quoted 1 line

Which tree i should grep to find that ?

Support for vusb_d and vusb_a regulators is already in s3c-hsotg driver (now a part of dwc2/gadget driver) since v3.5.

Quoted 7 lines

We have similar supplies for ehci/ohci and other host controllers too, so just wondering
if we can use similar nomenclature for hsotg as well as host.

I have posted driver side patches for host (with DT documentation) a while back :
https://lkml.org/lkml/2014/6/25/363

Ok, I will take a look into your patches, but I'm not sure if it makes sense to change the s3c-hsotg bindings now.

Best regards

Signature · 2 lines
Marek Szyprowski, PhD
Samsung R&D Institute Poland
#6 lore raw

PATCH v2 4/5 ARM: dts: refactor Odroid DTS file and add support for Odroid X2 and U2/U3

In reply to Marek Szyprowski

This patch moves some parts of exynos4412-odroidx.dts to common exynos4412-odroid-common.dtsi file and adds support for Odroid X2 and U2/U3 boards. X2 is same as X, but it has faster SoC module (1.7GHz instead of 1.4GHz), while U2/U3 differs from X2 by different way of routing signals to host USB hub. It also lacks some hw modules not yet supported by those dts files (i.e. LCD & touch panel).

---
 arch/arm/boot/dts/Makefile                      |   2 +
 arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 319 +++++++++++++++++++++++
 arch/arm/boot/dts/exynos4412-odroidu3.dts       |  49 ++++
 arch/arm/boot/dts/exynos4412-odroidx.dts        | 326 +-----------------------
 arch/arm/boot/dts/exynos4412-odroidx2.dts       |  23 ++
 5 files changed, 404 insertions(+), 315 deletions(-)
 create mode 100644 arch/arm/boot/dts/exynos4412-odroid-common.dtsi
 create mode 100644 arch/arm/boot/dts/exynos4412-odroidu3.dts
 create mode 100644 arch/arm/boot/dts/exynos4412-odroidx2.dts
arch/arm/boot/dts/Makefile +2 -0
index 5986ff63b901..28b354936685 100644
@@ -66,7 +66,9 @@ dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210-origen.dtb \
 	exynos4210-smdkv310.dtb \
 	exynos4210-trats.dtb \
 	exynos4210-universal_c210.dtb \
+	exynos4412-odroidu3.dtb \
 	exynos4412-odroidx.dtb \
+	exynos4412-odroidx2.dtb \
 	exynos4412-origen.dtb \
 	exynos4412-smdk4412.dtb \
 	exynos4412-tiny4412.dtb \
arch/arm/boot/dts/exynos4412-odroid-common.dtsi new file +319 -0

319 lines not on this page · raw message

arch/arm/boot/dts/exynos4412-odroidu3.dts new file +49 -0

49 lines not on this page · raw message

arch/arm/boot/dts/exynos4412-odroidx.dts +11 -315

360 lines not on this page · raw message

arch/arm/boot/dts/exynos4412-odroidx2.dts new file +23 -0
new file mode 100644
index 000000000000..5b934dd2af35
@@ -0,0 +1,23 @@
+/*
+ * Hardkernel's Exynos4412 based ODROID-X2 board device tree source
+ *
+ * Copyright (c) 2012 Dongjin Kim <[email protected]>
+ *
+ * Device tree source file for Hardkernel's ODROID-X2 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.
+*/
+
+#include "exynos4412-odroidx.dts"
+
+/ {
+	model = "Hardkernel ODROID-X2 board based on Exynos4412";
+	compatible = "hardkernel,odroid-x2", "samsung,exynos4412", "samsung,exynos4";
+
+	memory {
+		reg = <0x40000000 0x80000000>;
+	};
+};
Signature · 1 line
1.9.2
#7 lore raw

PATCH v2 5/5 ARM: dts: exynos4412-odroid-common: disable 'always on' for BUCK8 regulator

In reply to Marek Szyprowski

From: Kamil Debski <[email protected]>

On Odroid U2/U3 BUCK8 is used for providing power to also to P3V3 source, which is also connected to LAN9730 chip's nRESET signal. To reset lan chip on system reboot, the BUCK8 output should not be used in 'always on' mode. This change has no impact on X/X2 boards.

---
 arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 1 -
 1 file changed, 1 deletion(-)
arch/arm/boot/dts/exynos4412-odroid-common.dtsi +0 -1
index f793f3b8f0b9..ad2cb32a3439 100644
@@ -297,7 +297,6 @@
 					regulator-name = "BUCK8_2.8V";
 					regulator-min-microvolt = <2800000>;
 					regulator-max-microvolt = <2800000>;
-					regulator-always-on;
 				};
 			};
 		};
Signature · 1 line
1.9.2
#8 lore raw
In reply to Marek Szyprowski

Hello,

Quoted 13 lines · Marek Szyprowski

Hello,

This is the second version of the initial patch series adding support for Exynos 4412 based Odroid X2 and U2/U3/U3+ boards and improving support for Odroid X.

Complete USB support for Odroid U2/U3/U3+ still requires some fixes in Exynos4 USB2 Phy driver and clock driver for CLKOUT:
http://thread.gmane.org/gmane.linux.kernel/1731843/
http://www.spinics.net/lists/linux-usb/msg109587.html
The above changes however don't affect Odroid DTS files, but without them, usb3503 hub is not yet functional.

Quoted 7 lines

Support for audio codec will be posted separately by Sylwester Nawrocki soon. Support for HDMI video output will be also posted separately together with the required ExynosDRM-HDMI fixes.

If one is interested in more complete and open-source Odroid board support, there are also patches for u-boot project:
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/188295/focus=188610

Just to let everyone knows - updated Odroid patches for uboot has been posted in the following thread:
http://www.mail-archive.com/[email protected]/msg141234.html
You can also download them here:
http://patchwork.ozlabs.org/project/uboot/list/?submitter=23519

Best regards

Signature · 2 lines
Marek Szyprowski, PhD
Samsung R&D Institute Poland
#9 lore raw
Quoted 27 lines · Marek Szyprowski

Hello,

Quoted 14 lines · Marek Szyprowski

Hello,

This is the second version of the initial patch series adding support for Exynos 4412 based Odroid X2 and U2/U3/U3+ boards and improving support for Odroid X.

Complete USB support for Odroid U2/U3/U3+ still requires some fixes in Exynos4 USB2 Phy driver and clock driver for CLKOUT:
http://thread.gmane.org/gmane.linux.kernel/1731843/
http://www.spinics.net/lists/linux-usb/msg109587.html
The above changes however don't affect Odroid DTS files, but without them, usb3503 hub is not yet functional.

Quoted 7 lines

Support for audio codec will be posted separately by Sylwester Nawrocki soon. Support for HDMI video output will be also posted separately together with the required ExynosDRM-HDMI fixes.

If one is interested in more complete and open-source Odroid board support, there are also patches for u-boot project:
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/188295/focus=188610

Quoted 5 lines

Just to let everyone knows - updated Odroid patches for uboot has been posted in the following thread:
http://www.mail-archive.com/[email protected]/msg141234.html
You can also download them here:
http://patchwork.ozlabs.org/project/uboot/list/?submitter=23519

Anyone got a simple writeup on the steps needed to boot, bl1/2 needed, expected offset into eMMC for where it goes, etc?

I gave the kernel (next-0717) a go here on my U3, and it boots (as you mention, no USB comes up).

I do see a few KERN_ERR printks though:

[ERR] [    0.000000] L2C: failed to init: -19
[ERR] [    0.001302] missing device node for CPU 0
[ERR] [    0.001344] missing device node for CPU 1
[ERR] [    0.001366] missing device node for CPU 2
[ERR] [    0.001386] missing device node for CPU 3
[ERR] [    0.156490] max77686 0-0009: irq is not specified
[ERR] [    1.339498] /i2c@13860000/usb3503@08: could not get

#clock-cells for /system-controller@10020000
[ERR] [ 1.348050] ERROR: could not get clock
/i2c@13860000/usb3503@08:refclk(0)
[ERR] [ 1.383055] max77686-rtc max77686-rtc: max77686_rtc_init_reg:
fail to write controlm reg(-6)
[ERR] [ 1.391108] max77686-rtc max77686-rtc: Failed to initialize RTC reg:-6

That can be fixed incrementally. I'll add the U3 to my boot farm starting tonight. Thanks for submitting all this!

-Olof

#10 lore raw
Quoted 2 lines · Olof Johansson

I gave the kernel (next-0717) a go here on my U3, and it boots (as you mention, no USB comes up).

Btw, please update multi_v7_defconfig as well (as a separate patch, since it needs to be merged directly by us). Right now it doesn't find rootfs with that config.

-Olof

#11 lore raw
In reply to Olof Johansson

Hi Olof,

Thanks for joining the party here :)

Quoted 2 lines · Olof Johansson

Anyone got a simple writeup on the steps needed to boot, bl1/2 needed, expected offset into eMMC for where it goes, etc?

https://github.com/hardkernel/u-boot/blob/odroid-v2010.12/sd_fuse/sd_fusing.sh
is probably the best "writeup" :)
https://github.com/hardkernel/u-boot/tree/odroid-v2010.12/sd_fuse has the blobs needed (they have not changed at all in the U3's history, so the ones you have already will work fine).

Samsung guys are also upstreaming support into uboot, including a README.odroid in the last commit with this info:
http://patchwork.ozlabs.org/project/uboot/list/?submitter=23519

Quoted 2 lines

I gave the kernel (next-0717) a go here on my U3, and it boots (as you mention, no USB comes up).

Nice. USB works with the later patches floating around.

Quoted 3 lines

I do see a few KERN_ERR printks though:

[ERR] [ 0.000000] L2C: failed to init: -19

This one is fixed with the patch series "Enable L2 cache support on Exynos4210/4x12 SoCs"

Quoted 4 lines
[ERR] [    0.001302] missing device node for CPU 0
[ERR] [    0.001344] missing device node for CPU 1
[ERR] [    0.001366] missing device node for CPU 2
[ERR] [    0.001386] missing device node for CPU 3

Not sure about these - I still get them with all the patches applied.

Quoted 1 line

[ERR] [ 0.156490] max77686 0-0009: irq is not specified

I submitted a patch for this, "ARM: dts: Enable PMIC interrupts on ODROID"

Quoted 4 lines

[ERR] [ 1.339498] /i2c@13860000/usb3503@08: could not get
#clock-cells for /system-controller@10020000
[ERR] [ 1.348050] ERROR: could not get clock
/i2c@13860000/usb3503@08:refclk(0)

I think these go away with the USB patches floating around.

Quoted 3 lines

[ERR] [ 1.383055] max77686-rtc max77686-rtc: max77686_rtc_init_reg:
fail to write controlm reg(-6)
[ERR] [ 1.391108] max77686-rtc max77686-rtc: Failed to initialize RTC reg:-6

Fixed with "ARM: dts: ODROID i2c improvements"

Daniel

#12 lore raw
In reply to Marek Szyprowski

Hello,

Quoted 25 lines · Marek Szyprowski

Hello,

Quoted 13 lines · Marek Szyprowski

Hello,

This is the second version of the initial patch series adding support for Exynos 4412 based Odroid X2 and U2/U3/U3+ boards and improving support for Odroid X.

Complete USB support for Odroid U2/U3/U3+ still requires some fixes in Exynos4 USB2 Phy driver and clock driver for CLKOUT:
http://thread.gmane.org/gmane.linux.kernel/1731843/
http://www.spinics.net/lists/linux-usb/msg109587.html
The above changes however don't affect Odroid DTS files, but without them, usb3503 hub is not yet functional.

Quoted 8 lines

Support for audio codec will be posted separately by Sylwester Nawrocki soon. Support for HDMI video output will be also posted separately together with the required ExynosDRM-HDMI fixes.

If one is interested in more complete and open-source Odroid board support, there are also patches for u-boot project:
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/188295/focus=188610

Quoted 7 lines

Just to let everyone knows - updated Odroid patches for uboot has been posted in the following thread:
http://www.mail-archive.com/[email protected]/msg141234.html
You can also download them here:
http://patchwork.ozlabs.org/project/uboot/list/?submitter=23519

Best regards

Please follow the link to the new U-boot Odroid U3/X2 patches:

http://www.mail-archive.com/[email protected]/msg142507.html

Regards,

Signature · 4 lines
Przemyslaw Marczak
Samsung R&D Institute Poland
Samsung Electronics
[email protected]
#13 lore raw

ODROID-U3 has been broken in mainline for quite a while. Have patches been posted for this already?

http://arm-soc.lixom.net/bootlogs/mainline/v3.17-rc1/odroidu3-arm-exynos_defconfig.html
for one of the latest boots that failed.

-Olof

Quoted 51 lines · Przemyslaw Marczak

Hello,

Quoted 28 lines · Marek Szyprowski

Hello,

Quoted 14 lines · Marek Szyprowski

Hello,

This is the second version of the initial patch series adding support for Exynos 4412 based Odroid X2 and U2/U3/U3+ boards and improving support for Odroid X.

Complete USB support for Odroid U2/U3/U3+ still requires some fixes in Exynos4 USB2 Phy driver and clock driver for CLKOUT:
http://thread.gmane.org/gmane.linux.kernel/1731843/
http://www.spinics.net/lists/linux-usb/msg109587.html
The above changes however don't affect Odroid DTS files, but without them, usb3503 hub is not yet functional.

Quoted 9 lines

Support for audio codec will be posted separately by Sylwester Nawrocki soon. Support for HDMI video output will be also posted separately together with the required ExynosDRM-HDMI fixes.

If one is interested in more complete and open-source Odroid board support, there are also patches for u-boot project:

http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/188295/focus=188610

Quoted 7 lines

Just to let everyone knows - updated Odroid patches for uboot has been posted in the following thread:
http://www.mail-archive.com/[email protected]/msg141234.html
You can also download them here:
http://patchwork.ozlabs.org/project/uboot/list/?submitter=23519

Best regards

Please follow the link to the new U-boot Odroid U3/X2 patches:

http://www.mail-archive.com/[email protected]/msg142507.html

Regards,
--
Przemyslaw Marczak
Samsung R&D Institute Poland
Samsung Electronics
[email protected]

#14 lore raw
Quoted 5 lines · Olof Johansson

ODROID-U3 has been broken in mainline for quite a while. Have patches been posted for this already?

http://arm-soc.lixom.net/bootlogs/mainline/v3.17-rc1/odroidu3-arm-exynos_defconfig.html
for one of the latest boots that failed.

Yes, discussed in the thread titled "[PATCH 1/2] ARM: dts: Enable PMIC interrupts on ODROID"
Those patches weren't important for boot at the time of submission, but it looks like something else changed (the max77686 driver?) that makes them now required.

Daniel

#15 lore raw
Quoted 4 lines · Daniel Drake
Quoted 3 lines · Olof Johansson

ODROID-U3 has been broken in mainline for quite a while. Have patches been posted for this already?

Quoted 8 lines
Quoted 2 lines

http://arm-soc.lixom.net/bootlogs/mainline/v3.17-rc1/odroidu3-arm-exynos_defconfig.html
for one of the latest boots that failed.

Yes, discussed in the thread titled "[PATCH 1/2] ARM: dts: Enable PMIC interrupts on ODROID"
Those patches weren't important for boot at the time of submission, but it looks like something else changed (the max77686 driver?) that makes them now required.

Excellent, thanks. A bummer we didn't see this earlier, but let's get the fix in asap.

-Olof

#16 lore raw

Hello,

Quoted 7 lines · Olof Johansson
Quoted 6 lines · Daniel Drake
Quoted 5 lines · Olof Johansson

ODROID-U3 has been broken in mainline for quite a while. Have patches been posted for this already?

http://arm-soc.lixom.net/bootlogs/mainline/v3.17-rc1/odroidu3-arm-exynos_defconfig.html
for one of the latest boots that failed.

Quoted 7 lines
Quoted 5 lines

Yes, discussed in the thread titled "[PATCH 1/2] ARM: dts: Enable PMIC interrupts on ODROID"
Those patches weren't important for boot at the time of submission, but it looks like something else changed (the max77686 driver?) that makes them now required.

Excellent, thanks. A bummer we didn't see this earlier, but let's get the fix in asap.

I've also posted a fix to MAX77686 driver, which restores v3.16-like behavior of PMIC driver. I hope it will get merged to one of v3.17 rc series.

Best regards

Signature · 2 lines
Marek Szyprowski, PhD
Samsung R&D Institute Poland
#17 lore raw

+Bartlomiej Zolnierkiewicz

Hello Marek,

Quoted 7 lines · Marek Szyprowski
Quoted 7 lines
Quoted 6 lines

Yes, discussed in the thread titled "[PATCH 1/2] ARM: dts: Enable PMIC interrupts on ODROID"
Those patches weren't important for boot at the time of submission, but it looks like something else changed (the max77686 driver?) that makes them now required.

Quoted 8 lines
Quoted 2 lines

Excellent, thanks. A bummer we didn't see this earlier, but let's get the fix in asap.

I've also posted a fix to MAX77686 driver, which restores v3.16-like behavior
of PMIC driver. I hope it will get merged to one of v3.17 rc series.

Bartlomiej posted a similar patch [0] before but as I said on that thread, I'm not sure if is correct to make that DT property optional. Or rather, if we need to make it optional then we should also change the Documentation/devicetree/bindings/mfd/max77686.txt that list "interrupts" DT property as required.

It's true that before converting the max77686 to use the regmap irq API, the driver was loose on that regard but max77686_irq_init() in max77686-irq.c was returning -ENODEV when the IRQ was not provided and that error code was not checked in max77686_i2c_probe() which was a bug IMHO.

More importantly I wonder if a design where a IRQ line is not connected to the max77686 PMIC makes even sense. If such a design is possible then the "interrupt" property should be optional but if not then I think that the driver should fail to probe in that case. Yes, it is a regression but also the Odroid DTS was not following the DT binding and was just lucky that the driver was not checking the required DT properties.

So I tend to say that Daniel's fix should be added as a -rc fix and we should keep both the max77686 driver and its DT binding as it is now but as I said, if from a hardware point of view makes sense to leave that line unconnected then I don't oppose to this change.

Quoted 6 lines

Best regards
--
Marek Szyprowski, PhD
Samsung R&D Institute Poland

Best regards,
Javier

[0]: https://lkml.org/lkml/2014/8/7/374

#18 lore raw
Quoted 7 lines · Javier Martinez Canillas

More importantly I wonder if a design where a IRQ line is not connected to the max77686 PMIC makes even sense. If such a design is possible then the "interrupt" property should be optional but if not then I think that the driver should fail to probe in that case. Yes, it is a regression but also the Odroid DTS was not following the DT binding and was just lucky that the driver was not checking the required DT properties.

I think it would not be totally unreasonable to have such a design with no IRQ line hookup - after all we just did a load of ODROID work on 3.16 without this interrupt being available, and we didn't notice.

At the same time, I think its unlikely that someone wouldn't just hook this up, it is sensible to put this kind of thing on the board even if you don't have an immediate need for it, and all the reference designs will have it.

No strong preference but I would vote for the slightly simpler option of having the max77686 driver require the interrupt specified (like now), until someone comes along with a board that physically lacks it.

Daniel