Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: aspeed: wedge40: Enable pwm_tacho device

Enable pwm_tacho device for fan control and monitoring in Wedge40.

Signed-off-by: Tao Ren <rentao.bupt@gmail.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>

authored by

Tao Ren and committed by
Joel Stanley
e6873087 acd00930

+29
+29
arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts
··· 135 135 &adc { 136 136 status = "okay"; 137 137 }; 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 + };