From patchwork Mon Apr 12 09:54:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Billy Tsai X-Patchwork-Id: 12197517 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0CF4FC43460 for ; Mon, 12 Apr 2021 09:58:13 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9EE2A611AD for ; Mon, 12 Apr 2021 09:58:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9EE2A611AD Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=aspeedtech.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID:Date: Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=drM7aTlapGR9I46r1PHnh6lUldLDIciR39Z4HlAknsI=; b=HYEQ5jgqlxzVR/OyDXFExwtyL XEBma0v1SQJ/Yuqle2Lr7z7Fw8la0TyMRSFO6lze/QT1dSAI938VocSTB1ts5I8PZJ3vZrqgYzRZl lAiC3h/6JRTnGK1BNJR3l7Fd4k0PffX0kLXk0E1nQHX6tWPSfUatD1SCKQBfy07XmCLg1Ibk2aO3v yyyls5xY7knJBJ3YxWkB0sogtSnMyDTuQ8UzaNU2UhlRzzPh/3LrTtMPilo3OdiTC9lYJgTHVFRLP xKu62FkVMd1EJ58bbUndSPJbyv0aBrmfJibxZDjXltPQOYorwOSkNKqhPswR+fdjgexvjQyd0zC35 ZWuxQ2wEg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lVtJ4-006NIY-MV; Mon, 12 Apr 2021 09:56:35 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lVtIM-006NBT-HI for linux-arm-kernel@desiato.infradead.org; Mon, 12 Apr 2021 09:55:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender :Reply-To:Content-ID:Content-Description; bh=TFPzM5kDjpEovoV2UiEk4K6MVothE15i/tFn89OotZM=; b=pW+WwXsNUrdOkse2fgxtb5bHTh IljUciEGdziDIauqARKSnzxi746KJJ4yYbhnhfoQ/TW3DXbJawz4EYyQzFKrDZRRU0sQC8RpeJEIi OhOL2SxJPNbMatcoOaLK7YEQ5hwovzQ3xGQ9YS3QhibJ5H8rcO6lhmrAfOQuQ6N2t4DaLbTD8qp6d jYSyCFDMKKQ0CGxZL3M5eAasAN3e30RN2mPVCMV4w9C6wLqaW7RdMAse9Gmfwmq9UD+5xsAHETDfC z9G8JN24E08bD1F2bYi9TMZvUe0B61b8bthfdjDKTl0G5dGWVUJav6n2GuDlFhHbis/HvYTKWzoxn BhzY8GKw==; Received: from twspam01.aspeedtech.com ([211.20.114.71]) by casper.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lVtIC-0049JL-Br for linux-arm-kernel@lists.infradead.org; Mon, 12 Apr 2021 09:55:43 +0000 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 13C9iS0q096463; Mon, 12 Apr 2021 17:44:29 +0800 (GMT-8) (envelope-from billy_tsai@aspeedtech.com) Received: from BillyTsai-pc.aspeed.com (192.168.2.149) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 12 Apr 2021 17:54:51 +0800 From: Billy Tsai To: , , , , , , , , , , , , CC: Subject: [PATCH 4/4] pwm: Add support for aspeed pwm controller Date: Mon, 12 Apr 2021 17:54:57 +0800 Message-ID: <20210412095457.15095-5-billy_tsai@aspeedtech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210412095457.15095-1-billy_tsai@aspeedtech.com> References: <20210412095457.15095-1-billy_tsai@aspeedtech.com> MIME-Version: 1.0 X-Originating-IP: [192.168.2.149] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 13C9iS0q096463 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210412_105541_602273_AE57A82B X-CRM114-Status: GOOD ( 10.94 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add support for the pwm controller which can be found at aspeed ast2600 soc. This driver is part function of multi-funciton of device "pwm-tach controller". Signed-off-by: Billy Tsai --- drivers/pwm/Kconfig | 6 ++++++ drivers/pwm/Makefile | 1 + 2 files changed, 7 insertions(+) diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index 63be5362fd3a..947ed642debe 100644 --- a/drivers/pwm/Kconfig +++ b/drivers/pwm/Kconfig @@ -42,6 +42,12 @@ config PWM_DEBUG It is expected to introduce some runtime overhead and diagnostic output to the kernel log, so only enable while working on a driver. +config PWM_ASPEED_G6 + tristate "ASPEEDG6 PWM support" + help + This driver provides support for ASPEED G6 PWM controllers. + + config PWM_AB8500 tristate "AB8500 PWM support" depends on AB8500_CORE && ARCH_U8500 diff --git a/drivers/pwm/Makefile b/drivers/pwm/Makefile index cbdcd55d69ee..4a74c68547bf 100644 --- a/drivers/pwm/Makefile +++ b/drivers/pwm/Makefile @@ -1,6 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 obj-$(CONFIG_PWM) += core.o obj-$(CONFIG_PWM_SYSFS) += sysfs.o +obj-$(CONFIG_PWM_ASPEED_G6) += pwm-aspeed-g6.o obj-$(CONFIG_PWM_AB8500) += pwm-ab8500.o obj-$(CONFIG_PWM_ATMEL) += pwm-atmel.o obj-$(CONFIG_PWM_ATMEL_HLCDC_PWM) += pwm-atmel-hlcdc.o