ARM: dts: exynos: Add initial support for Odroid XU
Subsystems (5)
Krzysztof Kozlowski
maintainerv2 cover ARM: dts: exynos: Add initial support for Odroid XU
Hi,
Patchset adds necessary clocks, reorganizes existing stuff and finally adds Odroid XU support.
Merging strategy
================
Complicated! The clock dt-bindings and driver changes can go to clock tree. However there are three DTS patches in the middle.
a. This has to go in before adding "fin_pll_new" to clock driver:
- [PATCH v2 03/22] ARM: dts: exynos: Add fin_pll node for clock driver
b. This should go in before renaming "fin_pll_new" back to original name:
- [PATCH v2 05/22] ARM: dts: exynos: Switch MCT node to a new fin_pll clock
- [PATCH v2 06/22] ARM: dts: exynos: Remove old fixed-clock provider on SMDK5410
The order of patches in the patchset is really how it should go in to reduce any bisectability glitches.
Changes since v1
================
1. A lot of new patches.
2. Removed some TODO notes (eMMC 4.5 so no RCLK pin).
3. New clocks, more reorganization.
4. New common DTSI: exynos54xx.dtsi. I know, it is getting more and more complicated but this might help removing duplications and keeping everything under control.
Best regards,
Krzysztof
Krzysztof Kozlowski (22):
dt-bindings: clock: Add license and reformat Exynos5410 clock IDs
dt-bindings: clock: Add PWM and USB clock IDs to Exynos5410
ARM: dts: exynos: Add fin_pll node for clock driver
clk: samsung: exynos5410: Provide fin_pll external fixed clock
ARM: dts: exynos: Switch MCT node to a new fin_pll clock
ARM: dts: exynos: Remove old fixed-clock provider on SMDK5410
clk: samsung: exynos5410: Rename fin_pll from temporary to regular
name
clk: samsung: exynos5410: Add serial3, USB and PWM clocks
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
ARM: dts: exynos: MCT is not an interrupt controller and extend length
of iomap
ARM: dts: exynos: Move common Exynos5410/542x/5800 nodes to new DTSI
ARM: dts: exynos: Add USB to Exynos5410
ARM: dts: exynos: Add initial support for Odroid XU board
.../bindings/arm/samsung/samsung-boards.txt | 1 + arch/arm/boot/dts/Makefile | 1 + 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-odroidxu.dts | 166 ++ arch/arm/boot/dts/exynos5410-pinctrl.dtsi | 77 + arch/arm/boot/dts/exynos5410-smdk5410.dts | 16 +- arch/arm/boot/dts/exynos5410.dtsi | 204 +- arch/arm/boot/dts/exynos5420-pinctrl.dtsi | 12 +- arch/arm/boot/dts/exynos5420.dtsi | 1981 ++++++++++---------- 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 + arch/arm/boot/dts/exynos54xx.dtsi | 142 ++ drivers/clk/samsung/clk-exynos5410.c | 52 + include/dt-bindings/clock/exynos5410.h | 64 +- 17 files changed, 2519 insertions(+), 2208 deletions(-) create mode 100644 arch/arm/boot/dts/exynos5410-odroidxu.dts create mode 100644 arch/arm/boot/dts/exynos54xx-odroidxu-leds.dtsi create mode 100644 arch/arm/boot/dts/exynos54xx.dtsi
Signature · 1 line
2.5.0
Krzysztof Kozlowski
maintainerPATCH v2 1/22 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
Re: [PATCH v2 01/22] dt-bindings: clock: Add license and reformat Exynos5410 clock IDs
Hello Krzysztof,
Quoted 5 lines · Krzysztof Kozlowski
Add license and copyrights (file introduced in 2014) to header with Exynos5410 clock IDs. Additionally reformat it to improve readability.
Signed-off-by Krzysztof Kozlowski <[email protected]>---
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Krzysztof Kozlowski
maintainerPATCH v2 2/22 dt-bindings: clock: Add PWM and USB clock IDs to Exynos5410
In reply to Krzysztof KozlowskiAdd IDs for PWM and USB clocks to Exynos5410. Use the same number as for Exynos5420 just in case in future these drivers were merged.
--- include/dt-bindings/clock/exynos5410.h | 10 ++++++++++ 1 file changed, 10 insertions(+)
include/dt-bindings/clock/exynos5410.h +10 -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
@@ -27,16 +28,25 @@#define CLK_SCLK_MMC0 132#define CLK_SCLK_MMC1 133#define CLK_SCLK_MMC2 134 +#define CLK_SCLK_USBD300 150 +#define CLK_SCLK_USBD301 151 +#define CLK_SCLK_USBPHY300 152 +#define CLK_SCLK_USBPHY301 153 +#define CLK_SCLK_PWM 155/* gate clocks */ #define CLK_UART0 257#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#define CLK_MMC2 353 +#define CLK_USBH20 365 +#define CLK_USBD300 366 +#define CLK_USBD301 367#define CLK_NR_CLKS 512
Signature · 1 line
2.5.0
Re: [PATCH v2 02/22] dt-bindings: clock: Add PWM and USB clock IDs to Exynos5410
Hello Krzysztof,
Quoted 5 lines · Krzysztof Kozlowski
Add IDs for PWM and USB clocks to Exynos5410. Use the same number as for Exynos5420 just in case in future these drivers were merged.
Signed-off-by Krzysztof Kozlowski <[email protected]>---
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Krzysztof Kozlowski
maintainerPATCH v2 3/22 ARM: dts: exynos: Add fin_pll node for clock driver
In reply to Krzysztof KozlowskiFor consistency between Exynos5410 and Exynos542x/5800 switch to similar way of defining fin_pll/oscclk. Add a node early, before implementing this in driver to preserve bisectability.
--- arch/arm/boot/dts/exynos5410-smdk5410.dts | 7 +++++++ 1 file changed, 7 insertions(+)
arch/arm/boot/dts/exynos5410-smdk5410.dts +7 -0
@@ -31,6 +31,13 @@ #clock-cells = <0>; }; + fixed-rate-clocks { + oscclk { + compatible = "samsung,exynos5420-oscclk"; + clock-frequency = <24000000>; + }; + }; + firmware at 02037000 { compatible = "samsung,secure-firmware"; reg = <0x02037000 0x1000>;
Signature · 1 line
2.5.0
Re: [PATCH v2 03/22] ARM: dts: exynos: Add fin_pll node for clock driver
Hello Krzysztof,
Quoted 6 lines · Krzysztof Kozlowski
For consistency between Exynos5410 and Exynos542x/5800 switch to similar way of defining fin_pll/oscclk. Add a node early, before implementing this in driver to preserve bisectability.
Signed-off-by Krzysztof Kozlowski <[email protected]>---
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Krzysztof Kozlowski
maintainerPATCH v2 4/22 clk: samsung: exynos5410: Provide fin_pll external fixed clock
In reply to Krzysztof KozlowskiJust like clock driver for Exynos542x/5800, provide the fixed clock here so the clock bindings and their consumers would be consistent and similar.
However a clock named "fin_pll" is already provided by generic fixed-clock and it is both referenced in the clock driver (by name) and in DT (by phandle). To make the transition smooth, first introduce the new external fixed clock here under temporary, different name and switch internal users to it.
--- drivers/clk/samsung/clk-exynos5410.c | 42 +++++++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 13 deletions(-)
drivers/clk/samsung/clk-exynos5410.c +29 -13
@@ -59,23 +59,29 @@ enum exynos5410_plls { };/* list of all parent clocks */ -PNAME (apll_p) = {"fin_pll" ,"fout_apll" , }; -PNAME (bpll_p) = {"fin_pll" ,"fout_bpll" , }; -PNAME (cpll_p) = {"fin_pll" ,"fout_cpll" }; -PNAME (mpll_p) = {"fin_pll" ,"fout_mpll" , }; -PNAME (kpll_p) = {"fin_pll" ,"fout_kpll" , }; +PNAME (apll_p) = {"fin_pll_new" ,"fout_apll" , }; +PNAME (bpll_p) = {"fin_pll_new" ,"fout_bpll" , }; +PNAME (cpll_p) = {"fin_pll_new" ,"fout_cpll" }; +PNAME (mpll_p) = {"fin_pll_new" ,"fout_mpll" , }; +PNAME (kpll_p) = {"fin_pll_new" ,"fout_kpll" , };PNAME (mout_cpu_p) = {"mout_apll" ,"sclk_mpll" , };PNAME (mout_kfc_p) = {"mout_kpll" ,"sclk_mpll" , }; -PNAME (mpll_user_p) = {"fin_pll" ,"sclk_mpll" , }; -PNAME (bpll_user_p) = {"fin_pll" ,"sclk_bpll" , }; +PNAME (mpll_user_p) = {"fin_pll_new" ,"sclk_mpll" , }; +PNAME (bpll_user_p) = {"fin_pll_new" ,"sclk_bpll" , };PNAME (mpll_bpll_p) = {"sclk_mpll_muxed" ,"sclk_bpll_muxed" , }; -PNAME (group2_p) = {"fin_pll" ,"fin_pll" ,"none" ,"none" , +PNAME (group2_p) = {"fin_pll_new" ,"fin_pll_new" ,"none" ,"none" ,"none" ,"none" ,"sclk_mpll_bpll" ,"none" ,"none" ,"sclk_cpll" }; +/* fixed rate clocks generated outside the soc */ +static struct samsung_fixed_rate_clock + exynos5x_fixed_rate_ext_clks[]__initdata = { +FRATE (CLK_FIN_PLL ,"fin_pll_new" ,NULL ,0 ,0 ), +}; +static struct samsung_mux_clock exynos5410_mux_clks[]__initdata = {MUX (0 ,"mout_apll" , apll_p,SRC_CPU ,0 ,1 ),MUX (0 ,"mout_cpu" , mout_cpu_p,SRC_CPU ,16 ,1 ),
@@ -168,18 +174,24 @@ static struct samsung_gate_clock exynos5410_gate_clks[] __initdata = { };static struct samsung_pll_clock exynos5410_plls[nr_plls]__initdata = { - [apll] =PLL (pll_35xx,CLK_FOUT_APLL ,"fout_apll" ,"fin_pll" ,APLL_LOCK , + [apll] =PLL (pll_35xx,CLK_FOUT_APLL ,"fout_apll" ,"fin_pll_new" ,APLL_LOCK ,APLL_CON0 ,NULL ), - [cpll] =PLL (pll_35xx,CLK_FOUT_CPLL ,"fout_cpll" ,"fin_pll" ,CPLL_LOCK , + [cpll] =PLL (pll_35xx,CLK_FOUT_CPLL ,"fout_cpll" ,"fin_pll_new" ,CPLL_LOCK ,CPLL_CON0 ,NULL ), - [mpll] =PLL (pll_35xx,CLK_FOUT_MPLL ,"fout_mpll" ,"fin_pll" ,MPLL_LOCK , + [mpll] =PLL (pll_35xx,CLK_FOUT_MPLL ,"fout_mpll" ,"fin_pll_new" ,MPLL_LOCK ,MPLL_CON0 ,NULL ), - [bpll] =PLL (pll_35xx,CLK_FOUT_BPLL ,"fout_bpll" ,"fin_pll" ,BPLL_LOCK , + [bpll] =PLL (pll_35xx,CLK_FOUT_BPLL ,"fout_bpll" ,"fin_pll_new" ,BPLL_LOCK ,BPLL_CON0 ,NULL ), - [kpll] =PLL (pll_35xx,CLK_FOUT_KPLL ,"fout_kpll" ,"fin_pll" ,KPLL_LOCK , + [kpll] =PLL (pll_35xx,CLK_FOUT_KPLL ,"fout_kpll" ,"fin_pll_new" ,KPLL_LOCK ,KPLL_CON0 ,NULL ), }; +/* Same as in Exynos5420 */ +static const struct of_device_id ext_clk_match[]__initconst = { + { .compatible ="samsung,exynos5420-oscclk" , .data = (void *)0 , }, + { }, +}; +/* register exynos5410 clocks */ static void __init exynos5410_clk_init (struct device_node *np) {
@@ -192,6 +204,10 @@ static void __init exynos5410_clk_init(struct device_node *np) ctx =samsung_clk_init (np, reg_base,CLK_NR_CLKS ); +samsung_clk_of_register_fixed_ext (ctx, exynos5x_fixed_rate_ext_clks, +ARRAY_SIZE (exynos5x_fixed_rate_ext_clks), + ext_clk_match); +samsung_clk_register_pll (ctx, exynos5410_plls,ARRAY_SIZE (exynos5410_plls), reg_base);
Signature · 1 line
2.5.0
Re: [PATCH v2 04/22] clk: samsung: exynos5410: Provide fin_pll external fixed clock
Hello Krzysztof,
Quoted 12 lines · Krzysztof Kozlowski
Just like clock driver for Exynos542x/5800, provide the fixed clock here so the clock bindings and their consumers would be consistent and similar.
However a clock named "
fin_pll" is already provided by generic fixed-clock and it is both referenced in the clock driver (by name) and in DT (by phandle). To make the transition smooth, first introduce the new external fixed clock here under temporary, different name and switch internal users to it.Signed-off-by Krzysztof Kozlowski <[email protected]>---
[snip]
drivers/clk/samsung/clk-exynos5410.c static struct samsung_gate_clock exynos5410_gate_clks[] __initdata = { · line 191
Quoted 4 lines
drivers/clk/samsung/clk-exynos5410.c +3
-0+/* Same as in Exynos5420 */ +static const struct of_device_id ext_clk_match[]__initconst = { + { .compatible ="samsung,exynos5420-oscclk" , .data = (void *)0 , },
Since using designated initializers, I was about to say that there is no need to explicitly set .data to 0 since omitted fields are implicitly initialized...
Quoted 7 lines
drivers/clk/samsung/clk-exynos5410.c +3
-0+ { }, +}; +/* register exynos5410 clocks */ static void __init exynos5410_clk_init (struct device_node *np) {
drivers/clk/samsung/clk-exynos5410.c static void __init exynos5410_clk_init(struct device_node *np) · line 210
Quoted 7 lines
drivers/clk/samsung/clk-exynos5410.c +4
-0@@ -192,6 +204,10 @@ static void __init exynos5410_clk_init(struct device_node *np) ctx =samsung_clk_init (np, reg_base,CLK_NR_CLKS ); +samsung_clk_of_register_fixed_ext (ctx, exynos5x_fixed_rate_ext_clks, +ARRAY_SIZE (exynos5x_fixed_rate_ext_clks), + ext_clk_match); +
... but then I noticed that .data is used as exynos5x_fixed_rate_ext_clks array index in samsung_clk_of_register_fixed_ext(). So makes sense to set it explicitly to make the intent clear.
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Krzysztof Kozlowski
maintainerRe: [PATCH v2 04/22] clk: samsung: exynos5410: Provide fin_pll external fixed clock
Quoted 36 lines · Javier Martinez Canillas
Hello Krzysztof,
Quoted 12 lines · Krzysztof Kozlowski
Just like clock driver for Exynos542x/5800, provide the fixed clock here so the clock bindings and their consumers would be consistent and similar.
However a clock named "
fin_pll" is already provided by generic fixed-clock and it is both referenced in the clock driver (by name) and in DT (by phandle). To make the transition smooth, first introduce the new external fixed clock here under temporary, different name and switch internal users to it.Signed-off-by Krzysztof Kozlowski <[email protected]>---
[snip]
drivers/clk/samsung/clk-exynos5410.c static struct samsung_gate_clock exynos5410_gate_clks[] __initdata = { · line 191
Quoted 4 lines
drivers/clk/samsung/clk-exynos5410.c +3
-0+/* Same as in Exynos5420 */ +static const struct of_device_id ext_clk_match[]__initconst = { + { .compatible ="samsung,exynos5420-oscclk" , .data = (void *)0 , },Since using designated initializers, I was about to say that there is no need to explicitly set .data to 0 since omitted fields are implicitly initialized...
Quoted 10 lines
drivers/clk/samsung/clk-exynos5410.c +3
-0+ { }, +}; +/* register exynos5410 clocks */ static void __init exynos5410_clk_init (struct device_node *np) {@@ -192,6 +204,10 @@ static void __init exynos5410_clk_init(struct device_node *np) ctx =samsung_clk_init (np, reg_base,CLK_NR_CLKS );
Quoted 8 lines
drivers/clk/samsung/clk-exynos5410.c static void __init exynos5410_clk_init(struct device_node *np) · line 210
Quoted 4 lines
drivers/clk/samsung/clk-exynos5410.c +4
-0+samsung_clk_of_register_fixed_ext (ctx, exynos5x_fixed_rate_ext_clks, +ARRAY_SIZE (exynos5x_fixed_rate_ext_clks), + ext_clk_match); +... but then I noticed that .data is used as
exynos5x_fixed_rate_ext_clksarray index insamsung_clk_of_register_fixed_ext(). So makes sense to set it explicitly to make the intent clear.
Yes, that is the intention here. The '(void *)0' is a hint that clock needs frequency from DT.
Thanks for review,
Krzysztof
Krzysztof Kozlowski
maintainerPATCH v2 5/22 ARM: dts: exynos: Switch MCT node to a new fin_pll clock
In reply to Krzysztof KozlowskiThe clk-exynos5410 driver now provides the "fin_pll" external fixed clock. Switch the Multi-Core Timer to this clock.
--- arch/arm/boot/dts/exynos5410.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/exynos5410.dtsi +1 -1
@@ -125,7 +125,7 @@ interrupts = <0>, <1>, <2>, <3>, <4>, <5>, <6>, <7>, <8>, <9>, <10>, <11>; - clocks = <&fin_pll>, <&clock CLK_MCT>; + clocks = <&clock CLK_FIN_PLL>, <&clock CLK_MCT>; clock-names = "fin_pll", "mct"; interrupt_map: interrupt-map {
Signature · 1 line
2.5.0
Re: [PATCH v2 05/22] ARM: dts: exynos: Switch MCT node to a new fin_pll clock
Hello Krzysztof,
Quoted 5 lines · Krzysztof Kozlowski
The clk-exynos5410 driver now provides the "
fin_pll" external fixed clock. Switch the Multi-Core Timer to this clock.Signed-off-by Krzysztof Kozlowski <[email protected]>---
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Krzysztof Kozlowski
maintainerPATCH v2 6/22 ARM: dts: exynos: Remove old fixed-clock provider on SMDK5410
In reply to Krzysztof KozlowskiAll "fin_pll" clock users are switched to the new one, provided by Exynos5410 clock driver. Remove old DT node.
--- arch/arm/boot/dts/exynos5410-smdk5410.dts | 7 ------- 1 file changed, 7 deletions(-)
arch/arm/boot/dts/exynos5410-smdk5410.dts +0 -7
@@ -24,13 +24,6 @@ bootargs = "console=ttySAC2,115200"; }; - fin_pll: xxti { - compatible = "fixed-clock"; - clock-frequency = <24000000>; - clock-output-names = "fin_pll"; - #clock-cells = <0>; - }; - fixed-rate-clocks { oscclk { compatible = "samsung,exynos5420-oscclk";
Signature · 1 line
2.5.0
Re: [PATCH v2 06/22] ARM: dts: exynos: Remove old fixed-clock provider on SMDK5410
Hello Krzysztof,
Quoted 1 line · Krzysztof Kozlowski
All "
fin_pll" clock users are switched to the new one, provided by
s/are switched/were switched
Quoted 4 lines
Exynos5410 clock driver. Remove old DT node.
Signed-off-by Krzysztof Kozlowski <[email protected]>---
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Krzysztof Kozlowski
maintainerRe: [PATCH v2 06/22] ARM: dts: exynos: Remove old fixed-clock provider on SMDK5410
Quoted 6 lines · Javier Martinez Canillas
Hello Krzysztof,
Quoted 1 line · Krzysztof Kozlowski
All "
fin_pll" clock users are switched to the new one, provided bys/are switched/were switched
Thanks for spotting this,
Krzysztof
Krzysztof Kozlowski
maintainerPATCH v2 7/22 clk: samsung: exynos5410: Rename fin_pll from temporary to regular name
In reply to Krzysztof KozlowskiFor smooth transition of fin_pll to clk-exynos5410.c from fixed-clock driver, initially it was named "fin_pll_new". Fix this here.
--- drivers/clk/samsung/clk-exynos5410.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-)
drivers/clk/samsung/clk-exynos5410.c +14 -14
@@ -59,27 +59,27 @@ enum exynos5410_plls { };/* list of all parent clocks */ -PNAME (apll_p) = {"fin_pll_new" ,"fout_apll" , }; -PNAME (bpll_p) = {"fin_pll_new" ,"fout_bpll" , }; -PNAME (cpll_p) = {"fin_pll_new" ,"fout_cpll" }; -PNAME (mpll_p) = {"fin_pll_new" ,"fout_mpll" , }; -PNAME (kpll_p) = {"fin_pll_new" ,"fout_kpll" , }; +PNAME (apll_p) = {"fin_pll" ,"fout_apll" , }; +PNAME (bpll_p) = {"fin_pll" ,"fout_bpll" , }; +PNAME (cpll_p) = {"fin_pll" ,"fout_cpll" }; +PNAME (mpll_p) = {"fin_pll" ,"fout_mpll" , }; +PNAME (kpll_p) = {"fin_pll" ,"fout_kpll" , };PNAME (mout_cpu_p) = {"mout_apll" ,"sclk_mpll" , };PNAME (mout_kfc_p) = {"mout_kpll" ,"sclk_mpll" , }; -PNAME (mpll_user_p) = {"fin_pll_new" ,"sclk_mpll" , }; -PNAME (bpll_user_p) = {"fin_pll_new" ,"sclk_bpll" , }; +PNAME (mpll_user_p) = {"fin_pll" ,"sclk_mpll" , }; +PNAME (bpll_user_p) = {"fin_pll" ,"sclk_bpll" , };PNAME (mpll_bpll_p) = {"sclk_mpll_muxed" ,"sclk_bpll_muxed" , }; -PNAME (group2_p) = {"fin_pll_new" ,"fin_pll_new" ,"none" ,"none" , +PNAME (group2_p) = {"fin_pll" ,"fin_pll" ,"none" ,"none" ,"none" ,"none" ,"sclk_mpll_bpll" ,"none" ,"none" ,"sclk_cpll" };/* fixed rate clocks generated outside the soc */ static struct samsung_fixed_rate_clock exynos5x_fixed_rate_ext_clks[]__initdata = { -FRATE (CLK_FIN_PLL ,"fin_pll_new" ,NULL ,0 ,0 ), +FRATE (CLK_FIN_PLL ,"fin_pll" ,NULL ,0 ,0 ), };static struct samsung_mux_clock exynos5410_mux_clks[]__initdata = {
@@ -174,15 +174,15 @@ static struct samsung_gate_clock exynos5410_gate_clks[] __initdata = { };static struct samsung_pll_clock exynos5410_plls[nr_plls]__initdata = { - [apll] =PLL (pll_35xx,CLK_FOUT_APLL ,"fout_apll" ,"fin_pll_new" ,APLL_LOCK , + [apll] =PLL (pll_35xx,CLK_FOUT_APLL ,"fout_apll" ,"fin_pll" ,APLL_LOCK ,APLL_CON0 ,NULL ), - [cpll] =PLL (pll_35xx,CLK_FOUT_CPLL ,"fout_cpll" ,"fin_pll_new" ,CPLL_LOCK , + [cpll] =PLL (pll_35xx,CLK_FOUT_CPLL ,"fout_cpll" ,"fin_pll" ,CPLL_LOCK ,CPLL_CON0 ,NULL ), - [mpll] =PLL (pll_35xx,CLK_FOUT_MPLL ,"fout_mpll" ,"fin_pll_new" ,MPLL_LOCK , + [mpll] =PLL (pll_35xx,CLK_FOUT_MPLL ,"fout_mpll" ,"fin_pll" ,MPLL_LOCK ,MPLL_CON0 ,NULL ), - [bpll] =PLL (pll_35xx,CLK_FOUT_BPLL ,"fout_bpll" ,"fin_pll_new" ,BPLL_LOCK , + [bpll] =PLL (pll_35xx,CLK_FOUT_BPLL ,"fout_bpll" ,"fin_pll" ,BPLL_LOCK ,BPLL_CON0 ,NULL ), - [kpll] =PLL (pll_35xx,CLK_FOUT_KPLL ,"fout_kpll" ,"fin_pll_new" ,KPLL_LOCK , + [kpll] =PLL (pll_35xx,CLK_FOUT_KPLL ,"fout_kpll" ,"fin_pll" ,KPLL_LOCK ,KPLL_CON0 ,NULL ), };
Signature · 1 line
2.5.0
Re: [PATCH v2 07/22] clk: samsung: exynos5410: Rename fin_pll from temporary to regular name
Hello Krzysztof,
Quoted 5 lines · Krzysztof Kozlowski
For smooth transition of
fin_plltoclk-exynos5410.cfrom fixed-clock driver, initially it was named "fin_pll_new". Fix this here.Signed-off-by Krzysztof Kozlowski <[email protected]>---
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Krzysztof Kozlowski
maintainerPATCH v2 8/22 clk: samsung: exynos5410: Add serial3, USB and PWM clocks
In reply to Krzysztof KozlowskiJust like other Exynos5 family SoCs, this one has four UARTs. Add missing UART3 clocks to the Exynso5410 clock driver.
Add clocks for USB and PWM.
--- drivers/clk/samsung/clk-exynos5410.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+)
drivers/clk/samsung/clk-exynos5410.c +36 -0
@@ -33,9 +33,11 @@#define SRC_CPERI1 0x4204#define DIV_TOP0 0x10510#define DIV_TOP1 0x10514 +#define DIV_FSYS0 0x10548#define DIV_FSYS1 0x1054c#define DIV_FSYS2 0x10550#define DIV_PERIC0 0x10558 +#define DIV_PERIC3 0x10564#define SRC_TOP0 0x10210#define SRC_TOP1 0x10214#define SRC_TOP2 0x10218
@@ -44,6 +46,8 @@#define SRC_MASK_FSYS 0x10340#define SRC_MASK_PERIC0 0x10350#define GATE_BUS_FSYS0 0x10740 +#define GATE_TOP_SCLK_FSYS 0x10840 +#define GATE_TOP_SCLK_PERIC 0x10850#define GATE_IP_FSYS 0x10944#define GATE_IP_PERIC 0x10950#define GATE_IP_PERIS 0x10960
@@ -71,6 +75,7 @@ PNAME(mout_kfc_p) = { "mout_kpll", "sclk_mpll", };PNAME (mpll_user_p) = {"fin_pll" ,"sclk_mpll" , };PNAME (bpll_user_p) = {"fin_pll" ,"sclk_bpll" , };PNAME (mpll_bpll_p) = {"sclk_mpll_muxed" ,"sclk_bpll_muxed" , }; +PNAME (sclk_mpll_bpll_p) = {"sclk_mpll_bpll" ,"fin_pll" , };PNAME (group2_p) = {"fin_pll" ,"fin_pll" ,"none" ,"none" ,"none" ,"none" ,"sclk_mpll_bpll" ,
@@ -102,10 +107,14 @@ static struct samsung_mux_clock exynos5410_mux_clks[] __initdata = {MUX (0 ,"mout_mmc0" , group2_p,SRC_FSYS ,0 ,4 ),MUX (0 ,"mout_mmc1" , group2_p,SRC_FSYS ,4 ,4 ),MUX (0 ,"mout_mmc2" , group2_p,SRC_FSYS ,8 ,4 ), +MUX (0 ,"mout_usbd300" , sclk_mpll_bpll_p,SRC_FSYS ,28 ,1 ), +MUX (0 ,"mout_usbd301" , sclk_mpll_bpll_p,SRC_FSYS ,29 ,1 ),MUX (0 ,"mout_uart0" , group2_p,SRC_PERIC0 ,0 ,4 ),MUX (0 ,"mout_uart1" , group2_p,SRC_PERIC0 ,4 ,4 ),MUX (0 ,"mout_uart2" , group2_p,SRC_PERIC0 ,8 ,4 ), +MUX (0 ,"mout_uart3" , group2_p,SRC_PERIC0 ,12 ,4 ), +MUX (0 ,"mout_pwm" , group2_p,SRC_PERIC0 ,24 ,4 ),MUX (0 ,"mout_aclk200" , mpll_bpll_p,SRC_TOP0 ,12 ,1 ), MUX(0, "mout_aclk400", mpll_bpll_p, SRC_TOP0, 20, 1),
@@ -127,6 +136,11 @@ static struct samsung_div_clock exynos5410_div_clks[] __initdata = {DIV (0 ,"aclk66_pre" ,"sclk_mpll_muxed" ,DIV_TOP1 ,24 ,3 ),DIV (0 ,"aclk66" ,"aclk66_pre" ,DIV_TOP0 ,0 ,3 ), +DIV (0 ,"dout_usbphy300" ,"mout_usbd300" ,DIV_FSYS0 ,16 ,4 ), +DIV (0 ,"dout_usbphy301" ,"mout_usbd301" ,DIV_FSYS0 ,20 ,4 ), +DIV (0 ,"dout_usbd300" ,"mout_usbd300" ,DIV_FSYS0 ,24 ,4 ), +DIV (0 ,"dout_usbd301" ,"mout_usbd301" ,DIV_FSYS0 ,28 ,4 ), +DIV (0 ,"div_mmc0" ,"mout_mmc0" ,DIV_FSYS1 ,0 ,4 ),DIV (0 ,"div_mmc1" ,"mout_mmc1" ,DIV_FSYS1 ,16 ,4 ), DIV(0, "div_mmc2", "mout_mmc2", DIV_FSYS2, 0, 4),
@@ -143,6 +157,8 @@ static struct samsung_div_clock exynos5410_div_clks[] __initdata = {DIV (0 ,"div_uart2" ,"mout_uart2" ,DIV_PERIC0 ,8 ,4 ),DIV (0 ,"div_uart3" ,"mout_uart3" ,DIV_PERIC0 ,12 ,4 ), +DIV (0 ,"dout_pwm" ,"mout_pwm" ,DIV_PERIC3 ,0 ,4 ), +DIV (0 ,"aclk200" ,"mout_aclk200" ,DIV_TOP0 ,12 ,3 ), DIV(0, "aclk400", "mout_aclk400", DIV_TOP0, 24, 3), };
@@ -161,9 +177,23 @@ static struct samsung_gate_clock exynos5410_gate_clks[] __initdata = {GATE (CLK_MMC1 ,"sdmmc1" ,"aclk200" ,GATE_BUS_FSYS0 ,13 ,0 ,0 ),GATE (CLK_MMC2 ,"sdmmc2" ,"aclk200" ,GATE_BUS_FSYS0 ,14 ,0 ,0 ), +GATE (CLK_SCLK_USBPHY301 ,"sclk_usbphy301" ,"dout_usbphy301" , +GATE_TOP_SCLK_FSYS ,7 ,CLK_SET_RATE_PARENT ,0 ), +GATE (CLK_SCLK_USBPHY300 ,"sclk_usbphy300" ,"dout_usbphy300" , +GATE_TOP_SCLK_FSYS ,8 ,CLK_SET_RATE_PARENT ,0 ), +GATE (CLK_SCLK_USBD300 ,"sclk_usbd300" ,"dout_usbd300" , +GATE_TOP_SCLK_FSYS ,9 ,CLK_SET_RATE_PARENT ,0 ), +GATE (CLK_SCLK_USBD301 ,"sclk_usbd301" ,"dout_usbd301" , +GATE_TOP_SCLK_FSYS ,10 ,CLK_SET_RATE_PARENT ,0 ), + +GATE (CLK_SCLK_PWM ,"sclk_pwm" ,"dout_pwm" , +GATE_TOP_SCLK_PERIC ,11 ,CLK_SET_RATE_PARENT ,0 ), +GATE (CLK_UART0 ,"uart0" ,"aclk66" ,GATE_IP_PERIC ,0 ,0 ,0 ),GATE (CLK_UART1 ,"uart1" ,"aclk66" ,GATE_IP_PERIC ,1 ,0 ,0 ),GATE (CLK_UART2 ,"uart2" ,"aclk66" ,GATE_IP_PERIC ,2 ,0 ,0 ), +GATE (CLK_UART3 ,"uart3" ,"aclk66" ,GATE_IP_PERIC ,3 ,0 ,0 ), +GATE (CLK_PWM ,"pwm" ,"aclk66" ,GATE_IP_PERIC ,24 ,0 ,0 ),GATE (CLK_SCLK_UART0 ,"sclk_uart0" ,"div_uart0" , SRC_MASK_PERIC0, 0, CLK_SET_RATE_PARENT, 0),
@@ -171,6 +201,12 @@ static struct samsung_gate_clock exynos5410_gate_clks[] __initdata = { SRC_MASK_PERIC0, 4, CLK_SET_RATE_PARENT, 0),GATE (CLK_SCLK_UART2 ,"sclk_uart2" ,"div_uart2" ,SRC_MASK_PERIC0 ,8 ,CLK_SET_RATE_PARENT ,0 ), +GATE (CLK_SCLK_UART3 ,"sclk_uart3" ,"div_uart3" , +SRC_MASK_PERIC0 ,12 ,CLK_SET_RATE_PARENT ,0 ), + +GATE (CLK_USBH20 ,"usbh20" ,"aclk200_fsys" ,GATE_IP_FSYS ,18 ,0 ,0 ), +GATE (CLK_USBD300 ,"usbd300" ,"aclk200_fsys" ,GATE_IP_FSYS ,19 ,0 ,0 ), + GATE(CLK_USBD301, "usbd301", "aclk200_fsys", GATE_IP_FSYS, 20, 0, 0), }; static struct samsung_pll_clock exynos5410_plls[nr_plls] __initdata = {
Signature · 1 line
2.5.0
Re: [PATCH v2 08/22] clk: samsung: exynos5410: Add serial3, USB and PWM clocks
Hello Krzysztof,
Quoted 7 lines · Krzysztof Kozlowski
Just like other Exynos5 family SoCs, this one has four UARTs. Add missing UART3 clocks to the Exynso5410 clock driver.
Add clocks for USB and PWM.
Signed-off-by Krzysztof Kozlowski <[email protected]>---
I don't have an Exynos5410 SoC user manual to double check all values but assuming that are correct, the patch looks good to me.
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Krzysztof Kozlowski
maintainerPATCH v2 9/22 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
Re: [PATCH v2 09/22] ARM: dts: exynos: Re-order alphabetically Exynos5420 SD0/SD1 pinctrl nodes
Hello Krzysztof,
Quoted 4 lines · Krzysztof Kozlowski
The '
sd0_rclk' was put in the middle of SD1 nodes. Remove the confusion.Signed-off-by Krzysztof Kozlowski <[email protected]>---
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Krzysztof Kozlowski
maintainerPATCH v2 10/22 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
Re: [PATCH v2 10/22] ARM: dts: exynos: Use lowercase for Exynos5410 CPU node labels
Hello Krzysztof,
Quoted 2 lines · Krzysztof Kozlowski
Fro consistency lowercase node labels are used.
s/Fro/For
Quoted 2 lines
Signed-off-by Krzysztof Kozlowski <[email protected]>---
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Krzysztof Kozlowski
maintainerPATCH v2 11/22 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).
--- arch/arm/boot/dts/exynos5410-pinctrl.dtsi | 77 +++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+)
arch/arm/boot/dts/exynos5410-pinctrl.dtsi +77 -0
@@ -277,6 +277,83 @@ 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>; + }; + + 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
Re: [PATCH v2 11/22] ARM: dts: exynos: Configure Exynos5410 pinctrl for eMMC and SD card
Hello Krzysztof,
Quoted 4 lines · Krzysztof Kozlowski
Configure the pinctrl for MMC0 (eMMC) and MMC2 (microSD card).
Signed-off-by Krzysztof Kozlowski <[email protected]>---
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Krzysztof Kozlowski
maintainerPATCH v2 12/22 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
Re: [PATCH v2 12/22] ARM: dts: exynos: Split Odroid XU3 LEDs to separate DTSI
Hello Krzysztof,
Quoted 5 lines · Krzysztof Kozlowski
The LED nodes can be shared between Odroid XU3, XU3-Lite and XU (not yet added) thus removing duplication.
Signed-off-by Krzysztof Kozlowski <[email protected]>---
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Krzysztof Kozlowski
maintainerPATCH v2 13/22 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
Re: [PATCH v2 13/22] ARM: dts: exynos: Move common nodes to exynos5.dtsi
Hello Krzysztof,
Quoted 6 lines · Krzysztof Kozlowski
Exynos5420 and Exynos5250 share some nodes: the PWM and syscon (
sysreg_system_controller). Move them to parent DTSI to avoid duplication.Signed-off-by Krzysztof Kozlowski <[email protected]>---
I see that the i2c_[0-3] nodes are also the same in both DTSI. Do you think that makes sense to also move those to exynos5.dtsi as well?
In any case that can be made as a follow-up, so:
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Krzysztof Kozlowski
maintainerRe: [PATCH v2 13/22] ARM: dts: exynos: Move common nodes to exynos5.dtsi
Quoted 7 lines · Javier Martinez Canillas
Hello Krzysztof,
Quoted 4 lines · Krzysztof Kozlowski
Exynos5420 and Exynos5250 share some nodes: the PWM and syscon (
sysreg_system_controller). Move them to parent DTSI to avoid duplication.
Quoted 5 lines
Quoted 2 lines
Signed-off-by Krzysztof Kozlowski <[email protected]>---
I see that the i2c_[0-3] nodes are also the same in both DTSI. Do you think that makes sense to also move those to
exynos5.dtsias well?
Thanks, that is a good suggestion. I didn't add the I2C and its children to Odroid XU yet but probably having the nodes defined won't hurt. Especially that they are disabled by default.
Best regards,
Krzysztof
Quoted 6 lines
In any case that can be made as a follow-up, so:
Reviewed-by Javier Martinez Canillas <[email protected]>Best regards,
Krzysztof Kozlowski
maintainerPATCH v2 14/22 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 inheriting 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
Re: [PATCH v2 14/22] ARM: dts: exynos: Prepare for inclusion of exynos5.dtsi in exynos5410.dtsi
Hello Krzysztof,
Quoted 5 lines · Krzysztof Kozlowski
Add 'sromc' label to SROM memory controller in common
exynos5.dtsiso it can be referenced by inheriting DTSI.Signed-off-by Krzysztof Kozlowski <[email protected]>---
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Krzysztof Kozlowski
maintainerPATCH v2 15/22 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
Re: [PATCH v2 15/22] ARM: dts: exynos: Use phandle to get parent node in exynos5250-snow
Hello Krzysztof,
Quoted 7 lines · Krzysztof Kozlowski
The 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).
Signed-off-by Krzysztof Kozlowski <[email protected]>---
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Krzysztof Kozlowski
maintainerPATCH v2 16/22 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.
Re: [PATCH v2 16/22] ARM: dts: exynos: Move Exynos5250 and Exynos5420 nodes under soc
Hello Krzysztof,
Quoted 1 line · Krzysztof Kozlowski
The conventions it to put SoC devices under 'soc' node. In fact other
s/it/is
Quoted 7 lines
our DTSes (like
exynos3250.dtsiorexynos5410.dtsi) already follows it. Adjust exynos5250 and exynos5420 DTSI to follow this convention. This is also necessary for the upcoming change inexynos5410.dtsito inherit from commonexynos5.dtsi.Signed-off-by Krzysztof Kozlowski <[email protected]>---
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Krzysztof Kozlowski
maintainerPATCH v2 17/22 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
Re: [PATCH v2 17/22] ARM: dts: exynos: Include common exynos5 in exynos5410.dtsi
Hello Krzysztof,
Quoted 7 lines · Krzysztof Kozlowski
The
exynos5.dtsiis 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.Signed-off-by Krzysztof Kozlowski <[email protected]>---
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Krzysztof Kozlowski
maintainerPATCH v2 18/22 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: [PATCH v2 18/22] ARM: dts: exynos: Enable UART3 on Exynos5410
Hello Krzysztof,
Quoted 5 lines · Krzysztof Kozlowski
Just like other Exynos5 family SoCs, this one has four UARTs. Configure clocks for UART3 and enable it.
Signed-off-by Krzysztof Kozlowski <[email protected]>---
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Krzysztof Kozlowski
maintainerPATCH v2 19/22 ARM: dts: exynos: MCT is not an interrupt controller and extend length of iomap
In reply to Krzysztof KozlowskiMulti-Core Timer generates interrupts but it is not really an interrupt controller so remove the "interrupt-controller" and "interrupt-cells" properties. Additionally extend the length of mapped memory to cover all registers (last SFR is at 0x0A40).
--- arch/arm/boot/dts/exynos5420.dtsi | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
arch/arm/boot/dts/exynos5420.dtsi +1 -3
@@ -267,9 +267,7 @@ mct: mct at 101C0000 { compatible = "samsung,exynos4210-mct"; - reg = <0x101C0000 0x800>; - interrupt-controller; - #interrupt-cells = <1>; + reg = <0x101C0000 0xB00>; interrupt-parent = <&mct_map>; interrupts = <0>, <1>, <2>, <3>, <4>, <5>, <6>, <7>, <8>, <9>, <10>, <11>;
Signature · 1 line
2.5.0
Re: [PATCH v2 19/22] ARM: dts: exynos: MCT is not an interrupt controller and extend length of iomap
Hello Krzysztof,
Quoted 7 lines · Krzysztof Kozlowski
Multi-Core Timer generates interrupts but it is not really an interrupt controller so remove the "interrupt-controller" and "interrupt-cells" properties. Additionally extend the length of mapped memory to cover all registers (last SFR is at
0x0A40).Signed-off-by Krzysztof Kozlowski <[email protected]>---
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Krzysztof Kozlowski
maintainerPATCH v2 20/22 ARM: dts: exynos: Move common Exynos5410/542x/5800 nodes to new DTSI
In reply to Krzysztof KozlowskiThe Exynos5410/542x/5800 are very similar designs. Create new new DTSI with common nodes to remove DTS duplication. Although currently only MCT and SysRAM are shared but in future more nodes will be added to common file.
The patch should not have functional impact.
--- arch/arm/boot/dts/exynos5410.dtsi | 55 ++++--------------------------- arch/arm/boot/dts/exynos5420.dtsi | 54 ++++--------------------------- arch/arm/boot/dts/exynos54xx.dtsi | 68 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 80 insertions(+), 97 deletions(-) create mode 100644 arch/arm/boot/dts/exynos54xx.dtsi
arch/arm/boot/dts/exynos5410.dtsi +6 -49
@@ -13,8 +13,7 @@ * published by the Free Software Foundation. */ -#include "skeleton.dtsi" -#include "exynos5.dtsi" +#include "exynos54xx.dtsi" #include "exynos-syscon-restart.dtsi" #include <dt-bindings/clock/exynos5410.h>
@@ -73,53 +72,6 @@ reg = <0x10040000 0x5000>; }; - mct: mct at 101C0000 { - compatible = "samsung,exynos4210-mct"; - reg = <0x101C0000 0xB00>; - interrupt-parent = <&interrupt_map>; - interrupts = <0>, <1>, <2>, <3>, - <4>, <5>, <6>, <7>, - <8>, <9>, <10>, <11>; - clocks = <&clock CLK_FIN_PLL>, <&clock CLK_MCT>; - clock-names = "fin_pll", "mct"; - - interrupt_map: interrupt-map { - #interrupt-cells = <1>; - #address-cells = <0>; - #size-cells = <0>; - interrupt-map = <0 &combiner 23 3>, - <1 &combiner 23 4>, - <2 &combiner 25 2>, - <3 &combiner 25 3>, - <4 &gic 0 120 0>, - <5 &gic 0 121 0>, - <6 &gic 0 122 0>, - <7 &gic 0 123 0>, - <8 &gic 0 128 0>, - <9 &gic 0 129 0>, - <10 &gic 0 130 0>, - <11 &gic 0 131 0>; - }; - }; - - sysram at 02020000 { - compatible = "mmio-sram"; - reg = <0x02020000 0x54000>; - #address-cells = <1>; - #size-cells = <1>; - ranges = <0 0x02020000 0x54000>; - - smp-sysram at 0 { - compatible = "samsung,exynos4210-sysram"; - reg = <0x0 0x1000>; - }; - - smp-sysram at 53000 { - compatible = "samsung,exynos4210-sysram-ns"; - reg = <0x53000 0x1000>; - }; - }; - clock: clock-controller at 10010000 { compatible = "samsung,exynos5410-clock"; reg = <0x10010000 0x30000>;
@@ -194,6 +146,11 @@ }; }; +&mct { + clocks = <&clock CLK_FIN_PLL>, <&clock CLK_MCT>; + clock-names = "fin_pll", "mct"; +}; + &pwm { clocks = <&clock CLK_PWM>; clock-names = "timers";
arch/arm/boot/dts/exynos5420.dtsi +6 -48
79 lines not on this page · raw message
arch/arm/boot/dts/exynos54xx.dtsi new file +68 -0
68 lines not on this page · raw message
Signature · 1 line
2.5.0
Re: [PATCH v2 20/22] ARM: dts: exynos: Move common Exynos5410/542x/5800 nodes to new DTSI
Hello Krzysztof,
Quoted 1 line · Krzysztof Kozlowski
The Exynos5410/542x/5800 are very similar designs. Create new new
s/new new/a new
Quoted 6 lines
DTSI with common nodes to remove DTS duplication. Although currently only MCT and SysRAM are shared but in future more nodes will be added to common file.
The patch should not have functional impact.
A nice way to check this is to diff the disassembled compiled DTBs with and without the patch and making sure that the resulted DTS is the same.
Quoted 2 lines
Signed-off-by Krzysztof Kozlowski <[email protected]>---
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Krzysztof Kozlowski
maintainerRe: [PATCH v2 20/22] ARM: dts: exynos: Move common Exynos5410/542x/5800 nodes to new DTSI
Quoted 11 lines · Javier Martinez Canillas
Hello Krzysztof,
Quoted 1 line · Krzysztof Kozlowski
The Exynos5410/542x/5800 are very similar designs. Create new new
s/new new/a new
Quoted 4 lines
DTSI with common nodes to remove DTS duplication. Although currently only MCT and SysRAM are shared but in future more nodes will be added to common file.
Quoted 5 lines
Quoted 2 lines
The patch should not have functional impact.
A nice way to check this is to diff the disassembled compiled DTBs with and without the patch and making sure that the resulted DTS is the same.
Yes, that is what I've done. Recently there is a tool making that even
easier: dtx_diff.
Best regards,
Krzysztof
Re: [PATCH v2 20/22] ARM: dts: exynos: Move common Exynos5410/542x/5800 nodes to new DTSI
Hello Krzysztof,
Quoted 12 lines · Krzysztof Kozlowski
Quoted 11 lines · Javier Martinez Canillas
Hello Krzysztof,
Quoted 1 line · Krzysztof Kozlowski
The Exynos5410/542x/5800 are very similar designs. Create new new
s/new new/a new
Quoted 4 lines
DTSI with common nodes to remove DTS duplication. Although currently only MCT and SysRAM are shared but in future more nodes will be added to common file.
Quoted 9 lines
Quoted 5 lines
Quoted 2 lines
The patch should not have functional impact.
A nice way to check this is to diff the disassembled compiled DTBs with and without the patch and making sure that the resulted DTS is the same.
Yes, that is what I've done. Recently there is a tool making that even
easier:dtx_diff.
I didn't know we had such a tool in mainline now.
Very useful, thanks a lot for the information.
Quoted 3 lines
Best regards,
Krzysztof
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Krzysztof Kozlowski
maintainerPATCH v2 21/22 ARM: dts: exynos: Add USB to Exynos5410
In reply to Krzysztof KozlowskiMove USB 3.0 DWC and 2.0 EHCI/OHCI nodes from exynos5420.dtsi to exynos54xx.dtsi common for entire family. For Exynos542x/5800 this should not have functional impact but for Exynos5410 this effectively adds USB support.
---
TODO: lack of regulator causes errors:
usb usb4-port1: over-current condition
?
--- arch/arm/boot/dts/exynos5410.dtsi | 39 ++++++++++++ arch/arm/boot/dts/exynos5420.dtsi | 131 ++++++++++++-------------------------- arch/arm/boot/dts/exynos54xx.dtsi | 74 +++++++++++++++++++++ 3 files changed, 152 insertions(+), 92 deletions(-)
arch/arm/boot/dts/exynos5410.dtsi +39 -0
@@ -185,4 +185,43 @@ 3 0 0x07000000 0x20000>; }; +&usbdrd3_0 { + clocks = <&clock CLK_USBD300>; + clock-names = "usbdrd30"; +}; + +&usbdrd_phy0 { + clocks = <&clock CLK_USBD300>, <&clock CLK_SCLK_USBPHY300>; + clock-names = "phy", "ref"; + samsung,pmu-syscon = <&pmu_system_controller>; +}; + +&usbdrd3_1 { + clocks = <&clock CLK_USBD301>; + clock-names = "usbdrd30"; +}; + +&usbdrd_phy1 { + clocks = <&clock CLK_USBD301>, <&clock CLK_SCLK_USBPHY301>; + clock-names = "phy", "ref"; + samsung,pmu-syscon = <&pmu_system_controller>; +}; + +&usbhost1 { + clocks = <&clock CLK_USBH20>; + clock-names = "usbhost"; +}; + +&usbhost2 { + clocks = <&clock CLK_USBH20>; + clock-names = "usbhost"; +}; + +&usb2_phy { + clocks = <&clock CLK_USBH20>, <&clock CLK_SCLK_USBPHY300>; + clock-names = "phy", "ref"; + samsung,sysreg-phandle = <&sysreg_system_controller>; + samsung,pmureg-phandle = <&pmu_system_controller>; +}; + #include "exynos5410-pinctrl.dtsi"
arch/arm/boot/dts/exynos5420.dtsi +39 -92
141 lines not on this page · raw message
arch/arm/boot/dts/exynos54xx.dtsi +74 -0
79 lines not on this page · raw message
Signature · 1 line
2.5.0
Re: [PATCH v2 21/22] ARM: dts: exynos: Add USB to Exynos5410
Hello Krzysztof,
Quoted 7 lines · Krzysztof Kozlowski
Move USB 3.0 DWC and 2.0 EHCI/OHCI nodes from
exynos5420.dtsitoexynos54xx.dtsicommon for entire family. For Exynos542x/5800 this should not have functional impact but for Exynos5410 this effectively adds USB support.Signed-off-by Krzysztof Kozlowski <[email protected]>
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Krzysztof Kozlowski
maintainerPATCH v2 22/22 ARM: dts: exynos: Add initial support for Odroid XU board
In reply to Krzysztof KozlowskiThe Hardkernel's Odroid XU board was first design with big.LITTLE SoC from Samsung: the Exynos5410. Comparing now to more popular Odroid XU3 the differences are:
1. Exynos5410 instead of 5422,
2. DisplayPort,
3. Main PMIC: Maxim 77802 instead of S2MPS11,
4. USB3503+LAN9730 instead of integrated LAN9514,
5. eMMC 4.5 instead of eMMC 5.0,
This patch adds initial support for the XU board with working basic functions, eMMC/SD and USB (including attached ethernet adapter).
--- .../bindings/arm/samsung/samsung-boards.txt | 1 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/exynos5410-odroidxu.dts | 166 +++++++++++++++++++++ 3 files changed, 168 insertions(+) create mode 100644 arch/arm/boot/dts/exynos5410-odroidxu.dts
Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt +1 -0
@@ -47,6 +47,7 @@ Required root node properties: - "hardkernel,odroid-u3" - for Exynos4412-based Hardkernel Odroid U3. - "hardkernel,odroid-x" - for Exynos4412-based Hardkernel Odroid X. - "hardkernel,odroid-x2" - for Exynos4412-based Hardkernel Odroid X2. + - "hardkernel,odroid-xu" - for Exynos5410-based Hardkernel Odroid XU. - "hardkernel,odroid-xu3" - for Exynos5422-based Hardkernel Odroid XU3. - "hardkernel,odroid-xu3-lite" - for Exynos5422-based Hardkernel Odroid XU3 Lite board.
arch/arm/boot/dts/Makefile +1 -0
@@ -134,6 +134,7 @@ dtb-$(CONFIG_ARCH_EXYNOS5) += \ exynos5250-snow-rev5.dtb \ exynos5250-spring.dtb \ exynos5260-xyref5260.dtb \ + exynos5410-odroidxu.dtb \ exynos5410-smdk5410.dtb \ exynos5420-arndale-octa.dtb \ exynos5420-peach-pit.dtb \
arch/arm/boot/dts/exynos5410-odroidxu.dts new file +166 -0
166 lines not on this page · raw message
Signature · 1 line
2.5.0
Re: [PATCH v2 22/22] ARM: dts: exynos: Add initial support for Odroid XU board
Quoted 64 lines · Krzysztof Kozlowski
The Hardkernel's Odroid XU board was first design with big.LITTLE SoC from Samsung: the Exynos5410. Comparing now to more popular Odroid XU3 the differences are:
1. Exynos5410 instead of 5422,
2. DisplayPort,
3. Main PMIC: Maxim 77802 instead of S2MPS11,
4. USB3503+LAN9730 instead of integrated LAN9514,
5. eMMC 4.5 instead of eMMC 5.0,This patch adds initial support for the XU board with working basic functions, eMMC/SD and USB (including attached ethernet adapter).
Signed-off-by Krzysztof Kozlowski <[email protected]>--- .../bindings/arm/samsung/samsung-boards.txt | 1 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/exynos5410-odroidxu.dts | 166 +++++++++++++++++++++ 3 files changed, 168 insertions(+) create mode 100644 arch/arm/boot/dts/exynos5410-odroidxu.dtsDocumentation/devicetree/bindings/arm/samsung/samsung-boards.txt +1
-0@@ -47,6 +47,7 @@ Required root node properties: - "hardkernel,odroid-u3" - for Exynos4412-based Hardkernel Odroid U3. - "hardkernel,odroid-x" - for Exynos4412-based Hardkernel Odroid X. - "hardkernel,odroid-x2" - for Exynos4412-based Hardkernel Odroid X2. + - "hardkernel,odroid-xu" - for Exynos5410-based Hardkernel Odroid XU. - "hardkernel,odroid-xu3" - for Exynos5422-based Hardkernel Odroid XU3. - "hardkernel,odroid-xu3-lite" - for Exynos5422-based Hardkernel Odroid XU3 Lite board.arch/arm/boot/dts/Makefile +1
-0@@ -134,6 +134,7 @@ dtb-$(CONFIG_ARCH_EXYNOS5) += \ exynos5250-snow-rev5.dtb \ exynos5250-spring.dtb \ exynos5260-xyref5260.dtb \ + exynos5410-odroidxu.dtb \ exynos5410-smdk5410.dtb \ exynos5420-arndale-octa.dtb \ exynos5420-peach-pit.dtb \arch/arm/boot/dts/exynos5410-odroidxu.dts new file +14
-0@@ -0,0 +1,166 @@ +/* + * Hardkernel Odroid XU3 board device tree source + * + * Copyright (c) 2013 Samsung Electronics Co., Ltd. + * http://www.samsung.com + * 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 + * published by the Free Software Foundation. + */ + +/dts-v1/; +#include "exynos5410.dtsi"
arch/arm/boot/dts/exynos5410-odroidxu.dts line 24
Quoted 10 lines
arch/arm/boot/dts/exynos5410-odroidxu.dts new file +10
-0+#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/interrupt-controller/irq.h> +#include "exynos54xx-odroidxu-leds.dtsi" + +/ { + model = "Hardkernel Odroid XU"; + compatible = "hardkernel,odroid-xu", "samsung,exynos5410", "samsung,exynos5"; + + memory { + reg = <0x40000000 0x7EA00000>;
lowercase hex please.
With that,
Re: [PATCH v2 22/22] ARM: dts: exynos: Add initial support for Odroid XU board
In reply to Krzysztof KozlowskiHello Krzysztof,
Quoted 9 lines · Krzysztof Kozlowski
The Hardkernel's Odroid XU board was first design with big.LITTLE SoC from Samsung: the Exynos5410. Comparing now to more popular Odroid XU3 the differences are:
1. Exynos5410 instead of 5422,
2. DisplayPort,
3. Main PMIC: Maxim 77802 instead of S2MPS11,
4. USB3503+LAN9730 instead of integrated LAN9514,
5. eMMC 4.5 instead of eMMC 5.0,
Quoted 5 lines
This patch adds initial support for the XU board with working basic functions, eMMC/SD and USB (including attached ethernet adapter).
Signed-off-by Krzysztof Kozlowski <[email protected]>---
This DTS has some TODO's, FIXME's and commented input supplies. Probably this patch should had been an RFC? or you should mention about these in the commit message to understand why are there.
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Krzysztof Kozlowski
maintainerRe: [PATCH v2 22/22] ARM: dts: exynos: Add initial support for Odroid XU board
Quoted 15 lines · Javier Martinez Canillas
Hello Krzysztof,
Quoted 12 lines · Krzysztof Kozlowski
The Hardkernel's Odroid XU board was first design with big.LITTLE SoC from Samsung: the Exynos5410. Comparing now to more popular Odroid XU3 the differences are:
1. Exynos5410 instead of 5422,
2. DisplayPort,
3. Main PMIC: Maxim 77802 instead of S2MPS11,
4. USB3503+LAN9730 instead of integrated LAN9514,
5. eMMC 4.5 instead of eMMC 5.0,This patch adds initial support for the XU board with working basic functions, eMMC/SD and USB (including attached ethernet adapter).
Quoted 6 lines
Quoted 2 lines
Signed-off-by Krzysztof Kozlowski <[email protected]>---
This DTS has some TODO's, FIXME's and commented input supplies. Probably this patch should had been an RFC? or you should mention about these in the commit message to understand why are there.
I have to clean it up or fix these notes. Actually I was quite surprised that board worked fine with this basic setup.
Best regards,
Krzysztof
Quoted 13 lines · Krzysztof Kozlowski
Hi,
Patchset adds necessary clocks, reorganizes existing stuff and finally adds Odroid XU support.
Merging strategy
================
Complicated! The clock dt-bindings and driver changes can go to clock tree. However there are three DTS patches in the middle.
a. This has to go in before adding "fin_pll_new" to clock driver:
- [PATCH v2 03/22] ARM: dts: exynos: Addfin_pllnode for clock driver
Quoted 6 lines
b. This should go in before renaming "
fin_pll_new" back to original name:
- [PATCH v2 05/22] ARM: dts: exynos: Switch MCT node to a newfin_pllclock
- [PATCH v2 06/22] ARM: dts: exynos: Remove old fixed-clock provider on SMDK5410The order of patches in the patchset is really how it should go in to reduce any bisectability glitches.
If you want to just merge them through arm-soc then feel free to add my Acked-by to the clk driver and clock dt-binding ones.
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Hello Krzysztof,
Quoted 6 lines · Krzysztof Kozlowski
Hi,
Patchset adds necessary clocks, reorganizes existing stuff and finally adds Odroid XU support.
Do you have a branch available so I can pull these patches and test in the Exynos5 boards I've access to?
Thanks a lot and best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America
Krzysztof Kozlowski
maintainerQuoted 4 lines · Javier Martinez Canillas
Hello Krzysztof,
Quoted 1 line · Krzysztof Kozlowski
Quoted 8 lines
Quoted 5 lines
Hi,
Patchset adds necessary clocks, reorganizes existing stuff and finally adds Odroid XU support.
Do you have a branch available so I can pull these patches and test in the Exynos5 boards I've access to?
Of course. It sits on my private repo, on Github:
https://github.com/krzk/linux
branch: for-next/odroid-xu-v2
Best regards,
Krzysztof
Hello Krzysztof,
Quoted 11 lines · Krzysztof Kozlowski
Quoted 10 lines · Javier Martinez Canillas
Hello Krzysztof,
Quoted 6 lines · Krzysztof Kozlowski
Hi,
Patchset adds necessary clocks, reorganizes existing stuff and finally adds Odroid XU support.
Quoted 7 lines
Quoted 2 lines
Do you have a branch available so I can pull these patches and test in the Exynos5 boards I've access to?
Of course. It sits on my private repo, on Github:
https://github.com/krzk/linux
branch: for-next/odroid-xu-v2
Thanks for the information, I'll give a try today.
Quoted 3 lines
Best regards,
Krzysztof
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America