Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2400587rwo; Thu, 3 Aug 2023 08:51:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlHiM6H5DMyOsLnbesWRdFVPNoIgeix5dI/HWY91+5bT8wVR218oo9jQi/oc/01+oDeNbqEQ X-Received: by 2002:a17:90a:d48d:b0:267:fe4e:392f with SMTP id s13-20020a17090ad48d00b00267fe4e392fmr18517028pju.39.1691077918407; Thu, 03 Aug 2023 08:51:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691077918; cv=none; d=google.com; s=arc-20160816; b=T7NKwTRDukGO6BZ7bakUudLdmSVMMQW/Ef3k0KFAeGSN8dbTUNHoDWIKRjhWrYg4PF OPfFcGO43GjB/Qel890J6t3b9UefE+XqxxzonywIREmdfHUNGMrFd+wN+UesD2CilMRQ 8MwDS5YH4SdMBJ3LBt2j+LeTuHCqnhfUGENzlk8xUL5SflgFMWCThkqk6ILq9lEYEo7i pbzx/G3cUBhpOW/hblFL4lXnbTpVMDKb3WXPobjvRrNhZZa5wjUlala+B++fV7jBb2c2 H0auYyO4WiChocLCD5TjdV4vuVkwDZuIeGEpYsKNRVBsRxl/e40GSUFXp/chBzsCOOdU 2FIA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=jJQoP+OlQsep7JicKgaIdwHZRhxScdcgkq1/BfxKseY=; fh=8ak6QauB5x4MIqFRh8zurj8EoiWd7T4rMNZqNkpWqB8=; b=s/LZN6XPCXqEdLopv00b93lU3dKK07BzltK3IcoVNRoApv4bevN6ziU4MxGKcqJmZY lPjT9vA59Fylxj9tOP3Fjm0rPpzm+X3WLNP2YW1wJ98Q0ptVuYmlzHJlSelUa4YAf7VN Z/xT8Ip/A3nXHYcszXLU8dmkae6T2wbSk21XwUqtXYNPNDs9BHvQGquKu9u/XevCq/j+ qRUJC3ntquJVx3NbDEGDrvLv/oWDvxMLhVixz/F+pJkCdrIGHMMxkZs/tIZlk4OiFqfX Q1ECawRubPthV2W+QiuL36wdexfQJpzaFmXyAeSKZsBHxyQ49bdFptvYoM4XEnYjAEZ+ 6/uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=QaXj4huY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nm22-20020a17090b19d600b00260a7aee610si3399576pjb.152.2023.08.03.08.51.38; Thu, 03 Aug 2023 08:51:58 -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=@9elements.com header.s=google header.b=QaXj4huY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235730AbjHCOoe (ORCPT + 99 others); Thu, 3 Aug 2023 10:44:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235814AbjHCOoY (ORCPT ); Thu, 3 Aug 2023 10:44:24 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AD6C4233 for ; Thu, 3 Aug 2023 07:44:07 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-99bdcade7fbso144313966b.1 for ; Thu, 03 Aug 2023 07:44:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1691073845; x=1691678645; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jJQoP+OlQsep7JicKgaIdwHZRhxScdcgkq1/BfxKseY=; b=QaXj4huY5XwJDj5dgKYPotJmlo6vd/UT1VwxEm6+zSboBzFWXaftbcixNgcNP/0Bhe jcJr4LgYdkNdTdy4P4pXBCUtbiBDxwzDWSLY4wb2rC8rdCTqrNXcvwnrrlpb3QIgCdGK FZlyfOwdf9XbCsqjr17Fqdppk3LAXTphgv3h498VIF5cD2Kt5YRa01zYumasyM9q+2cX eJfcPAOVACXJD7Upx/stiZmeKaLx04qF8vMCSo5Q5NxjvI6JP+TMY3fBSkc8brHQ7hKI WiX9O6K9UXzARZsILMIATPYro5c9VSsXLQ4gjIJf4gX8G9XiJ0knPECRhz5i9uDKEwKG uawQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691073845; x=1691678645; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jJQoP+OlQsep7JicKgaIdwHZRhxScdcgkq1/BfxKseY=; b=Z7pFhQZxcWpEK+q5AruS2ZlTmUbmiEaip45X7/en9Ed+h6vH6obxmDq6DI79vljmtB kLis+Ctnb6ShL758wWOS4hz4aKE5o7EO5t+MSG5oa6BmLe4etmFkyl1V2HsoZ7/haykz l0eqywNlq5iYvZB/65WkamjYVAJVFSwAjvMmo42tPZNo/Fby7/K2kh5Nk+3NAHy1sqPA NG0aQM65mg1ImqdvnDRn8Q86qgswnhk/h9ehIW6uScxWiDXw61emfZTL5IbXgtybaZin dbZNLjh+1A7lzK35Howxnw8VNK18OFgfLDRVGye7hP2vQ/36hTzOMEYc+YBwM4WGClG8 iECg== X-Gm-Message-State: ABy/qLY/95fo8vKwc1iAwlvHbCO19BdDhZvxJ1ewYZ6FLXa/9bpT5oqS z7w2+bySCec0eb63QvfA2I76Ag== X-Received: by 2002:a17:906:77d6:b0:992:b3a3:81f4 with SMTP id m22-20020a17090677d600b00992b3a381f4mr8361117ejn.50.1691073845548; Thu, 03 Aug 2023 07:44:05 -0700 (PDT) Received: from stroh80.sec.9e.network (ip-078-094-000-051.um19.pools.vodafone-ip.de. [78.94.0.51]) by smtp.gmail.com with ESMTPSA id t26-20020a1709064f1a00b0099bd86f9248sm10629859eju.63.2023.08.03.07.44.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Aug 2023 07:44:05 -0700 (PDT) From: Naresh Solanki X-Google-Original-From: Naresh Solanki To: Guenter Roeck , krzysztof.kozlowski+dt@linaro.org, Jean Delvare , Rob Herring , Conor Dooley , Naresh Solanki Cc: Marcello Sylvester Bauer , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/2] dt-bindings: hwmon: Add MAX6639 Date: Thu, 3 Aug 2023 16:43:59 +0200 Message-ID: <20230803144401.1151065-1-Naresh.Solanki@9elements.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 From: Marcello Sylvester Bauer Add binding documentation for Maxim MAX6639 fan-speed controller. Signed-off-by: Marcello Sylvester Bauer Signed-off-by: Naresh Solanki --- Changes in V3: - Update title - Add pulses-per-revolution, supplies & interrupts Changes in V2: - Update subject - Drop blank lines --- .../bindings/hwmon/maxim,max6639.yaml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/maxim,max6639.yaml diff --git a/Documentation/devicetree/bindings/hwmon/maxim,max6639.yaml b/Documentation/devicetree/bindings/hwmon/maxim,max6639.yaml new file mode 100644 index 000000000000..b3292061ca58 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/maxim,max6639.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/maxim,max6639.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim MAX6639 Fan Controller + +maintainers: + - Naresh Solanki + +description: | + The MAX6639 is a 2-channel temperature monitor with dual, automatic, PWM + fan-speed controller. It monitors its own temperature and one external + diode-connected transistor or the temperatures of two external diode-connected + transistors, typically available in CPUs, FPGAs, or GPUs. + + Datasheets: + https://datasheets.maximintegrated.com/en/ds/MAX6639-MAX6639F.pdf + +properties: + compatible: + enum: + - maxim,max6639 + + reg: + maxItems: 1 + + fan-supply: + description: Phandle to the regulator that provides power to the fan. + + interrupts: + maxItems: 1 + + pulses-per-revolution: + description: + Define the number of pulses per fan revolution for each tachometer + input as an integer. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [1, 2, 3, 4] + default: 2 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + fan-controller@10 { + compatible = "maxim,max6639"; + reg = <0x10>; + }; + }; +... base-commit: cb7022b8976e3c4d12cea2e7bb820a2944e2fd7b -- 2.41.0