Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1234443pxb; Fri, 1 Apr 2022 08:04:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxg188i4WchMd01jk3QGCd1KHJ5avSgG1r695XSeLxoW57XZpvACSPBe/rIFa0pkj5aw96P X-Received: by 2002:a17:907:1c0a:b0:6da:7ac4:5349 with SMTP id nc10-20020a1709071c0a00b006da7ac45349mr203856ejc.596.1648825483758; Fri, 01 Apr 2022 08:04:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648825483; cv=none; d=google.com; s=arc-20160816; b=OE4i4UydnIobiThU0zFJWaCRSUrVbIathx+TGWrnmk+SGGS4AUBvjGo6YUXrZUwdss j9l2J7fpHGIx76tDePEJphZrFgexSJlisaU52BrvT3t+GE5AGnU9puK++GiQpPxlPlUK 4RFcd0ghFLgIoFnJVPYXfuOvXgyxrBBWiiqaRUGalxTenjJr+cD1J9MhQsWTu1JKZWlG i9fFV0nxyzC9EhoWNEgmgy2QpX7Uuyo2U5jc22vYc05desRnGaO6cBqJdWXZ6OCqZI+f yoNrEnhpE0mURSfmM5A++sK9Fly23glaLQ4/5DxuSAWHunf8tARCXKne6Tb35rk84efa tHtg== 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=Avq10jTl7CHo5P+h5iiTtCoGGyerxX9+c/XJg83PbNE=; b=ibUUvil2WcgOjZUBBjL4KfSrcIupI2ISVSR7NGAM3cyhNoXK7PlWJotQvV6DT25cwX ayWcW65ynM5h/Kc1HaO0d7En9Jxl3UkQysrigWClBnrjfsfP/KXNLiHLBL1FymrWXfDS 9VlwcAJ++aTK3VTtPOMhUguqbMUIjloI47/RsJG4nQXAEo91JIxBsG2rSSJXy3OxHvld cWD4pQfy3QDm8TjYlYk8i1xi5wCCS0dbbBfYT87uZiztgMkVaij0X5kYM4quzpEA15Kr AOzcwgHZKgUNcXNz2fjpa04URwIqzZ5OCoH58a1yql7eYaZLhGpq/Sb1To+cDSStx3x7 5B/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=LgZmYeIU; 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 v15-20020a056402348f00b00418dacea57fsi1912508edc.467.2022.04.01.08.04.09; Fri, 01 Apr 2022 08:04:43 -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=LgZmYeIU; 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 S237950AbiCaQ0g (ORCPT + 99 others); Thu, 31 Mar 2022 12:26:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239861AbiCaQ02 (ORCPT ); Thu, 31 Mar 2022 12:26:28 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F7285F4F6; Thu, 31 Mar 2022 09:24:41 -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 EB26A2224D; Thu, 31 Mar 2022 18:24:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1648743879; 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=Avq10jTl7CHo5P+h5iiTtCoGGyerxX9+c/XJg83PbNE=; b=LgZmYeIUscCQM6bN9O4kTktNtnpJJpQuRM1wemwloRF3wpchOPOaik7Piwj9/AJDhglQKt T5UXV430gaN2j7eGSDvqF/oJbEv6mlPxj5rpHAmKBUzLD4Y2txvojLQWsiPE42j6CGjTVp GW/syJLyhLyDmGrfG/Ao1hxniEPRBVE= 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 , Krzysztof Kozlowski Subject: [PATCH v3 3/4] dt-bindings: hwmon: add Microchip LAN966x bindings Date: Thu, 31 Mar 2022 18:24:30 +0200 Message-Id: <20220331162431.3648535-4-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220331162431.3648535-1-michael@walle.cc> References: <20220331162431.3648535-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 Reviewed-by: Krzysztof Kozlowski --- .../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