Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1815280ybn; Thu, 26 Sep 2019 02:38:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjWr4T5C5+d9tOLmwjJdo5hoP5ix78YGXWIRHktujARVFGWPmzrTanBvCBIM0No2uFm3Ct X-Received: by 2002:a17:906:3546:: with SMTP id s6mr1992607eja.82.1569490694955; Thu, 26 Sep 2019 02:38:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569490694; cv=none; d=google.com; s=arc-20160816; b=OiihV43/m+eTZsV+YGF06cwIgae6YgbHfixE/NEgt+v/7KFc+iVHif2QK6UQFpmJVK d/5EI5Xy8sQH88HueyL/4awsQxDjS3nznY489d92Y6D+AmXlzlzCLvZc5qtAJcKLNtTU HafxwulqLeHW2mmH8mWkokvplke2Cgf+O5aYC0wLsoKhuqZ3lpv8Oy5YUDihztzf9DQ0 QiBzCGBaLJYBPZCg39bGj34mAXeYciTDW5obyXK8Vf/gMFDTduLbtRg4xNAM0OFTt9V3 5FRW2JLff8k+2MLTaXM3fdb3UFDV/yFVoMF1lJyZQcFRNP/bOJnq+xIQNiFcCZ8To4fT hsbw== 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=uxGi+sHZMVya0rs3HW6h1nOUwlBh9muMW4jLqSXDzV4=; b=WvSZ6CZwhDh75sye2WybNHhjCq5xuhm5ficCIO9wGPYFOSrdl5XjOlRlje0dH5y4XC gl8DZGeKorC/ZkGBnGvhtKMIC5LWZ9MSANW9FNjtT/gJPyibUtfTQQ89TDKdSm0Lq83v P3jScr7jQddI0twsyLy83Hi18xy+ETwuEYiaHy2hdhddCoKlv62rQVzYEbxeKN171bqt WfPqz/bwD6dLa/lD/QNZh0GSqDhnX+o9CZriVY17ZgidpyD+IvWZjqxP26MyQdaDMII6 1cntvIFT8EmJDzubdZ/pKQR4fYnhZ6nW12tPKlmyEQmvWZULBMlNRaflkTOjuq2RZyv4 Lenw== 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 f21si900710edb.379.2019.09.26.02.37.52; Thu, 26 Sep 2019 02:38:14 -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 S2437621AbfIYOfV (ORCPT + 99 others); Wed, 25 Sep 2019 10:35:21 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:65227 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2390953AbfIYOfU (ORCPT ); Wed, 25 Sep 2019 10:35:20 -0400 X-UUID: 9f0f0604225b4b4bba4ff65f2048765f-20190925 X-UUID: 9f0f0604225b4b4bba4ff65f2048765f-20190925 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 625629688; Wed, 25 Sep 2019 22:35:16 +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, 25 Sep 2019 22:35:15 +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:35:15 +0800 From: Sam Shih To: Rob Herring , Mark Rutland , Matthias Brugger , Thierry Reding CC: Ryder Lee , John Crispin , , , , , Sam Shih Subject: [PATCH v10 12/12] arm: dts: mediatek: add mt7629 pwm support Date: Wed, 25 Sep 2019 22:32:37 +0800 Message-ID: <1569421957-20765-13-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. Signed-off-by: Sam Shih --- Changes since v10: - Use "mediatek,mt7629-pwm" as compatible string - Fix reg setting --- arch/arm/boot/dts/mt7629.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/mt7629.dtsi b/arch/arm/boot/dts/mt7629.dtsi index 9608bc2ccb3f..6f3f1430ca84 100644 --- a/arch/arm/boot/dts/mt7629.dtsi +++ b/arch/arm/boot/dts/mt7629.dtsi @@ -241,6 +241,21 @@ status = "disabled"; }; + pwm: pwm@11006000 { + compatible = "mediatek,mt7629-pwm"; + reg = <0x11006000 0x1000>; + interrupts = ; + clocks = <&topckgen CLK_TOP_PWM_SEL>, + <&pericfg CLK_PERI_PWM_PD>, + <&pericfg CLK_PERI_PWM1_PD>; + clock-names = "top", "main", "pwm1"; + assigned-clocks = <&topckgen CLK_TOP_PWM_SEL>; + assigned-clock-parents = + <&topckgen CLK_TOP_UNIVPLL2_D4>; + num-pwms = <1>; + status = "disabled"; + }; + i2c: i2c@11007000 { compatible = "mediatek,mt7629-i2c", "mediatek,mt2712-i2c"; -- 2.17.1