From patchwork Tue Apr 18 11:32:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naresh Solanki X-Patchwork-Id: 13215485 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 67999C77B75 for ; Tue, 18 Apr 2023 11:32:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230517AbjDRLca (ORCPT ); Tue, 18 Apr 2023 07:32:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbjDRLc3 (ORCPT ); Tue, 18 Apr 2023 07:32:29 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F03E1713 for ; Tue, 18 Apr 2023 04:32:28 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-3f09b9ac51dso64972775e9.0 for ; Tue, 18 Apr 2023 04:32:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1681817546; x=1684409546; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=D2PeO5e/Aox7QzhHkYSjxJqeqgTXFUOLxZJv9Qdfgrk=; b=RH+YGD10Qb+PdrpuxWIl9buclhbzz5Ju3+49P2MB/c7gpU4g2hk4+mSyz85yBYRsRu aKITw2+IQkCfCQ/0uSPr2JODdW+xMEbyEzwguAaWzn6UUjHGkfwYH84T18/xtv7AC7jI ed/gaTsAM/tl4cLmjAk9YYppNvDUMC8Uw4APXW+BrcTD2/sK8IlrdkN76zlQ97u0vuJY 3V45h3AjW5ApD/uJ+zlRSGfolS1unFBNSLN4N87sx0Y4HZ9/rRiqxtDciIpXTH23zZVl NxiQgMQrushL1wTMbAMIKmFqzSuFFh0brDJ1t5z+YFLoEbXOW3zUtl8XM/e18Upje8Yt bJEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681817546; x=1684409546; 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=D2PeO5e/Aox7QzhHkYSjxJqeqgTXFUOLxZJv9Qdfgrk=; b=b3mgbQ3/YIf0tEkux96QuS5QahEpUlslHuPqdxPDMCFeI+lmrPNE2G4uufzjmfb4rj kLvs7qPXRvnBclwOPk1Wy+EcdNPfe7hx7BUG+xhwb4jemFV8O8ibEq8JP91CCc6MYdKd Cx37tDY86KIOXrfexjYiM2nfYwClwLxUNcNJtaQq09tjgsB7rgSq5VbTggAFi+9IMAmV NDrnp/nywQZQZO3Yf1UCwShuzIrmAECSPPfJO/CekvncqjZCBX8iqPl9Zygc7w1O0USX nzEK1r4UmkK9IutGWr8f6JWyDhER6tdQORHd8J3U2+Q/SC6H1APPqKHTFSTsv2b+bv0g V9gw== X-Gm-Message-State: AAQBX9c1n/5YqxLB4gRKEmgldiXieajWI8BvBjN058M0hryvlL02XHDF 88I6gPyIEhgfGRVh+sBQYtG3vA== X-Google-Smtp-Source: AKy350ZZ7JKXwDmajPANDwbPxlCPBGMo6pL+KeoOJlnqA1YkpHnOvBcZY+OjgAj90miPiCIyerGrPQ== X-Received: by 2002:adf:f7c5:0:b0:2fb:a0eb:feaa with SMTP id a5-20020adff7c5000000b002fba0ebfeaamr1619941wrq.17.1681817546464; Tue, 18 Apr 2023 04:32:26 -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 z18-20020adfd0d2000000b002da75c5e143sm12901633wrh.29.2023.04.18.04.32.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 04:32:26 -0700 (PDT) From: Naresh Solanki X-Google-Original-From: Naresh Solanki To: Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Naresh Solanki Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: hwmon: Add binding for max6639 Date: Tue, 18 Apr 2023 13:32:16 +0200 Message-Id: <20230418113217.781524-1-Naresh.Solanki@9elements.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Add Devicetree binding documentation for Maxim MAX6639 temperature monitor with PWM fan-speed controller. Signed-off-by: Naresh Solanki --- .../bindings/hwmon/maxim,max6639.yaml | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/maxim,max6639.yaml base-commit: b8610e0fe08f1476895f141be60f8dd842f0adac diff --git a/Documentation/devicetree/bindings/hwmon/maxim,max6639.yaml b/Documentation/devicetree/bindings/hwmon/maxim,max6639.yaml new file mode 100644 index 000000000000..20b28cd36555 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/maxim,max6639.yaml @@ -0,0 +1,55 @@ +# 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 Dual 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 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + max6639@10 { + compatible = "maxim,max6639"; + reg = <0x10>; + #address-cells = <1>; + #size-cells = <0>; + }; + }; +... From patchwork Tue Apr 18 11:32:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naresh Solanki X-Patchwork-Id: 13215486 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E538C77B76 for ; Tue, 18 Apr 2023 11:32:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230384AbjDRLcb (ORCPT ); Tue, 18 Apr 2023 07:32:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230429AbjDRLca (ORCPT ); Tue, 18 Apr 2023 07:32:30 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEB4F4221 for ; Tue, 18 Apr 2023 04:32:28 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-2eed43bfa4bso2187871f8f.2 for ; Tue, 18 Apr 2023 04:32:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1681817547; x=1684409547; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SH6qJUfWL9zJ79gRC7zWLV6OUPZJsPitBsnwEKwZJzc=; b=dYUwrH3cwlb/VxM7YYjAPDY7d/PWsWZ/ahEUtKV2iEx7AIXgFCrrdTZXOwllrCJKk4 srvp+L2cb/LktGtpfu5JSBX4pUGDwDShUHIN6jCGJTax2V2m5sO22+0vljXw4Iq/w6gS 37D5Br1I1D8fcOgYJbpfgwUXQUHIkJR1uXMqHp3HyBOylbE5VJaBcF6OAfP34b/tQqgc 96kCNRXyfTxcMfuE4BxW1kTgICp/XQljEdZ376ffZd3ERJc22tW7BlkXvm0lk6axHOm6 49Aeeh50xLWdUPqeSyqwi3O10KWRFvU1MD2Baya16XDu9Z9diOwGvkXNmCbFKY/i4+df 0qiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681817547; x=1684409547; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SH6qJUfWL9zJ79gRC7zWLV6OUPZJsPitBsnwEKwZJzc=; b=SqQhClJsPytK2RWcvL3Rd9u8M2wnRQoFhWwazKHUbzqMU5Q9Xhr3TDn5t5iq7zxQ37 uRUlDy1OIT6Qoy83ghcXUYJh8EpUAnqCL1SaF9wD9St7pBm4pzonBmaCcglhgH4EH4X2 GeoK1xRBrSRMlA8RW7o67nALBY/pHTw2pjaas9FtHZNm+A4fZO+qSymRFT1m80/l46fN h0us/E1/mXraGSjUKy/S/FbdAqHiogUoHvWhawgGLmC+0c9e7fE5eel8VaZpYKmUBND2 K9tX/iTYOYIFX2SC2xJ0TqEQgWX0hEU2mGn0d7k/KAXkPqtw0yWEGjT8q7MGQS37YM5D zBFQ== X-Gm-Message-State: AAQBX9cOuZwImdcNyGhw8hTbNcyupnzGYVTMR/J4Sq4jNSyNOr+Zze95 3brtdpuy2QG2k23y+Hr/HijmB3U5BDJ9Yc0QgtWpoA== X-Google-Smtp-Source: AKy350aMjaf6xGbP/S2Z5Z9i+emE+iz2bk11Y03Ha/+prgGlprwQ0eo2pRL8eH3nq2LMMAa+9bdzxg== X-Received: by 2002:a5d:688e:0:b0:2f8:f775:c885 with SMTP id h14-20020a5d688e000000b002f8f775c885mr1543151wru.6.1681817547289; Tue, 18 Apr 2023 04:32:27 -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 z18-20020adfd0d2000000b002da75c5e143sm12901633wrh.29.2023.04.18.04.32.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 04:32:27 -0700 (PDT) From: Naresh Solanki X-Google-Original-From: Naresh Solanki To: Jean Delvare , Guenter Roeck Cc: Naresh Solanki , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] hwmon: (max6639) Add compatible string Date: Tue, 18 Apr 2023 13:32:17 +0200 Message-Id: <20230418113217.781524-2-Naresh.Solanki@9elements.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230418113217.781524-1-Naresh.Solanki@9elements.com> References: <20230418113217.781524-1-Naresh.Solanki@9elements.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Use maxim,max6639 as compatible string for the driver. Signed-off-by: Naresh Solanki --- drivers/hwmon/max6639.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/hwmon/max6639.c b/drivers/hwmon/max6639.c index 9b895402c80d..ada410bfb7b6 100644 --- a/drivers/hwmon/max6639.c +++ b/drivers/hwmon/max6639.c @@ -618,11 +618,17 @@ MODULE_DEVICE_TABLE(i2c, max6639_id); static DEFINE_SIMPLE_DEV_PM_OPS(max6639_pm_ops, max6639_suspend, max6639_resume); +static const struct of_device_id max6639_of_match[] = { + { .compatible = "maxim,max6639", }, + { }, +}; + static struct i2c_driver max6639_driver = { .class = I2C_CLASS_HWMON, .driver = { .name = "max6639", .pm = pm_sleep_ptr(&max6639_pm_ops), + .of_match_table = max6639_of_match, }, .probe_new = max6639_probe, .id_table = max6639_id,