Skip to content

Commit fd9378f

Browse files
Takashi Yoshiihorms
authored andcommitted
ARM: shmobile: emev2: Add clock tree description in DT
Add minimum clock tree description to .dts file. This provides same set of clocks as current sh-clkfwk version .c code does. Signed-off-by: Takashi Yoshii <takasi-y@ops.dti.ne.jp> Acked-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> (cherry picked from commit fdf6fd2) (Queued by ARM-SoC for v3.14 but not yet in Linus's tree) Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
1 parent d8298a8 commit fd9378f

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed

arch/arm/boot/dts/emev2.dtsi

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,34 +52,118 @@
5252
<0 121 4>;
5353
};
5454

55+
smu@e0110000 {
56+
compatible = "renesas,emev2-smu";
57+
reg = <0xe0110000 0x10000>;
58+
#address-cells = <2>;
59+
#size-cells = <0>;
60+
61+
c32ki: c32ki {
62+
compatible = "fixed-clock";
63+
clock-frequency = <32768>;
64+
#clock-cells = <0>;
65+
};
66+
pll3_fo: pll3_fo {
67+
compatible = "fixed-factor-clock";
68+
clocks = <&c32ki>;
69+
clock-div = <1>;
70+
clock-mult = <7000>;
71+
#clock-cells = <0>;
72+
};
73+
usia_u0_sclkdiv: usia_u0_sclkdiv {
74+
compatible = "renesas,emev2-smu-clkdiv";
75+
reg = <0x610 0>;
76+
clocks = <&pll3_fo>;
77+
#clock-cells = <0>;
78+
};
79+
usib_u1_sclkdiv: usib_u1_sclkdiv {
80+
compatible = "renesas,emev2-smu-clkdiv";
81+
reg = <0x65c 0>;
82+
clocks = <&pll3_fo>;
83+
#clock-cells = <0>;
84+
};
85+
usib_u2_sclkdiv: usib_u2_sclkdiv {
86+
compatible = "renesas,emev2-smu-clkdiv";
87+
reg = <0x65c 16>;
88+
clocks = <&pll3_fo>;
89+
#clock-cells = <0>;
90+
};
91+
usib_u3_sclkdiv: usib_u3_sclkdiv {
92+
compatible = "renesas,emev2-smu-clkdiv";
93+
reg = <0x660 0>;
94+
clocks = <&pll3_fo>;
95+
#clock-cells = <0>;
96+
};
97+
usia_u0_sclk: usia_u0_sclk {
98+
compatible = "renesas,emev2-smu-gclk";
99+
reg = <0x4a0 1>;
100+
clocks = <&usia_u0_sclkdiv>;
101+
#clock-cells = <0>;
102+
};
103+
usib_u1_sclk: usib_u1_sclk {
104+
compatible = "renesas,emev2-smu-gclk";
105+
reg = <0x4b8 1>;
106+
clocks = <&usib_u1_sclkdiv>;
107+
#clock-cells = <0>;
108+
};
109+
usib_u2_sclk: usib_u2_sclk {
110+
compatible = "renesas,emev2-smu-gclk";
111+
reg = <0x4bc 1>;
112+
clocks = <&usib_u2_sclkdiv>;
113+
#clock-cells = <0>;
114+
};
115+
usib_u3_sclk: usib_u3_sclk {
116+
compatible = "renesas,emev2-smu-gclk";
117+
reg = <0x4c0 1>;
118+
clocks = <&usib_u3_sclkdiv>;
119+
#clock-cells = <0>;
120+
};
121+
sti_sclk: sti_sclk {
122+
compatible = "renesas,emev2-smu-gclk";
123+
reg = <0x528 1>;
124+
clocks = <&c32ki>;
125+
#clock-cells = <0>;
126+
};
127+
};
128+
55129
sti@e0180000 {
56130
compatible = "renesas,em-sti";
57131
reg = <0xe0180000 0x54>;
58132
interrupts = <0 125 0>;
133+
clocks = <&sti_sclk>;
134+
clock-names = "sclk";
59135
};
60136

61137
uart@e1020000 {
62138
compatible = "renesas,em-uart";
63139
reg = <0xe1020000 0x38>;
64140
interrupts = <0 8 0>;
141+
clocks = <&usia_u0_sclk>;
142+
clock-names = "sclk";
65143
};
66144

67145
uart@e1030000 {
68146
compatible = "renesas,em-uart";
69147
reg = <0xe1030000 0x38>;
70148
interrupts = <0 9 0>;
149+
clocks = <&usib_u1_sclk>;
150+
clock-names = "sclk";
71151
};
72152

73153
uart@e1040000 {
74154
compatible = "renesas,em-uart";
75155
reg = <0xe1040000 0x38>;
76156
interrupts = <0 10 0>;
157+
clocks = <&usib_u2_sclk>;
158+
clock-names = "sclk";
77159
};
78160

79161
uart@e1050000 {
80162
compatible = "renesas,em-uart";
81163
reg = <0xe1050000 0x38>;
82164
interrupts = <0 11 0>;
165+
clocks = <&usib_u3_sclk>;
166+
clock-names = "sclk";
83167
};
84168

85169
gpio0: gpio@e0050000 {

0 commit comments

Comments
 (0)