Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp640477ybl; Wed, 14 Aug 2019 03:47:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqyq+OP9nAoRIbe4mn89An+Ha6e/xrlNAECB/ILC3HTzIGQ1riof2YhIUxBq17MjA/oKkKGv X-Received: by 2002:a17:90a:a105:: with SMTP id s5mr2675580pjp.51.1565779653217; Wed, 14 Aug 2019 03:47:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565779653; cv=none; d=google.com; s=arc-20160816; b=1JxE0knYs1O+N6lyiA4b3o81LrWFE93AJijtFed7w/smtVMW9B/xShRr8cz6PaJEyT G4g7e6t4JLmvXhhrQvmemU/ieXxme/p7nE8rYPPylsDSLTojU/oV8yiEMAJsrFf9dqSB A1mq+XO1lKUFCuTDmHXB6JG34j2REA0wrDKthY7kGLsQVYlth9lbhvGqbtX1tRopZp9L J3WZF8FfzmpqZCrPB2ih35krI5YKYKkDdUUMSjE90/LBCWL6K3FzxLQSz8BZuWgX/DtG Ewuv0LVG7clz3usKAVCslAWKIoKB5aJMrSArMWG+hUD3gdixUDEmudSsD1SYfYcENt7X E1vw== 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=pw0WfFrubuqMtBtOQ5YLkILaqYZ+tB7xmSg2SGyaZc8=; b=XlwvEuxM6EVQCvZA86KZS9YVbYpIX5IHRslSSPVkL0YQ2gC/Pmc88HFcWn2wRuI/Qg 45Ay0LCWCCJISSwJX+pQve1as37aO44QuibyW8ZmypRU/ioD5VypGE2twNe2UpwrxN1i Vz1jJYRK5ol4fvI9P2Lnz7eEvql4rfU8Z4mHlWEfaIbUTzXAgz0BD+Km35lCQE0rqpNJ Z9AiAnAXI8tqpn+7A5tspwqkSZo+bWraY8chdXoBd/dL+pHRtT2rzj7TV0PYZ+u9FUve VNkTAX40fdDyyIz1uxK0F7OYh8JjvQo8UQ7DmUAY7BRJu0OcLbcp7CfQzIO+CHuUUd3p xzyw== 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 m15si68913394pff.267.2019.08.14.03.47.18; Wed, 14 Aug 2019 03:47:33 -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 S1727595AbfHNKpN (ORCPT + 99 others); Wed, 14 Aug 2019 06:45:13 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:29419 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726551AbfHNKpL (ORCPT ); Wed, 14 Aug 2019 06:45:11 -0400 X-UUID: da896fad1a3f48d6ab0961ca83e2064c-20190814 X-UUID: da896fad1a3f48d6ab0961ca83e2064c-20190814 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0707 with TLS) with ESMTP id 52192520; Wed, 14 Aug 2019 18:45:05 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 14 Aug 2019 18:45:07 +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, 14 Aug 2019 18:45:07 +0800 From: Sam Shih To: Rob Herring , Mark Rutland , Matthias Brugger , Thierry Reding CC: Ryder Lee , John Crispin , , , , , sam shih Subject: [PATCH v2 9/10] dt-bindings: pwm: update bindings for MT7628 SoC Date: Wed, 14 Aug 2019 18:43:39 +0800 Message-ID: <1565779497-23621-2-git-send-email-sam.shih@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <621e49c01b943edb6ddac9182f34719eb0727f01.1548313019.git.ryder.lee@mediatek.com> References: <621e49c01b943edb6ddac9182f34719eb0727f01.1548313019.git.ryder.lee@mediatek.com> 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 This updates bindings for MT7628 pwm controller. Signed-off-by: Sam Shih --- .../devicetree/bindings/pwm/pwm-mediatek.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt index c7bd5633d1eb..9d2d893a07ff 100644 --- a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt +++ b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt @@ -21,6 +21,8 @@ Required properties: - 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. + - clock-frequency: fix clock frequency, this is an optional property, only use in MT7628 SoC + for period calculation. This SoC has no complex clock tree. Example: pwm0: pwm@11006000 { @@ -40,3 +42,13 @@ Example: pinctrl-0 = <&pwm0_pins>; num-pwms = <5>; }; +MT7628 Example: + pwm: pwm@5000 { + compatible = "mediatek,mt7628-pwm"; + reg = <0x5000 0x1000>; + #pwm-cells = <2>; + pinctrl-names = "default"; + pinctrl-0 = <&pwm0_pins>, <&pwm1_pins>; + num-pwms = <4>; + clock-frequency = <100000>; + }; -- 2.17.1