Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp642079ybl; Thu, 22 Aug 2019 02:35:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqxr3nyRtcYp/PzRsKdY6jjlnK5/ZlpktRMWL6X/ePJ6Ie+llF2Xk7nqQ4pQNOVb7JfHQ3xP X-Received: by 2002:a17:902:e512:: with SMTP id ck18mr36458494plb.53.1566466544564; Thu, 22 Aug 2019 02:35:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566466544; cv=none; d=google.com; s=arc-20160816; b=G6Evkd1xYvW2iHgHhSwn/X0eDAZXKsTHe8Yw/TDWD98XLPfAPWLMt/Cdnpii2adXcG z3wNtEDs0gDIgoBLchpbkJpyjDrgpASaY4ufgLuW88VOca13f4Exu2HhtwdlYR5jH9SF pA2peNCR+g0VOl2EvdbJ/hxykiEldAJfdC1M0nPdA2mY7HRtjXfT7qHKbpW7dV5Y5g8p g3inB1quunn8kTRFjfxxQJXa8usQ34tb6rwTwnLswXQObwJrLdtvRQId78ZieULMGEdL 7unkcOxspOaRMWT3GOPvmKUl8k/36QumU/v0LcoDGQxv5EuQZwKONQ5iNlPK9TMLVEiH LvJw== 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:date:cc:to:from:subject:message-id; bh=XA1EzXtD2kmCRCId412cTKHqF4I6pGYg4l60xvX7i6Y=; b=JqDbwL1lruUKqVC73zMZ6rgDFm0g8zDd7LR3LmWBRACgkjpCneGopAw63KEoIN0YjU P/nglFU07H+ANDO0UEvGJ21pEt0ArKMDsN2p/Q1XuV+aSuFtinPKRP+sCaRJPuV8wq25 QMZ54vIi4Qh6SX7kPV0lXV45NQvmDmtmvG/Tpu3xkiZyUlUelKkn6AdKQJmOqIuIxfwj mkzBXoAS0UyvJkwokIsd3iPRWqIZFebYX3vz+nQQvyOam24EkwyHSpT+nzEASLJW1ZNr MkK9SIwMuZg4UfNlucJ6saX1LRMYJG/wUbCjjSmUsrOjAVYQiaXpvtjdTvpts6azv278 2NDQ== 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 m17si608754pff.107.2019.08.22.02.35.24; Thu, 22 Aug 2019 02:35:44 -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 S1732134AbfHVIM3 (ORCPT + 99 others); Thu, 22 Aug 2019 04:12:29 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:4560 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1731361AbfHVIM1 (ORCPT ); Thu, 22 Aug 2019 04:12:27 -0400 X-UUID: 148adf214d5e41aeb732a3567d7658e1-20190822 X-UUID: 148adf214d5e41aeb732a3567d7658e1-20190822 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0707 with TLS) with ESMTP id 505389812; Thu, 22 Aug 2019 16:12:21 +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; Thu, 22 Aug 2019 16:12:15 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 22 Aug 2019 16:12:15 +0800 Message-ID: <1566461540.16302.4.camel@mtksdaap41> Subject: Re: [PATCH v5 08/13] dt-bindings: pwm: update bindings for MT7628 SoC From: Yingjoe Chen To: Sam Shih CC: Rob Herring , Mark Rutland , Matthias Brugger , Thierry Reding , , Ryder Lee , , , , "John Crispin" Date: Thu, 22 Aug 2019 16:12:20 +0800 In-Reply-To: <1566457123-20791-9-git-send-email-sam.shih@mediatek.com> References: <1566457123-20791-1-git-send-email-sam.shih@mediatek.com> <1566457123-20791-9-git-send-email-sam.shih@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-SNTS-SMTP: 3BD61D47ACABA7964220A1B0223F5209B3AA948622B67FF3DAA9B078EE5B90732000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2019-08-22 at 14:58 +0800, Sam Shih wrote: > This updates bindings for MT7628 pwm controller. > > Signed-off-by: Sam Shih > --- > Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt > index ea95b490a913..93980e3da261 100644 > --- a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt > +++ b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt > @@ -21,6 +21,10 @@ Required properties: > See pinctrl/pinctrl-bindings.txt for details of the property values. > - num-pwms: the number of PWM channels. > + > + Optional properties: > + - clock-frequency: fix clock frequency, this is only used in MT7628 SoC > + for period calculation. This SoC has no complex clock tree. I'm sorry if this has been discussed before. Would it be simpler if you just provide a fixed-clock as clock in device tree? This way you don't need this optional properties and don't need to special handle it in driver code. After all, the hw is still connected to a simple clock tree. Joe.C