Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5519439pxb; Mon, 28 Mar 2022 13:38:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyrNaqx68ulV3ocETR/ULccS5RpNcIu0fe/ZXckFnsWlOsiov2WCSPCEEKo6i0mPWpXjhc X-Received: by 2002:a05:622a:1108:b0:2e1:e899:baca with SMTP id e8-20020a05622a110800b002e1e899bacamr23897703qty.202.1648499917552; Mon, 28 Mar 2022 13:38:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648499917; cv=none; d=google.com; s=arc-20160816; b=n6boxz1PreR3T3vESe8YqIAn1G35b6L+GRC8YclG+ywTWx/45SjwxyrOVzAvb3WeyU dy03wg8te+ldhkUmolDXuEjpv/8o7JCnuEHoA5X7mySvyMIZMzNO1+5SJERmogEMQNCw mJ8CWs4NhUgZZWsO01ptq0NK7F3Ti/gpW2eCzuap0a9kddKzgKF7V3nwB/2YmS6BEJRs m0A3pfvN3QjuMZAuWSvQLesEEyQwFhgr+5cJeZ+/LNO7jW9YJXAL1JjeknknFQlcAE8i LDtknersxAcp7oF+7F9H4gKi5PIfUZpU4z/y9tj+UuY13wsUwR82jSRG4K4RL05XhXBI QuXQ== 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=04jt/H0bi/o1KokpplkA86MTnmbsY8fGeTsq0irvbUQB3o3jLM0M+J2P+5TPCy3DWk h8L3o0AWebYDtGKkCjklvuOTNUbTRe+lrZDLJMfAg801Jxcaqg50mw0zi7PODkUB3Jne XndJTPk9y50QTmQFRIYC6NG6zUQPnQYJCnRXd38wMM0w2CCVHV78S717VPaQATivRedj YCqN9bsudJhy9Jk9wTT+e1L+iiauxa6eWRen6XrnZgMiKz+khNzDaKlP1KgAiOqdKG3q I+b1aRCSBm/BcGI8UZLsatWL8BttCo45hTGemQQevQarC/br9hmCuhRsPZQWhT6QuWv1 LM3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=pQduOusM; 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 r6-20020a05620a298600b0067ff35b1ee5si8540001qkp.5.2022.03.28.13.38.04; Mon, 28 Mar 2022 13:38:37 -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=pQduOusM; 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 S243338AbiC1Loo (ORCPT + 99 others); Mon, 28 Mar 2022 07:44:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242129AbiC1LeG (ORCPT ); Mon, 28 Mar 2022 07:34:06 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE7295A0B2; Mon, 28 Mar 2022 04:25:21 -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 9446E2224D; Mon, 28 Mar 2022 13:25:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1648466712; 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=pQduOusMWzGVuvgP8rW1i1qep0c7oLBbX8VyXfnCs3nW7oOmt79R/G2jwCn3GCXw6TlhRx 2ZJ887UtDOwAc9FvoX8UBCUZJEPcLiqb+Xh+qA8MmOcmDW/LJpM1BWjglTSdETQiTjoZhN IZU//WMkC6MZizOY54T1yixpvMrEzfA= 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 v2 3/4] dt-bindings: hwmon: add Microchip LAN966x bindings Date: Mon, 28 Mar 2022 13:25:04 +0200 Message-Id: <20220328112505.3025374-4-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220328112505.3025374-1-michael@walle.cc> References: <20220328112505.3025374-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