Path: blob/master/Documentation/devicetree/bindings/hwmon/aspeed,ast2400-pwm-tacho.yaml
121834 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/hwmon/aspeed,ast2400-pwm-tacho.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: ASPEED AST2400/AST2500 PWM and Fan Tacho controller78maintainers:9- Joel Stanley <joel@jms.id.au>10- Andrew Jeffery <andrew@codeconstruct.com.au>1112description: >13The ASPEED PWM controller can support up to 8 PWM outputs. The ASPEED Fan14Tacho controller can support up to 16 Fan tachometer inputs.1516There can be up to 8 fans supported. Each fan can have 1 PWM output and171-2 Fan tach inputs.1819properties:20compatible:21enum:22- aspeed,ast2400-pwm-tacho23- aspeed,ast2500-pwm-tacho2425reg:26maxItems: 12728'#address-cells':29const: 13031'#size-cells':32const: 03334'#cooling-cells':35const: 23637clocks:38maxItems: 13940resets:41maxItems: 14243patternProperties:44'^fan@[0-7]$':45description: Fan subnode46type: object47additionalProperties: false4849properties:50reg:51description: PWM source port index (0 = PWM A, ..., 7 = PWM H)52maximum: 75354cooling-levels:55description: PWM duty cycle values for cooling states56$ref: /schemas/types.yaml#/definitions/uint8-array57minItems: 158maxItems: 16 # Should be enough5960aspeed,fan-tach-ch:61description: Fan tachometer input channel62$ref: /schemas/types.yaml#/definitions/uint8-array63minItems: 164maxItems: 265items:66maximum: 156768required:69- reg70- aspeed,fan-tach-ch7172required:73- compatible74- reg75- '#address-cells'76- '#size-cells'77- clocks78- resets7980additionalProperties: false8182examples:83- |84#include <dt-bindings/clock/aspeed-clock.h>8586fan-controller@1e786000 {87compatible = "aspeed,ast2500-pwm-tacho";88reg = <0x1e786000 0x1000>;89#address-cells = <1>;90#size-cells = <0>;91#cooling-cells = <2>;92clocks = <&syscon ASPEED_CLK_APB>;93resets = <&syscon ASPEED_RESET_PWM>;9495fan@0 {96reg = <0x00>;97cooling-levels = /bits/ 8 <125 151 177 203 229 255>;98aspeed,fan-tach-ch = /bits/ 8 <0x00>;99};100101fan@1 {102reg = <0x01>;103aspeed,fan-tach-ch = /bits/ 8 <0x01 0x02>;104};105};106107108