Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1814534ybn; Thu, 26 Sep 2019 02:37:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzAi+OaMj5aRIeKSD7IDJwER765TXYc2porQapgCbT9e09AORbjo3U9Jt56K6noVK9V/qls X-Received: by 2002:a50:9438:: with SMTP id p53mr2482999eda.291.1569490643890; Thu, 26 Sep 2019 02:37:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569490643; cv=none; d=google.com; s=arc-20160816; b=U/zJ5j0Ol4ErUmLbwCPED7evz0tMvE3J7SxbvGeyB3muNmfueDnJkFkJS5ePGeSZ5C cty7vtMO6ipc3X68DMmgfl3cKxEZB44B1EE08tp/DI8AqXbGrqzngvVg6IZKaUwTDndx ulwtuhHWTGgq0ZaFy5U64TGlHpnO/BcKi/9LOdUbokQufPRAFd4lzIJ15hxfI/uhJU1d dpmlBD2lEfGwnLSSJOA4FWIgfLt2/ncBO+593k0EldK7xU5o81999gE8+ufMvPJF/PdB C9XpZihy9VFvSP9KIJDP/MKf2vIXsESNMaxfUPMkxRAQDeKnyaORWrMAtGeIoEpChAUG FPeQ== 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=oYoxQCVKkt2adoCpX5+aFYAfwPD6qm/7gFV7L937nTo=; b=zBRzxiD3/Xe2Gma1j1tWdDqr0BbIYOq5KsywRjHRY2PfwJjQVoMJw3gPflO2Tw+9v3 QPMuMWIMLLxVSXhIU2NZjFmAwsyT2tVpBc0uUfCd0OyNe4z3u+MbjY062fpLzdNsppqj RvVqhMqrU3hgr5kT6+LEqvHn1jC2O7eF1P3m9wZk0x/8f+Et+i1upcCnMnNiwHwuO4l/ wF5rPgchYf76SreJBPZg1LKgrXQJoRf6Ie7AVwkFD4LxeNAyiQLqyZzt/aEJkg/YGQG4 5IGqAGiGkrnWWr7ZkJyJZCA6B+ScMsF2Rfp+XZ7cOkXFbLmi/PppSdaedy3IXFLwdj5k RySw== 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 n11si687031ejb.240.2019.09.26.02.37.00; Thu, 26 Sep 2019 02:37:23 -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 S2437080AbfIYOet (ORCPT + 99 others); Wed, 25 Sep 2019 10:34:49 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:14639 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730669AbfIYOet (ORCPT ); Wed, 25 Sep 2019 10:34:49 -0400 X-UUID: 572a6ab5c8b7401297b743d533599a1c-20190925 X-UUID: 572a6ab5c8b7401297b743d533599a1c-20190925 Received: from mtkmrs01.mediatek.inc [(172.21.131.159)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 433417169; Wed, 25 Sep 2019 22:34:44 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 25 Sep 2019 22:34:42 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 25 Sep 2019 22:34:42 +0800 From: Sam Shih To: Rob Herring , Mark Rutland , Matthias Brugger , Thierry Reding CC: Ryder Lee , John Crispin , , , , , Sam Shih Subject: [PATCH v10 08/12] pwm: mediatek: Add MT7629 compatible string Date: Wed, 25 Sep 2019 22:32:33 +0800 Message-ID: <1569421957-20765-9-git-send-email-sam.shih@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1569421957-20765-1-git-send-email-sam.shih@mediatek.com> References: <1569421957-20765-1-git-send-email-sam.shih@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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 support for MT7629, and separate mt7629 compatible string from mt7622 Signed-off-by: Sam Shih --- drivers/pwm/pwm-mediatek.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/pwm/pwm-mediatek.c b/drivers/pwm/pwm-mediatek.c index ce7525d8d71b..7035abfbdc6a 100644 --- a/drivers/pwm/pwm-mediatek.c +++ b/drivers/pwm/pwm-mediatek.c @@ -307,11 +307,17 @@ static const struct pwm_mediatek_of_data mt7628_pwm_data = { .pwm45_fixup = true, }; +static const struct pwm_mediatek_of_data mt7629_pwm_data = { + .fallback_npwms = 1, + .pwm45_fixup = false, +}; + 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); -- 2.17.1