Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp87188ybh; Wed, 11 Mar 2020 21:25:15 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv59n3+Ul8mjxeP/XbRtWAbL6GDr/ijGTy/tHgYmeSWvjaasEFfeh7Rb8fGdbKQNxa3vFND X-Received: by 2002:a9d:748c:: with SMTP id t12mr4686800otk.38.1583987115129; Wed, 11 Mar 2020 21:25:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583987115; cv=none; d=google.com; s=arc-20160816; b=yVjZ/Kd1x0MFRURCq1Mxw4TYiR/6mUk/+JRFvDOy5lUpG8osRdwA7pSfa3EeAxfdQb RMKnDZ1505rnxK4be8pB/kJyYkRqG+4ZvEc3/Rw9gZBuIP5PBb9E4xUIzciGF6DtUr7T kXJ/ezmV0GQ1j7gHxQzuXEf2Ojs7nE0AHU/qPp5yT7QXnr+kFGHGeULfmD/UBd5tLIET gkiyyIVmOpzJJNT8C582T7QvIJSUwj7tm+/WpDIk8ZEFYiPC+pJdTmcBPD37Zf8fIU9z 9Xws2B3rXbA44QiK154P5rcqqHAiM2vii7aHAqAX1QrXXzpxNbK1bCam7BRu0iZyr7OB Tsrw== 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 :dkim-signature; bh=NrBF8X7osaKwfx6YKSL4NEakY4NXAPmN1MMw7ujglsQ=; b=qy0Lez4hayvuF3a094ETTNVxhqalHCwFwA4eNlyDucto87fxEopkrmRQxnzlt+nXw9 L3hq7i7eoJ7UsxzOl530AO3pKMIVtSYrNt3zSv4VoQ6xW5l/GrErd/fdkdEayl4Uyc+U /BayYp+wtuf33f1/FrmFdSR0LqPjokvBfRID6Tlc2c9pGlllSpVbZhvEFz7G+k2uGRgb PS6JtlQqyROeUzDfWqxdMmzbafBMETQihEdwv47o7xJBio7g/BmaHZ+Mku1mVQ98T7U/ 3IVfNBFOwOstnraj6SwlLnUujpoXAQnDGVUWND4QJTEOdxFgrw8yUaVhdridmYZcdWvW dtqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Q1gYg0Cb; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w26si2105124otk.156.2020.03.11.21.25.02; Wed, 11 Mar 2020 21:25:15 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Q1gYg0Cb; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387677AbgCLEXN (ORCPT + 99 others); Thu, 12 Mar 2020 00:23:13 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:55498 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726534AbgCLEXM (ORCPT ); Thu, 12 Mar 2020 00:23:12 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 02C4N7lL104287; Wed, 11 Mar 2020 23:23:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1583986987; bh=NrBF8X7osaKwfx6YKSL4NEakY4NXAPmN1MMw7ujglsQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Q1gYg0Cb4SmaV1RQD2hPmp1L8/Vo6eOiq1kjgM2zXrTWLY95VP2RuAoyBkML6p1kq EbdN4V1oRnDG7BPuWknZzEnl9FswA0T87w72tr6gpxn5cMKU0sOxggmy01j9DDWHxP YBC7D5DAy2UuAdtc74K/YkEYEWHAGIvilbTYIRPc= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 02C4N7Hq079986 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 11 Mar 2020 23:23:07 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Wed, 11 Mar 2020 23:23:07 -0500 Received: from localhost.localdomain (10.64.41.19) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Wed, 11 Mar 2020 23:23:07 -0500 Received: from uda0131933.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by localhost.localdomain (8.15.2/8.15.2) with ESMTP id 02C4Mvgi065984; Wed, 11 Mar 2020 23:23:04 -0500 From: Lokesh Vutla To: Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= CC: Tony Lindgren , Linux OMAP Mailing List , , , Sekhar Nori , Vignesh R , Lokesh Vutla Subject: [PATCH v3 2/5] pwm: omap-dmtimer: Update description for pwm omap dm timer Date: Thu, 12 Mar 2020 09:52:07 +0530 Message-ID: <20200312042210.17344-3-lokeshvutla@ti.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200312042210.17344-1-lokeshvutla@ti.com> References: <20200312042210.17344-1-lokeshvutla@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update the description with a brief about how pwm is generated using OMAP DM timer and add Limitations for the pwm generations. Also add link to the Reference Manual. Suggested-by: Uwe Kleine-König Acked-by: Tony Lindgren Signed-off-by: Lokesh Vutla --- drivers/pwm/pwm-omap-dmtimer.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/pwm/pwm-omap-dmtimer.c b/drivers/pwm/pwm-omap-dmtimer.c index e4f5f710bfaa..92aac6c86b95 100644 --- a/drivers/pwm/pwm-omap-dmtimer.c +++ b/drivers/pwm/pwm-omap-dmtimer.c @@ -10,7 +10,15 @@ * * Description: * This file is the core OMAP support for the generic, Linux - * PWM driver / controller, using the OMAP's dual-mode timers. + * PWM driver / controller, using the OMAP's dual-mode timers + * with a timer counter that goes up. When it overflows it gets + * reloaded with the load value and the pwm output goes up. + * When counter matches with match register, the output goes down. + * Reference Manual: http://www.ti.com/lit/ug/spruh73q/spruh73q.pdf + * + * Limitations: + * - When PWM is stopped, timer counter gets stopped immediately. This + * doesn't allow the current PWM period to complete and stops abruptly. */ #include -- 2.23.0