15f62a964SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 25f62a964SEmmanuel Vadot%YAML 1.2 35f62a964SEmmanuel Vadot--- 45f62a964SEmmanuel Vadot$id: http://devicetree.org/schemas/hwmon/ti,amc6821.yaml# 55f62a964SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 65f62a964SEmmanuel Vadot 75f62a964SEmmanuel Vadottitle: AMC6821 Intelligent Temperature Monitor and PWM Fan Controller 85f62a964SEmmanuel Vadot 95f62a964SEmmanuel Vadotmaintainers: 105f62a964SEmmanuel Vadot - Farouk Bouabid <farouk.bouabid@cherry.de> 115f62a964SEmmanuel Vadot - Quentin Schulz <quentin.schulz@cherry.de> 125f62a964SEmmanuel Vadot 135f62a964SEmmanuel Vadotdescription: 145f62a964SEmmanuel Vadot Intelligent temperature monitor and pulse-width modulation (PWM) fan 155f62a964SEmmanuel Vadot controller. 165f62a964SEmmanuel Vadot 175f62a964SEmmanuel Vadotproperties: 185f62a964SEmmanuel Vadot compatible: 195f62a964SEmmanuel Vadot oneOf: 205f62a964SEmmanuel Vadot - items: 215f62a964SEmmanuel Vadot - const: tsd,mule 225f62a964SEmmanuel Vadot - const: ti,amc6821 235f62a964SEmmanuel Vadot - const: ti,amc6821 245f62a964SEmmanuel Vadot 255f62a964SEmmanuel Vadot reg: 265f62a964SEmmanuel Vadot maxItems: 1 275f62a964SEmmanuel Vadot 285f62a964SEmmanuel Vadot i2c-mux: 295f62a964SEmmanuel Vadot type: object 305f62a964SEmmanuel Vadot 31ae5de77eSEmmanuel Vadot fan: 32ae5de77eSEmmanuel Vadot $ref: fan-common.yaml# 33ae5de77eSEmmanuel Vadot unevaluatedProperties: false 34ae5de77eSEmmanuel Vadot 35*833e5d42SEmmanuel Vadot properties: 36*833e5d42SEmmanuel Vadot cooling-levels: 37*833e5d42SEmmanuel Vadot description: PWM duty cycle values corresponding to thermal cooling states. 38*833e5d42SEmmanuel Vadot items: 39*833e5d42SEmmanuel Vadot maximum: 255 40*833e5d42SEmmanuel Vadot 41ae5de77eSEmmanuel Vadot "#pwm-cells": 42ae5de77eSEmmanuel Vadot const: 2 43ae5de77eSEmmanuel Vadot description: | 44ae5de77eSEmmanuel Vadot Number of cells in a PWM specifier. 45ae5de77eSEmmanuel Vadot - cell 0: PWM period in nanoseconds 46ae5de77eSEmmanuel Vadot - cell 1: PWM polarity: 0 or PWM_POLARITY_INVERTED 47ae5de77eSEmmanuel Vadot 485f62a964SEmmanuel Vadotrequired: 495f62a964SEmmanuel Vadot - compatible 505f62a964SEmmanuel Vadot - reg 515f62a964SEmmanuel Vadot 525f62a964SEmmanuel Vadotif: 535f62a964SEmmanuel Vadot properties: 545f62a964SEmmanuel Vadot compatible: 555f62a964SEmmanuel Vadot contains: 565f62a964SEmmanuel Vadot const: tsd,mule 575f62a964SEmmanuel Vadot 585f62a964SEmmanuel Vadotthen: 595f62a964SEmmanuel Vadot required: 605f62a964SEmmanuel Vadot - i2c-mux 615f62a964SEmmanuel Vadot 625f62a964SEmmanuel VadotadditionalProperties: false 635f62a964SEmmanuel Vadot 645f62a964SEmmanuel Vadotexamples: 655f62a964SEmmanuel Vadot - | 665f62a964SEmmanuel Vadot i2c { 675f62a964SEmmanuel Vadot #address-cells = <1>; 685f62a964SEmmanuel Vadot #size-cells = <0>; 695f62a964SEmmanuel Vadot 70ae5de77eSEmmanuel Vadot fan_controller: fan@18 { 715f62a964SEmmanuel Vadot compatible = "ti,amc6821"; 725f62a964SEmmanuel Vadot reg = <0x18>; 73ae5de77eSEmmanuel Vadot #pwm-cells = <2>; 74ae5de77eSEmmanuel Vadot 75ae5de77eSEmmanuel Vadot fan { 76ae5de77eSEmmanuel Vadot pwms = <&fan_controller 40000 0>; 77ae5de77eSEmmanuel Vadot }; 785f62a964SEmmanuel Vadot }; 795f62a964SEmmanuel Vadot }; 805f62a964SEmmanuel Vadot 815f62a964SEmmanuel Vadot - | 825f62a964SEmmanuel Vadot i2c { 835f62a964SEmmanuel Vadot #address-cells = <1>; 845f62a964SEmmanuel Vadot #size-cells = <0>; 855f62a964SEmmanuel Vadot 865f62a964SEmmanuel Vadot fan@18 { 875f62a964SEmmanuel Vadot compatible = "tsd,mule", "ti,amc6821"; 885f62a964SEmmanuel Vadot reg = <0x18>; 895f62a964SEmmanuel Vadot 905f62a964SEmmanuel Vadot i2c-mux { 915f62a964SEmmanuel Vadot compatible = "tsd,mule-i2c-mux"; 925f62a964SEmmanuel Vadot #address-cells = <1>; 935f62a964SEmmanuel Vadot #size-cells = <0>; 945f62a964SEmmanuel Vadot 955f62a964SEmmanuel Vadot i2c@0 { 965f62a964SEmmanuel Vadot reg = <0x0>; 975f62a964SEmmanuel Vadot #address-cells = <1>; 985f62a964SEmmanuel Vadot #size-cells = <0>; 995f62a964SEmmanuel Vadot 1005f62a964SEmmanuel Vadot rtc@6f { 1015f62a964SEmmanuel Vadot compatible = "isil,isl1208"; 1025f62a964SEmmanuel Vadot reg = <0x6f>; 1035f62a964SEmmanuel Vadot }; 1045f62a964SEmmanuel Vadot }; 1055f62a964SEmmanuel Vadot }; 1065f62a964SEmmanuel Vadot }; 1075f62a964SEmmanuel Vadot }; 1085f62a964SEmmanuel Vadot... 109