Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3792974pxu; Wed, 9 Dec 2020 00:07:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVerjErAS4eccoutRu4NItWhiW6h/nIUWSwSyVkdRrDpwEvlbyqu5htCA1FwAwnYb5NJ42 X-Received: by 2002:a50:f40e:: with SMTP id r14mr859284edm.5.1607501267105; Wed, 09 Dec 2020 00:07:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607501267; cv=none; d=google.com; s=arc-20160816; b=DDtYfqHkyEGxuaKZn8TEkyLBNMy6B7wxZpuzENmr7c1zwmfA0ZF5pKc65dWViVsUL6 ydiexwsSXlDE+EgVzrvCgggvsuxdyCoErpQcuJeewyK3ymDFJ/mfh5HMN6DO6084MfNT UqqN714F5csV6mADB3LhxdBNqU4iDkpqJ5niuJKDqT3buy3NKpfaa9EbtFvsVbuKDzo1 m/6An7xtTBjRhlyP/fBCGXgGI3u9qEE8NXfx+gWF9fakgrppU9//ZnaEsar/1ZbgDd5I y1rqiYtsutL6YvlnF/BC5Uq6Id9hP832jXHZJ4tW0hz9B0luF9+zuG77Y6YV79O15oPR y4mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=xOtCIvcYgzNd9fXjUP40JnrvZU3iIngeiaaSZxE+zDk=; b=jkTazeh9al5jXNTACubp6xtX8gghWExNk2riZw6M1GHusY1LIRmQoabLsrCzaKs3YE Tox93AZLJ8Z4p1E+qT3P92utuXC9mhLYZAU8HSQvK94Cx2lUeKscijNZHCH0RCPd0spD fu9FoyMyVgS/LFrKW0bcNEknjSw1oMF/7wdVPelkYApgrXotzE62+ZRP1MCCxO1gHGfd 7X8oTV214qnz7q74ApljBNgod2c4r58rrlBmZ2MFaEye12tthaNL4vhrgeCxmqEz+jzJ YTzAcXDvX8LzrlsogLjAfRMzl6vAZbNeht5ocu5a8AaPhMpo/82OQqgvoLGHjA+Llrhs N25g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg19si357194ejc.365.2020.12.09.00.07.24; Wed, 09 Dec 2020 00:07:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728477AbgLIICc (ORCPT + 99 others); Wed, 9 Dec 2020 03:02:32 -0500 Received: from twspam01.aspeedtech.com ([211.20.114.71]:46458 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728437AbgLIICa (ORCPT ); Wed, 9 Dec 2020 03:02:30 -0500 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 0B97uUSR009070; Wed, 9 Dec 2020 15:56:30 +0800 (GMT-8) (envelope-from troy_lee@aspeedtech.com) Received: from TroyLee-PC.localdomain (192.168.100.253) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 9 Dec 2020 15:59:25 +0800 From: Troy Lee To: , Jean Delvare , "Guenter Roeck" , Rob Herring , Joel Stanley , Andrew Jeffery , Jonathan Corbet , Philipp Zabel , "open list:HARDWARE MONITORING" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , open list , "open list:DOCUMENTATION" CC: , , , , Subject: [PATCH 0/4] hwmon: aspeed2600-pwm-tacho: Add driver support Date: Wed, 9 Dec 2020 15:59:16 +0800 Message-ID: <20201209075921.26689-1-troy_lee@aspeedtech.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.168.100.253] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 0B97uUSR009070 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Aspeed AST2600 is a server management SoC which has 16 PWM channels and 16 fan tacho channel. This series of patch provides AST2600 PWM/Fan tacho support in hwmon class. The driver provides a sysfs interface, and user can configure PWM duty cycle and read current FAN speed in RPM. Troy Lee (4): dt-bindings: hwmon: Add Aspeed AST2600 PWM/Fan ARM: dts: aspeed: Add Aspeed AST2600 PWM/Fan node in devicetree hwmon: Add Aspeed AST2600 support hwmon: Support Aspeed AST2600 PWM/Fan tachometer .../bindings/hwmon/aspeed2600-pwm-tacho.txt | 69 ++ Documentation/hwmon/aspeed_pwm_tachometer.rst | 24 + Documentation/hwmon/index.rst | 1 + arch/arm/boot/dts/aspeed-ast2600-evb.dts | 149 +++ arch/arm/boot/dts/aspeed-g6.dtsi | 10 + drivers/hwmon/Kconfig | 10 + drivers/hwmon/Makefile | 1 + drivers/hwmon/aspeed2600-pwm-tacho.c | 1053 +++++++++++++++++ 8 files changed, 1317 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/aspeed2600-pwm-tacho.txt create mode 100644 Documentation/hwmon/aspeed_pwm_tachometer.rst create mode 100644 drivers/hwmon/aspeed2600-pwm-tacho.c -- 2.17.1