Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2255933pxb; Mon, 12 Apr 2021 19:44:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEzvKlSXxYVbe1Ic4I3tPWtQ+N+tUnOIa95RX2oOflfGIoufkHdjoKW1sD0UslYyItuF9M X-Received: by 2002:a17:906:4c96:: with SMTP id q22mr29475431eju.269.1618281861028; Mon, 12 Apr 2021 19:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618281861; cv=none; d=google.com; s=arc-20160816; b=jq7AfgYTp6/KlB/c1JB+zh4NIVyWkjRYJqTWOrNzZUD7xisk1acM1Hwy+SvGhhsxNt 2SxlPZGHDQ1pqVDs6BUHZwq2Zlz/75wev83zNfeGSs8XIKcC4qYsouavQ1n3jSii5p8W uWhCrbX6n7bbsFTyyIuwzrswLm7nosm+4gvHujoGlR2mddyWsNLVsDCWYN50D00/qMfP RqgF8igmd89CagXvw6uaZLrZH8zTgc4HxqoomzoI0I0OEqoieHXWw/sjNVXg3jaO1Q8I jWpID2jctt0JcXzSepEIDFE3PUZpS6eXYIrsrKPQvGYm/yNLYGQLomspyXFSX1s26M+Q x+zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GlsSSVic5H44j5iEOaImBYJ/UJ6bO5xkDJrawlhvIZI=; b=l+KjYjSx+peaL8sIZ7ScqBb9FXzcBCoiAIq7mM4VWY1rNeH49urWiJTG4YMX3JjQYa myZ3rgSgFGftSUKuTVBYCKtVFjjvEeLaPfpYSyPib6MzfxXrpobKPNpzEwn6HsRpBHRg mk+pbXe3uD1/Hb25sZn4C77+EIdiQ8pWGdI5xFR43k31HeM3diS3RObV5Dty7zjN8RwW XjwiYkHC4YbrQGWumF7AA1jBslJXXFChe29j6u6rKU2R2SDrFdKIvbyBC2TsMGmYT8cF Vg4x1vzfik2H17CNkPNui0jbkiGPO3kmh14RxcgYSJdDeT31UNWON5hpfWGvY7lKrBz+ Urug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pqgruber.com header.s=mail header.b=mvN0970p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=pqgruber.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x19si8798038ejo.698.2021.04.12.19.43.46; Mon, 12 Apr 2021 19:44:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@pqgruber.com header.s=mail header.b=mvN0970p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=pqgruber.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241799AbhDLN3h (ORCPT + 99 others); Mon, 12 Apr 2021 09:29:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241773AbhDLN3d (ORCPT ); Mon, 12 Apr 2021 09:29:33 -0400 Received: from mail.pqgruber.com (mail.pqgruber.com [IPv6:2a05:d014:575:f70b:4f2c:8f1d:40c4:b13e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22196C06138C; Mon, 12 Apr 2021 06:29:14 -0700 (PDT) Received: from workstation.tuxnet (213-47-165-233.cable.dynamic.surfer.at [213.47.165.233]) by mail.pqgruber.com (Postfix) with ESMTPSA id 297C0C725CF; Mon, 12 Apr 2021 15:29:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqgruber.com; s=mail; t=1618234153; bh=GlsSSVic5H44j5iEOaImBYJ/UJ6bO5xkDJrawlhvIZI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mvN0970p8X3QwcZRsq60A0d7TyjVYXHHjg+FbcqnLdRl43iH0AdkPH5390JC4z2q0 a6+Ng4ZgH7M3ln8f4fd9I4Z6EUnVqj3PHXfp5jsd8BTFmCpF0ujkwWjbtI1vVEEMDh GRhDKkkUJUpnOYz76ZokTbmu1z86FJCQwhG8PkJA= From: Clemens Gruber To: linux-pwm@vger.kernel.org Cc: Thierry Reding , Sven Van Asbroeck , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Clemens Gruber , Rob Herring Subject: [PATCH v8 4/8] dt-bindings: pwm: Support new PWM_USAGE_POWER flag Date: Mon, 12 Apr 2021 15:27:41 +0200 Message-Id: <20210412132745.76609-4-clemens.gruber@pqgruber.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210412132745.76609-1-clemens.gruber@pqgruber.com> References: <20210412132745.76609-1-clemens.gruber@pqgruber.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the flag and corresponding documentation for PWM_USAGE_POWER. Cc: Rob Herring Signed-off-by: Clemens Gruber --- Documentation/devicetree/bindings/pwm/pwm.txt | 3 +++ include/dt-bindings/pwm/pwm.h | 1 + 2 files changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/pwm/pwm.txt b/Documentation/devicetree/bindings/pwm/pwm.txt index 084886bd721e..fe3a28f887c0 100644 --- a/Documentation/devicetree/bindings/pwm/pwm.txt +++ b/Documentation/devicetree/bindings/pwm/pwm.txt @@ -46,6 +46,9 @@ period in nanoseconds. Optionally, the pwm-specifier can encode a number of flags (defined in ) in a third cell: - PWM_POLARITY_INVERTED: invert the PWM signal polarity +- PWM_USAGE_POWER: Only care about the power output of the signal. This + allows drivers (if supported) to optimize the signals, for example to + improve EMI and reduce current spikes. Example with optional PWM specifier for inverse polarity diff --git a/include/dt-bindings/pwm/pwm.h b/include/dt-bindings/pwm/pwm.h index ab9a077e3c7d..0d5a8f0c0035 100644 --- a/include/dt-bindings/pwm/pwm.h +++ b/include/dt-bindings/pwm/pwm.h @@ -11,5 +11,6 @@ #define _DT_BINDINGS_PWM_PWM_H #define PWM_POLARITY_INVERTED (1 << 0) +#define PWM_USAGE_POWER (1 << 1) #endif -- 2.31.1