From patchwork Thu Oct 13 09:48:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naresh Solanki X-Patchwork-Id: 60 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp179646wrs; Thu, 13 Oct 2022 02:49:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM58XtCuWb9b3WVwEn+27HJx7F+2qF6HkC81IB42X9kCsRuFxqaMNngHOMwg/x5MloMYq11U X-Received: by 2002:a17:90b:1bc9:b0:20d:75b8:ee5d with SMTP id oa9-20020a17090b1bc900b0020d75b8ee5dmr10488299pjb.147.1665654556130; Thu, 13 Oct 2022 02:49:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665654556; cv=none; d=google.com; s=arc-20160816; b=qfv5RIEwj7oFg5NfKI6BCtODfPz88n+/EEfsypxf+fYfw0nFko6SWJSvN0scNRrC8Z AfvioxaD6e6t3zvCIyHavGA6phE2ICFHi0jN4aufTd2eAdM44zBne1ZkoieVt/BlTOA2 bc1tRpt2/l8/b2+/fAhKUhTtfkAZsrjQw7NCDNf6nPTcwHtsgVP2heWT19zyeRmvp2o2 X3urUIqkryK/DNTgbg1Qy1C/18RG8wrIOWLOdrOexMKZzIJyZI06Coyqi/RI6MwyusAk 6oBR8NaWanv9o7T0ZD6V//+qcLgOqRj6RbUeoI3QWr8HEonhJ3fCDBuLwelbCnzLejIA PVFg== 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=my23X7XxT6pOMsybxxTZUlwXrtvl44KFC1Kd4yeNLFQ=; b=pID8qVXuHctw0CaapjmQ0iBELVxex/SACeqd4WuHjePugZGAKCOR8cM7saAEmd53j9 8ZXh8P5n18Zye/lg65k+8rqbj2c8gNgKcFnG6k4FgTuTs7JSMoCzmYZi9oLPpbdXj/uc VIiDMhiqjSCHNx7UKucpAob2u5stlFPIKI5080d0LmTb75FBH5/VePFnL8VQhvXmeKD+ PEd/NoZJpuB9u98xH+P+5O4FNncpOU2bo9F/V/fXEk/QrtoKXLfvpc9mNf/PMKISs5SG snBiNvZI/9ENB+ScjkmTTKeU+70IsN68JHPFCeGQuJFAfW26LznEzjyZXixAVSxgxd0b P3gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=T8kwpNGL; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 13-20020a056a00070d00b0052d7483e126si20030828pfl.292.2022.10.13.02.49.04; Thu, 13 Oct 2022 02:49:16 -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=T8kwpNGL; 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 S229563AbiJMJsr (ORCPT + 99 others); Thu, 13 Oct 2022 05:48:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbiJMJsp (ORCPT ); Thu, 13 Oct 2022 05:48:45 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F583102DEC for ; Thu, 13 Oct 2022 02:48:44 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id s30so1856380eds.1 for ; Thu, 13 Oct 2022 02:48:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=my23X7XxT6pOMsybxxTZUlwXrtvl44KFC1Kd4yeNLFQ=; b=T8kwpNGL4ofTXFyi5keWw8GnCMoWUaNoacQ1FkmM4XnUX3gspgXGASmjqQW5f3dBwu p6WqNrAE9XQjNzOiACOsodxq8VOIu18F5/JT9FjaoIPG6xnwwE3jljBbVdMaYrlsrAgx LppoCAnrxUWtgZuVf0JrydJg4MWAEEaYb/a+ctlgo4kn3ihwFnurmJZL4JsEXMOtnXfl f71ctgIu2OtLQIlQyEbvH7QkmxCzG5C4gXeJoCa7VUj/2clQuj7uHB31QWDBSGDRZdES TFzmbhgzguHrzxxnon0wu6aOlkzdI7mneyqM9MaWBZbQ3oif4HxauHLQpZC1Fq+Vhg4W IaCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=my23X7XxT6pOMsybxxTZUlwXrtvl44KFC1Kd4yeNLFQ=; b=TCRrn4JpT0HLjSbBdUhk7XBPlP+VqJC+eN7ZgfW2JBTnHgmRM60N90BfFMbCHLMAOj HrI/jLuYwApH7OaV5/VIHmE76TJI7f+bY1w+nx6s9F5gtmrmxM8GffVdpSbfQd4AgURo jI0xiYAtiX5srEzv+Af7e0qqGYGLCx1FVIEBzqSnWJz6hF9WwYUh121YeT6rqF005Ncq qwy4J26aZE34SXrsMvGdTIy2l+YCYFZxhnix3+5PqDqx/ulCrNqeeRH+91Cjx2Z7yskf deZ8G2Vbk01p5WR5Jv52FitpHSUg/UD5qrVpZnLx7BWZBkvXbwX/qzbVYKCWFsQKDsqV us/Q== X-Gm-Message-State: ACrzQf0RA+mApRa0eoigOhLjW4c1/M6FjS44BocGB7rgKDaORhpYvvvW tERVeGkJ8y4ymfEaPEaa8Fgv4A== X-Received: by 2002:aa7:de10:0:b0:458:e101:fe54 with SMTP id h16-20020aa7de10000000b00458e101fe54mr30106621edv.80.1665654523038; Thu, 13 Oct 2022 02:48:43 -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 e14-20020a170906080e00b0078d25e0f74bsm2685353ejd.46.2022.10.13.02.48.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Oct 2022 02:48:42 -0700 (PDT) From: Naresh Solanki X-Google-Original-From: Naresh Solanki To: devicetree@vger.kernel.org, Guenter Roeck , Jean Delvare Cc: linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, Patrick Rudolph , Naresh Solanki Subject: [PATCH v4 0/3] Add devicetree support for max6639 Date: Thu, 13 Oct 2022 11:48:35 +0200 Message-Id: <20221013094838.1529153-1-Naresh.Solanki@9elements.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 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_NONE, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746565391477389317?= X-GMAIL-MSGID: =?utf-8?q?1746565391477389317?= These patches adds devicetree support for MAX6639. Changes V4: - Fix dt error - update comment Changes V3: - correct fan dt property name - remove unrelevent changes Changes V2: - Fix dt schema error. Changes: - Add fan-common dt schema. - add dt-binding support for max6639 - add max6639 specific property Marcello Sylvester Bauer (1): dt-bindings: hwmon: Add binding for max6639 Naresh Solanki (2): dt-bindings: hwmon: fan: Add fan binding to schema hwmon: (max6639) Change from pdata to dt configuration .../devicetree/bindings/hwmon/fan-common.yaml | 48 ++++ .../bindings/hwmon/maxim,max6639.yaml | 86 ++++++++ drivers/hwmon/max6639.c | 206 +++++++++++++----- 3 files changed, 287 insertions(+), 53 deletions(-) create mode 100644 Documentation/devicetree/bindings/hwmon/fan-common.yaml create mode 100644 Documentation/devicetree/bindings/hwmon/maxim,max6639.yaml base-commit: 0cf46a653bdae56683fece68dc50340f7520e6c4