Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3391279pxb; Sat, 26 Mar 2022 18:15:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/WX+uW272WAYDdV7SSJg+2Lx+KRZN9EQ+IEnGQVQRv+U7H8HndbSqVd48d5GShltlYX3v X-Received: by 2002:a17:906:5011:b0:6cf:82ff:f1bf with SMTP id s17-20020a170906501100b006cf82fff1bfmr19968876ejj.69.1648343750153; Sat, 26 Mar 2022 18:15:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648343750; cv=none; d=google.com; s=arc-20160816; b=MMQ11i3kZvx3NkkG9IWGVESoKshZtzA9eQq6MuzJ7xqH3XrbiWU+Lbf4Is1teIcwTp g7dwvE7ZwQIkpFjZDKXt10q2q7WniNXotKrttO+sYXnk9Qa9YedWeIsPBd7fhTMpghRf XmeOzk+ht5XDNeuH09wWQyqGTZxxKhOANfzINFTV+LmxwGtZR5CxvOm1x+EubiykXag8 PCDUC1trSGXNb/oRwbTrKpx0mL+R+lQNnAeU8eDjYN8uvWKATkVim1Qn+YyV2kpSx9aP 4Ov+SWCLfqkU7TnbPX+NZpMpc0DlCD84fafBle+DVYAb707BZy5YjyYe+GgQV7BmRY0x m2/g== 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 :dkim-signature; bh=ngZOER/c529YUL1r4pFNa98rLmtvDnqoQWaU7g07B4E=; b=a/+/MnZli0el3Dt2SQZm73X1o2KZVtH2VPJT5iRzi3ftC2OQFWCFw8KwRbM0sr34vy kkSyfk0IE8s1ELLJ7YHFejHQjgZzOxCKmhbORJ6y1HVNw2w/UdkDhWu9TlB/LbtxHwoa T5dRmnt5owFrOvBT8jPCKnOXEnfiglzwJeWwiQaspXUq6yqYOkjULmnd/9jAAr+FShmA gf3SjyFJhmbjcIwOx4Omzlt0U2tiAEhhXMWJsSQMKE/ja4HuIgbG33BDFctCLH63SlY5 SmwUQzZFgbKl4qzZfgfQjuTobKYaB9CZtXf7/np2IbFJOrF62IF+eq2UwORKCcJ7hwRD 7mHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=ejiI+BDJ; 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 s1-20020a056402036100b00419014273b3si6194428edw.354.2022.03.26.18.14.54; Sat, 26 Mar 2022 18:15:50 -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=@walle.cc header.s=mail2016061301 header.b=ejiI+BDJ; 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 S234703AbiCZTZz (ORCPT + 99 others); Sat, 26 Mar 2022 15:25:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234434AbiCZTZj (ORCPT ); Sat, 26 Mar 2022 15:25:39 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0DEB33E31; Sat, 26 Mar 2022 12:24:02 -0700 (PDT) Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id D9FBE223F0; Sat, 26 Mar 2022 20:24:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1648322640; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ngZOER/c529YUL1r4pFNa98rLmtvDnqoQWaU7g07B4E=; b=ejiI+BDJS+hPUaz11Qoy54uC28GOGZLRZFUwqZFfHnXYbWNeKBHJHcV3Wm4RqJCkYDaI3D 7OYBzzcxx7b6+JPMqGmbMsgBJpCXuLEqS555T1e72fnduAUe1u5r6hfXxivBWZUH/zm8Mi SWYnRnbSBc+rFthVg9zByHZygt2ctvg= From: Michael Walle To: Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Walle Subject: [PATCH v1 3/4] dt-bindings: hwmon: add Microchip LAN966x bindings Date: Sat, 26 Mar 2022 20:23:46 +0100 Message-Id: <20220326192347.2940747-4-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220326192347.2940747-1-michael@walle.cc> References: <20220326192347.2940747-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, 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 temperature sensor and the fan controller on the Microchip LAN966x family. Signed-off-by: Michael Walle --- .../bindings/hwmon/microchip,lan966x.yaml | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/microchip,lan966x.yaml diff --git a/Documentation/devicetree/bindings/hwmon/microchip,lan966x.yaml b/Documentation/devicetree/bindings/hwmon/microchip,lan966x.yaml new file mode 100644 index 000000000000..390dd6755ff5 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/microchip,lan966x.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/microchip,lan966x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip LAN966x Hardware Monitor + +maintainers: + - Michael Walle + +description: | + Microchip LAN966x temperature monitor and fan controller + +properties: + compatible: + enum: + - microchip,lan9668-hwmon + + reg: + items: + - description: PVT registers + - description: FAN registers + + reg-names: + items: + - const: pvt + - const: fan + + clocks: + maxItems: 1 + + '#thermal-sensor-cells': + const: 0 + +required: + - compatible + - reg + - reg-names + - clocks + +additionalProperties: false + +examples: + - | + hwmon: hwmon@e2010180 { + compatible = "microchip,lan9668-hwmon"; + reg = <0xe2010180 0xc>, + <0xe20042a8 0xc>; + reg-names = "pvt", "fan"; + clocks = <&sys_clk>; + #thermal-sensor-cells = <0>; + }; -- 2.30.2