Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3317908imu; Mon, 14 Jan 2019 00:23:14 -0800 (PST) X-Google-Smtp-Source: ALg8bN6Cd3+wRxRL66DrVXhUQ6KSb0ioXZZgi2aHHAnJ4sy7M73VGwo88bVNSGbhN76+5ucGqjNt X-Received: by 2002:a17:902:b90b:: with SMTP id bf11mr24128657plb.284.1547454194269; Mon, 14 Jan 2019 00:23:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547454194; cv=none; d=google.com; s=arc-20160816; b=rRBjwUHZ8ppoMVnt8jzyeohE3ybKtkgl4Zl1WgDV8nvabCJusdxKLE2pCjjh8kpsL0 9fjY8NyeyVUqzEC613ambYnUW905Ocmy0EGjF8sgUpikITgG1djroBeEhrZxOlllbtiq GHq3WVNEYtDN8G120LeRuEiHqKWd4/X4d3OPyNvlKjcJugB587PwD2PxikPulGmij9CO IOYQUkuICHqrTikGiQWCQuBDliVk18pIaAI/RlxokvIeLo0Q8BB7KYsd4Suwup+yvIOq F7c6OLMa6O2agYuP7b2PBcaQgicZ1q6/jljVTy0kjSGHlFljTcKpQ1sfJ8MR1W7ucID2 fIJA== 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=c89c0qFCsNEOyEm+wcA4XkVJ5VaLzFWbkfbee8j4Cz0=; b=pQsPrM5EUJatMJtEAtKKTxTY+F0NX2DpxEXp86BvIrCIwFMIeneos0jdjleB0+vRFn 0QJUK1XzgK/WlvnTCbgd350R5S4ZfP/8eTbYfkjkyc6ThIaXNnibvJSgFI5Ok7V6lEQs 3oFXq0HElNkTEarJnGl+V9/DDxbpnxPjqdf4rFs1fSgKpRB2Q0657/r3lr2kQYU5B1Bn rlR1IfYDF1t57E1/YC4KdFT9HlrVi67t1wDyA/zC517jkGEhrPHD8cN3H6DfvSfbd70+ 1i/9SFsHrWROZL6L5gVElNR+HOqjiRtLkr4IABVravfK0x7ETqSSbGQQzUupDyJTzKnn Bdig== 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 t6si7876372plz.96.2019.01.14.00.22.59; Mon, 14 Jan 2019 00:23:14 -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 S1726467AbfANIVt (ORCPT + 99 others); Mon, 14 Jan 2019 03:21:49 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:14921 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726449AbfANIVq (ORCPT ); Mon, 14 Jan 2019 03:21:46 -0500 X-UUID: fa568b77525440bba1260a7ad0255124-20190114 X-UUID: fa568b77525440bba1260a7ad0255124-20190114 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 279953690; Mon, 14 Jan 2019 16:21:28 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 14 Jan 2019 16:21:25 +0800 Received: from mtkslt306.mediatek.inc (10.21.14.136) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 14 Jan 2019 16:21:26 +0800 From: Ryder Lee To: Thierry Reding CC: Matthias Brugger , Sean Wang , Weijie Gao , , , , , , Ryder Lee Subject: [PATCH 2/5] dt-bindings: pwm: add a property "mediatek,num-pwms" Date: Mon, 14 Jan 2019 16:21:21 +0800 Message-ID: <37e5b296c6e854b918049a548e7c79f26b0e8147.1547453586.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <0c400cb1899c1afb4c9f021350cdc0c6ca3f6239.1547453586.git.ryder.lee@mediatek.com> References: <0c400cb1899c1afb4c9f021350cdc0c6ca3f6239.1547453586.git.ryder.lee@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: E9B720EB4EA31DC05B8053548F552B4A8F156E33E8B6F0C8B6233FF6E20BDB2D2000: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 --- 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