From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 584DA21C17F; Wed, 5 Jun 2024 05:52:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.142 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717566767; cv=none; b=Un48SHJ0Un7YZZTkbjyhFgzbcmCqwNGgZwf9neJWSA+QspY0+i6qmO6WszHy9UzW8iA2PkONru+VzBQnimFr0Exd9u6ThqfeG4NstlDTRV4NShTuJ3zs18q9hD6tlE668lB41STltJLnLopkavsWcFZ/w8uptq0saooYyRLBqPw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717566767; c=relaxed/simple; bh=p+PzInLP+pe7SlKCHsWsS/k6Dd0Bl0VM0YIUxVBTgOA=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OjBmL+k3Q7WygGOHl1udxPmL9+LsaMjA8VzK0wjN+7NBb3Ch7WY3gc2pSVHosiADorkECPzpukIeLgPRjQSy78jMr9pmqvR4TkjFNbchAYlKaUdq21t7fW02Z4qeIMySUeoeabO4iQdN3Q1LWT7sjlvYFopOaHnUvl+a6Woxl9s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=MOnMbvNB; arc=none smtp.client-ip=198.47.19.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="MOnMbvNB" Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 4555qOTW001666; Wed, 5 Jun 2024 00:52:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1717566744; bh=RXwxKDglUHGw8iXienbiFGxa+YrigrmBMjwrRPtrhr4=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=MOnMbvNBu7AEJjvROJ/JNyT2MdWHOy6ZsvYVvSkyvQlPgPvhQjmp54jbYfmlPmJqm My4k+2obV2qoxZCiq7/xwSUlCiBZ2NHEQwFHgpZOUdjd/pgfaMr9AOFqbplRoSGEtz l7QA8mbFLO5mDmpKrUM+5A1Qk4kHtFMlXGlKZh8k= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 4555qO9G059288 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 5 Jun 2024 00:52:24 -0500 Received: from lewvowa01.ent.ti.com (10.180.75.79) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 5 Jun 2024 00:52:23 -0500 Received: from DLEE115.ent.ti.com (157.170.170.26) by lewvowa01.ent.ti.com (10.180.75.79) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2507.34; Wed, 5 Jun 2024 00:52:23 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 5 Jun 2024 00:52:23 -0500 Received: from localhost (dhruva.dhcp.ti.com [172.24.227.68]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 4555qM71044039; Wed, 5 Jun 2024 00:52:23 -0500 Date: Wed, 5 Jun 2024 11:22:22 +0530 From: Dhruva Gole To: Linus Walleij CC: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , , Philip Howard , Sean Young , Chris Morgan , Stefan Wahren , , , , Vincent Whitchurch , Andy Shevchenko Subject: Re: [PATCH v7 2/2] pwm: Add GPIO PWM driver Message-ID: <20240605055222.vi2mu6atmz7vezns@dhruva> References: <20240604-pwm-gpio-v7-0-6b67cf60db92@linaro.org> <20240604-pwm-gpio-v7-2-6b67cf60db92@linaro.org> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20240604-pwm-gpio-v7-2-6b67cf60db92@linaro.org> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 On Jun 04, 2024 at 23:00:41 +0200, Linus Walleij wrote: > From: Vincent Whitchurch > > Add a software PWM which toggles a GPIO from a high-resolution timer. > > This will naturally not be as accurate or as efficient as a hardware > PWM, but it is useful in some cases. I have for example used it for > evaluating LED brightness handling (via leds-pwm) on a board where the > LED was just hooked up to a GPIO, and for a simple verification of the > timer frequency on another platform. > > Since high-resolution timers are used, sleeping GPIO chips are not > supported and are rejected in the probe function. > > Signed-off-by: Vincent Whitchurch > Co-developed-by: Stefan Wahren > Signed-off-by: Stefan Wahren > Co-developed-by: Linus Walleij > Reviewed-by: Andy Shevchenko > Signed-off-by: Linus Walleij > --- > Documentation/driver-api/gpio/drivers-on-gpio.rst | 7 +- > drivers/pwm/Kconfig | 11 + > drivers/pwm/Makefile | 1 + > drivers/pwm/pwm-gpio.c | 241 ++++++++++++++++++++++ > 4 files changed, 259 insertions(+), 1 deletion(-) > Reviewed-by: Dhruva Gole -- Best regards, Dhruva Gole