Skip to content

Commit 5ef7008

Browse files
r-vigneshsashalevin
authored andcommitted
ARM: dts: am43xx-clocks: Fix ehrpwm tbclk data on am43xx
[ Upstream commit 7d53d25 ] ehrpwm tbclk is wrongly modelled as deriving from dpll_per_m2_ck. The TRM says tbclk is derived from SYSCLKOUT. SYSCLKOUT nothing but the functional clock of pwmss (l4ls_gclk). Fix this by changing source of ehrpwmx_tbclk to l4ls_gclk. Fixes: 4da1c67 ("add tbclk data for ehrpwm") Signed-off-by: Vignesh R <vigneshr@ti.com> Acked-by: Tero Kristo <t-kristo@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
1 parent 25d96d6 commit 5ef7008

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎arch/arm/boot/dts/am43xx-clocks.dtsi‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,47 +107,47 @@
107107
ehrpwm0_tbclk: ehrpwm0_tbclk {
108108
#clock-cells = <0>;
109109
compatible = "ti,gate-clock";
110-
clocks = <&dpll_per_m2_ck>;
110+
clocks = <&l4ls_gclk>;
111111
ti,bit-shift = <0>;
112112
reg = <0x0664>;
113113
};
114114

115115
ehrpwm1_tbclk: ehrpwm1_tbclk {
116116
#clock-cells = <0>;
117117
compatible = "ti,gate-clock";
118-
clocks = <&dpll_per_m2_ck>;
118+
clocks = <&l4ls_gclk>;
119119
ti,bit-shift = <1>;
120120
reg = <0x0664>;
121121
};
122122

123123
ehrpwm2_tbclk: ehrpwm2_tbclk {
124124
#clock-cells = <0>;
125125
compatible = "ti,gate-clock";
126-
clocks = <&dpll_per_m2_ck>;
126+
clocks = <&l4ls_gclk>;
127127
ti,bit-shift = <2>;
128128
reg = <0x0664>;
129129
};
130130

131131
ehrpwm3_tbclk: ehrpwm3_tbclk {
132132
#clock-cells = <0>;
133133
compatible = "ti,gate-clock";
134-
clocks = <&dpll_per_m2_ck>;
134+
clocks = <&l4ls_gclk>;
135135
ti,bit-shift = <4>;
136136
reg = <0x0664>;
137137
};
138138

139139
ehrpwm4_tbclk: ehrpwm4_tbclk {
140140
#clock-cells = <0>;
141141
compatible = "ti,gate-clock";
142-
clocks = <&dpll_per_m2_ck>;
142+
clocks = <&l4ls_gclk>;
143143
ti,bit-shift = <5>;
144144
reg = <0x0664>;
145145
};
146146

147147
ehrpwm5_tbclk: ehrpwm5_tbclk {
148148
#clock-cells = <0>;
149149
compatible = "ti,gate-clock";
150-
clocks = <&dpll_per_m2_ck>;
150+
clocks = <&l4ls_gclk>;
151151
ti,bit-shift = <6>;
152152
reg = <0x0664>;
153153
};

0 commit comments

Comments
 (0)