ARM: exynos: Enable TMU support in exynos platforms
cover ARM: exynos: Enable TMU support in exynos platforms
These TMU enablement patches are needed for exynos4 and exynos5 TMU driver patches sent earlier. The link for those are
http://www.spinics.net/lists/lm-sensors/msg35858.html.
Also patch 1 depends on combiner dt node patch sent by Thomas Abraham.
(http://www.spinics.net/lists/arm-kernel/msg184129.html)
This patchset is based Samsung Maintainer's tree,git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git for-next
Amit Daniel Kachhap (2):
ARM: exynos4: Add devicetree node for TMU driver
ARM: exynos5: Add devicetree node for TMU driver
arch/arm/boot/dts/exynos4210.dtsi | 7 +++++++ arch/arm/boot/dts/exynos5250.dtsi | 6 ++++++ arch/arm/mach-exynos/clock-exynos4.c | 5 +++++ arch/arm/mach-exynos/clock-exynos5.c | 5 +++++ arch/arm/mach-exynos/include/mach/irqs.h | 3 +++ arch/arm/mach-exynos/include/mach/map.h | 3 +++ arch/arm/mach-exynos/mach-exynos4-dt.c | 2 ++ arch/arm/mach-exynos/mach-exynos5-dt.c | 2 ++ 8 files changed, 33 insertions(+), 0 deletions(-)
PATCH 1/2 ARM: exynos4: Add devicetree node for TMU driver
This patch adds necessary source definations needed for TMU driver and adds devicetree for exynos4.
--- arch/arm/boot/dts/exynos4210.dtsi | 7 +++++++ arch/arm/mach-exynos/clock-exynos4.c | 5 +++++ arch/arm/mach-exynos/include/mach/irqs.h | 3 +++ arch/arm/mach-exynos/include/mach/map.h | 2 ++ arch/arm/mach-exynos/mach-exynos4-dt.c | 2 ++ 5 files changed, 19 insertions(+), 0 deletions(-)
arch/arm/boot/dts/exynos4210.dtsi +7 -0
@@ -158,6 +158,13 @@ interrupts = <0 65 0>; }; + tmu at 100C0000 { + compatible = "samsung,exynos4-tmu"; + interrupt-parent = <&combiner>; + reg = <0x100C0000 0x100>; + interrupts = <2 4>; + }; + amba { #address-cells = <1>; #size-cells = <1>;
arch/arm/mach-exynos/clock-exynos4.c +5 -0
@@ -564,6 +564,11 @@ static struct clk exynos4_init_clocks_off[] = { .enable = exynos4_clk_ip_peril_ctrl, .ctrlbit = (1 << 15), }, { + .name = "tmu_apbif", + .enable = exynos4_clk_ip_perir_ctrl, + .ctrlbit = (1 << 17), + }, { + .name = "keypad", .enable = exynos4_clk_ip_perir_ctrl, .ctrlbit = (1 << 16),
arch/arm/mach-exynos/include/mach/irqs.h +3 -0
@@ -136,6 +136,9 @@#define EXYNOS4_IRQ_TSI IRQ_SPI(115)#define EXYNOS4_IRQ_SATA IRQ_SPI(116) +#define EXYNOS4_IRQ_TMU_TRIG0 COMBINER_IRQ(2, 4) +#define EXYNOS4_IRQ_TMU_TRIG1 COMBINER_IRQ(3, 4) +#define EXYNOS4_IRQ_SYSMMU_MDMA0_0 COMBINER_IRQ(4, 0)#define EXYNOS4_IRQ_SYSMMU_SSS_0 COMBINER_IRQ(4, 1)#define EXYNOS4_IRQ_SYSMMU_FIMC0_0 COMBINER_IRQ(4, 2)
arch/arm/mach-exynos/include/mach/map.h +2 -0
@@ -88,6 +88,8 @@#define EXYNOS4_PA_TWD 0x10500600#define EXYNOS4_PA_L2CC 0x10502000 +#define EXYNOS4_PA_TMU 0x100C0000 +#define EXYNOS4_PA_MDMA0 0x10810000#define EXYNOS4_PA_MDMA1 0x12840000#define EXYNOS4_PA_PDMA0 0x12680000
arch/arm/mach-exynos/mach-exynos4-dt.c +2 -0
@@ -57,6 +57,8 @@ static const struct of_dev_auxdata exynos4210_auxdata_lookup[] __initconst = { "s3c2440-i2c.0", NULL),OF_DEV_AUXDATA ("arm,pl330" ,EXYNOS4_PA_PDMA0 ,"dma-pl330.0" ,NULL ),OF_DEV_AUXDATA ("arm,pl330" ,EXYNOS4_PA_PDMA1 ,"dma-pl330.1" ,NULL ), +OF_DEV_AUXDATA ("samsung,exynos4-tmu" ,EXYNOS4_PA_TMU , + "exynos-tmu", NULL), {}, };
Signature · 1 line
1.7.1
PATCH 2/2 ARM: exynos5: Add devicetree node for TMU driver
In reply to Amit Daniel KachhapThis patch adds necessary source definations needed for TMU driver and adds devicetree for exynos5.
--- arch/arm/boot/dts/exynos5250.dtsi | 6 ++++++ arch/arm/mach-exynos/clock-exynos5.c | 5 +++++ arch/arm/mach-exynos/include/mach/map.h | 1 + arch/arm/mach-exynos/mach-exynos5-dt.c | 2 ++ 4 files changed, 14 insertions(+), 0 deletions(-)
arch/arm/boot/dts/exynos5250.dtsi +6 -0
@@ -58,6 +58,12 @@ interrupts = <0 43 0>, <0 44 0>; }; + tmu at 10060000 { + compatible = "samsung,exynos5-tmu"; + reg = <0x10060000 0x100>; + interrupts = <0 65 0>; + }; + serial at 12C00000 { compatible = "samsung,exynos4210-uart"; reg = <0x12C00000 0x100>;
arch/arm/mach-exynos/clock-exynos5.c +5 -0
@@ -554,6 +554,11 @@ static struct clk exynos5_init_clocks_off[] = { .enable = exynos5_clk_ip_peric_ctrl, .ctrlbit = (1 << 24), }, { + .name = "tmu_apbif", + .parent = &exynos5_clk_aclk_66.clk, + .enable = exynos5_clk_ip_peris_ctrl, + .ctrlbit = (1 << 21), + }, { .name = "rtc", .parent = &exynos5_clk_aclk_66.clk, .enable = exynos5_clk_ip_peris_ctrl,
arch/arm/mach-exynos/include/mach/map.h +1 -0
@@ -89,6 +89,7 @@#define EXYNOS4_PA_L2CC 0x10502000#define EXYNOS4_PA_TMU 0x100C0000 +#define EXYNOS5_PA_TMU 0x10060000#define EXYNOS4_PA_MDMA0 0x10810000#define EXYNOS4_PA_MDMA1 0x12840000
arch/arm/mach-exynos/mach-exynos5-dt.c +2 -0
@@ -50,6 +50,8 @@ static const struct of_dev_auxdata exynos5250_auxdata_lookup[] __initconst = {OF_DEV_AUXDATA ("arm,pl330" ,EXYNOS5_PA_PDMA0 ,"dma-pl330.0" ,NULL ),OF_DEV_AUXDATA ("arm,pl330" ,EXYNOS5_PA_PDMA1 ,"dma-pl330.1" ,NULL ),OF_DEV_AUXDATA ("arm,pl330" ,EXYNOS5_PA_MDMA1 ,"dma-pl330.2" ,NULL ), +OF_DEV_AUXDATA ("samsung,exynos5-tmu" ,EXYNOS5_PA_TMU , + "exynos-tmu", NULL), {}, };
Signature · 1 line
1.7.1
cover ARM: exynos: Enable TMU support in exynos platforms
In reply to Amit Daniel KachhapQuoted 5 lines · Amit Daniel Kachhap
These TMU enablement patches are needed for exynos4 and exynos5 TMU driver patches sent earlier. The link for those are
http://www.spinics.net/lists/lm-sensors/msg35858.html.
How was going on above patches? I can't see them you said in linux-next now, it means if I apply this series in my tree, problem will be happened :(
Note1: I've seen Rafael's updating exynos4_tmu patch which is using struct dev_pm_ops for pm and applied by Guenter.
Note2: would be helpful if you could do adding me in Cc of exynos tmu patches...
Quoted 3 lines
Also patch 1 depends on combiner dt node patch sent by Thomas Abraham.
(http://www.spinics.net/lists/arm-kernel/msg184129.html)
Already in my tree.
Quoted 4 lines
This patchset is based Samsung Maintainer's tree,
git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.gitfor- next
OK.
Quoted 4 lines
Amit Daniel Kachhap (2):
ARM: exynos4: Add devicetree node for TMU driver
ARM: exynos5: Add devicetree node for TMU driver
Quoted 9 lines
arch/arm/boot/dts/exynos4210.dtsi | 7 +++++++ arch/arm/boot/dts/exynos5250.dtsi | 6 ++++++ arch/arm/mach-exynos/clock-exynos4.c | 5 +++++ arch/arm/mach-exynos/clock-exynos5.c | 5 +++++ arch/arm/mach-exynos/include/mach/irqs.h | 3 +++ arch/arm/mach-exynos/include/mach/map.h | 3 +++ arch/arm/mach-exynos/mach-exynos4-dt.c | 2 ++ arch/arm/mach-exynos/mach-exynos5-dt.c | 2 ++ 8 files changed, 33 insertions(+), 0 deletions(-)
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
cover ARM: exynos: Enable TMU support in exynos platforms
Quoted 6 lines · Kukjin Kim
Quoted 5 lines · Amit Daniel Kachhap
These TMU enablement patches are needed for exynos4 and exynos5 TMU driver patches sent earlier. The link for those are
http://www.spinics.net/lists/lm-sensors/msg35858.html.
Quoted 6 lines
How was going on above patches? I can't see them you said in linux-next now, it means if I apply this series in my tree, problem will be happened :(
Note1: I've seen Rafael's updating
exynos4_tmupatch which is using structdev_pm_opsfor pm and applied by Guenter.
If that is in the way, I can drop it, to be applied after the move. Let me know. There is now another patch pending, to convert the driver to use devm_ functions. Please let me know what you want me to do with it.
Quoted 3 lines
Note2: would be helpful if you could do adding me in Cc of exynos tmu patches...
If you want to be copied, it might make sense to add yourself as maintainer for this file. Otherwise you can not expect people to know.
Thanks,
Guenter
cover ARM: exynos: Enable TMU support in exynos platforms
Quoted 10 lines · Guenter Roeck
Quoted 9 lines · Kukjin Kim
Quoted 5 lines · Amit Daniel Kachhap
These TMU enablement patches are needed for exynos4 and exynos5 TMU driver patches sent earlier. The link for those are
http://www.spinics.net/lists/lm-sensors/msg35858.html.How was going on above patches? I can't see them you said in linux-next now, it means if I apply this series in my tree, problem will be happened :(
Quoted 7 lines
Quoted 3 lines
Note1: I've seen Rafael's updating
exynos4_tmupatch which is using structdev_pm_opsfor pm and applied by Guenter.If that is in the way, I can drop it, to be applied after the move. Let me know. There is now another patch pending, to convert the driver to use
devm_functions. Please let me know what you want me to do with it.
Hi Guenter,
I rebased my V5 patch series with hwmon-next branch so Rafael's pm changes are already included. Regarding the devm_ patch by sachin please hold it.
Thanks,
Amit D
Quoted 12 lines
Quoted 3 lines
Note2: would be helpful if you could do adding me in Cc of exynos tmu patches...
If you want to be copied, it might make sense to add yourself as maintainer for this file. Otherwise you can not expect people to know.
Thanks,
Guenter
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
cover ARM: exynos: Enable TMU support in exynos platforms
Hi Amit,
Quoted 18 lines · amit kachhap
Quoted 10 lines · Guenter Roeck
Quoted 9 lines · Kukjin Kim
Quoted 5 lines · Amit Daniel Kachhap
These TMU enablement patches are needed for exynos4 and exynos5 TMU driver patches sent earlier. The link for those are
http://www.spinics.net/lists/lm-sensors/msg35858.html.How was going on above patches? I can't see them you said in linux-next now, it means if I apply this series in my tree, problem will be happened :(
Quoted 7 lines
Quoted 3 lines
Note1: I've seen Rafael's updating
exynos4_tmupatch which is using structdev_pm_opsfor pm and applied by Guenter.If that is in the way, I can drop it, to be applied after the move. Let me know. There is now another patch pending, to convert the driver to use
devm_functions. Please let me know what you want me to do with it.
Quoted 5 lines
Hi Guenter,
I rebased my V5 patch series with hwmon-next branch so Rafael's pm changes are already included. Regarding the
devm_patch by sachin please hold it.
Guenter has already sent the pull request to Linus for v3.6 [1]. That does not include your patches. I do not understand why you want to hold back my patch when you can rebase your series on top of it.
[1] https://lkml.org/lkml/2012/7/23/414
Quoted 19 lines
Thanks,
Amit DQuoted 6 lines
Quoted 3 lines
Note2: would be helpful if you could do adding me in Cc of exynos tmu patches...
If you want to be copied, it might make sense to add yourself as maintainer for this file. Otherwise you can not expect people to know.
Quoted 6 lines
Thanks,
Guenter
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
With warm regards, Sachin
cover ARM: exynos: Enable TMU support in exynos platforms
Quoted 27 lines · Sachin Kamat
Hi Amit,
Quoted 18 lines · amit kachhap
Quoted 10 lines · Guenter Roeck
Quoted 9 lines · Kukjin Kim
Quoted 5 lines · Amit Daniel Kachhap
These TMU enablement patches are needed for exynos4 and exynos5 TMU driver patches sent earlier. The link for those are
http://www.spinics.net/lists/lm-sensors/msg35858.html.How was going on above patches? I can't see them you said in linux-next now, it means if I apply this series in my tree, problem will be happened :(
Quoted 7 lines
Quoted 3 lines
Note1: I've seen Rafael's updating
exynos4_tmupatch which is using structdev_pm_opsfor pm and applied by Guenter.If that is in the way, I can drop it, to be applied after the move. Let me know. There is now another patch pending, to convert the driver to use
devm_functions. Please let me know what you want me to do with it.Quoted 5 lines
Hi Guenter,
I rebased my V5 patch series with hwmon-next branch so Rafael's pm changes are already included. Regarding the
devm_patch by sachin please hold it.
Quoted 6 lines
Guenter has already sent the pull request to Linus for v3.6 [1]. That does not include your patches. I do not understand why you want to hold back my patch when you can rebase your series on top of it.
Linus doesn't like rebases, especially not from one tree to another. As it is, it may even be that he rejects my pull request because I rebased to 3.5 before sending the pull request to him (I'll definitely not do that again).
In addition, it may well be that some of your changes no longer apply after the driver moved to its new location. So it is overall safer to move the driver first, and convert it to devm_ functions afterwards.
If anything, I should not have applied Rafael's patch to the driver either.
Guenter
cover ARM: exynos: Enable TMU support in exynos platforms
Quoted 39 lines · Guenter Roeck
Quoted 27 lines · Sachin Kamat
Hi Amit,
Quoted 18 lines · amit kachhap
Quoted 10 lines · Guenter Roeck
Quoted 9 lines · Kukjin Kim
Quoted 5 lines · Amit Daniel Kachhap
These TMU enablement patches are needed for exynos4 and exynos5 TMU driver patches sent earlier. The link for those are
http://www.spinics.net/lists/lm-sensors/msg35858.html.How was going on above patches? I can't see them you said in linux-next now, it means if I apply this series in my tree, problem will be happened :(
Quoted 7 lines
Quoted 3 lines
Note1: I've seen Rafael's updating
exynos4_tmupatch which is using structdev_pm_opsfor pm and applied by Guenter.If that is in the way, I can drop it, to be applied after the move. Let me know. There is now another patch pending, to convert the driver to use
devm_functions. Please let me know what you want me to do with it.Quoted 5 lines
Hi Guenter,
I rebased my V5 patch series with hwmon-next branch so Rafael's pm changes are already included. Regarding the
devm_patch by sachin please hold it.Quoted 6 lines
Guenter has already sent the pull request to Linus for v3.6 [1]. That does not include your patches. I do not understand why you want to hold back my patch when you can rebase your series on top of it.
Linus doesn't like rebases, especially not from one tree to another. As it is, it may even be that he rejects my pull request because I rebased to 3.5 before sending the pull request to him (I'll definitely not do that again).
Quoted 5 lines
In addition, it may well be that some of your changes no longer apply after the driver moved to its new location. So it is overall safer to move the driver first, and convert it to
devm_functions afterwards.If anything, I should not have applied Rafael's patch to the driver either.
Well, it looks like I sent it at a wrong time. Sorry about that.
Rafael
cover ARM: exynos: Enable TMU support in exynos platforms
On Tue, Jul 24, 2012 at 09:53:11PM +0200, Rafael J. Wysocki wrote:
[ ... ]
Quoted 4 lines
Quoted 1 line
If anything, I should not have applied Rafael's patch to the driver either.
Well, it looks like I sent it at a wrong time. Sorry about that.
My fault, not yours.
Guenter
cover ARM: exynos: Enable TMU support in exynos platforms
In reply to Kukjin KimQuoted 8 lines · Kukjin Kim
Quoted 5 lines · Amit Daniel Kachhap
These TMU enablement patches are needed for exynos4 and exynos5 TMU driver patches sent earlier. The link for those are
http://www.spinics.net/lists/lm-sensors/msg35858.html.How was going on above patches? I can't see them you said in linux-next now, it means if I apply this series in my tree, problem will be happened :(
Well, the above patches were accepted by Len for 3.5 merge but could not done because of some last minute pull issue. I hope it will go through in this merge window. I thought it is better to get the enablement patches also in mainline together.
Quoted 3 lines
Note1: I've seen Rafael's updating
exynos4_tmupatch which is using structdev_pm_opsfor pm and applied by Guenter.
I have rebased the V5 with hwmon-next changes. So this change is already included.
Quoted 3 lines
Note2: would be helpful if you could do adding me in Cc of exynos tmu patches...
Yes sure.
Quoted 38 lines
Quoted 4 lines
Also patch 1 depends on combiner dt node patch sent by Thomas Abraham.
(http://www.spinics.net/lists/arm-kernel/msg184129.html)Already in my tree.
Quoted 4 lines
This patchset is based Samsung Maintainer's tree,
git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.gitfor- nextOK.
Quoted 4 lines
Amit Daniel Kachhap (2):
ARM: exynos4: Add devicetree node for TMU driver
ARM: exynos5: Add devicetree node for TMU driverQuoted 9 lines
arch/arm/boot/dts/exynos4210.dtsi | 7 +++++++ arch/arm/boot/dts/exynos5250.dtsi | 6 ++++++ arch/arm/mach-exynos/clock-exynos4.c | 5 +++++ arch/arm/mach-exynos/clock-exynos5.c | 5 +++++ arch/arm/mach-exynos/include/mach/irqs.h | 3 +++ arch/arm/mach-exynos/include/mach/map.h | 3 +++ arch/arm/mach-exynos/mach-exynos4-dt.c | 2 ++ arch/arm/mach-exynos/mach-exynos5-dt.c | 2 ++ 8 files changed, 33 insertions(+), 0 deletions(-)Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
cover ARM: exynos: Enable TMU support in exynos platforms
In reply to Kukjin KimQuoted 8 lines · Kukjin Kim
Quoted 5 lines · Amit Daniel Kachhap
These TMU enablement patches are needed for exynos4 and exynos5 TMU driver patches sent earlier. The link for those are
http://www.spinics.net/lists/lm-sensors/msg35858.html.How was going on above patches? I can't see them you said in linux-next now, it means if I apply this series in my tree, problem will be happened :(
The TMU driver patches have appeared in linux-next. If it is not late please accept these enablement patches.
Quoted 44 lines
Note1: I've seen Rafael's updating
exynos4_tmupatch which is using structdev_pm_opsfor pm and applied by Guenter.Note2: would be helpful if you could do adding me in Cc of exynos tmu patches...
Quoted 3 lines
Also patch 1 depends on combiner dt node patch sent by Thomas Abraham.
(http://www.spinics.net/lists/arm-kernel/msg184129.html)Already in my tree.
Quoted 4 lines
This patchset is based Samsung Maintainer's tree,
git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.gitfor- nextOK.
Quoted 4 lines
Amit Daniel Kachhap (2):
ARM: exynos4: Add devicetree node for TMU driver
ARM: exynos5: Add devicetree node for TMU driverQuoted 9 lines
arch/arm/boot/dts/exynos4210.dtsi | 7 +++++++ arch/arm/boot/dts/exynos5250.dtsi | 6 ++++++ arch/arm/mach-exynos/clock-exynos4.c | 5 +++++ arch/arm/mach-exynos/clock-exynos5.c | 5 +++++ arch/arm/mach-exynos/include/mach/irqs.h | 3 +++ arch/arm/mach-exynos/include/mach/map.h | 3 +++ arch/arm/mach-exynos/mach-exynos4-dt.c | 2 ++ arch/arm/mach-exynos/mach-exynos5-dt.c | 2 ++ 8 files changed, 33 insertions(+), 0 deletions(-)Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html