Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2618728lqb; Tue, 28 May 2024 05:51:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX6KdxaVByyMJalIDniZOPobOf9yA6qCjUPaGmUIBY03eB5OSetXnrrXlVrwk3KF4mAzvjO7wr5VAsO7lSQfhpqKyuVJq0qcJjjEKoTfQ== X-Google-Smtp-Source: AGHT+IGLjficK1vBNQMRLzjysEWhyeAwampHN38/5N0A9Yb6WJ8HM7rqFmJg+mYCcb8xmK59/A68 X-Received: by 2002:a05:622a:180b:b0:43a:f697:6670 with SMTP id d75a77b69052e-43fb0ef7462mr128858671cf.49.1716900702514; Tue, 28 May 2024 05:51:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716900702; cv=pass; d=google.com; s=arc-20160816; b=iglVWKTaJzKM+7n2INaW5Czh9hQFmLy+s1gTZ2emFdcr6eTKNwrWAzJ/3h/1CEwFFg O07KKro3WxzBkO9JEO+APSIkKKAbUK6+Wym+hFyZMDUkKAWkfbvu9JgwFsBByrGWkBKJ 8FacdNgJ5Op8Ls77VFEvcQuobRrI7rVzQzEe0eb3U0moyKWdCWlIid6+hoFdkKoGNe0h kd+9bj2Sk7j4X+vcQy5zYvPgzovO8LNKQ+JAiUImAugnSInAwwQxKSySHX2Qtw42T0qA sMk7EW8VHWkcfUYd9acZIPbQdSEHtw7tR9SLI9ZNJn7epc36Lpww62CGTVU0MS9Oqymj w8/g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=cs6twXGUnqAVWEMHCctBxuWI9JJWQsFtcp2eRMeUzcU=; fh=o97RlJ9mVo7LiauMDR1/KZzgeksfJs4fcvV+rCCWPtg=; b=lGW6DZgUQvj6GEkEaVn/a1X6ZAxW3kaZNhzJSnuZMFlea0iaremFpp5ezt162APLma tXQmPR0j8PXYGXeVPw4NOYsroTZRWn9/ktBRQLFbwiuhqDi4T0AEy+Ocst3DvDlafo3Y E+F/ZaxWZKWK1GZLg5edXAZ4oORKo9czrPk8lUV1/tV98zyli+ucgEGVMXH+3hzVi19d xLd/5V0ZQcJBHj4Jwq0Ibo+bu2gVjXEFG2fsG+LKXtsdMeC6IDlJfCFSwVhjT9Gierb7 4pOXQjfyBxvx8fW8EQFqZcs4w6xsC3W4YH2EQPc2wv4L/pP/F9Eptz9g/bu+dy0GfDHc K6Lw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=Jz125kbw; arc=pass (i=1 spf=pass spfdomain=9elements.com dkim=pass dkdomain=9elements.com dmarc=pass fromdomain=9elements.com); spf=pass (google.com: domain of linux-kernel+bounces-192333-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192333-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fb18a64a6si112468461cf.388.2024.05.28.05.51.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 05:51:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192333-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=Jz125kbw; arc=pass (i=1 spf=pass spfdomain=9elements.com dkim=pass dkdomain=9elements.com dmarc=pass fromdomain=9elements.com); spf=pass (google.com: domain of linux-kernel+bounces-192333-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192333-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 35BBB1C20306 for ; Tue, 28 May 2024 12:51:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 95ECD16D9AA; Tue, 28 May 2024 12:51:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=9elements.com header.i=@9elements.com header.b="Jz125kbw" Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E4E5216C42C for ; Tue, 28 May 2024 12:51:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716900696; cv=none; b=jmrb9l04twwgxl3fML/0fXwXsfto59PXOySwCQSRLLrwDfl2SJPEOpcD1/p4vAKRK3Ep65IkmxYSk8M1Ex3Ffb5SuXT4ftuP8Q0gDgPzi30taKjP4bvtAFcRBIoGxbm3IPjh4GoEj6aFp9JTrHTP2EAkYjo4bfwbzcaJl2oH1z8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716900696; c=relaxed/simple; bh=X1owGtWYRo+/l0DSm9qoof73k9VXXMI2Bemu9W1jHHg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=L8E59ed+bR+s2V/PgFLEavSEPYhHWw7Rsso2th2woYGiadZ5UcAbfVDckSudEQXGOG05RaCE5Wdumyx53UmCVL3UBQKut3p0H4lMvb0HE9wuB5SVyEUZ8TJWe8o3qxI7T8Bit+aqqOIIpO7I/F1z6QYQ5YD32TK4e3ycXmcGpBg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=9elements.com; spf=pass smtp.mailfrom=9elements.com; dkim=pass (2048-bit key) header.d=9elements.com header.i=@9elements.com header.b=Jz125kbw; arc=none smtp.client-ip=209.85.221.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=9elements.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=9elements.com Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-35507dfe221so487245f8f.1 for ; Tue, 28 May 2024 05:51:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1716900692; x=1717505492; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=cs6twXGUnqAVWEMHCctBxuWI9JJWQsFtcp2eRMeUzcU=; b=Jz125kbwQCiEM3WmY1z4kQj+jffBi324gUrk+bSSplnwz7pPJZtrr7OeMI7t7AUdRz LroNrzuREva4Ov1S17tCYDgeTwTfmJOaYp5EUAFwpcNLSFK2C33RWNsPXdM1qJHALAH4 6Bswz9KyQd0vzNZK140lBdcze737av8aubFyKHmigyoZkf4/ApyQ6j5drDb8yrWn3zus i0TT0mZTgZAmYu28ZyTT7rtx/oIhzsH1bft2go1f4CAL7RigdbngU9ncyK5HsM4tLcN6 132MyjYd1Kqk8dxfcGuOjAu9iSy5khVjcuilTwywoxqNVALFTkXHLBtPjO/ZGRk+y8wJ n7mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716900692; x=1717505492; 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=cs6twXGUnqAVWEMHCctBxuWI9JJWQsFtcp2eRMeUzcU=; b=dAf3RHgjXw3Jo84vnfXg6zuF3asR/CrbMpmagzcnRhca+3AAEIYIan1tvu5kGjas6w UV0HubL2B1A5PgFNJCZQF29GGUVMaQw5L1idNyb+UfASLqX1TjTESZJPEndmkuuxiXcU xd2IcI7PVWqc+Ml970YaqCACmRBCTvVzKkrCFpmfzrhx5uRP/jI65ITGmjae/nXf/iBX jAQgfuJRYWRtGS84IJnkPigdlXvYUr7WmW5h7BqQUhSqFhsEAYwqKLeiYD3HoSfYpY38 2AHMv3Uas6T1jWOLmwPcJXHUwee4ly1KQpXFWK+2VqzWDBjkIXDtgA34JJ1JLZdoHH+A fMHw== X-Forwarded-Encrypted: i=1; AJvYcCWwbEoC2TvcyVdclCDQIjP23swULE67LNJGJyxnhKtMxfh3Zi4etVEkBhaE5oMRu+Hu+QINB7d3OSYkcscbwUHuZdj7ElbrweVBHYz6 X-Gm-Message-State: AOJu0YzmeebfrShO2sYuoHP4BnUAB65+CuvKbrtxUFNXfDCa9iGEt6GB ZXV8XUfRGyIF/I0XslMHGzhTTnt96xN+rQlzXvtcvlNxgMMgyaNxsqDttYu8c8o= X-Received: by 2002:a5d:6342:0:b0:354:c329:90d1 with SMTP id ffacd0b85a97d-3552fdefa90mr10115575f8f.63.1716900691933; Tue, 28 May 2024 05:51:31 -0700 (PDT) Received: from stroh80.lab.9e.network (ip-078-094-000-050.um19.pools.vodafone-ip.de. [78.94.0.50]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3557a1c92e7sm11626300f8f.66.2024.05.28.05.51.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 05:51:31 -0700 (PDT) From: Naresh Solanki To: Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Naresh Solanki Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: hwmon: Add max6639 Date: Tue, 28 May 2024 18:21:21 +0530 Message-ID: <20240528125122.1129986-1-naresh.solanki@9elements.com> X-Mailer: git-send-email 2.42.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add Devicetree binding documentation for Maxim MAX6639 temperature monitor with PWM fan-speed controller. Signed-off-by: Naresh Solanki --- .../bindings/hwmon/maxim,max6639.yaml | 92 +++++++++++++++++++ 1 file changed, 92 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..a2e37f7329b8 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/maxim,max6639.yaml @@ -0,0 +1,92 @@ +# 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 + +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 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + '#pwm-cells': + const: 3 + +required: + - compatible + - reg + +patternProperties: + "^fan@[0-1]$": + type: object + description: | + Represents the two fans and their specific configuration. + + $ref: fan-common.yaml# + + unevaluatedProperties: false + + properties: + reg: + description: | + The fan number. + + required: + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + fan1: fan-controller@10 { + compatible = "maxim,max6639"; + reg = <0x10>; + #address-cells = <1>; + #size-cells = <0>; + #pwm-cells = <3>; + + fan@0 { + reg = <0x0>; + pulses-per-revolution = <2>; + max-rpm = <4000>; + target-rpm = <1000>; + pwms = <&fan1 0 25000 0>; + }; + + fan@1 { + reg = <0x1>; + pulses-per-revolution = <2>; + max-rpm = <8000>; + pwms = <&fan1 1 25000 0>; + }; + }; + }; +... base-commit: 5fbf8734fb36cf67339f599f0e51747a6aff690c -- 2.42.0