/* Copyright 2022 The ChromiumOS Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ / { fans { compatible = "cros-ec,fans"; fan_0 { pwms = <&pwm3 0 PWM_KHZ(30) PWM_POLARITY_NORMAL>; rpm_min = <3000>; rpm_start = <3000>; rpm_max = <10000>; tach = <&tach2>; pgood_gpio = <&all_sys_pwrgd>; enable_gpio = <&gpio_fan_control>; }; }; }; /* Tachemeter for fan speed measurement */ &tach2 { status = "okay"; pinctrl-0 = <&ta2_2_in_gpa6>; pinctrl-names = "default"; port = ; /* port-A is selected */ sample-clk = ; /* Use LFCLK as sampling clock */ pulses-per-round = <2>; /* number of pulses per round of encoder */ }; &pwm3 { status = "okay"; pinctrl-0 = <&pwm3_gp80>; pinctrl-names = "default"; };