From patchwork Mon Nov 21 12:29:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naresh Solanki X-Patchwork-Id: 1996 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1555295wrr; Mon, 21 Nov 2022 04:30:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf5SvLL5B/aKK4U14JZHgUdQ+C4aE2/5jA+ziEFvntHI6oLaIvklbZ8diFmQRgyEBMmzW9ks X-Received: by 2002:a05:6402:5405:b0:468:4cd4:f133 with SMTP id ev5-20020a056402540500b004684cd4f133mr872331edb.18.1669033852070; Mon, 21 Nov 2022 04:30:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669033852; cv=none; d=google.com; s=arc-20160816; b=jRefrYvc1moWVjd8WNkRobBVxMJiaiNIYwwgVy4Z9NF5WTlot7ejQTeqmlVbQ1WuGQ SmkDTnN80qU3bgEwMPfcIs5/f0HHPLtFq/I2N6cvGXK1WdTjapEZdR7wNNcJcFl+eqbO x3VYy1LEUerGIHr0wKq+SztNbIyZDtYN4jspTE/sa3rziH1oBU6/g+vEJxN8mMlFF3Xb y5vxvnsdymfs6Tb2Db127mBrBJoyZL7osvLOw18/glU2F+XP+ZEfJA44rQKbWV1t0/o2 sjR3/ig4wG4mqmZrm6Lce8HZxf7krY/+SLWhvYUfdnXRVdKdmoCzNzbbAM9TOAf5b+pH uWkQ== 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=qjSeS005UQ5ZO0KT6/w85LwsSdKiXAQUVmbgaFh4T/E=; b=pH2P+ZrWPkIhp98zET56wRjmafFISRqFgkGEhBZxBYCs8yUN+rRBq0+lUiCBpmL1+P JdgxxUIpeqBL8TVLQ4zIbbkxO7mpeR2pkkHB+pmxDNu9P5mN4s/O5SVIdd0McH4rPn1a pTw6N95X2o3Yh7FbLrcnzteu5uWIo8zTVbWR2KBRtLE7Ks5FfBfH2XxGnciDIMm7wfHy NR93s32KgAzbbHQJdpIhOuENpMjY7jC7Ktpsh9UZfmQgZCTh+ZfefUEqavdCLpyXPcBe No6LIULvfo3LaKON11QEe2DerOnMuzYYhxJuMbBmt4pvPgffCtQgg54CLW9/pjf8FQmS MlWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=MII8aOSK; 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 co18-20020a0564020c1200b004574aae3f47si8584892edb.509.2022.11.21.04.30.25; Mon, 21 Nov 2022 04:30:52 -0800 (PST) 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=MII8aOSK; 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 S231297AbiKUM36 (ORCPT + 99 others); Mon, 21 Nov 2022 07:29:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230218AbiKUM3o (ORCPT ); Mon, 21 Nov 2022 07:29:44 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 349B971F03 for ; Mon, 21 Nov 2022 04:29:43 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id b12so5819603wrn.2 for ; Mon, 21 Nov 2022 04:29:43 -0800 (PST) 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=qjSeS005UQ5ZO0KT6/w85LwsSdKiXAQUVmbgaFh4T/E=; b=MII8aOSKSfsTMEl4KK2fh0Pgr6CSyuNNO7aIUnsX2QMqGSVUJR2AJlf3i0Twu6rLHt YdpMg07od2c9W0bHpumvhjz5DltfE2xcJKERPiMj7bJrYbLn5qMixCydeQPrHE3rdqRv VVx1uUmKtZ3SbZs5z0vnTBB2ZSsESe+37D72ts+cMTha0+pA7spU7Qc9N9ipLem/BCmu j5bXJI7Q/AMuIKPZc5rL14URMogUaecESoLpJcgqr6JunvLZumr+STRYqGLc2c17X8tm R61g2+QMyO+mCWBYWzgXQL0VaQH+mj/CiZtbms3B5YAfVpi+HK/Vly6NKOp8EFLBpC0C JMjg== 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=qjSeS005UQ5ZO0KT6/w85LwsSdKiXAQUVmbgaFh4T/E=; b=T+FPKsAv5o3iGg6TrrbVOrEIndpM1bJy5y/juanh9CTnve6SpQLlVaideR1+P8B/Nx IMrqk6ttO6Pq/ZVOYWOmgj+2i+Gli9K3yIzYzdXBR4zPp6GJ0SnYPi0cx0BPSCeAjIgS JT14WK45Ane8HjbI9a+tl8GptNSAsaY7bxZtvRbJSoxNf2WBZl31rMIhqd5siCBGIqIH MEhvGhtdinkdfUpS//2P4GjubAxtnbRl54Qoj/me+8eVsTOfTV7G6odspEYLXa38vPZ7 okJ7+I0gFgmAQZvvyqI3n8ITCLiOVUHtdLmy9ZtCsrv2cVTHR/PEoZ2rsATUwMBQnUaA UEeA== X-Gm-Message-State: ANoB5plo2wbwjypVTmKGoQ9ZLq8zBfP5beqpOt9iebyyPWi7bzkw/Ujt ZvYL8r/KzE40Pnh/7DJj4BTePg== X-Received: by 2002:adf:ed4b:0:b0:241:d4c2:e741 with SMTP id u11-20020adfed4b000000b00241d4c2e741mr3046832wro.628.1669033781714; Mon, 21 Nov 2022 04:29:41 -0800 (PST) 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 dn12-20020a05600c654c00b003cf6c2f9513sm13929015wmb.2.2022.11.21.04.29.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Nov 2022 04:29:41 -0800 (PST) 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 v7 0/4] Add devicetree support for max6639 Date: Mon, 21 Nov 2022 13:29:28 +0100 Message-Id: <20221121122932.2493174-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=unavailable 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?1750108840477162163?= X-GMAIL-MSGID: =?utf-8?q?1750108840477162163?= These patches adds devicetree support for MAX6639. Changes in V7: - Split the patch into 1. add dt support for max6639 2. Add pwm support - Ad DT property min-rpm in fan-common.yaml Changes in V6: - Remove unused header file - minor cleanup Changes in V5: - Add pwms support 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 (3): dt-bindings: hwmon: fan: Add fan binding to schema hwmon: (max6639) Change from pdata to dt configuration hwmon: (max6639) Add pwm support .../devicetree/bindings/hwmon/fan-common.yaml | 47 ++ .../bindings/hwmon/maxim,max6639.yaml | 93 ++++ drivers/hwmon/Kconfig | 1 + drivers/hwmon/max6639.c | 460 +++++++++++++++--- include/linux/platform_data/max6639.h | 15 - 5 files changed, 527 insertions(+), 89 deletions(-) create mode 100644 Documentation/devicetree/bindings/hwmon/fan-common.yaml create mode 100644 Documentation/devicetree/bindings/hwmon/maxim,max6639.yaml delete mode 100644 include/linux/platform_data/max6639.h base-commit: 27fea302952d8c90cafbdbee96bafeca03544401