Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5025523imm; Tue, 19 Jun 2018 03:56:30 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLbQY7pLPFuIqXXSf8gxLekjaU8Uot584cRYAeBAOf5R0tbntjygVhynUvqcmVHYYfXKKQ0 X-Received: by 2002:a62:3c15:: with SMTP id j21-v6mr17662602pfa.7.1529405790893; Tue, 19 Jun 2018 03:56:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529405790; cv=none; d=google.com; s=arc-20160816; b=koJnlX/PJyEeLebNhGhqZfEwTn2lrfTBmb4BPuTVTVMwnisHW5zbtlpJ0RmxkfQtcw weGu5qjxUjwQYvQfhFzZb/Spqots38sfH5gnkGXgoCa+8aLAHSt1QwDE5lwyMWd9Aobn cF5r4VHEvEG++aM32Nbw+NxCeRoBgBqwjnqQBXh7cFWMvkuuO08Kq8U+qXh5zPpEnlOc PIztI3E2g5D4An5d8oMA/V4xgOQ//rlxUe4iEIKIicYS1zLb1ngVIhRK/saoED6Uno0z HRnqjX50BJVsja5MzS+gWplqZbr2M2wEghdWFRmDrlz+Gwhfkl4jKBn9xXj4dNU+qDDp BoQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=oBlBAe7ADPZ27x+Icv7lJ5OmLsVUdTTifFQmS91p610=; b=Pk24NSNqD3RbuERIq/xkSK7AJPW8twZ3tm6EBnROG7WhYS7dRn9cTO7/o/zZ7JbWyR KApSp30so7E3w7DyNUmVmVN7BTy2NlGbXCC19qJ5N90F2NOaNw+3wM9Nbd5wWOz+uJp3 9eOXrwVE9eUazQNj6T4MBEugkD2C2E6ld5WwbXkPwoWsF6UF6wuPZsYqxeQ4numsGCIR phyJhJ2KvF1wFn/3JBd57Ar5Jd6KE5cvn+E/z7hIR8GvNSFJQz/6qCx5IDPsVzj6F80A 9lS89t22gZFW1zupGTDaTBMbphbXuFbyMxuw82espfUN1xptWJ2XK/RUjY88IQIMatVZ v9YQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m2-v6si13761865pgn.178.2018.06.19.03.56.16; Tue, 19 Jun 2018 03:56:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937640AbeFSKy7 (ORCPT + 99 others); Tue, 19 Jun 2018 06:54:59 -0400 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:33935 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S936108AbeFSKy4 (ORCPT ); Tue, 19 Jun 2018 06:54:56 -0400 Received: from taln60.nuvoton.co.il (ntil-fw [212.199.177.25]) by herzl.nuvoton.co.il (8.13.8/8.13.8) with ESMTP id w5JArs68021327; Tue, 19 Jun 2018 13:53:54 +0300 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id 8814B62FF8; Tue, 19 Jun 2018 13:53:54 +0300 (IDT) From: Tomer Maimon To: robh+dt@kernel.org, mark.rutland@arm.com, jdelvare@suse.com, linux@roeck-us.net, avifishman70@gmail.com, yuenn@google.com, brendanhiggins@google.com, venture@google.com, joel@jms.id.au Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, openbmc@lists.ozlabs.org, Tomer Maimon Subject: [PATCH v2 0/2] hwmon: Add NPCM7xx PWM and Fan driver support Date: Tue, 19 Jun 2018 13:53:50 +0300 Message-Id: <20180619105352.97181-1-tmaimon77@gmail.com> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set adds Pulse Width Modulation (PWM) and Fan tacho support for the Nuvoton NPCM7xx Baseboard Management Controller (BMC). The Nuvoton BMC NPCM7xx has two identical PWM controller modules, each module has four PWM controller outputs and eight identical Fan controller modules, each module has two Fan controller inputs. The hwmon driver provides sysfs entries through which the user can configure and get the duty cycle between 0 (disable the specific PWM) to 255 of particular PWM output port. The driver support cooling device creation, that could be bound to a thermal zone for the thermal control. The NPCM7xx PWM and Fan driver tested on NPCM750 evaluation board. Addressed comments from:. - Guenter Roeck: https://www.spinics.net/lists/devicetree/msg231982.html Changes since version 1: - Rename driver name - Adding Fan Controller support - Adding cooling device support - Modifying dt-binding documentation for Fan and cooling binding Tomer Maimon (2): dt-binding: hwmon: Add NPCM7xx PWM and Fan controller documentation hwmon: npcm750: add NPCM7xx PWM and Fan driver .../devicetree/bindings/hwmon/npcm750-pwm-fan.txt | 84 ++ drivers/hwmon/Kconfig | 7 + drivers/hwmon/Makefile | 1 + drivers/hwmon/npcm750-pwm-fan.c | 1099 ++++++++++++++++++++ 4 files changed, 1191 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/npcm750-pwm-fan.txt create mode 100644 drivers/hwmon/npcm750-pwm-fan.c -- 2.14.1