Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7493664rwn; Tue, 13 Sep 2022 22:41:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Ba3AIchJ9QiYomrfgsRDa3IttLgpB2tSYA1kwSJNst/pUvp1HPucDXqNWBO48FH3Sdhpn X-Received: by 2002:a63:6e09:0:b0:430:663:7757 with SMTP id j9-20020a636e09000000b0043006637757mr29558794pgc.340.1663134100864; Tue, 13 Sep 2022 22:41:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663134100; cv=none; d=google.com; s=arc-20160816; b=VPH+yC4isjlg+ILNQWkPPgGytoxt0JY8VRAMeDOd585wvnX8hTsUB652PVVxayqcia qEvvsSYt9LAhqeBJVCbiL5gjBJ/M1UtXsJSZVXqK865bRgXuQji1vqv4EeN190E9qLtv jaLu88U1ChyIjXQ5L//4j378nOKac49UhBu/Q4GOVRHGQqojSYY1Rj9p+z9UDK7e3THF BAPzbUvpTN6zeNtCJO4IHJVtT3PPAi7h/5We0uizZzAn/51rNyUvkGMHkSulrI5bjUl/ 8+XNRSJtq7OAh2UKzFx94EHDVX6iCahhuQoI8ap3qaHhLDkjevSIQyIZ8mt5PhJVxUge 5YMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :feedback-id:dkim-signature:dkim-signature; bh=/oX6YkFh6Fla3S1U+ImlVkebmSqE9u/RwHU2MLtNHWQ=; b=p/qvpTy3/wBn/efgIq7Takun0JSVzXlHWt0eLvsCu7ANdKaUAPmjxJHK3SVKNuRt/T rDlnubxWTmUpkGLxwXItSGB8yiqAeBfAIX3WIDSVUpUaZAzdHA64vzZ9kvNVMbtOq04e eAjIwmeOnH61R+8W+NFCIDc2Vi343IJUf2eEwNGmDzx++Nur1HYgSgPs3NW1CGV+j7Lu YhEW16mjhx+arTT5IGC7S9r/pR0tDutQCSsRxyIXHlY5cUglzJVcHgTVyc0nsLaUbb0b 0Xf6uzJXcUPadU/m4zheZl7FjOgmxJvMAaBn6H/7kP0r9khGexd3E7C0HD+lDF1hSjb9 9Wog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@traverse.com.au header.s=fm1 header.b=C9bnyToo; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=PQ23vNML; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a22-20020a630b56000000b0042b85da3a53si14424110pgl.473.2022.09.13.22.41.29; Tue, 13 Sep 2022 22:41:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@traverse.com.au header.s=fm1 header.b=C9bnyToo; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=PQ23vNML; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229945AbiINFbh (ORCPT + 99 others); Wed, 14 Sep 2022 01:31:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229903AbiINFbX (ORCPT ); Wed, 14 Sep 2022 01:31:23 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF1236F55A; Tue, 13 Sep 2022 22:31:09 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 337475C00C1; Wed, 14 Sep 2022 01:31:09 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 14 Sep 2022 01:31:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=traverse.com.au; h=cc:cc:content-transfer-encoding:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1663133469; x= 1663219869; bh=/oX6YkFh6Fla3S1U+ImlVkebmSqE9u/RwHU2MLtNHWQ=; b=C 9bnyTooKuyM32PqzvT8E+Q+R6UXLJN4qB+tcwohBtpItPakS7KPZiqTZoc1chdrD F6/YXlZx2TdiGg+CvawWW1BktGN3KWEA9PJMpnZKTE85UO+hRUzLHp5MhBo9Arx6 RyxKv+S/BZoKbSOdrbkzofPYnfryJnMzWnzk8j2td3TzCcwdjq91Y7ss56iwx89d hk1zR6oc63zEAEBHlWUBDNJVjBzWxW5kSqu+T3SZGxaClA6rBcO3c4Z3BJn5G+qg uR61DJ7MuG09a+ilTzLbVQSD3Lo1glbH8pCcBrhG4Cf16TNVjNP5SJzIdiUvcbE+ z3rFgfx9sfybRqyukFd2w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1663133469; x=1663219869; bh=/oX6YkFh6Fla3 S1U+ImlVkebmSqE9u/RwHU2MLtNHWQ=; b=PQ23vNMLYtMjUtCbWM2LAaLWvjRgW cuwgDJLWnKIvNKa+leeadIiL/mjufNuv5dsh8cnbLcH+H4jCgDui41VFVR5j6bNA pZR8j1o+vdB0oB7jyRNgi+w8o7OHmddI08iHCiqIu7fXHEz21F0Bq+SjN1816JkY aE066j6TFg7m4r85h0w/6ftsXIQKFKs9LUf1MCEJcU4v4XhDMFsvwSWJJhQ2htvN FnVTtvJGx6uU6yo181Ed/SxLOdRzGs8St5yAiup4eTXDn0ylu2q57K7QENipf3kb g14RGbwZ7e03YkCPa4Qr0aPdCpOYJSfQIozc1ZL7JyZ3dJjlERBNQBOgQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeduhedgleeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpeforghthhgvficuofgtuehrihguvgcuoehmrghtthesthhr rghvvghrshgvrdgtohhmrdgruheqnecuggftrfgrthhtvghrnheptdetueejffeikeelve ehvdekkefgfeevjeeiffeutdfffeejhfegteehgeefuddvnecuffhomhgrihhnpeguvghv ihgtvghtrhgvvgdrohhrghdpmhhitghrohgthhhiphdrtghomhenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrghtthesthhrrghvvghrshgv rdgtohhmrdgruh X-ME-Proxy: Feedback-ID: i426947f3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 14 Sep 2022 01:31:06 -0400 (EDT) From: Mathew McBride To: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, jdelvare@suse.com, linux@roeck-us.net, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, leoyang.li@nxp.com, robh+dt@kernel.org, linux-kernel@vger.kernel.org Cc: Mathew McBride Subject: [PATCH 2/3] dt-bindings: add binding for Microchip EMC230X fan controller family Date: Wed, 14 Sep 2022 05:30:29 +0000 Message-Id: <20220914053030.8929-3-matt@traverse.com.au> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20220914053030.8929-1-matt@traverse.com.au> References: <20220914053030.8929-1-matt@traverse.com.au> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a binding for the Microchip EMC230X fan controller family, which is supported by the new "emc230x" hwmon driver. Signed-off-by: Mathew McBride --- .../bindings/hwmon/microchip,emc2301.yaml | 83 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 84 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/microchip,emc2301.yaml diff --git a/Documentation/devicetree/bindings/hwmon/microchip,emc2301.yaml b/Documentation/devicetree/bindings/hwmon/microchip,emc2301.yaml new file mode 100644 index 000000000000..1e5c7072caee --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/microchip,emc2301.yaml @@ -0,0 +1,83 @@ +# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/microchip,emc2301.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip EMC230X family RPM fan controller + +maintainers: + - Mathew McBride + +description: | + The Microchip EMC230X family (formerly produced by SMSC) is a family + of fan controllers which can drive via a set PWM period or + to a target RPM speed. They are available in variants from 1 to 5 + independent channels. + + Product information: + https://www.microchip.com/en-us/product/EMC2301 + https://www.microchip.com/en-us/product/EMC2302 + https://www.microchip.com/en-us/product/EMC2303 + https://www.microchip.com/en-us/product/EMC2305 + + +properties: + compatible: + enum: + - microchip,emc2301 + - microchip,emc2302 + - microchip,emc2303 + - microchip,emc2305 + reg: + maxItems: 1 + + "#address-cells": true + + "#size-cells": true + +required: + - compatible + - reg + +patternProperties: + "fan@[0-9]+$": + type: object + description: Fan channel properties for use as a thermal cooling device + + properties: + min-rpm: + description: Minimum fan RPM when used as a cooling device + maxItems: 1 + max-rpm: + description: Maximum fan RPM when used as a cooling device + maxItems: 1 + reg: + description: Channel number on EMC230X device the fan is attached to + maxItems: 1 + "#cooling-cells": + const: 2 + required: + - reg + - min-rpm + - max-rpm + - "#cooling-cells" +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + fanctrl@2f { + compatible = "microchip,emc2301"; + reg = <0x2f>; + + fan@0 { + min-rpm = /bits/ 16 <3500>; + max-rpm = /bits/ 16 <5000>; + reg = <0>; + } + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index bf3c6c3c0492..5938780abe20 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8046,6 +8046,7 @@ MICROCHIP EMC230X PWM-FAN CONTROLLER DRIVERS M: Mathew McBride L: linux-hwmon@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/hwmon/microchip,emc2301.yaml F: drivers/hwmon/emc230x.c MICROCHIP POLARFIRE FPGA DRIVERS -- 2.30.1