2024-01-15 09:26:07

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH v12 1/3] dt-bindings: hwmon: fan: Add fan binding to schema

On 08/01/2024 08:43, Billy Tsai wrote:
> + pwms:
> + description:
> + PWM provider.
> + maxItems: 1
> +
> + "#cooling-cells":
> + const: 2
> +
> + cooling-levels:
> + description:
> + The control value which correspond to thermal cooling states.
> + $ref: /schemas/types.yaml#/definitions/uint32-array
> +
> + tach-ch:
> + description:
> + The tach channel used for the fan.
> + $ref: /schemas/types.yaml#/definitions/uint8-array

What is the tach-channel and why is it different from pwm specifier?

Best regards,
Krzysztof



2024-01-16 03:10:28

by Billy Tsai

[permalink] [raw]
Subject: Re: [PATCH v12 1/3] dt-bindings: hwmon: fan: Add fan binding to schema

> > + pwms:
> > + description:
> > + PWM provider.
> > + maxItems: 1
> > +
> > + "#cooling-cells":
> > + const: 2
> > +
> > + cooling-levels:
> > + description:
> > + The control value which correspond to thermal cooling states.
> > + $ref: /schemas/types.yaml#/definitions/uint32-array
> > +
> > + tach-ch:
> > + description:
> > + The tach channel used for the fan.
> > + $ref: /schemas/types.yaml#/definitions/uint8-array

> What is the tach-channel and why is it different from pwm specifier?

Hi Krzysztof,

Using the Aspeed SoC as an example, our SoC features 16 PWMs and 16 tachometer channels that can be employed to control and monitor fans.
The "tach-ch" parameter is utilized to specify which tachometer channel is being used to monitor a specific fan.
The "pwms" parameter is utilized to specify which pwm channel is being used to control a specific fan.

Thanks
Best regards,
Billy Tsai