Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2663245imu; Thu, 17 Jan 2019 19:27:17 -0800 (PST) X-Google-Smtp-Source: ALg8bN6Fv2LeyMIY+H5lW0upU8MO5wbiiWphBWzyfnVUK2RZJytezDltbAeZ8HjnszOdpzqBZWlJ X-Received: by 2002:a17:902:24a2:: with SMTP id w31mr17237534pla.216.1547782037099; Thu, 17 Jan 2019 19:27:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547782037; cv=none; d=google.com; s=arc-20160816; b=cRs+EKbrerTuo85mKHMycZDvdV1gqsFxhB5u8l/5EFta2+kpv2wzbJ57DftK4bhywB fUoWRXUBbGTGj/i3Dl61psPIiFke4bwOnzuDyYStXSIYeZDdUqeR8fmSR/j0MsgGSCsS Ln/Gix45K9MZ2nZuO7t6gyL6KekHU25fAPESUg+wFZ6UxPR/rJhipGWSfZjgeEIjRkkc piQdKaVoyTSTpCaGwwDh+B0/JzoMrpLDpg9dD3rC0Lr0sl0DCUCKl8LXudWLZmYwIdcW KpjZmKbjAMwvZAf6UthVARrlGAEI+OBprD55pHCWcEaoverd541CXxCABpZ3tKqHWUpn EP1w== 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=ytQqXmOTtEXLsOx+iCfrhpcRs4qDF+cevF7zAUj4GZI=; b=ECappgzassNOQoxFpb8Unn3UMLFqpH6ySZjYI03iMQPLaVPNcentMJGHYrY6D/kTLd TvRgN+Ku9JfV6qdhKvEsrn4Hsxl1A//7zj62yM3GUCJPOte5BVzfNOt9Z5KG7lc1cCi+ cjQkkqCc1+WYKsvwna7dXeCDIzk/VNVvdcJ2qpTQgLNjI+gIn+UE1S+ksQsKeQszaZzR CRuHEvMGxvg0cesfmdSacYyvBBJbvS5O1UN/Bg0dotYk0JkCw5nf6z6lv2SIojwmFvnW zpwRyxD7hFlZyZJ/XvqlgY1lKtyDuPzoCeDvNpcoGUrdu8L+Wohjd2T4fCbYX3/LPMEU HdXQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h14si3443374pgd.189.2019.01.17.19.27.01; Thu, 17 Jan 2019 19:27:17 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727091AbfARDZG (ORCPT + 99 others); Thu, 17 Jan 2019 22:25:06 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:1063 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726761AbfARDZD (ORCPT ); Thu, 17 Jan 2019 22:25:03 -0500 X-UUID: df4e68f705ae4d5586e2bd761c58f05d-20190118 X-UUID: df4e68f705ae4d5586e2bd761c58f05d-20190118 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1246715899; Fri, 18 Jan 2019 11:24:49 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 18 Jan 2019 11:24:47 +0800 Received: from mtkslt306.mediatek.inc (10.21.14.136) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 18 Jan 2019 11:24:47 +0800 From: Ryder Lee To: Thierry Reding CC: Matthias Brugger , Sean Wang , Weijie Gao , , , , , , Ryder Lee Subject: [PATCH v1 2/5] dt-bindings: pwm: add a property "mediatek,num-pwms" Date: Fri, 18 Jan 2019 11:24:42 +0800 Message-ID: <7e1de17a43f2cde73aecd2773e2b3a5fdfd294f3.1547781007.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 463A4C78904DD31D587D27874C10AD8925FC78F8923D0296AF059074655022012000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds a property "mediatek,num-pwms" in example so that we could set the number of PWM channels via device tree. Signed-off-by: Ryder Lee Reviewed-by: Matthias Brugger --- Changes since v1: add a Reviewed-by tag. --- Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt index 991728c..f9e2d1f 100644 --- a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt +++ b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt @@ -20,6 +20,7 @@ Required properties: - 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. + - mediatek,num-pwms: the number of PWM channels. Example: pwm0: pwm@11006000 { @@ -37,4 +38,5 @@ Example: "pwm3", "pwm4", "pwm5"; pinctrl-names = "default"; pinctrl-0 = <&pwm0_pins>; + mediatek,num-pwms = <5>; }; -- 1.9.1