Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp583945ybl; Fri, 16 Aug 2019 00:24:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxChnhuVJ+fhcgB7ChDtvRfmtjo93D6nMvnzfhX0WZ29kCjVEw07cbpnr2uYC953iK75Jws X-Received: by 2002:a17:90a:ac02:: with SMTP id o2mr5920711pjq.134.1565940257065; Fri, 16 Aug 2019 00:24:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565940257; cv=none; d=google.com; s=arc-20160816; b=f/AA081ZR7wtuYChVB0bTvm5AMK3CKa+yeWxkMhIoLfS11r6uEwooNFLhLfxEV4DCi EfdnpaQl70o+BKOi4rJCJTaGKtrv+KetXQoKpXz4Uo2IZL2HcZAJUFLqF1+JVVwrkrTl btendRSo0ZB1JddWgof/DyE5LuCtSmM4Y7kZ8o19F1mPjxB5WWSuyLmB2fUBpUsouWvf zXMTvBDhYXLjHuhomqlga3EmF7EAgXlRGk+LUQ/hR6Lda1bjvOFvdZU0ej95t5+1860W wy8JekkN+BzPtxAGV5zVcIosdTh0axJKrwoWw1OLb44IVsoKDJBqld5P7aPFRDNSNXDT ucGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=CxLg8JCvKZ4OfzDcLlz4erTkq0qO0HKwy6UmAxO4Eic=; b=S2H7g8kNBSERy5cl0Zht1gPwGTcm7ZCBg1yUbWcxU9jw4XojZxWRDZSFMOrA/KSh1P /jtV9t/38K8Z+Notb8exUvJctYDmIfgV5jwufUyiJ7dTUXLoFUSDffn5Fc2kDWYr8eeV AnsFgrKjkiDD7dnePf+JX/oeN2kselCRXjL5DQjqioUfZ8ZD7MiGAvERLg4rDqyk60sW qso8rIv9iqru47SZ5kCa6OAAYDKhS4Adage1xTnWApXPbNZtn/Cogpf11NTCFxYK+pSJ UVtfmWXv3FhdEj9s63meLans4vS1TNQnYIm6suzEWAMIM/vEIlH3H1BocngSVvnJ8XWD Jvkg== 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 w4si3555231plz.120.2019.08.16.00.23.43; Fri, 16 Aug 2019 00:24:17 -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 S1726760AbfHPHVx (ORCPT + 99 others); Fri, 16 Aug 2019 03:21:53 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:56637 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726482AbfHPHVw (ORCPT ); Fri, 16 Aug 2019 03:21:52 -0400 X-UUID: 1e028c8a659e49798b004c194500d1f4-20190816 X-UUID: 1e028c8a659e49798b004c194500d1f4-20190816 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0707 with TLS) with ESMTP id 338180287; Fri, 16 Aug 2019 15:21:41 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 16 Aug 2019 15:21:45 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 16 Aug 2019 15:21:45 +0800 From: Sam Shih To: Rob Herring , Mark Rutland , Matthias Brugger , Thierry Reding CC: Ryder Lee , John Crispin , , , , , sam shih Subject: [PATCH v3 0/10] Add mt7629 and fix mt7628 pwm Date: Fri, 16 Aug 2019 15:21:18 +0800 Message-ID: <1565940088-845-1-git-send-email-sam.shih@mediatek.com> X-Mailer: git-send-email 1.9.1 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 From: sam shih Changes since v2: - use num-pwms instead of mediatek,num-pwms. - rename the member from num_pwms to fallback_num_pwms to make it more obvious that it doesn't represent the actually used value. - add a dev_warn and a expressive comment to help other developers to not start adding num_pwms in the compatible_data. Changes since v1: - add some checks for backwards compatibility. Sam Shih (3): pwm: mediatek: add new property and fix mt7628 pwm dt-bindings: pwm: update bindings for MT7628 SoC arm: dts: mediatek: add mt7629 pwm support .../devicetree/bindings/pwm/pwm-mediatek.txt | 3 +++ arch/arm/boot/dts/mt7629.dtsi | 14 ++++++++++++++ drivers/pwm/pwm-mediatek.c | 15 ++++++++++++++- 3 files changed, 31 insertions(+), 1 deletion(-) Ryder Lee (7): pwm: mediatek: add a property "num-pwms" pwm: mediatek: allocate the clks array dynamically pwm: mediatek: use pwm_mediatek as common prefix dt-bindings: pwm: add a property "num-pwms" arm64: dts: mt7622: add a property "num-pwms" for PWM node arm: dts: mt7623: add a property "num-pwms" for PWM node dt-bindings: pwm: update bindings for MT7629 SoC .../devicetree/bindings/pwm/pwm-mediatek.txt | 8 +- arch/arm/boot/dts/mt7623.dtsi | 1 + arch/arm64/boot/dts/mediatek/mt7622.dtsi | 1 + drivers/pwm/pwm-mediatek.c | 226 +++++++++--------- 4 files changed, 126 insertions(+), 110 deletions(-) -- 2.17.1