Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3425008ybl; Mon, 19 Aug 2019 18:45:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxaG7yaEKrxq9LZ34yF+FtUB1rfMvsEUbljvTv+FG6+J7YVgghWbRRsG0ajEWXWuRB77qtr X-Received: by 2002:a17:90a:8b98:: with SMTP id z24mr23911676pjn.77.1566265546124; Mon, 19 Aug 2019 18:45:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566265546; cv=none; d=google.com; s=arc-20160816; b=lnhx3oRv/dOAatBaOuRKoowgg5hOPsK99JHObr5nJCWKlq8fMqmnMHXt0pXE1qr7/2 HrxWDh3fc1pqOZwBlapC4zAhCNopqgVYoq03/ym6TgxO2fZX696EoNBgsaM4gjKcCzSO pPfSYcwSMywZUiYF3UO6DViy5tG8yTXUlpSJr5iFAK0svNbMHaOeUWKL5KWAILvu6DgI kntaTWZPiNHGHQyFwBMTwT9fUq03dhS4WP1uXjhXl5cGMYn5vVbDz+oZeexldwPmXb52 GDoNnjbLCNZZvjZlvLNLlx6gaoKYLapfodFqsiTonywfCXnk1y5BCeMbqo5YqzNQJYb9 te5Q== 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=hZHs6MPQyJQ6FblD32kWW+sZQI4RRitHuIvJNSqpAFo=; b=Bd4L18pa1h4QXSpNGpXZ5f0+I69OU6IZi5kX0ggdBKHjVdoktyFqTqV1ZLdao34P+6 CdsRLfIfxEuQe5FbzsyqE7Ok3v0xj/ZVmhoeCcTlCUxFOaQ2+nvtJi1ClMK8uyX/g7yu Z64mKdQatmFUZXjdDdp95tGk0tsbrKE7G0JEOWfS6tAOSR4LkNKvVMtGhVSog7OD76+L 15A2j0Ozr1t5DX+En6uw/kk23w7tRilOenEzsNMCYP2EGeFbZJ6lRWhWPOH5sdufgImD 1me9Ip5Bt9z5oguSCtbcc4aF8rEsPGWky1AAfUi5QTtHA3OhKLLOvdUi2sTX5tgh3cN0 lxWA== 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 s11si11054844pgm.412.2019.08.19.18.45.31; Mon, 19 Aug 2019 18:45:46 -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 S1728949AbfHTBn2 (ORCPT + 99 others); Mon, 19 Aug 2019 21:43:28 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:42086 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728615AbfHTBn2 (ORCPT ); Mon, 19 Aug 2019 21:43:28 -0400 X-UUID: 052507f733ed49d9a3a0ae05e7068ee8-20190820 X-UUID: 052507f733ed49d9a3a0ae05e7068ee8-20190820 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0707 with TLS) with ESMTP id 363200373; Tue, 20 Aug 2019 09:43:20 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 20 Aug 2019 09:43:20 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 20 Aug 2019 09:43:18 +0800 From: Sam Shih To: Rob Herring , Mark Rutland , Matthias Brugger , Thierry Reding CC: Ryder Lee , John Crispin , , , , , Sam Shih Subject: [PATCH v4 5/10] dt-bindings: pwm: add a property "num-pwms" Date: Tue, 20 Aug 2019 09:40:20 +0800 Message-ID: <1566265225-27452-6-git-send-email-sam.shih@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1566265225-27452-1-git-send-email-sam.shih@mediatek.com> References: <1566265225-27452-1-git-send-email-sam.shih@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 32E0F768C834B97562F57430F44CF5635A7D712B71D5093ED396866C76D8934F2000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ryder Lee This adds a property "num-pwms" in example so that we could specify the number of PWM channels via device tree. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih Reviewed-by: Matthias Brugger --- Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt index 991728cb46cb..ea95b490a913 100644 --- a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt +++ b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt @@ -14,12 +14,12 @@ Required properties: has no clocks - "top": the top clock generator - "main": clock used by the PWM core - - "pwm1-8": the eight per PWM clocks for mt2712 - - "pwm1-6": the six per PWM clocks for mt7622 - - "pwm1-5": the five per PWM clocks for mt7623 + - "pwm1-N": the PWM clocks for each channel + where N starting from 1 to the maximum number of PWM channels - pinctrl-names: Must contain a "default" entry. - pinctrl-0: One property must exist for each entry in pinctrl-names. See pinctrl/pinctrl-bindings.txt for details of the property values. + - num-pwms: the number of PWM channels. Example: pwm0: pwm@11006000 { @@ -37,4 +37,5 @@ Example: "pwm3", "pwm4", "pwm5"; pinctrl-names = "default"; pinctrl-0 = <&pwm0_pins>; + num-pwms = <5>; }; -- 2.17.1