Message ID | 1464719945-3417-4-git-send-email-krzk@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Hello Krzysztof, On 05/31/2016 02:39 PM, Krzysztof Kozlowski wrote: > Add nodes for Thermal Management Unit to exynos5410.dtsi. Use the same > compatible as for Exynos5420 however without second base for TRIMINFO > register. > > Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> > --- > arch/arm/boot/dts/exynos5410.dtsi | 55 +++++++++++++++++++++++++++++++++++++++ > 1 file changed, 55 insertions(+) > > diff --git a/arch/arm/boot/dts/exynos5410.dtsi b/arch/arm/boot/dts/exynos5410.dtsi > index 994d16a44fe4..f1effd3f03c4 100644 > --- a/arch/arm/boot/dts/exynos5410.dtsi > +++ b/arch/arm/boot/dts/exynos5410.dtsi > @@ -81,6 +81,42 @@ > #clock-cells = <1>; > }; > > + tmu_cpu0: tmu@10060000 { > + compatible = "samsung,exynos5420-tmu"; > + reg = <0x10060000 0x100>; > + interrupts = <0 65 0>; Please use GIC_SPI instead of 0 on these. > + clocks = <&clock CLK_TMU>; > + clock-names = "tmu_apbif"; > + #include "exynos4412-tmu-sensor-conf.dtsi" > + }; > + > + tmu_cpu1: tmu@10064000 { > + compatible = "samsung,exynos5420-tmu"; > + reg = <0x10064000 0x100>; > + interrupts = <0 183 0>; > + clocks = <&clock CLK_TMU>; > + clock-names = "tmu_apbif"; > + #include "exynos4412-tmu-sensor-conf.dtsi" > + }; > + > + tmu_cpu2: tmu@10068000 { > + compatible = "samsung,exynos5420-tmu"; > + reg = <0x10068000 0x100>; > + interrupts = <0 184 0>; > + clocks = <&clock CLK_TMU>; > + clock-names = "tmu_apbif"; > + #include "exynos4412-tmu-sensor-conf.dtsi" > + }; > + > + tmu_cpu3: tmu@1006c000 { > + compatible = "samsung,exynos5420-tmu"; > + reg = <0x1006c000 0x100>; > + interrupts = <0 185 0>; > + clocks = <&clock CLK_TMU>; > + clock-names = "tmu_apbif"; > + #include "exynos4412-tmu-sensor-conf.dtsi" > + }; > + Exynos5420 has 5 TMU channels and you are adding only 4 so I guess this is another difference with Exynos5410 besides the TRIMINFO register not being misplaced? Probably is worth to mention it in the commit message. Anyway, the patch looks good to me. Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com> Best regards,
On Tue, May 31, 2016 at 9:21 PM, Javier Martinez Canillas <javier@osg.samsung.com> wrote: > Hello Krzysztof, > > On 05/31/2016 02:39 PM, Krzysztof Kozlowski wrote: >> Add nodes for Thermal Management Unit to exynos5410.dtsi. Use the same >> compatible as for Exynos5420 however without second base for TRIMINFO >> register. >> >> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> >> --- >> arch/arm/boot/dts/exynos5410.dtsi | 55 +++++++++++++++++++++++++++++++++++++++ >> 1 file changed, 55 insertions(+) >> >> diff --git a/arch/arm/boot/dts/exynos5410.dtsi b/arch/arm/boot/dts/exynos5410.dtsi >> index 994d16a44fe4..f1effd3f03c4 100644 >> --- a/arch/arm/boot/dts/exynos5410.dtsi >> +++ b/arch/arm/boot/dts/exynos5410.dtsi >> @@ -81,6 +81,42 @@ >> #clock-cells = <1>; >> }; >> >> + tmu_cpu0: tmu@10060000 { >> + compatible = "samsung,exynos5420-tmu"; >> + reg = <0x10060000 0x100>; >> + interrupts = <0 65 0>; > > Please use GIC_SPI instead of 0 on these. ok > >> + clocks = <&clock CLK_TMU>; >> + clock-names = "tmu_apbif"; >> + #include "exynos4412-tmu-sensor-conf.dtsi" >> + }; >> + >> + tmu_cpu1: tmu@10064000 { >> + compatible = "samsung,exynos5420-tmu"; >> + reg = <0x10064000 0x100>; >> + interrupts = <0 183 0>; >> + clocks = <&clock CLK_TMU>; >> + clock-names = "tmu_apbif"; >> + #include "exynos4412-tmu-sensor-conf.dtsi" >> + }; >> + >> + tmu_cpu2: tmu@10068000 { >> + compatible = "samsung,exynos5420-tmu"; >> + reg = <0x10068000 0x100>; >> + interrupts = <0 184 0>; >> + clocks = <&clock CLK_TMU>; >> + clock-names = "tmu_apbif"; >> + #include "exynos4412-tmu-sensor-conf.dtsi" >> + }; >> + >> + tmu_cpu3: tmu@1006c000 { >> + compatible = "samsung,exynos5420-tmu"; >> + reg = <0x1006c000 0x100>; >> + interrupts = <0 185 0>; >> + clocks = <&clock CLK_TMU>; >> + clock-names = "tmu_apbif"; >> + #include "exynos4412-tmu-sensor-conf.dtsi" >> + }; >> + > > Exynos5420 has 5 TMU channels and you are adding only 4 so I guess this > is another difference with Exynos5410 besides the TRIMINFO register not > being misplaced? Probably is worth to mention it in the commit message. Yes, indeed there is no GPU thermal zone. I'll mention it. Best regards, Krzysztof -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/arch/arm/boot/dts/exynos5410.dtsi b/arch/arm/boot/dts/exynos5410.dtsi index 994d16a44fe4..f1effd3f03c4 100644 --- a/arch/arm/boot/dts/exynos5410.dtsi +++ b/arch/arm/boot/dts/exynos5410.dtsi @@ -81,6 +81,42 @@ #clock-cells = <1>; }; + tmu_cpu0: tmu@10060000 { + compatible = "samsung,exynos5420-tmu"; + reg = <0x10060000 0x100>; + interrupts = <0 65 0>; + clocks = <&clock CLK_TMU>; + clock-names = "tmu_apbif"; + #include "exynos4412-tmu-sensor-conf.dtsi" + }; + + tmu_cpu1: tmu@10064000 { + compatible = "samsung,exynos5420-tmu"; + reg = <0x10064000 0x100>; + interrupts = <0 183 0>; + clocks = <&clock CLK_TMU>; + clock-names = "tmu_apbif"; + #include "exynos4412-tmu-sensor-conf.dtsi" + }; + + tmu_cpu2: tmu@10068000 { + compatible = "samsung,exynos5420-tmu"; + reg = <0x10068000 0x100>; + interrupts = <0 184 0>; + clocks = <&clock CLK_TMU>; + clock-names = "tmu_apbif"; + #include "exynos4412-tmu-sensor-conf.dtsi" + }; + + tmu_cpu3: tmu@1006c000 { + compatible = "samsung,exynos5420-tmu"; + reg = <0x1006c000 0x100>; + interrupts = <0 185 0>; + clocks = <&clock CLK_TMU>; + clock-names = "tmu_apbif"; + #include "exynos4412-tmu-sensor-conf.dtsi" + }; + mmc_0: mmc@12200000 { compatible = "samsung,exynos5250-dw-mshc"; reg = <0x12200000 0x1000>; @@ -147,6 +183,25 @@ interrupts = <0 47 0>; }; }; + + thermal-zones { + cpu0_thermal: cpu0-thermal { + thermal-sensors = <&tmu_cpu0>; + #include "exynos5420-trip-points.dtsi" + }; + cpu1_thermal: cpu1-thermal { + thermal-sensors = <&tmu_cpu1>; + #include "exynos5420-trip-points.dtsi" + }; + cpu2_thermal: cpu2-thermal { + thermal-sensors = <&tmu_cpu2>; + #include "exynos5420-trip-points.dtsi" + }; + cpu3_thermal: cpu3-thermal { + thermal-sensors = <&tmu_cpu3>; + #include "exynos5420-trip-points.dtsi" + }; + }; }; &i2c_0 {
Add nodes for Thermal Management Unit to exynos5410.dtsi. Use the same compatible as for Exynos5420 however without second base for TRIMINFO register. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> --- arch/arm/boot/dts/exynos5410.dtsi | 55 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+)