Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp702394ybl; Wed, 14 Aug 2019 04:48:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjmAD8jmU+IjBWbScuJhiIaRTkeJ6jfgnTMea54JcDwcHens758+7KK+7P6EU+lvr6nAX2 X-Received: by 2002:a17:902:74c4:: with SMTP id f4mr40470939plt.13.1565783324683; Wed, 14 Aug 2019 04:48:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565783324; cv=none; d=google.com; s=arc-20160816; b=eSE6b7MNGQv4RyM5jwNVC9q7eSneCq6Gd6SP5dh7B/lhM1Q+8Y8+VnA87Pf0t7uIYu 5ivwRS4YNfCpkL8KUPI6UkKarwPLCb9m75//2SiTG1asf0lX1lR2R3m9MqqFjPwpWmgr t3MOyt5vlYxM92UeuZZHixl1lu0Tsx9agQVl0kl0+zA4k0aSeHcOgdKTBnlpUqTC7A9z GjYE8Ob1suAKI0TK0LlGfErIBKu2snwsvgoGFsHt8kKqUs4Sw3tIU27bokvZ48eU+YxK b518cFmCXA+Mwb2loXF2dT6uU7APYZBQq0LAldv4WTFvkpqExxmbn96/cRcqNbBFjBR1 l8/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id; bh=RD3XOAOOgO9bojQIj/ajTnRlEqoqdctn03gchmPhdHY=; b=bjKtbfjZ6wNk7WZBCZK3Vrlvrm1o4Sdo8Uuet4cnBqcKPaAePN6zgaFUyxH3G760Wg PNTOo75fT0KOvPNGzpu//RBvsWla2pvLWPo31rtu8nMOL8f/6FKKWlq7SWH1H14cjlz3 851HGX8e5NIWxOXxgyq5VTxh9kbn/InigyXGru0LBUBTCkpAwHlZpkHF6NPlQNiD6DbH ePs+hxX0P3vRHWxOmwlmVks55+kWZQIBzItAzD5xzjTsDF1fihij9QHisYTEuppTIn2g jOiXwW9nD9m/nCqXcHLJdhZi0BfyiqnT3kve98OsbLogSFO/Io9FB2qD/d0v/JRrmbX7 uuBg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j190si69325716pge.92.2019.08.14.04.48.28; Wed, 14 Aug 2019 04:48:44 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727573AbfHNLrv (ORCPT + 99 others); Wed, 14 Aug 2019 07:47:51 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:44361 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726704AbfHNLru (ORCPT ); Wed, 14 Aug 2019 07:47:50 -0400 X-UUID: 0aca0be003ce4a548dc1c3e69108f274-20190814 X-UUID: 0aca0be003ce4a548dc1c3e69108f274-20190814 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0707 with TLS) with ESMTP id 184143578; Wed, 14 Aug 2019 19:47:41 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 14 Aug 2019 19:47:44 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 14 Aug 2019 19:47:44 +0800 Message-ID: <1565783263.7006.3.camel@mtkswgap22> Subject: Re: [PATCH v2 10/10] arm: dts: mediatek: add mt7629 pwm support From: Ryder Lee To: Sam Shih CC: Rob Herring , Mark Rutland , Matthias Brugger , Thierry Reding , John Crispin , , , , Date: Wed, 14 Aug 2019 19:47:43 +0800 In-Reply-To: <1565779497-23621-3-git-send-email-sam.shih@mediatek.com> References: <621e49c01b943edb6ddac9182f34719eb0727f01.1548313019.git.ryder.lee@mediatek.com> <1565779497-23621-3-git-send-email-sam.shih@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-08-14 at 18:43 +0800, Sam Shih wrote: > From: sam shih > > This adds pwm support for MT7629. > > Signed-off-by: Sam Shih > --- > arch/arm/boot/dts/mt7629.dtsi | 14 ++++++++++++++ > drivers/pwm/pwm-mediatek.c | 7 +++++++ > 2 files changed, 21 insertions(+) Split dts and driver into different patches. > diff --git a/arch/arm/boot/dts/mt7629.dtsi b/arch/arm/boot/dts/mt7629.dtsi > index 9608bc2ccb3f..352df8d61788 100644 > --- a/arch/arm/boot/dts/mt7629.dtsi > +++ b/arch/arm/boot/dts/mt7629.dtsi > @@ -241,6 +241,18 @@ > status = "disabled"; > }; > > + pwm: pwm@11006000 { > + compatible = "mediatek,mt7629-pwm"; > + reg = <0 0x11006000 0 0x1000>; > + interrupts = ; > + clocks = <&topckgen CLK_TOP_PWM_SEL>, > + <&pericfg CLK_PERI_PWM_PD>, > + <&pericfg CLK_PERI_PWM1_PD>; > + clock-names = "top", "main", "pwm1"; > + num-pwms = <1>; > + status = "disabled"; > + }; > + > i2c: i2c@11007000 { > compatible = "mediatek,mt7629-i2c", > "mediatek,mt2712-i2c"; > diff --git a/drivers/pwm/pwm-mediatek.c b/drivers/pwm/pwm-mediatek.c > index 922a7543a2b1..d2352ca7792e 100644 > --- a/drivers/pwm/pwm-mediatek.c > +++ b/drivers/pwm/pwm-mediatek.c > @@ -327,11 +327,18 @@ static const struct pwm_mediatek_of_data mt7628_pwm_data = { > .has_clks = false, > }; > > +static const struct pwm_mediatek_of_data mt7629_pwm_data = { > + .fallback_npwms = 1, > + .pwm45_fixup = false, > + .has_clks = true, > +}; > + > static const struct of_device_id pwm_mediatek_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, pwm_mediatek_of_match); It's odd. You fallback to use mt7622 compatible here: [PATCH v2 7/10] dt-bindings: pwm: update bindings for MT7629 SoC. Ryder