From patchwork Tue Nov 13 02:08:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryder Lee X-Patchwork-Id: 10679491 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E080914DB for ; Tue, 13 Nov 2018 02:09:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CF0B729CA9 for ; Tue, 13 Nov 2018 02:09:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C27A929CE6; Tue, 13 Nov 2018 02:09:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7F52E29CA9 for ; Tue, 13 Nov 2018 02:09:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=EVPCZ8AaNq2GSQrwq5Rtlsfy+oVd49low0kwN8yBabU=; b=KfE9fKXymfXomn gqmaT9DqGYoIo+FJEQjD2poueESmEYf0Z1p3NdHMJAPIlABVkFw23V37cyohrmHhp+APPzLEgliIl 0M5vE6ZVb7RX9JDSJNZiJNW8CwnxmjdlJ+KA7BOxlAC+9vzrb8tMNAc/OcdcfSDc7Y4uvvElUaeyX wtPvKVyTRaCfX0z91izeB2erqpCO+4UBssBSEPHz9VZtEdLVfKLkknotHTY+x3JQADQAEhtfJ0ver t1Dw6S+SUghC/zqFKmUcNORTmWR4RfZFbP63Yf92iXSs54KI0ZwG57zydnu/z6baiSzP2rHVpvoJ/ +J/0U15HIcWL+AkB8Y0g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMO8R-0000CY-2U; Tue, 13 Nov 2018 02:08:59 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMO8G-0008TK-B2; Tue, 13 Nov 2018 02:08:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=U1llrjwroTXM3JYKQDmFvYZu7qrqODH/QyvS/TRyw1Y=; b=HGJyRbUtwBnL7TFQv/6ETolKC e2EM9kyveLHb87WM8wLWpk3H7u3Z2ZdoqpRBh93ARWr8dUavHoeq6f+YdNPzLAtT+QSFg3CjlBDDG cwskVukcnNaFrLymC4IJyFrL5ryP90V6TQ/gy1Lbm9XGp5cez5b9ZB2VHTWgvreueBFK40YiBwE4+ ckscuZ1pps1h7WaLS7p45AcbdtsYaqoWofg1uDg3ipUFyzFytu1fOtVAKzVFMREnISv3Td+HwB7lD bWd3a10ri3gaKdJbJEDGeqeEQNprFkIeqZ5YxB2D9mG/Qz8io1O0xIS26UrpkM1jpt5qHU9EHPjkr 25NbQzvIg==; Received: from [210.61.82.183] (helo=mailgw01.mediatek.com) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMO8C-0006hZ-TA; Tue, 13 Nov 2018 02:08:46 +0000 X-UUID: 609499254eff47c6b7dda40278bfca0d-20181113 X-UUID: 609499254eff47c6b7dda40278bfca0d-20181113 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 411292590; Tue, 13 Nov 2018 10:08:27 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 13 Nov 2018 10:08:25 +0800 Received: from mtkslt306.mediatek.inc (10.21.14.136) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 13 Nov 2018 10:08:25 +0800 From: Ryder Lee To: Thierry Reding Subject: [resend PATCH 2/3] pwm: mediatek: add pwm support for MT7629 SoC Date: Tue, 13 Nov 2018 10:08:23 +0800 Message-ID: <9043534495d49c532bdb0b904344b77faeb41359.1542074855.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <4c9044427b1aab373acd6ac76f0c905e2be79784.1542074855.git.ryder.lee@mediatek.com> References: <4c9044427b1aab373acd6ac76f0c905e2be79784.1542074855.git.ryder.lee@mediatek.com> MIME-Version: 1.0 X-TM-SNTS-SMTP: 7B6235E71CB4494122C6E7559D4D939F6DC7FC353EC1D7AD5884B1A19BE16A312000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181113_020845_314443_5E3A2BC0 X-CRM114-Status: GOOD ( 12.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pwm@vger.kernel.org, Ryder Lee , devicetree@vger.kernel.org, Weijie Gao , linux-kernel@vger.kernel.org, Roy Luo , Rob Herring , linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This adds pwm controller support for MT7629 SoC. Signed-off-by: Ryder Lee --- drivers/pwm/pwm-mediatek.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/pwm/pwm-mediatek.c b/drivers/pwm/pwm-mediatek.c index 9400c41..4ed95e5 100644 --- a/drivers/pwm/pwm-mediatek.c +++ b/drivers/pwm/pwm-mediatek.c @@ -292,11 +292,16 @@ static int mtk_pwm_remove(struct platform_device *pdev) .pwm45_fixup = true, }; +static const struct mtk_pwm_platform_data mt7629_pwm_data = { + .num_pwms = 1, +}; + static const struct of_device_id mtk_pwm_of_match[] = { { .compatible = "mediatek,mt2712-pwm", .data = &mt2712_pwm_data }, { .compatible = "mediatek,mt7622-pwm", .data = &mt7622_pwm_data }, { .compatible = "mediatek,mt7623-pwm", .data = &mt7623_pwm_data }, { .compatible = "mediatek,mt7628-pwm", .data = &mt7628_pwm_data }, + { .compatible = "mediatek,mt7629-pwm", .data = &mt7629_pwm_data }, { }, }; MODULE_DEVICE_TABLE(of, mtk_pwm_of_match);