aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>2014-12-30 15:21:45 -0500
committerSimon Horman <horms+renesas@verge.net.au>2015-02-23 16:30:58 -0500
commit3453ca9e4f51a0e6865d303f4e428cb6f630594f (patch)
treeb33487adb0875cbc03ee7d2c27e1e1367c614392
parentae65a8ae4c25c7ea01204c9d033cd47da3000cf8 (diff)
ARM: shmobile: r8a7790: add ADSP clocks
Add the ADSP clocks to the CPG and MSTP5 nodes of the R8A7790 device tree. Based on the original patch by Konstantin Kozhevnikov <konstantin.kozhevnikov@cogentembedded.com>. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r--arch/arm/boot/dts/r8a7790.dtsi11
-rw-r--r--include/dt-bindings/clock/r8a7790-clock.h2
2 files changed, 9 insertions, 4 deletions
diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi
index cd7fc05f5e99..c6c0a0c8f1be 100644
--- a/arch/arm/boot/dts/r8a7790.dtsi
+++ b/arch/arm/boot/dts/r8a7790.dtsi
@@ -885,7 +885,7 @@
885 #clock-cells = <1>; 885 #clock-cells = <1>;
886 clock-output-names = "main", "pll0", "pll1", "pll3", 886 clock-output-names = "main", "pll0", "pll1", "pll3",
887 "lb", "qspi", "sdh", "sd0", "sd1", 887 "lb", "qspi", "sdh", "sd0", "sd1",
888 "z", "rcan"; 888 "z", "rcan", "adsp";
889 }; 889 };
890 890
891 /* Variable factor clocks */ 891 /* Variable factor clocks */
@@ -1159,13 +1159,16 @@
1159 mstp5_clks: mstp5_clks@e6150144 { 1159 mstp5_clks: mstp5_clks@e6150144 {
1160 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks"; 1160 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1161 reg = <0 0xe6150144 0 4>, <0 0xe615003c 0 4>; 1161 reg = <0 0xe6150144 0 4>, <0 0xe615003c 0 4>;
1162 clocks = <&hp_clk>, <&hp_clk>, <&extal_clk>, <&p_clk>; 1162 clocks = <&hp_clk>, <&hp_clk>, <&cpg_clocks R8A7790_CLK_ADSP>,
1163 <&extal_clk>, <&p_clk>;
1163 #clock-cells = <1>; 1164 #clock-cells = <1>;
1164 clock-indices = < 1165 clock-indices = <
1165 R8A7790_CLK_AUDIO_DMAC0 R8A7790_CLK_AUDIO_DMAC1 1166 R8A7790_CLK_AUDIO_DMAC0 R8A7790_CLK_AUDIO_DMAC1
1166 R8A7790_CLK_THERMAL R8A7790_CLK_PWM 1167 R8A7790_CLK_ADSP_MOD R8A7790_CLK_THERMAL
1168 R8A7790_CLK_PWM
1167 >; 1169 >;
1168 clock-output-names = "audmac0", "audmac1", "thermal", "pwm"; 1170 clock-output-names = "audmac0", "audmac1", "adsp_mod",
1171 "thermal", "pwm";
1169 }; 1172 };
1170 mstp7_clks: mstp7_clks@e615014c { 1173 mstp7_clks: mstp7_clks@e615014c {
1171 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks"; 1174 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
diff --git a/include/dt-bindings/clock/r8a7790-clock.h b/include/dt-bindings/clock/r8a7790-clock.h
index ffa8c11be68a..3f2c6b198d4a 100644
--- a/include/dt-bindings/clock/r8a7790-clock.h
+++ b/include/dt-bindings/clock/r8a7790-clock.h
@@ -22,6 +22,7 @@
22#define R8A7790_CLK_SD1 8 22#define R8A7790_CLK_SD1 8
23#define R8A7790_CLK_Z 9 23#define R8A7790_CLK_Z 9
24#define R8A7790_CLK_RCAN 10 24#define R8A7790_CLK_RCAN 10
25#define R8A7790_CLK_ADSP 11
25 26
26/* MSTP0 */ 27/* MSTP0 */
27#define R8A7790_CLK_MSIOF0 0 28#define R8A7790_CLK_MSIOF0 0
@@ -81,6 +82,7 @@
81/* MSTP5 */ 82/* MSTP5 */
82#define R8A7790_CLK_AUDIO_DMAC1 1 83#define R8A7790_CLK_AUDIO_DMAC1 1
83#define R8A7790_CLK_AUDIO_DMAC0 2 84#define R8A7790_CLK_AUDIO_DMAC0 2
85#define R8A7790_CLK_ADSP_MOD 6
84#define R8A7790_CLK_THERMAL 22 86#define R8A7790_CLK_THERMAL 22
85#define R8A7790_CLK_PWM 23 87#define R8A7790_CLK_PWM 23
86 88