Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1792115pxb; Sun, 17 Jan 2021 23:13:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwg1haDpFRe1jGyhu3x/WgZR8S/r/gmDUCH8FLYSm6rw9uFR1RT38luzedf1zCGljnYNeCH X-Received: by 2002:a17:906:3d4a:: with SMTP id q10mr16686450ejf.85.1610954021859; Sun, 17 Jan 2021 23:13:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610954021; cv=none; d=google.com; s=arc-20160816; b=JinTOjZdVgqFgJorhiVZ33IJO1qVJylmsxeYnI6J7XBigH25jZ9H08TlzfdtqaZauc n//AXuJkz8aM+BPRtiJVdJ+Zv/6qpGGdUza+vUoOGKdmvi+LTjJz+CI3iGbV0hy/df+e cor8sWv7oIkRtC38xtTqAau6EBV5fe48tX24d4CHipR6yORCQT8FGGi5WRC3tXTzEfPZ H0Ed2kvP6ACh3qnPmeMrgT8XGyhguBMRKYcibHBwMX/8Jxa4KQR9XW/joK+gVK6C8g7D iKHEITDwFN2KZFrmSoW4K8K9rdTn8ez+mKaK+KzzQ2C6P0jgZXmg+Kz5Whpd8K9A3uTv os2A== 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=/qH3chtbpluaz3g/5jCUzbWMNACjd6GDIzUD13uoEBc=; b=XrDh9e4U7EjY9dE5W0hOw6LLR0ffkgtkjaS/asIt/l4cMOZrDCEp3Z72bluevzD/rA WNue5m5K3FgDk16DyQjlhGzdviHKkiLHal27ViHH9Kqp/4c4kFtvKNfHaIA+eW1lAh4X cj/NOu8ttyg/ASIRbvBPSqM3lAuEfoSCBkrfrn470UgjqRR0e1a+wBonUqjgtuqjVhBl /lBkwmHJgrI7UOMytCFPHFzT/ZVJYa0px/wiUO/SVQipWVy+8R8CVLvXI+sK5Z1ATPkf kccURhuoxxqcvjYr3VDKT3RF00lawoAFtk7I3muIahv18rLyqGbilKki1Es4RoQvjT8a QACg== 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 y24si582031edq.211.2021.01.17.23.13.17; Sun, 17 Jan 2021 23:13:41 -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 S1732736AbhARGv5 (ORCPT + 99 others); Mon, 18 Jan 2021 01:51:57 -0500 Received: from twspam01.aspeedtech.com ([211.20.114.71]:40358 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725983AbhARGvz (ORCPT ); Mon, 18 Jan 2021 01:51:55 -0500 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 10I6jhCh030899; Mon, 18 Jan 2021 14:45:43 +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; Mon, 18 Jan 2021 14:51:00 +0800 From: Troy Lee To: , Joel Stanley , Andrew Jeffery , Philipp Zabel , open list , "moderated list:ARM/ASPEED MACHINE SUPPORT" , "moderated list:ARM/ASPEED MACHINE SUPPORT" CC: , , , Subject: [PATCH v3 0/4] hwmon: aspeed2600-pwm-tacho: Add driver support Date: Mon, 18 Jan 2021 06:50:48 +0000 Message-ID: <20210118065059.2478078-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 10I6jhCh030899 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. Changes since v2: - declare local function as static function - fixed dt binding yamllint warnings/errors - rename dt property property name from pwm-freq to pwm-freq-hz Changes 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 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 | 131 +++ .../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, 1088 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 base-commit: 1d011777cdbe7ae38a854a0cbeb6bdfbf724cce0 -- 2.25.1