ARM: dts: exynos: Reorganize before adding Odroid XU board
Krzysztof Kozlowski
maintainercover ARM: dts: exynos: Reorganize before adding Odroid XU board
Hi,
I am in the middle (or beginning) of adding DTS for Odroid XU. This patchset is a preparation for that. I still did not figure out two things:
1. clock IDs, should we follow Exynos5420 (or maybe reuse entirely?) see patch 1.
2. sd0_rclk - see patch 5.
The Odroid XU board is based on Exynos5410: an octal-core design where apparently only one cluster (big or little) could be active. The Exynos5410 is a first big.LITTLE design... with its early child issues (naughty kid).
The board itself is a mix between Odroid U3 (based on Exynos4412) and XU3. For example it has usb3503+smsc95xx LAN as Odroid U3 so probably same issues as U3 will happen (USB/LAN fails after TFTP boot). On the other hand it has size, look (case) and most of components the same as in XU3 and XU3-lite.
As for now you can boot it with Hardkernel U-Boot and SMDK5410 DTB.
Comments welcome!
BR,
Krzysztof
Krzysztof Kozlowski (12):
dt-bindings: clock: Add license and reformat Exynos5410 clock IDs
dt-bindings: clock: Add PWM clock ID to Exynos5410
ARM: dts: exynos: Re-order alphabetically Exynos5420 SD0/SD1 pinctrl
nodes
ARM: dts: exynos: Use lowercase for Exynos5410 CPU node labels
ARM: dts: exynos: Configure Exynos5410 pinctrl for eMMC and SD card
ARM: dts: exynos: Split Odroid XU3 LEDs to separate DTSI
ARM: dts: exynos: Move common nodes to exynos5.dtsi
ARM: dts: exynos: Prepare for inclusion of exynos5.dtsi in
exynos5410.dtsi
ARM: dts: exynos: Use phandle to get parent node in exynos5250-snow
ARM: dts: exynos: Move Exynos5250 and Exynos5420 nodes under soc
ARM: dts: exynos: Include common exynos5 in exynos5410.dtsi
ARM: dts: exynos: Enable UART3 on Exynos5410
arch/arm/boot/dts/exynos5.dtsi | 171 +- arch/arm/boot/dts/exynos5250-snow-common.dtsi | 2 +- arch/arm/boot/dts/exynos5250.dtsi | 1718 ++++++++++--------- arch/arm/boot/dts/exynos5410-pinctrl.dtsi | 87 + arch/arm/boot/dts/exynos5410-smdk5410.dts | 6 +- arch/arm/boot/dts/exynos5410.dtsi | 112 +- arch/arm/boot/dts/exynos5420-pinctrl.dtsi | 12 +- arch/arm/boot/dts/exynos5420.dtsi | 2058 +++++++++++------------ arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts | 35 +- arch/arm/boot/dts/exynos5422-odroidxu3.dts | 35 +- arch/arm/boot/dts/exynos54xx-odroidxu-leds.dtsi | 50 + include/dt-bindings/clock/exynos5410.h | 56 +- 12 files changed, 2197 insertions(+), 2145 deletions(-) create mode 100644 arch/arm/boot/dts/exynos54xx-odroidxu-leds.dtsi
Signature · 1 line
2.5.0
Krzysztof Kozlowski
maintainerRFC PATCH 1/12 dt-bindings: clock: Add license and reformat Exynos5410 clock IDs
Add license and copyrights (file introduced in 2014) to header with Exynos5410 clock IDs. Additionally reformat it to improve readability.
--- include/dt-bindings/clock/exynos5410.h | 54 ++++++++++++++++++++-------------- 1 file changed, 32 insertions(+), 22 deletions(-)
include/dt-bindings/clock/exynos5410.h +32 -22
@@ -1,33 +1,43 @@ +/* +* Copyright (c) 2014 Samsung Electronics Co., Ltd. +* +* 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. +* +* Device Tree binding constants for Exynos5421 clock controller. +*/ +#ifndef _DT_BINDINGS_CLOCK_EXYNOS_5410_H#define _DT_BINDINGS_CLOCK_EXYNOS_5410_H/* core clocks */ -#define CLK_FIN_PLL 1 -#define CLK_FOUT_APLL 2 -#define CLK_FOUT_CPLL 3 -#define CLK_FOUT_MPLL 4 -#define CLK_FOUT_BPLL 5 -#define CLK_FOUT_KPLL 6 +#define CLK_FIN_PLL 1 +#define CLK_FOUT_APLL 2 +#define CLK_FOUT_CPLL 3 +#define CLK_FOUT_MPLL 4 +#define CLK_FOUT_BPLL 5 +#define CLK_FOUT_KPLL 6/* gate for special clocks (sclk) */ -#define CLK_SCLK_UART0 128 -#define CLK_SCLK_UART1 129 -#define CLK_SCLK_UART2 130 -#define CLK_SCLK_UART3 131 -#define CLK_SCLK_MMC0 132 -#define CLK_SCLK_MMC1 133 -#define CLK_SCLK_MMC2 134 +#define CLK_SCLK_UART0 128 +#define CLK_SCLK_UART1 129 +#define CLK_SCLK_UART2 130 +#define CLK_SCLK_UART3 131 +#define CLK_SCLK_MMC0 132 +#define CLK_SCLK_MMC1 133 +#define CLK_SCLK_MMC2 134/* gate clocks */ -#define CLK_UART0 257 -#define CLK_UART1 258 -#define CLK_UART2 259 -#define CLK_UART3 260 -#define CLK_MCT 315 -#define CLK_MMC0 351 -#define CLK_MMC1 352 -#define CLK_MMC2 353 +#define CLK_UART0 257 +#define CLK_UART1 258 +#define CLK_UART2 259 +#define CLK_UART3 260 +#define CLK_MCT 315 +#define CLK_MMC0 351 +#define CLK_MMC1 352 +#define CLK_MMC2 353 -#define CLK_NR_CLKS 512 +#define CLK_NR_CLKS 512#endif /* _DT_BINDINGS_CLOCK_EXYNOS_5410_H */
Signature · 1 line
2.5.0
Krzysztof Kozlowski
maintainerRFC PATCH 2/12 dt-bindings: clock: Add PWM clock ID to Exynos5410
In reply to Krzysztof KozlowskiAdd ID for PWM clock to Exynos5410. Use the same number as for Exynos5420.
---
A question: does it make sense to stick to same IDs?
--- include/dt-bindings/clock/exynos5410.h | 2 ++ 1 file changed, 2 insertions(+)
include/dt-bindings/clock/exynos5410.h +2 -0
@@ -1,5 +1,6 @@/* * Copyright (c) 2014 Samsung Electronics Co., Ltd. +* Copyright (c) 2016 Krzysztof Kozlowski * * 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
@@ -33,6 +34,7 @@#define CLK_UART1 258#define CLK_UART2 259#define CLK_UART3 260 +#define CLK_PWM 279#define CLK_MCT 315#define CLK_MMC0 351#define CLK_MMC1 352
Signature · 1 line
2.5.0
Krzysztof Kozlowski
maintainerRFC PATCH 3/12 ARM: dts: exynos: Re-order alphabetically Exynos5420 SD0/SD1 pinctrl nodes
In reply to Krzysztof KozlowskiThe 'sd0_rclk' was put in the middle of SD1 nodes. Remove the confusion.
--- arch/arm/boot/dts/exynos5420-pinctrl.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
arch/arm/boot/dts/exynos5420-pinctrl.dtsi +6 -6
@@ -193,17 +193,17 @@ samsung,pin-drv = <3>; }; - sd1_clk: sd1-clk { - samsung,pins = "gpc1-0"; + sd0_rclk: sd0-rclk { + samsung,pins = "gpc0-7"; samsung,pin-function = <2>; - samsung,pin-pud = <0>; + samsung,pin-pud = <1>; samsung,pin-drv = <3>; }; - sd0_rclk: sd0-rclk { - samsung,pins = "gpc0-7"; + sd1_clk: sd1-clk { + samsung,pins = "gpc1-0"; samsung,pin-function = <2>; - samsung,pin-pud = <1>; + samsung,pin-pud = <0>; samsung,pin-drv = <3>; };
Signature · 1 line
2.5.0
Krzysztof Kozlowski
maintainerRFC PATCH 4/12 ARM: dts: exynos: Use lowercase for Exynos5410 CPU node labels
In reply to Krzysztof KozlowskiFro consistency lowercase node labels are used.
--- arch/arm/boot/dts/exynos5410.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm/boot/dts/exynos5410.dtsi +4 -4
@@ -35,28 +35,28 @@ #address-cells = <1>; #size-cells = <0>; - CPU0: cpu at 0 { + cpu0: cpu at 0 { device_type = "cpu"; compatible = "arm,cortex-a15"; reg = <0x0>; clock-frequency = <1600000000>; }; - CPU1: cpu at 1 { + cpu1: cpu at 1 { device_type = "cpu"; compatible = "arm,cortex-a15"; reg = <0x1>; clock-frequency = <1600000000>; }; - CPU2: cpu at 2 { + cpu2: cpu at 2 { device_type = "cpu"; compatible = "arm,cortex-a15"; reg = <0x2>; clock-frequency = <1600000000>; }; - CPU3: cpu at 3 { + cpu3: cpu at 3 { device_type = "cpu"; compatible = "arm,cortex-a15"; reg = <0x3>;
Signature · 1 line
2.5.0
Krzysztof Kozlowski
maintainerRFC PATCH 5/12 ARM: dts: exynos: Configure Exynos5410 pinctrl for eMMC and SD card
In reply to Krzysztof KozlowskiConfigure the pinctrl for MMC0 (eMMC) and MMC2 (microSD card).
---
I am not sure about sd0_rclk. Also I wonder whether this should go to board DTS...
--- arch/arm/boot/dts/exynos5410-pinctrl.dtsi | 87 +++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+)
arch/arm/boot/dts/exynos5410-pinctrl.dtsi +87 -0
@@ -277,6 +277,93 @@ interrupt-controller; #interrupt-cells = <2>; }; + + sd0_clk: sd0-clk { + samsung,pins = "gpc0-0"; + samsung,pin-function = <2>; + samsung,pin-pud = <0>; + samsung,pin-drv = <3>; + }; + + sd0_cmd: sd0-cmd { + samsung,pins = "gpc0-1"; + samsung,pin-function = <2>; + samsung,pin-pud = <0>; + samsung,pin-drv = <3>; + }; + + sd0_cd: sd0-cd { + samsung,pins = "gpc0-2"; + samsung,pin-function = <2>; + samsung,pin-pud = <3>; + samsung,pin-drv = <3>; + }; + + sd0_bus1: sd0-bus-width1 { + samsung,pins = "gpc0-3"; + samsung,pin-function = <2>; + samsung,pin-pud = <3>; + samsung,pin-drv = <3>; + }; + + sd0_bus4: sd0-bus-width4 { + samsung,pins = "gpc0-4", "gpc0-5", "gpc0-6"; + samsung,pin-function = <2>; + samsung,pin-pud = <3>; + samsung,pin-drv = <3>; + }; + + sd0_bus8: sd0-bus-width8 { + samsung,pins = "gpc3-0", "gpc3-1", "gpc3-2", "gpc3-3"; + samsung,pin-function = <2>; + samsung,pin-pud = <3>; + samsung,pin-drv = <3>; + }; + + /* TODO: What's up with with rclk? On Odroid XU this is missing... */ + /* + sd0_rclk: sd0-rclk { + samsung,pins = "gpc0-7"; + samsung,pin-function = <2>; + samsung,pin-pud = <1>; + samsung,pin-drv = <3>; + }; + */ + + sd2_clk: sd2-clk { + samsung,pins = "gpc2-0"; + samsung,pin-function = <2>; + samsung,pin-pud = <0>; + samsung,pin-drv = <3>; + }; + + sd2_cmd: sd2-cmd { + samsung,pins = "gpc2-1"; + samsung,pin-function = <2>; + samsung,pin-pud = <0>; + samsung,pin-drv = <3>; + }; + + sd2_cd: sd2-cd { + samsung,pins = "gpc2-2"; + samsung,pin-function = <2>; + samsung,pin-pud = <3>; + samsung,pin-drv = <3>; + }; + + sd2_bus1: sd2-bus-width1 { + samsung,pins = "gpc2-3"; + samsung,pin-function = <2>; + samsung,pin-pud = <3>; + samsung,pin-drv = <3>; + }; + + sd2_bus4: sd2-bus-width4 { + samsung,pins = "gpc2-4", "gpc2-5", "gpc2-6"; + samsung,pin-function = <2>; + samsung,pin-pud = <3>; + samsung,pin-drv = <3>; + }; }; &pinctrl_1 {
Signature · 1 line
2.5.0
Krzysztof Kozlowski
maintainerRFC PATCH 6/12 ARM: dts: exynos: Split Odroid XU3 LEDs to separate DTSI
In reply to Krzysztof KozlowskiThe LED nodes can be shared between Odroid XU3, XU3-Lite and XU (not yet added) thus removing duplication.
--- arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts | 35 +---------------- arch/arm/boot/dts/exynos5422-odroidxu3.dts | 35 +---------------- arch/arm/boot/dts/exynos54xx-odroidxu-leds.dtsi | 50 +++++++++++++++++++++++++ 3 files changed, 52 insertions(+), 68 deletions(-) create mode 100644 arch/arm/boot/dts/exynos54xx-odroidxu-leds.dtsi
arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts +1 -34
@@ -14,44 +14,11 @@ /dts-v1/; #include "exynos5422-odroidxu3-common.dtsi" #include "exynos5422-odroidxu3-audio.dtsi" +#include "exynos54xx-odroidxu-leds.dtsi" / { model = "Hardkernel Odroid XU3 Lite"; compatible = "hardkernel,odroid-xu3-lite", "samsung,exynos5800", "samsung,exynos5"; - - pwmleds { - compatible = "pwm-leds"; - - greenled { - label = "green:mmc0"; - pwms = <&pwm 1 2000000 0>; - pwm-names = "pwm1"; - /* - * Green LED is much brighter than the others - * so limit its max brightness - */ - max_brightness = <127>; - linux,default-trigger = "mmc0"; - }; - - blueled { - label = "blue:heartbeat"; - pwms = <&pwm 2 2000000 0>; - pwm-names = "pwm2"; - max_brightness = <255>; - linux,default-trigger = "heartbeat"; - }; - }; - - gpioleds { - compatible = "gpio-leds"; - redled { - label = "red:microSD"; - gpios = <&gpx2 3 GPIO_ACTIVE_HIGH>; - default-state = "off"; - linux,default-trigger = "mmc1"; - }; - }; }; &pwm {
arch/arm/boot/dts/exynos5422-odroidxu3.dts +1 -34
@@ -13,44 +13,11 @@ /dts-v1/; #include "exynos5422-odroidxu3-common.dtsi" #include "exynos5422-odroidxu3-audio.dtsi" +#include "exynos54xx-odroidxu-leds.dtsi" / { model = "Hardkernel Odroid XU3"; compatible = "hardkernel,odroid-xu3", "samsung,exynos5800", "samsung,exynos5"; - - pwmleds { - compatible = "pwm-leds"; - - greenled { - label = "green:mmc0"; - pwms = <&pwm 1 2000000 0>; - pwm-names = "pwm1"; - /* - * Green LED is much brighter than the others - * so limit its max brightness - */ - max_brightness = <127>; - linux,default-trigger = "mmc0"; - }; - - blueled { - label = "blue:heartbeat"; - pwms = <&pwm 2 2000000 0>; - pwm-names = "pwm2"; - max_brightness = <255>; - linux,default-trigger = "heartbeat"; - }; - }; - - gpioleds { - compatible = "gpio-leds"; - redled { - label = "red:microSD"; - gpios = <&gpx2 3 GPIO_ACTIVE_HIGH>; - default-state = "off"; - linux,default-trigger = "mmc1"; - }; - }; }; &i2c_0 {
arch/arm/boot/dts/exynos54xx-odroidxu-leds.dtsi new file +50 -0
50 lines not on this page · raw message
Signature · 1 line
2.5.0
Krzysztof Kozlowski
maintainerRFC PATCH 7/12 ARM: dts: exynos: Move common nodes to exynos5.dtsi
In reply to Krzysztof KozlowskiExynos5420 and Exynos5250 share some nodes: the PWM and syscon (sysreg_system_controller). Move them to parent DTSI to avoid duplication.
--- arch/arm/boot/dts/exynos5.dtsi | 12 ++++++++++++ arch/arm/boot/dts/exynos5250.dtsi | 19 +++++-------------- arch/arm/boot/dts/exynos5420.dtsi | 19 +++++-------------- 3 files changed, 22 insertions(+), 28 deletions(-)
arch/arm/boot/dts/exynos5.dtsi +12 -0
@@ -63,6 +63,11 @@ interrupts = <1 9 0xf04>; }; + sysreg_system_controller: syscon at 10050000 { + compatible = "samsung,exynos5-sysreg", "syscon"; + reg = <0x10050000 0x5000>; + }; + serial_0: serial at 12C00000 { compatible = "samsung,exynos4210-uart"; reg = <0x12C00000 0x100>;
@@ -87,6 +92,13 @@ interrupts = <0 54 0>; }; + pwm: pwm at 12DD0000 { + compatible = "samsung,exynos4210-pwm"; + reg = <0x12DD0000 0x100>; + samsung,pwm-outputs = <0>, <1>, <2>, <3>; + #pwm-cells = <3>; + }; + rtc: rtc at 101E0000 { compatible = "samsung,s3c6410-rtc"; reg = <0x101E0000 0x100>;
arch/arm/boot/dts/exynos5250.dtsi +5 -14
@@ -235,11 +235,6 @@ interrupt-parent = <&gic>; }; - sysreg_system_controller: syscon at 10050000 { - compatible = "samsung,exynos5-sysreg", "syscon"; - reg = <0x10050000 0x5000>; - }; - watchdog at 101D0000 { compatible = "samsung,exynos5250-wdt"; reg = <0x101D0000 0x100>;
@@ -662,15 +657,6 @@ samsung,pmureg-phandle = <&pmu_system_controller>; }; - pwm: pwm at 12dd0000 { - compatible = "samsung,exynos4210-pwm"; - reg = <0x12dd0000 0x100>; - samsung,pwm-outputs = <0>, <1>, <2>, <3>; - #pwm-cells = <3>; - clocks = <&clock CLK_PWM>; - clock-names = "timers"; - }; - amba { #address-cells = <1>; #size-cells = <1>;
@@ -1070,6 +1056,11 @@ iommus = <&sysmmu_fimd1>; }; +&pwm { + clocks = <&clock CLK_PWM>; + clock-names = "timers"; +}; + &rtc { clocks = <&clock CLK_RTC>; clock-names = "rtc";
arch/arm/boot/dts/exynos5420.dtsi +5 -14
@@ -542,15 +542,6 @@ status = "disabled"; }; - pwm: pwm at 12dd0000 { - compatible = "samsung,exynos4210-pwm"; - reg = <0x12dd0000 0x100>; - samsung,pwm-outputs = <0>, <1>, <2>, <3>; - #pwm-cells = <3>; - clocks = <&clock CLK_PWM>; - clock-names = "timers"; - }; - dp_phy: dp-video-phy { compatible = "samsung,exynos5420-dp-video-phy"; samsung,pmu-syscon = <&pmu_system_controller>;
@@ -823,11 +814,6 @@ interrupt-parent = <&gic>; }; - sysreg_system_controller: syscon at 10050000 { - compatible = "samsung,exynos5-sysreg", "syscon"; - reg = <0x10050000 0x5000>; - }; - tmu_cpu0: tmu at 10060000 { compatible = "samsung,exynos5420-tmu"; reg = <0x10060000 0x100>;
@@ -1207,6 +1193,11 @@ iommu-names = "m0", "m1"; }; +&pwm { + clocks = <&clock CLK_PWM>; + clock-names = "timers"; +}; + &rtc { clocks = <&clock CLK_RTC>; clock-names = "rtc";
Signature · 1 line
2.5.0
Krzysztof Kozlowski
maintainerRFC PATCH 8/12 ARM: dts: exynos: Prepare for inclusion of exynos5.dtsi in exynos5410.dtsi
In reply to Krzysztof KozlowskiAdd 'sromc' label to SROM memory controller in common exynos5.dtsi so it can be referenced by ihneriting DTSI.
--- arch/arm/boot/dts/exynos5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/exynos5.dtsi +1 -1
@@ -31,7 +31,7 @@ reg = <0x10000000 0x100>; }; - memory-controller at 12250000 { + sromc: memory-controller at 12250000 { compatible = "samsung,exynos4210-srom"; reg = <0x12250000 0x14>; };
Signature · 1 line
2.5.0
Krzysztof Kozlowski
maintainerRFC PATCH 9/12 ARM: dts: exynos: Use phandle to get parent node in exynos5250-snow
In reply to Krzysztof KozlowskiThe i2c-arbitrator node in exynos5250-snow-common used absolute path to reference other node (the i2c parent). Use phandle instead, because the depth of the other node may be changed (like moving it under 'soc' node).
--- arch/arm/boot/dts/exynos5250-snow-common.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/exynos5250-snow-common.dtsi +1 -1
@@ -61,7 +61,7 @@ #address-cells = <1>; #size-cells = <0>; - i2c-parent = <&{/i2c@12CA0000}>; + i2c-parent = <&i2c_4>; our-claim-gpio = <&gpf0 3 GPIO_ACTIVE_LOW>; their-claim-gpios = <&gpe0 4 GPIO_ACTIVE_LOW>;
Signature · 1 line
2.5.0
Krzysztof Kozlowski
maintainerRFC PATCH 10/12 ARM: dts: exynos: Move Exynos5250 and Exynos5420 nodes under soc
In reply to Krzysztof KozlowskiThe conventions it to put SoC devices under 'soc' node. In fact other our DTSes (like exynos3250.dtsi or exynos5410.dtsi) already follows it. Adjust exynos5250 and exynos5420 DTSI to follow this convention. This is also necessary for the upcoming change in exynos5410.dtsi to inherit from common exynos5.dtsi.
--- arch/arm/boot/dts/exynos5.dtsi | 201 ++-- arch/arm/boot/dts/exynos5250.dtsi | 1699 +++++++++++++++--------------- arch/arm/boot/dts/exynos5420.dtsi | 2039 +++++++++++++++++++------------------ 3 files changed, 1976 insertions(+), 1963 deletions(-)
arch/arm/boot/dts/exynos5.dtsi +104 -97
@@ -26,103 +26,110 @@ serial3 = &serial_3; }; - chipid@10000000 { - compatible = "samsung,exynos4210-chipid"; - reg = <0x10000000 0x100>; - }; - - sromc: memory-controller@12250000 { - compatible = "samsung,exynos4210-srom"; - reg = <0x12250000 0x14>; - }; - - combiner: interrupt-controller@10440000 { - compatible = "samsung,exynos4210-combiner"; - #interrupt-cells = <2>; - interrupt-controller; - samsung,combiner-nr = <32>; - reg = <0x10440000 0x1000>; - interrupts = <0 0 0>, <0 1 0>, <0 2 0>, <0 3 0>, - <0 4 0>, <0 5 0>, <0 6 0>, <0 7 0>, - <0 8 0>, <0 9 0>, <0 10 0>, <0 11 0>, - <0 12 0>, <0 13 0>, <0 14 0>, <0 15 0>, - <0 16 0>, <0 17 0>, <0 18 0>, <0 19 0>, - <0 20 0>, <0 21 0>, <0 22 0>, <0 23 0>, - <0 24 0>, <0 25 0>, <0 26 0>, <0 27 0>, - <0 28 0>, <0 29 0>, <0 30 0>, <0 31 0>; - }; - - gic: interrupt-controller@10481000 { - compatible = "arm,cortex-a15-gic", "arm,cortex-a9-gic"; - #interrupt-cells = <3>; - interrupt-controller; - reg = <0x10481000 0x1000>, - <0x10482000 0x1000>, - <0x10484000 0x2000>, - <0x10486000 0x2000>; - interrupts = <1 9 0xf04>; - }; - - sysreg_system_controller: syscon@10050000 { - compatible = "samsung,exynos5-sysreg", "syscon"; - reg = <0x10050000 0x5000>; - }; - - serial_0: serial@12C00000 { - compatible = "samsung,exynos4210-uart"; - reg = <0x12C00000 0x100>; - interrupts = <0 51 0>; - }; - - serial_1: serial@12C10000 { - compatible = "samsung,exynos4210-uart"; - reg = <0x12C10000 0x100>; - interrupts = <0 52 0>; - }; - - serial_2: serial@12C20000 { - compatible = "samsung,exynos4210-uart"; - reg = <0x12C20000 0x100>; - interrupts = <0 53 0>; - }; - - serial_3: serial@12C30000 { - compatible = "samsung,exynos4210-uart"; - reg = <0x12C30000 0x100>; - interrupts = <0 54 0>; - }; - - pwm: pwm@12DD0000 { - compatible = "samsung,exynos4210-pwm"; - reg = <0x12DD0000 0x100>; - samsung,pwm-outputs = <0>, <1>, <2>, <3>; - #pwm-cells = <3>; - }; - - rtc: rtc@101E0000 { - compatible = "samsung,s3c6410-rtc"; - reg = <0x101E0000 0x100>; - interrupts = <0 43 0>, <0 44 0>; - status = "disabled"; - }; - - fimd: fimd@14400000 { - compatible = "samsung,exynos5250-fimd"; - interrupt-parent = <&combiner>; - reg = <0x14400000 0x40000>; - interrupt-names = "fifo", "vsync", "lcd_sys"; - interrupts = <18 4>, <18 5>, <18 6>; - samsung,sysreg = <&sysreg_system_controller>; - status = "disabled"; - }; - - dp: dp-controller@145B0000 { - compatible = "samsung,exynos5-dp"; - reg = <0x145B0000 0x1000>; - interrupts = <10 3>; - interrupt-parent = <&combiner>; + soc: soc { + compatible = "simple-bus"; #address-cells = <1>; - #size-cells = <0>; - status = "disabled"; + #size-cells = <1>; + ranges; + + chipid@10000000 { + compatible = "samsung,exynos4210-chipid"; + reg = <0x10000000 0x100>; + }; + + sromc: memory-controller@12250000 { + compatible = "samsung,exynos4210-srom"; + reg = <0x12250000 0x14>; + }; + + combiner: interrupt-controller@10440000 { + compatible = "samsung,exynos4210-combiner"; + #interrupt-cells = <2>; + interrupt-controller; + samsung,combiner-nr = <32>; + reg = <0x10440000 0x1000>; + interrupts = <0 0 0>, <0 1 0>, <0 2 0>, <0 3 0>, + <0 4 0>, <0 5 0>, <0 6 0>, <0 7 0>, + <0 8 0>, <0 9 0>, <0 10 0>, <0 11 0>, + <0 12 0>, <0 13 0>, <0 14 0>, <0 15 0>, + <0 16 0>, <0 17 0>, <0 18 0>, <0 19 0>, + <0 20 0>, <0 21 0>, <0 22 0>, <0 23 0>, + <0 24 0>, <0 25 0>, <0 26 0>, <0 27 0>, + <0 28 0>, <0 29 0>, <0 30 0>, <0 31 0>; + }; + + gic: interrupt-controller@10481000 { + compatible = "arm,cortex-a15-gic", "arm,cortex-a9-gic"; + #interrupt-cells = <3>; + interrupt-controller; + reg = <0x10481000 0x1000>, + <0x10482000 0x1000>, + <0x10484000 0x2000>, + <0x10486000 0x2000>; + interrupts = <1 9 0xf04>; + }; + + sysreg_system_controller: syscon@10050000 { + compatible = "samsung,exynos5-sysreg", "syscon"; + reg = <0x10050000 0x5000>; + }; + + serial_0: serial@12C00000 { + compatible = "samsung,exynos4210-uart"; + reg = <0x12C00000 0x100>; + interrupts = <0 51 0>; + }; + + serial_1: serial@12C10000 { + compatible = "samsung,exynos4210-uart"; + reg = <0x12C10000 0x100>; + interrupts = <0 52 0>; + }; + + serial_2: serial@12C20000 { + compatible = "samsung,exynos4210-uart"; + reg = <0x12C20000 0x100>; + interrupts = <0 53 0>; + }; + + serial_3: serial@12C30000 { + compatible = "samsung,exynos4210-uart"; + reg = <0x12C30000 0x100>; + interrupts = <0 54 0>; + }; + + pwm: pwm@12DD0000 { + compatible = "samsung,exynos4210-pwm"; + reg = <0x12DD0000 0x100>; + samsung,pwm-outputs = <0>, <1>, <2>, <3>; + #pwm-cells = <3>; + }; + + rtc: rtc@101E0000 { + compatible = "samsung,s3c6410-rtc"; + reg = <0x101E0000 0x100>; + interrupts = <0 43 0>, <0 44 0>; + status = "disabled"; + }; + + fimd: fimd@14400000 { + compatible = "samsung,exynos5250-fimd"; + interrupt-parent = <&combiner>; + reg = <0x14400000 0x40000>; + interrupt-names = "fifo", "vsync", "lcd_sys"; + interrupts = <18 4>, <18 5>, <18 6>; + samsung,sysreg = <&sysreg_system_controller>; + status = "disabled"; + }; + + dp: dp-controller@145B0000 { + compatible = "samsung,exynos5-dp"; + reg = <0x145B0000 0x1000>; + interrupts = <10 3>; + interrupt-parent = <&combiner>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; }; };
arch/arm/boot/dts/exynos5250.dtsi +851 -848
1,799 lines not on this page · raw message
arch/arm/boot/dts/exynos5420.dtsi +1021 -1018
994 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.5.0
Part of the diff is not shown here. View the raw message.
Krzysztof Kozlowski
maintainerRFC PATCH 11/12 ARM: dts: exynos: Include common exynos5 in exynos5410.dtsi
In reply to Krzysztof KozlowskiThe exynos5.dtsi is used for common nodes shared between Exynos5250 and Exynos542x. Since Exynos5410 is very similar to Exynos5420 it can include the common file as well to remove duplication and make everything more consistent.
--- arch/arm/boot/dts/exynos5410-smdk5410.dts | 6 +- arch/arm/boot/dts/exynos5410.dtsi | 103 ++++++++++-------------------- 2 files changed, 35 insertions(+), 74 deletions(-)
arch/arm/boot/dts/exynos5410-smdk5410.dts +3 -3
@@ -102,14 +102,14 @@ }; }; -&uart0 { +&serial_0 { status = "okay"; }; -&uart1 { +&serial_1 { status = "okay"; }; -&uart2 { +&serial_2 { status = "okay"; };
arch/arm/boot/dts/exynos5410.dtsi +32 -71
130 lines not on this page · raw message
Signature · 1 line
2.5.0
Krzysztof Kozlowski
maintainerRFC PATCH 12/12 ARM: dts: exynos: Enable UART3 on Exynos5410
In reply to Krzysztof KozlowskiJust like other Exynos5 family SoCs, this one has four UARTs. Configure clocks for UART3 and enable it.
--- arch/arm/boot/dts/exynos5410.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/boot/dts/exynos5410.dtsi +2 -1
@@ -215,7 +215,8 @@ }; &serial_3 { - status = "disabled"; + clocks = <&clock CLK_UART3>, <&clock CLK_SCLK_UART3>; + clock-names = "uart", "clk_uart_baud0"; }; &sromc {
Signature · 1 line
2.5.0
Re: [RFC PATCH 05/12] ARM: dts: exynos: Configure Exynos5410 pinctrl for eMMC and SD card
In reply to Krzysztof KozlowskiHi Krzysztof,
Quoted 63 lines · Krzysztof Kozlowski
Configure the pinctrl for MMC0 (eMMC) and MMC2 (microSD card).
Signed-off-by Krzysztof Kozlowski <[email protected]>---
I am not sure about
sd0_rclk. Also I wonder whether this should go to board DTS...--- arch/arm/boot/dts/exynos5410-pinctrl.dtsi | 87 +++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+)arch/arm/boot/dts/exynos5410-pinctrl.dtsi +43
-0@@ -277,6 +277,93 @@ interrupt-controller; #interrupt-cells = <2>; }; + + sd0_clk: sd0-clk { + samsung,pins = "gpc0-0"; + samsung,pin-function = <2>; + samsung,pin-pud = <0>; + samsung,pin-drv = <3>; + }; + + sd0_cmd: sd0-cmd { + samsung,pins = "gpc0-1"; + samsung,pin-function = <2>; + samsung,pin-pud = <0>; + samsung,pin-drv = <3>; + }; + + sd0_cd: sd0-cd { + samsung,pins = "gpc0-2"; + samsung,pin-function = <2>; + samsung,pin-pud = <3>; + samsung,pin-drv = <3>; + }; + + sd0_bus1: sd0-bus-width1 { + samsung,pins = "gpc0-3"; + samsung,pin-function = <2>; + samsung,pin-pud = <3>; + samsung,pin-drv = <3>; + }; + + sd0_bus4: sd0-bus-width4 { + samsung,pins = "gpc0-4", "gpc0-5", "gpc0-6"; + samsung,pin-function = <2>; + samsung,pin-pud = <3>; + samsung,pin-drv = <3>; + }; + + sd0_bus8: sd0-bus-width8 { + samsung,pins = "gpc3-0", "gpc3-1", "gpc3-2", "gpc3-3"; + samsung,pin-function = <2>; + samsung,pin-pud = <3>; + samsung,pin-drv = <3>; + }; +
arch/arm/boot/dts/exynos5410-pinctrl.dtsi line 332
Quoted 10 lines
arch/arm/boot/dts/exynos5410-pinctrl.dtsi +10
-0+ /* TODO: What's up with with rclk? On Odroid XU this is missing... */ + /* + sd0_rclk: sd0-rclk { + samsung,pins = "gpc0-7"; + samsung,pin-function = <2>; + samsung,pin-pud = <1>; + samsung,pin-drv = <3>; + }; + */ +
IF Odroid XU is populated with an eMMC5.0+ device && RCLK (Data Strobe) is connected from AP to emmc device, THEN you should configure this dedicated PIN.
Otherwise you can remove this TODO and uncomment the node and put a comment saying that this feature (emmc5.0+) is not supported on this SoC.
Quoted 45 lines
arch/arm/boot/dts/exynos5410-pinctrl.dtsi +34
-1+ sd2_clk: sd2-clk { + samsung,pins = "gpc2-0"; + samsung,pin-function = <2>; + samsung,pin-pud = <0>; + samsung,pin-drv = <3>; + }; + + sd2_cmd: sd2-cmd { + samsung,pins = "gpc2-1"; + samsung,pin-function = <2>; + samsung,pin-pud = <0>; + samsung,pin-drv = <3>; + }; + + sd2_cd: sd2-cd { + samsung,pins = "gpc2-2"; + samsung,pin-function = <2>; + samsung,pin-pud = <3>; + samsung,pin-drv = <3>; + }; + + sd2_bus1: sd2-bus-width1 { + samsung,pins = "gpc2-3"; + samsung,pin-function = <2>; + samsung,pin-pud = <3>; + samsung,pin-drv = <3>; + }; + + sd2_bus4: sd2-bus-width4 { + samsung,pins = "gpc2-4", "gpc2-5", "gpc2-6"; + samsung,pin-function = <2>; + samsung,pin-pud = <3>; + samsung,pin-drv = <3>; + }; }; &pinctrl_1 { --2.5.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Signature · 2 lines
Regards, Alim
Re: [RFC PATCH 05/12] ARM: dts: exynos: Configure Exynos5410 pinctrl for eMMC and SD card
Quoted 74 lines · Alim Akhtar
Hi Krzysztof,
Quoted 71 lines · Krzysztof Kozlowski
Configure the pinctrl for MMC0 (eMMC) and MMC2 (microSD card).
Signed-off-by Krzysztof Kozlowski <[email protected]>---
I am not sure about
sd0_rclk. Also I wonder whether this should go to board DTS...--- arch/arm/boot/dts/exynos5410-pinctrl.dtsi | 87 +++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+)arch/arm/boot/dts/exynos5410-pinctrl.dtsi +51
-0@@ -277,6 +277,93 @@ interrupt-controller; #interrupt-cells = <2>; }; + + sd0_clk: sd0-clk { + samsung,pins = "gpc0-0"; + samsung,pin-function = <2>; + samsung,pin-pud = <0>; + samsung,pin-drv = <3>; + }; + + sd0_cmd: sd0-cmd { + samsung,pins = "gpc0-1"; + samsung,pin-function = <2>; + samsung,pin-pud = <0>; + samsung,pin-drv = <3>; + }; + + sd0_cd: sd0-cd { + samsung,pins = "gpc0-2"; + samsung,pin-function = <2>; + samsung,pin-pud = <3>; + samsung,pin-drv = <3>; + }; + + sd0_bus1: sd0-bus-width1 { + samsung,pins = "gpc0-3"; + samsung,pin-function = <2>; + samsung,pin-pud = <3>; + samsung,pin-drv = <3>; + }; + + sd0_bus4: sd0-bus-width4 { + samsung,pins = "gpc0-4", "gpc0-5", "gpc0-6"; + samsung,pin-function = <2>; + samsung,pin-pud = <3>; + samsung,pin-drv = <3>; + }; + + sd0_bus8: sd0-bus-width8 { + samsung,pins = "gpc3-0", "gpc3-1", "gpc3-2", "gpc3-3"; + samsung,pin-function = <2>; + samsung,pin-pud = <3>; + samsung,pin-drv = <3>; + }; + + /* TODO: What's up with with rclk? On Odroid XU this is missing... */ + /* + sd0_rclk: sd0-rclk { + samsung,pins = "gpc0-7"; + samsung,pin-function = <2>; + samsung,pin-pud = <1>; + samsung,pin-drv = <3>; + };
Quoted 8 lines
arch/arm/boot/dts/exynos5410-pinctrl.dtsi line 332
Quoted 2 lines
arch/arm/boot/dts/exynos5410-pinctrl.dtsi +2
-0+ */ +IF Odroid XU is populated with an eMMC5.0+ device && RCLK (Data Strobe) is connected from AP to emmc device, THEN you should configure this dedicated PIN.
Otherwise you can remove this TODO and uncomment the node and put a comment saying that this feature (emmc5.0+) is not supported on this SoC.
I double checked and:
1. Schematics say this pin is not connected,
2. Hardkernel forum confirms that altough XU could support eMMC5.0 (SoC supports it) but it was not tested and the pin (RCLK) should be wired by consumer.
With your help it seems solved. I'll remove the TODO and add a comment about not supported emmc5.
Best regards,
Krzysztof