Add Exynos4412 based Odroid X2 and U2/U3/U3+ support
Subsystems (3)
v3 cover Add Exynos4412 based Odroid X2 and U2/U3/U3+ support
Hello,
This is the third 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 and HDMI video output is available in separate patch series.
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:
v3:
- added fix for total memory size (last megabyte is used by secure firmware and should not be accessed by Linux kernel)
- added patch defining GPIO button(s)
- added patch fixing TFLASH (SD card) detection
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
*** BLURB HERE ***
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 (6):
ARM: dts: exynos4: add port sub-nodes to exynos usb host modules
ARM: dts: exynos4412-odroidx: enable common hardware blocks
ARM: dts: exynos4412-odroidx: correct memory size
ARM: dts: refactor Odroid DTS file and add support for Odroid X2 and
U2/U3
ARM: dts: exynos4412-odroid: add support for GPIO buttons
ARM: dts: exynos4412-odroid: fix T-FLASH hotplug detection
arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/exynos4.dtsi | 24 ++ arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 344 ++++++++++++++++++++++++ arch/arm/boot/dts/exynos4412-odroidu3.dts | 49 ++++ arch/arm/boot/dts/exynos4412-odroidx.dts | 279 ++----------------- arch/arm/boot/dts/exynos4412-odroidx2.dts | 23 ++ 6 files changed, 471 insertions(+), 250 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
PATCH v3 1/8 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
@@ -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
PATCH v3 2/8 ARM: dts: exynos4412-odroidx: enable common hardware blocks
In reply to Marek SzyprowskiThis 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
@@ -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
PATCH v3 3/8 ARM: dts: exynos4412-odroidx: add support for USB (phy, host, device)
In reply to Marek SzyprowskiFrom: Kamil Debski <[email protected]>
This patch adds basic support for USB modules (host and device) on OdroidX board.
--- arch/arm/boot/dts/exynos4412-odroidx.dts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)
arch/arm/boot/dts/exynos4412-odroidx.dts +27 -0
@@ -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
PATCH v3 4/8 ARM: dts: exynos4412-odroidx: correct memory size
In reply to Marek SzyprowskiLast megabyte of RAM is used by secure firmware and should not be accessed by Linux kernel, so correct available memory size in DTS file.
--- arch/arm/boot/dts/exynos4412-odroidx.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/exynos4412-odroidx.dts +1 -1
@@ -19,7 +19,7 @@ compatible = "hardkernel,odroid-x", "samsung,exynos4412", "samsung,exynos4"; memory { - reg = <0x40000000 0x40000000>; + reg = <0x40000000 0x3FF00000>; }; firmware@0204F000 {
Signature · 1 line
1.9.2
PATCH v3 5/8 ARM: dts: refactor Odroid DTS file and add support for Odroid X2 and U2/U3
In reply to Marek SzyprowskiThis 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 +
...2-odroidx.dts => exynos4412-odroid-common.dtsi} | 57 +---
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, 89 insertions(+), 368 deletions(-)
copy arch/arm/boot/dts/{exynos4412-odroidx.dts => exynos4412-odroid-common.dtsi} (86%)
create mode 100644 arch/arm/boot/dts/exynos4412-odroidu3.dts
create mode 100644 arch/arm/boot/dts/exynos4412-odroidx2.dtsarch/arm/boot/dts/Makefile +2 -0
@@ -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 renamed from arch/arm/boot/dts/exynos4412-odroidx.dts +4 -53
99 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
@@ -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 0x7FF00000>; + }; +};
Signature · 1 line
1.9.2
PATCH v3 6/8 ARM: dts: exynos4412-odroid-common: disable 'always on' for BUCK8 regulator
In reply to Marek SzyprowskiFrom: 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
@@ -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
PATCH v3 7/8 ARM: dts: exynos4412-odroid: add support for GPIO buttons
In reply to Marek SzyprowskiThis patch adds support for simple GPIO-based button availabled on Exynos4 based Odroid boards. All supported boards have POWER button, which has been defined in exynos4412-odroid-common.dtsi. X/X2 boards also have additional user-configurable button which has been mapped to KEY_HOME. All defined keys have been marked as possible wakeup source.
--- arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 24 ++++++++++++++++++++++++ arch/arm/boot/dts/exynos4412-odroidx.dts | 21 +++++++++++++++++++++ 2 files changed, 45 insertions(+)
arch/arm/boot/dts/exynos4412-odroid-common.dtsi +24 -0
@@ -7,6 +7,7 @@ * published by the Free Software Foundation. */ +#include <dt-bindings/input/input.h> #include "exynos4412.dtsi" / {
@@ -15,6 +16,22 @@ reg = <0x0204F000 0x1000>; }; + gpio_keys { + compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&gpio_power_key>; + + power_key { + interrupt-parent = <&gpx1>; + interrupts = <3 0>; + gpios = <&gpx1 3 1>; + linux,code = <KEY_POWER>; + label = "power key"; + debounce-interval = <10>; + gpio-key,wakeup; + }; + }; + mmc@12550000 { pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bus4 &sd4_bus8>; pinctrl-names = "default";
@@ -316,3 +333,10 @@ status = "okay"; }; }; + +&pinctrl_1 { + gpio_power_key: power_key { + samsung,pins = "gpx1-3"; + samsung,pin-pud = <0>; + }; +};
arch/arm/boot/dts/exynos4412-odroidx.dts +21 -0
@@ -46,6 +46,20 @@ status = "okay"; }; + gpio_keys { + pinctrl-0 = <&gpio_power_key &gpio_home_key>; + + home_key { + interrupt-parent = <&gpx2>; + interrupts = <2 0>; + gpios = <&gpx2 2 0>; + linux,code = <KEY_HOME>; + label = "home key"; + debounce-interval = <10>; + gpio-key,wakeup; + }; + }; + regulator_p3v3 { compatible = "regulator-fixed"; regulator-name = "p3v3_en";
@@ -62,3 +76,10 @@ status = "okay"; }; }; + +&pinctrl_1 { + gpio_home_key: home_key { + samsung,pins = "gpx2-2"; + samsung,pin-pud = <0>; + }; +};
Signature · 1 line
1.9.2
PATCH v3 8/8 ARM: dts: exynos4412-odroid: fix T-FLASH hotplug detection
In reply to Marek SzyprowskiTFLASH (SDHCI2 controller) uses internal card detect line, but it looks that the driver fails to operate it properly. Use GPIO interrupt on SD_CDn line for detecting SD card state.
--- arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/boot/dts/exynos4412-odroid-common.dtsi +2 -0
@@ -91,6 +91,8 @@ pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>; pinctrl-names = "default"; vmmc-supply = <&ldo4_reg &ldo21_reg>; + cd-gpios = <&gpk2 2 0>; + cd-inverted; status = "okay"; };
Signature · 1 line
1.9.2
Quoted 2 lines · Marek Szyprowski
Hello,
Hi Marek,
Quoted 4 lines
This is the third 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.
Looks good to me and thanks for your support Odroid series.
Quoted 7 lines
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 6 lines
Support for audio codec and HDMI video output is available in separate patch series.
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
I've applied this whole series.
- Kukjin