Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4812683imu; Mon, 12 Nov 2018 18:10:00 -0800 (PST) X-Google-Smtp-Source: AJdET5dXLI1PMfSjnKJtYNWIbtRSSFaLrfgih4ByS9LDx5CT+y+tBH1Ie9ybTGhon2ceukmO8M85 X-Received: by 2002:a65:57cb:: with SMTP id q11mr3039628pgr.60.1542074999854; Mon, 12 Nov 2018 18:09:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542074999; cv=none; d=google.com; s=arc-20160816; b=rmBTPOAzZ/Kx4VMkpGbhoBJgZTrfw50lHHehQdnoV7U4uKz72ZLd+MUMd/bUWFyQWE qQp2nFeMGc65UcvSJBBMhnWdWVbVX/RBQABbFTS/zkq3DMJ1+mC02EokYpGIH1UltnDD A1SC9lHY6jyJB/uJDqmpO1x6HBjjxRzUL4Xet0lt0q6Ry5VHImDk7M/c29ZBGqQKTZ1E TxFu2RC8SJnMWeb1M2QxuAi09DGRYC15hzTf/z/dmbE9Lm28G/0Lz9ySPq7Ejo5ChI9p CQv2VWGcjT58HHrZsheWVGFBICErI+7OJ394b8Iizqa4kqdXWNx2PR4Hn8IS+JoXJPRS tJ0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=U1llrjwroTXM3JYKQDmFvYZu7qrqODH/QyvS/TRyw1Y=; b=UAV9SWwaPgFFBie+Nt5bA3yueVhkhGcBwyeJTyz0l/NN+hrRuI574boznF2EE/Pyvt 0eGuVR1VKpzqNlRd5Y7yghncLUcShX3o79XJnsmiLIRR8A57lcc/hE6ZArcE+EYrWKTO bBTaJe2yzCm7mYy5Ec/KvT3FcFKSxVt+Yu5lR7ocP42JqcssZKtBEUJUszugo6slNZ3j s46mJ0JCzOCaivEjy9sZGoJw4FsDWmI5dkMIMgv41aTYGABUxAZeO0OdZ8CU/pxltD8e vIXI4zegfURboifGwd2O9yws22q/JpgC6ssMfiBBppePpd9pgUbZmlRIIyimCQpganch ySww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a4-v6si23442733pll.50.2018.11.12.18.09.44; Mon, 12 Nov 2018 18:09:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730702AbeKMMEY (ORCPT + 99 others); Tue, 13 Nov 2018 07:04:24 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:17341 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730501AbeKMMEY (ORCPT ); Tue, 13 Nov 2018 07:04:24 -0500 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 CC: Rob Herring , , Weijie Gao , Roy Luo , , , , , Ryder Lee 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 Content-Type: text/plain X-TM-SNTS-SMTP: 7B6235E71CB4494122C6E7559D4D939F6DC7FC353EC1D7AD5884B1A19BE16A312000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); -- 1.9.1