From patchwork Wed Nov 16 21:36:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naresh Solanki X-Patchwork-Id: 1787 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp74556wrr; Wed, 16 Nov 2022 13:40:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf7HD4GN4OL/6BgYPWfmptbuDqsDP6zQqGHazXcv/+HmrVtwoA0WeULtU/N5ES1DiQAIAWwE X-Received: by 2002:a17:902:d102:b0:186:9c32:79d9 with SMTP id w2-20020a170902d10200b001869c3279d9mr11168115plw.47.1668634830263; Wed, 16 Nov 2022 13:40:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668634830; cv=none; d=google.com; s=arc-20160816; b=gsCU1TiIm17DGgTwy0YMq0xJQDIopSrGnuYlHbmIm2ND6oqbwe2USVWvBvuGQFxiFh Gn7ec87gzOA16/L/ib2PmmQdl7DdM6dOgwSPu49CSpDq3obp+FFR8Aam0BBsjXzLVT4r Ka8iHNo0VsOR3qxlhrTekgQA/z2wtWInfF1tViXqSXI5c8IkwgMdzWAg7kCn8fXdtYb3 K0MLAXuYtTceISPIpiQ81EHsGLciuTKTGO8D4n7zE/4Teh23J0gncwvwakAhqAcvrVFr zz3rvRsb7l8V01oYnFRjkK5cHhlvnGE/WBkiKw3477Hb90EE3yUoLllhNeQ17lGmDOye 9Img== 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=To0SGhju10/tNZo+ykbCXk5at3KgpKIkkD0Iu7gHoH4=; b=mi6bS2VuXQ76dvgIvyHn+5aOUlD+j+38hVah13dTChrZHMgUdx1/kQ7PRB2aELTmRP Vuwx2kTSBKIJJXLQtUuc6YiIv0/dU4r1zq1FfSjRo8Ki7JiNXbXc85b7iVxd3S3j0Fjt sIOCrjXFd9A/L7LFt1zSDUmHp0rfR3rtWLPt9cMwzBFQFEF1GmTGTqniCVlf2v0K9ejN Cz4RytFbLmALUpsmXNk8yah1X7iisHZRmQqIfJkr7Q2epcuigxPuw7OCxE2pAt3UEcvI EINQOLBzNLoR8BNoweSgQsqvQ9ZR2q1DLFsJovWkvCKg3GptEy3IIJB7yITwJOpgOTqx Xf8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=AixU5wYb; 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 h5-20020a635305000000b0043946964302si16435221pgb.173.2022.11.16.13.40.17; Wed, 16 Nov 2022 13:40:30 -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=AixU5wYb; 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 S234118AbiKPVgp (ORCPT + 99 others); Wed, 16 Nov 2022 16:36:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234291AbiKPVg1 (ORCPT ); Wed, 16 Nov 2022 16:36:27 -0500 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 340E312601 for ; Wed, 16 Nov 2022 13:36:22 -0800 (PST) Received: by mail-wr1-x42d.google.com with SMTP id v1so32190584wrt.11 for ; Wed, 16 Nov 2022 13:36:22 -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=To0SGhju10/tNZo+ykbCXk5at3KgpKIkkD0Iu7gHoH4=; b=AixU5wYbRtIAnMucvUFSxQvpTrTou7lJDR4gMEhy0v+Zn+BFpo3B0aT7ezYBMZGwJF 6PKCVl64S5OkxiciJXq3ZfXg83YjD+zJStTGFfL3522p3YCqg1WdqVfQVI8Tn0XGYMZq RrTxdbCtqE25j4NpzurCu/Uf4K+hfUiI6HMdynhJ60yF2cypfxRPJW/eMsxW+tv1EEuz QQCFZ9p6hoaPdo9Ny7sUI5420Fpopsoi9YqEKz22eib8Hvr/Tqe1nMScxOK0kpunwpFt LbOBmO2zvP6JMBTT4DkzYDEmw/f0Lnr2HCe58lAsS2iYD5lb9AiHbhQS8+9jge3wwx5+ ix9A== 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=To0SGhju10/tNZo+ykbCXk5at3KgpKIkkD0Iu7gHoH4=; b=J3Y7zbPwDJV6I2ttgfGc2iyLrpAXCMAkW8Oyb+LA75PstuDA5Ib/1OD5x53zGisf+F 2NGGuXUySzGVAO1M8EbkqJG+JlgE5IiSncUvuZhtgZf6VT9/35VhsD1gcxzv8fur9bf5 gBhKTIngUxGg9t22CH9tuwoKf5yjafnAUaktd8yiRfp1wLI/JLxNUjMq8Pd2z2v3Aqim Smy6CL0h+cLuPr63Iz9UEnL/U+Nl29rCzakcC7RQtwecbJ7mDLs+M+SCkqnFEB4d0xIK kVG9BuhHEuKxp+lPcKHmiVWZsOxaMraGmjATQK2ghKs2JBvF7Nuj0V3qZRgb2SB30SvP CJdQ== X-Gm-Message-State: ANoB5pnS18dghvw3hOVTdtsQ+raugbhbG4nXIFzzsf+mjiPHPQXJ0xiq J/d6JvQtQ9WyQNudw4Eq/6af5w== X-Received: by 2002:a5d:5913:0:b0:236:e0d:9ad with SMTP id v19-20020a5d5913000000b002360e0d09admr15216920wrd.692.1668634580668; Wed, 16 Nov 2022 13:36:20 -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 fn15-20020a05600c688f00b003b47ff307e1sm3133045wmb.31.2022.11.16.13.36.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 13:36:20 -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 v6 0/3] Add devicetree support for max6639 Date: Wed, 16 Nov 2022 22:36:12 +0100 Message-Id: <20221116213615.1256297-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?1749690435472040219?= X-GMAIL-MSGID: =?utf-8?q?1749690435472040219?= These patches adds devicetree support for MAX6639. 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 (2): dt-bindings: hwmon: fan: Add fan binding to schema hwmon: (max6639) Change from pdata to dt configuration .../devicetree/bindings/hwmon/fan-common.yaml | 42 ++ .../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, 522 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