Path: blob/master/Documentation/devicetree/bindings/hwmon/aspeed,g6-pwm-tach.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1# Copyright (C) 2023 Aspeed, Inc.2%YAML 1.23---4$id: http://devicetree.org/schemas/hwmon/aspeed,g6-pwm-tach.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#67title: ASPEED G6 PWM and Fan Tach controller89maintainers:10- Billy Tsai <billy_tsai@aspeedtech.com>1112description: |13The ASPEED PWM controller can support up to 16 PWM outputs.14The ASPEED Fan Tacho controller can support up to 16 fan tach input.15They are independent hardware blocks, which are different from the16previous version of the ASPEED chip.1718properties:19compatible:20enum:21- aspeed,ast2600-pwm-tach2223reg:24maxItems: 12526clocks:27maxItems: 12829resets:30maxItems: 13132"#pwm-cells":33const: 33435patternProperties:36"^fan-[0-9]+$":37$ref: fan-common.yaml#38unevaluatedProperties: false39required:40- tach-ch4142required:43- reg44- clocks45- resets46- "#pwm-cells"47- compatible4849additionalProperties: false5051examples:52- |53#include <dt-bindings/clock/aspeed-clock.h>54pwm_tach: pwm-tach-controller@1e610000 {55compatible = "aspeed,ast2600-pwm-tach";56reg = <0x1e610000 0x100>;57clocks = <&syscon ASPEED_CLK_AHB>;58resets = <&syscon ASPEED_RESET_PWM>;59#pwm-cells = <3>;6061fan-0 {62tach-ch = /bits/ 8 <0x0>;63pwms = <&pwm_tach 0 40000 0>;64};6566fan-1 {67tach-ch = /bits/ 8 <0x1 0x2>;68pwms = <&pwm_tach 1 40000 0>;69};70};717273