Add Exynos5800 support
Subsystems (5)
v2 cover Add Exynos5800 support
Exynos5800 is a derivative of Exynos5420 with higher clock speeds and most other IP blocks remaining the same except for a few.
This patchset is based on Kukjin's for-next branch and Tomasz's samsung-next branch containing Shaik's clock cleanup series for 5420.
Changes from v1
--------------
- Rebased on Shaik's clock consolidation for 5420
- Addressed review comments from Tomasz
Alim Akhtar (1):
clk: exynos5420: Add 5800 specific clocks
Arun Kumar K (2):
ARM: dts: Add Exynos5800 dt file
ARM: dts: Add peach-pi board support
.../devicetree/bindings/clock/exynos5420-clock.txt | 3 +- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/exynos5800-peach-pi.dts | 144 +++++++++ arch/arm/boot/dts/exynos5800.dtsi | 24 ++ drivers/clk/samsung/clk-exynos5420.c | 306 ++++++++++++++++---- include/dt-bindings/clock/exynos5420.h | 4 + 6 files changed, 428 insertions(+), 56 deletions(-) create mode 100644 arch/arm/boot/dts/exynos5800-peach-pi.dts create mode 100644 arch/arm/boot/dts/exynos5800.dtsi
Signature · 1 line
1.7.9.5
PATCH v2 1/3 clk: exynos5420: Add 5800 specific clocks
From: Alim Akhtar <[email protected]>
Exynos5800 clock structure is mostly similar to 5420 with only a small delta changes. So the 5420 clock file is re-used for 5800 also. The common clocks for both are seggreagated and few clocks which are different for both are separately initialized.
---
Changes from v1
---------------
- Rebased on clock cleanup by Shaik
- Added 5800 also to save / restore handling
- Extra 5800 clocks added as now they have common terminating gates with 5420 (Added by Shaik's series)
--- .../devicetree/bindings/clock/exynos5420-clock.txt | 3 +- drivers/clk/samsung/clk-exynos5420.c | 306 ++++++++++++++++---- include/dt-bindings/clock/exynos5420.h | 4 + 3 files changed, 258 insertions(+), 55 deletions(-)
Documentation/devicetree/bindings/clock/exynos5420-clock.txt +2 -1
@@ -1,12 +1,13 @@ * Samsung Exynos5420 Clock Controller The Exynos5420 clock controller generates and supplies clock to various -controllers within the Exynos5420 SoC. +controllers within the Exynos5420 SoC and for the Exynos5800 SoC. Required Properties: - compatible: should be one of the following. - "samsung,exynos5420-clock" - controller compatible with Exynos5420 SoC. + - "samsung,exynos5800-clock" - controller compatible with Exynos5800 SoC. - reg: physical base address of the controller and length of memory mapped region.
drivers/clk/samsung/clk-exynos5420.c +252 -54
481 lines not on this page · raw message
include/dt-bindings/clock/exynos5420.h +4 -0
@@ -193,6 +193,10 @@#define CLK_SCLK_ISP_SENSOR0 514#define CLK_SCLK_ISP_SENSOR1 515#define CLK_SCLK_ISP_SENSOR2 516 +#define CLK_ACLK432_SCALER 517 +#define CLK_ACLK432_CAM 518 +#define CLK_ACLK_FL1550_CAM 519 +#define CLK_ACLK550_CAM 520/* mux clocks */ #define CLK_MOUT_HDMI 640
Signature · 1 line
1.7.9.5
Re: [PATCH v2 1/3] clk: exynos5420: Add 5800 specific clocks
Hi Arun, Alim,
Quoted 7 lines · Arun Kumar K
From: Alim Akhtar <[email protected]>
Exynos5800 clock structure is mostly similar to 5420 with only a small delta changes. So the 5420 clock file is re-used for 5800 also. The common clocks for both are seggreagated and few clocks which are different for both are separately initialized.
Quoted 6 lines
Signed-off-by Alim Akhtar <[email protected]>Signed-off-by Arun Kumar K <[email protected]>---
Changes from v1
---------------
- Rebased on clock cleanup by Shaik
This still isn't using correct base and won't compile with current sources, even if it applies fine. This is partially my fault as we had a lot of issues with cross-tree dependencies and it was not clear what to base clock patches on, but I'll try to keep samsung-clk-next branch of samsung-clk [1] tree up to date, so it should be safe to base on.
[1] git://git.kernel.org/pub/scm/linux/kernel/git/tfiga/samsung-clk.git
Best regards,
Tomasz
Re: [PATCH v2 1/3] clk: exynos5420: Add 5800 specific clocks
Hi Tomasz,
Quoted 17 lines · Tomasz Figa
Hi Arun, Alim,
Quoted 7 lines · Arun Kumar K
From: Alim Akhtar <[email protected]>
Exynos5800 clock structure is mostly similar to 5420 with only a small delta changes. So the 5420 clock file is re-used for 5800 also. The common clocks for both are seggreagated and few clocks which are different for both are separately initialized.
Quoted 6 lines
Signed-off-by Alim Akhtar <[email protected]>Signed-off-by Arun Kumar K <[email protected]>---
Changes from v1
---------------
- Rebased on clock cleanup by Shaik
Quoted 7 lines
This still isn't using correct base and won't compile with current sources, even if it applies fine. This is partially my fault as we had a lot of issues with cross-tree dependencies and it was not clear what to base clock patches on, but I'll try to keep samsung-clk-next branch of samsung-clk [1] tree up to date, so it should be safe to base on.
[1]
git://git.kernel.org/pub/scm/linux/kernel/git/tfiga/samsung-clk.git
Ok I will rebase the 5800 clock patch on this branch and resend it.
Thanks & Regards
Arun
Quoted 3 lines
Best regards,
Tomasz
PATCH v2 2/3 ARM: dts: Add Exynos5800 dt file
In reply to Arun Kumar KMost of the nodes of exynos5420 remains same for exynos5800. So the exynos5420.dtsi is included in exynos5800 and the changed node properties will be overriden.
---
No changes from v1
--- arch/arm/boot/dts/exynos5800.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 arch/arm/boot/dts/exynos5800.dtsi
arch/arm/boot/dts/exynos5800.dtsi new file +24 -0
@@ -0,0 +1,24 @@ +/* + * SAMSUNG EXYNOS5800 SoC device tree source + * + * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * http://www.samsung.com + * + * SAMSUNG EXYNOS5800 SoC device nodes are listed in this file. + * EXYNOS5800 based board files can include this file and provide + * values for board specfic bindings. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include "exynos5420.dtsi" + +/ { + compatible = "samsung,exynos5800", "samsung,exynos5"; +}; + +&clock { + compatible = "samsung,exynos5800-clock"; +};
Signature · 1 line
1.7.9.5
Kukjin Kim
AppliedRe: [PATCH v2 2/3] ARM: dts: Add Exynos5800 dt file
Quoted 7 lines · Arun Kumar K
Most of the nodes of exynos5420 remains same for exynos5800. So the
exynos5420.dtsiis included in exynos5800 and the changed node properties will be overriden.Signed-off-by Arun Kumar K<[email protected]>Reviewed-by Tomasz Figa<[email protected]>Acked-by Olof Johansson<[email protected]>
Quoted 7 lines
---
No changes from v1--- arch/arm/boot/dts/exynos5800.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)create mode 100644
arch/arm/boot/dts/exynos5800.dtsi
Applied, thanks.
- Kukjin
PATCH v2 3/3 ARM: dts: Add peach-pi board support
In reply to Arun Kumar KAdds support for google peach-pi board having the
Exynos5800 SoC.
---
Changes from v1
- Updated memory node with a safe size of 2GB
--- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/exynos5800-peach-pi.dts | 144 +++++++++++++++++++++++++++++ 2 files changed, 146 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/exynos5800-peach-pi.dts
arch/arm/boot/dts/Makefile +2 -1
@@ -77,7 +77,8 @@ dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210-origen.dtb \ exynos5420-peach-pit.dtb \ exynos5420-smdk5420.dtb \ exynos5440-sd5v1.dtb \ - exynos5440-ssdk5440.dtb + exynos5440-ssdk5440.dtb \ + exynos5800-peach-pi.dtb dtb-$(CONFIG_ARCH_HI3xxx) += hi3620-hi4511.dtb dtb-$(CONFIG_ARCH_HIGHBANK) += highbank.dtb \ ecx-2000.dtb
arch/arm/boot/dts/exynos5800-peach-pi.dts new file +144 -0
144 lines not on this page · raw message
Signature · 1 line
1.7.9.5
Kukjin Kim
AppliedRe: [PATCH v2 3/3] ARM: dts: Add peach-pi board support
Quoted 6 lines · Arun Kumar K
Adds support for google peach-pi board having the
Exynos5800 SoC.Signed-off-by Arun Kumar K<[email protected]>Signed-off-by Doug Anderson<[email protected]>Reviewed-by Tomasz Figa<[email protected]>
Quoted 9 lines
---
Changes from v1
- Updated memory node with a safe size of 2GB--- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/exynos5800-peach-pi.dts | 144 +++++++++++++++++++++++++++++ 2 files changed, 146 insertions(+), 1 deletion(-)create mode 100644
arch/arm/boot/dts/exynos5800-peach-pi.dts
Applied, thanks.
- Kukjin