mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +00:00
88eae0f036
* set correct clocks for PWM to work. * MT7986 PWM does have the 26MHz-clock-select, set that in patch * drop useless 'passive' trip point in thermal zone * extend pwm-fan to have 3 active operating points * set reasonable trip points in thermal zone * invert pwm-fan operating points and set shorter period to allow less noisy operation of the PWM fan of the BPi-R3. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
24 lines
880 B
Diff
24 lines
880 B
Diff
--- a/drivers/pwm/pwm-mediatek.c
|
|
+++ b/drivers/pwm/pwm-mediatek.c
|
|
@@ -302,6 +302,12 @@ static const struct pwm_mediatek_of_data
|
|
.has_ck_26m_sel = true,
|
|
};
|
|
|
|
+static const struct pwm_mediatek_of_data mt7986_pwm_data = {
|
|
+ .num_pwms = 2,
|
|
+ .pwm45_fixup = false,
|
|
+ .has_ck_26m_sel = true,
|
|
+};
|
|
+
|
|
static const struct pwm_mediatek_of_data mt8516_pwm_data = {
|
|
.num_pwms = 5,
|
|
.pwm45_fixup = false,
|
|
@@ -314,6 +320,7 @@ static const struct of_device_id pwm_med
|
|
{ .compatible = "mediatek,mt7623-pwm", .data = &mt7623_pwm_data },
|
|
{ .compatible = "mediatek,mt7628-pwm", .data = &mt7628_pwm_data },
|
|
{ .compatible = "mediatek,mt7629-pwm", .data = &mt7629_pwm_data },
|
|
+ { .compatible = "mediatek,mt7986-pwm", .data = &mt7986_pwm_data },
|
|
{ .compatible = "mediatek,mt8183-pwm", .data = &mt8183_pwm_data },
|
|
{ .compatible = "mediatek,mt8516-pwm", .data = &mt8516_pwm_data },
|
|
{ },
|