Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp147226pxb; Tue, 12 Jan 2021 23:15:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLjZeoZTcS682lyR3X7IhE+sJ/jCZkV8w9K3JCy9fV3hn/K1v+41Ll8Jbv/IZng+8h7oiJ X-Received: by 2002:aa7:d919:: with SMTP id a25mr645363edr.81.1610522143712; Tue, 12 Jan 2021 23:15:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610522143; cv=none; d=google.com; s=arc-20160816; b=p3X1NVWJQAmKt0E1r7TgefggE4Aop/TrSRD6r65KfZAwKI2FUK9UI0dnPF3M0AoV0L sKNC596kUJQoim6vW//OxdcrAajRkvmjE+jGMIw2J/gkPqBONPTLoSOhRg/gjoKeiBkh RawJm/BhPPOV0b64pEaTPP55PfNx53uu/NuizG3CEmqTCdrb5+esFPlObju7gTElWsZg PZnX3IBBoa6ihm4i2SGj/vgY3pfhJ9Ilx0EMLNVPxi7it7llROL8Wp0tANbgC5xSPN0S RMvjYUkPQPnADh4xl43rvoRRW4M3KLoVb0bzfAUbilM1RNwy5DkB5SwTy6/TtzWc1Tz9 NjkA== 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; bh=hyxVrjJs5GjjjjXEJuAxtm4OKW1/lUqsYPPCnvOVDnc=; b=nuV17ytuDQnEvySAToMBklNnjOsDYakzSCaG9HZrOdVuvwN9s6sion+0w83MAw5+kD WXLICmHxoMYI5KnQkLL7B+RmMeKx19cNOAPxUyL6FL+9C6pmxVH4+65qaUzo2l8md4qM kU5ds4KWtKXMqHHIMd/it6/A7C8ia8oC2cFNzHoNsmeG+OOaHJAiR9PjWb0u6h8E04+m 7JV3iQbAX2NxfmBAHzIZX9AqMOdPrnXIFVtF2I/vqRsNM4ljTE54Iwjf6SPVNAWbOl8i T8gYkMIoGL+GWqkc2WeQOjQm+F+fMuRvQV6coeWK4kO/Uqn4Q7NYChfagP1gsdn+BtqB 46dA== 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 v1si514667ejf.162.2021.01.12.23.15.20; Tue, 12 Jan 2021 23:15:43 -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 S1726546AbhAMHLo (ORCPT + 99 others); Wed, 13 Jan 2021 02:11:44 -0500 Received: from twspam01.aspeedtech.com ([211.20.114.71]:52876 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726460AbhAMHLo (ORCPT ); Wed, 13 Jan 2021 02:11:44 -0500 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 10D73sa0005372; Wed, 13 Jan 2021 15:03:54 +0800 (GMT-8) (envelope-from troy_lee@aspeedtech.com) Received: from localhost.localdomain (192.168.100.253) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 13 Jan 2021 15:08:54 +0800 From: Troy Lee To: , Jean Delvare , "Guenter Roeck" , Rob Herring , Joel Stanley , Andrew Jeffery , Jonathan Corbet , Philipp Zabel , Ryan Chen , "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 v2 0/4] hwmon: aspeed2600-pwm-tacho: Add driver support Date: Wed, 13 Jan 2021 07:08:44 +0000 Message-ID: <20210113070850.1184506-1-troy_lee@aspeedtech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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 10D73sa0005372 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. Change since v1: - dt-binding rewrote with dt schema format - register hwmon driver with devm_hwmon_device_register_with_info() - moving default configurations to device tree *** BLURB HERE *** Troy Lee (4): dt-bindings: hwmon: Add Aspeed AST2600 PWM/Fan hwmon: Add Aspeed AST2600 support ARM: dts: aspeed: Add Aspeed AST2600 PWM/Fan node in devicetree hwmon: Support Aspeed AST2600 PWM/Fan tachometer .../hwmon/aspeed,ast2600-pwm-tachometer.yaml | 137 ++++ .../hwmon/aspeed2600-pwm-tachometer.rst | 27 + Documentation/hwmon/index.rst | 1 + arch/arm/boot/dts/aspeed-ast2600-evb.dts | 152 ++++ arch/arm/boot/dts/aspeed-g6.dtsi | 10 + drivers/hwmon/Kconfig | 10 + drivers/hwmon/Makefile | 1 + drivers/hwmon/aspeed2600-pwm-tacho.c | 756 ++++++++++++++++++ 8 files changed, 1094 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/aspeed,ast2600-pwm-tachometer.yaml create mode 100644 Documentation/hwmon/aspeed2600-pwm-tachometer.rst create mode 100644 drivers/hwmon/aspeed2600-pwm-tacho.c -- 2.25.1