Path: blob/master/Documentation/devicetree/bindings/hwmon/microchip,emc2305.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/hwmon/microchip,emc2305.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Microchip EMC2305 SMBus compliant PWM fan controller78maintainers:9- Michael Shych <michaelsh@nvidia.com>1011description:12Microchip EMC2301/2/3/5 pwm controller which supports up to five programmable13fan control circuits.1415properties:16compatible:17oneOf:18- enum:19- microchip,emc230520- items:21- enum:22- microchip,emc230323- microchip,emc230224- microchip,emc230125- const: microchip,emc23052627reg:28maxItems: 12930'#address-cells':31const: 13233'#size-cells':34const: 03536'#pwm-cells':37const: 338description: |39Number of cells in a PWM specifier.40- cell 0: The PWM frequency41- cell 1: The PWM polarity: 0 or PWM_POLARITY_INVERTED42- cell 2: The PWM output config:43- 0 (Open-Drain)44- 1 (Push-Pull)4546patternProperties:47'^fan@[0-4]$':48$ref: fan-common.yaml#49unevaluatedProperties: false50properties:51reg:52description:53The fan number used to determine the associated PWM channel.54maxItems: 15556required:57- reg5859required:60- compatible61- reg6263additionalProperties: false6465examples:66- |67#include <dt-bindings/pwm/pwm.h>68i2c {69#address-cells = <1>;70#size-cells = <0>;7172fan_controller: fan-controller@2f {73compatible = "microchip,emc2305";74reg = <0x2f>;75#address-cells = <1>;76#size-cells = <0>;77#pwm-cells = <3>;7879fan@0 {80reg = <0x0>;81pwms = <&fan_controller 26000 PWM_POLARITY_INVERTED 1>;82#cooling-cells = <2>;83};8485fan@1 {86reg = <0x1>;87pwms = <&fan_controller 26000 0 1>;88#cooling-cells = <2>;89};9091fan@2 {92reg = <0x2>;93pwms = <&fan_controller 26000 0 1>;94#cooling-cells = <2>;95};9697fan@3 {98reg = <0x3>;99pwms = <&fan_controller 26000 0 1>;100#cooling-cells = <2>;101};102103fan@4 {104reg = <0x4>;105pwms = <&fan_controller 26000 0 1>;106#cooling-cells = <2>;107};108};109};110...111112113