drivers: sensor: add sensors for MAX31790

Add sensors for fan speed and fan fault for the PWM
controller MAX31790.

Signed-off-by: Benedikt Schmidt <benedikt.schmidt@embedded-solutions.at>
This commit is contained in:
Benedikt Schmidt 2024-02-01 17:50:01 +01:00 committed by David Leach
commit 04f38ffba2
11 changed files with 342 additions and 0 deletions

View file

@ -0,0 +1,10 @@
# Copyright (c) 2024 SILA Embedded Solutions GmbH
# SPDX-License-Identifier: Apache-2.0
description: fan fault measurement of Maxim Integrated MAX31790 PWM Controller
compatible: "maxim,max31790-fan-fault"
include: [sensor-device.yaml]
on-bus: max31790

View file

@ -0,0 +1,23 @@
# Copyright (c) 2024 SILA Embedded Solutions GmbH
# SPDX-License-Identifier: Apache-2.0
description: fan speed measurement of Maxim Integrated MAX31790 PWM Controller
compatible: "maxim,max31790-fan-speed"
include: [sensor-device.yaml]
on-bus: max31790
properties:
channel:
type: int
enum:
- 1
- 2
- 3
- 4
- 5
- 6
required: true
description: PWM channel number