Skip to content

Commit e687308

Browse files
tao-renshenki
authored andcommitted
ARM: dts: aspeed: wedge40: Enable pwm_tacho device
Enable pwm_tacho device for fan control and monitoring in Wedge40. Signed-off-by: Tao Ren <[email protected]> Signed-off-by: Joel Stanley <[email protected]>
1 parent acd0093 commit e687308

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,32 @@
135135
&adc {
136136
status = "okay";
137137
};
138+
139+
&pwm_tacho {
140+
status = "okay";
141+
pinctrl-names = "default";
142+
pinctrl-0 = <&pinctrl_pwm0_default
143+
&pinctrl_pwm1_default
144+
&pinctrl_pwm6_default
145+
&pinctrl_pwm7_default>;
146+
147+
fan@0 {
148+
reg = <0x00>;
149+
aspeed,fan-tach-ch = /bits/ 8 <0x00 0x01>;
150+
};
151+
152+
fan@1 {
153+
reg = <0x01>;
154+
aspeed,fan-tach-ch = /bits/ 8 <0x02 0x03>;
155+
};
156+
157+
fan@6 {
158+
reg = <0x06>;
159+
aspeed,fan-tach-ch = /bits/ 8 <0x04 0x05>;
160+
};
161+
162+
fan@7 {
163+
reg = <0x07>;
164+
aspeed,fan-tach-ch = /bits/ 8 <0x06 0x07>;
165+
};
166+
};

0 commit comments

Comments
 (0)