Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6395475ybe; Wed, 18 Sep 2019 02:47:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyrbyV4S56TrkaoqLGy4Mjwi7hQgDpTexqJlxVDLiWl/qBIoxlJihUk1xBx5p6Jcbx9SSSZ X-Received: by 2002:a50:9625:: with SMTP id y34mr9065283eda.72.1568800022950; Wed, 18 Sep 2019 02:47:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568800022; cv=none; d=google.com; s=arc-20160816; b=y2zyxGSi4jykdhlFBRoAz50meT+R1+uKbv0VsXFkEUd/I22gJDMQ1vXQsQSdS0ah5A T02fdjmvclo7dJMNXp3Ll0+Wlm+vH5rgT942zdCDEEyqBStiVTOvV7yNWvHLSKMXcVic 3VhvG9eYNvja6eAeFiWPO7sI1OMwns/TrmsW1AN3MtB7OM6VurqxDUXO0TCfjwnjujy4 /S1Kg7pYjylhp6VETxD+UUiLy98Ng5T4s+NrOV68jobnBDSBUeG2/Wu2MYiMtkuDTLIU VKV6vY436pgy93WmSg0MRNtJgB7xIBr1JSjINqn4o/ZMsmnyYanxOh30Yeeyotny6B8+ W+sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=WLunD+ltCOYDy5R76TxhDSNue/B5+o5dPXOyW74dJQU=; b=WzsWUny+6h9qzD53VHzSZ7nWt4EnqUbmn3WUW6lxtWz3DW0Wt8fQXGzscKBK0rl5KV SyyB3La5VWJcVnWuyS9aOBsvR3gQfUNgw9bnORQK+YCQCkxO9usk30zEgXZAggT/KQkJ E/XlHat6g+dEOJVWSjZNUXw5lZAm0b2JMYycrMhMdTuU/6AUfaCqond/qjasjKh9wESd JDS8y6fSGC+HFvwn/6IobrwvPGgdN1jUVBkGycuTMYG0J+B31sYRVuXFN/xnBuaABIN3 LNFiysQWrH6uOHbjgTXgDtArNzsDK//+PVz83o32mEYjhzrAZsU39He03Y/3LgXX5LBO 0VkQ== 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 p38si2943927edc.449.2019.09.18.02.46.39; Wed, 18 Sep 2019 02:47:02 -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 S1730914AbfIRJaf (ORCPT + 99 others); Wed, 18 Sep 2019 05:30:35 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:11281 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730868AbfIRJab (ORCPT ); Wed, 18 Sep 2019 05:30:31 -0400 X-UUID: 395b8744a72e4468b0cc30765608bd10-20190918 X-UUID: 395b8744a72e4468b0cc30765608bd10-20190918 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1303714463; Wed, 18 Sep 2019 17:30:26 +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, 18 Sep 2019 17:30:22 +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, 18 Sep 2019 17:30:22 +0800 From: Sam Shih To: Rob Herring , Mark Rutland , Matthias Brugger , Thierry Reding CC: Ryder Lee , John Crispin , , , , , Sam Shih Subject: [PATCH v8 07/11] dt-bindings: pwm: pwm-mediatek: add a property "num-pwms" Date: Wed, 18 Sep 2019 17:28:55 +0800 Message-ID: <1568798939-16038-8-git-send-email-sam.shih@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1568798939-16038-1-git-send-email-sam.shih@mediatek.com> References: <1568798939-16038-1-git-send-email-sam.shih@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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 Acked-by: Uwe Kleine-König --- Changes since v6: Follow reviewers's comments: - The subject should indicate this is for Mediatek Changes since v5: - Add an Acked-by tag - This file is original v4 patch 5/10 (https://patchwork.kernel.org/patch/11102577/) --- 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