Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8429540imu; Thu, 15 Nov 2018 11:23:41 -0800 (PST) X-Google-Smtp-Source: AJdET5f0BtHUo1WPyoXNWkzSmi6pTNXyaAaETjZ3YBKZC5PeUDyOf3AgnAkxxQzpvPNptT3WtJSZ X-Received: by 2002:a62:e219:: with SMTP id a25-v6mr7612393pfi.75.1542309821356; Thu, 15 Nov 2018 11:23:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542309821; cv=none; d=google.com; s=arc-20160816; b=SdrFC/vImT9gMxlCv0V7o/ST/u5LUVfWrb5E6NU4aDxzyh7Fih5NHRPQ5g2k2Guh2D J5oS5FVNrUqp/OntH6ZpkPzDZXlmOZLHoEFjkYUE4UQ40YjxvLiTcq++3sVqFtQYvfho n2pp7UlJQV9ISfDlEvFUgHlPghsJajAIwE9mi8Q4W1spUgwfS9s9jl0/5ARxhEkSx/Xr C4T+pSzX+l9Ev9KI3TZKCo2M/DlSsqFxYjwKzXJKrJ+hYnKuPdHskTp1zJNVl/4sh6hr p45yaD2+UVrHADXApnIbWAQMl/yQ1qMcs3ghQnjHgyPtyELjloPc/dJEiHZ7o3KPQ1hn ouUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=aVmdLT8CRyt8r2ofcxcRCzzK0fdt8PUBdHzQ9peYbhs=; b=ijm75YFoItJYwf3IYOrOSjaRdPepFGAd2ydA6M7qGTLEOWcB/Y8E674fUf+gJjOM5l HLKw/0kPeY8R11F3ciui3cwNfg/rbB3gZi0RasTJyhhVOwC+1qSpAo2Trvopwf8qhiLe AKHhowkI1uh4nfF+0UdBGq+9mzUCLI82aYQ8DcXDabW3oZv+2TknY+Spu10T1fBSxe07 fAdy+gVZkNOQiYGtitKjU3eShf/S9oTR9WdESDkC+68WIxBJYIX/rYopm5zgJ968Jznl 1vJXL9+u7dI+u7ZfzbCg2cnwreoTnst1lKFkGDmtVTDHQBTmtSF/nfhHkyrzcLhs5QOC qgJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lcJWK1OQ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t16-v6si28896624plr.352.2018.11.15.11.23.26; Thu, 15 Nov 2018 11:23:41 -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; dkim=pass header.i=@kernel.org header.s=default header.b=lcJWK1OQ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729109AbeKPFaQ (ORCPT + 99 others); Fri, 16 Nov 2018 00:30:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:38680 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725916AbeKPFaP (ORCPT ); Fri, 16 Nov 2018 00:30:15 -0500 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EEDC22133D; Thu, 15 Nov 2018 19:21:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542309671; bh=QXI5C+Ye96jf+48pvLdlRLxhqGorVauDUBYJEJI70cw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=lcJWK1OQA0BWc48BPDs82bo4mwCrKtJxaI3KmD8Dy9Nuxb6drUGyJqADZD9QUT23X WqIA/uC0OiQ5KLsd0zmGh4v5Ei9BCouAiCnglLYUcYiAtEOhbU4cC5a5EOnBQld/HJ hE/MZATyZViKGbUdDsaQGvntqHahDSn+wiF0R5gA= Received: by mail-wr1-f54.google.com with SMTP id u5-v6so17140349wrn.9; Thu, 15 Nov 2018 11:21:10 -0800 (PST) X-Gm-Message-State: AGRZ1gIXKGczl50bRjOcfM2FQX7mNsF7AAqdYxAG5U2cf9Z+un+dIDLm ytinnqNFnaeUQqXiyXXCaSa8wsrZoWZxtq3XwxE= X-Received: by 2002:adf:8989:: with SMTP id x9-v6mr6926815wrx.184.1542309669469; Thu, 15 Nov 2018 11:21:09 -0800 (PST) MIME-Version: 1.0 References: <4c9044427b1aab373acd6ac76f0c905e2be79784.1542074855.git.ryder.lee@mediatek.com> <9043534495d49c532bdb0b904344b77faeb41359.1542074855.git.ryder.lee@mediatek.com> In-Reply-To: <9043534495d49c532bdb0b904344b77faeb41359.1542074855.git.ryder.lee@mediatek.com> From: Sean Wang Date: Thu, 15 Nov 2018 11:20:58 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [resend PATCH 2/3] pwm: mediatek: add pwm support for MT7629 SoC To: ryder.lee@mediatek.com Cc: thierry.reding@gmail.com, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, weijie.gao@mediatek.com, linux-kernel@vger.kernel.org, cheng-hao.luo@mediatek.com, robh+dt@kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 12, 2018 at 6:09 PM Ryder Lee wrote: > > 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, > +}; How about adding a property for the num_pwms for the PWM controller? It at least can help stop adding a new entry for every SoC with only differences on PWM number. > + > 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 > > > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek