Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp726370pxb; Thu, 15 Apr 2021 05:16:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymDA9Foy81QF7Y7N4Mat9SDeiCvNVlhspfR1cBKsK3BKpSllpaYuXcKXAjyLEZI43p+zRe X-Received: by 2002:a17:902:e793:b029:eb:5dfc:2386 with SMTP id cp19-20020a170902e793b02900eb5dfc2386mr3465729plb.48.1618488989393; Thu, 15 Apr 2021 05:16:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618488989; cv=none; d=google.com; s=arc-20160816; b=qJWFGhWc4ZjQPgMIYTz5CEOec5tlWaPaqrLpSzL2mLPcO2o1icEtWMzY3OmxbyWQjx 9qXTqmr5hvKuskyiCkBsQ1DkUI0Stpd3EziUrCmqEhArMnQs6OgUYCqVmN1Eh1FhBdPS VT+NCm3Hxj1t0/Phtg4y7fNUEwwA88Ekql+V6VIr9ODxxFmdCX4m8S6QEZPdIsOei1+t PK/CXrR2vatym5A1TCSxCnIkTu2QP46EumDGzgLjl0WH9tBmEtZe3OeKYJU8hu05tgvx 8dglYHfq8DnffsonrPqGnObe47jFQnGAVdhj5EHDEAGLYK6CbRFPkDA7FjPQqruh0XoH YlSg== 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=Wtd37UfK/3zjJWpsSsL2HJuDJIUIek5n/K/nNKCAbxytZ02EtLzbcITbtcwde97nD/ O+/L0oYjOcJH06bd+ZAk0WZHglSSuem9PoBvj7xKksoQzQMkB88hZEW74kVGtZJQoZy4 T1+fuwWPuq5ljvnFabkUwKzQi8Hkp9ZV2XkwAT4/wIqU+8cVavCTWkfkrEcmEmnqBAk6 6ZgETM6s/OJyhkoCebzvZ8VAP3h0Xf5bsndeLXkfi8ZfiyvQ2AezuMpPZG2D96ZYwyRw bgP+S8bj0+FNT3oFpGAG/VsLRjEcZli6v9pk2uMo5Co7TjjBDUGKeBER468a8P5kOSWO h6gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pqgruber.com header.s=mail header.b=mlRaz656; 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 e5si2846266pfc.160.2021.04.15.05.16.17; Thu, 15 Apr 2021 05:16:29 -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=mlRaz656; 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 S232771AbhDOMPz (ORCPT + 99 others); Thu, 15 Apr 2021 08:15:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232796AbhDOMPw (ORCPT ); Thu, 15 Apr 2021 08:15:52 -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 ABFA5C061574; Thu, 15 Apr 2021 05:15:29 -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 0C362C725D8; Thu, 15 Apr 2021 14:15:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqgruber.com; s=mail; t=1618488928; bh=GlsSSVic5H44j5iEOaImBYJ/UJ6bO5xkDJrawlhvIZI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mlRaz6562tGiTImHsG2r9+X2/0S3ogOJED7lQ5HORi+GmvR76y3IekxPwcXVnCbyN zgxrygxD4+Oe2KIkaFpP3isElPstaCeCg5Ys0MW6CTZIhII4Nn3wXVCjDgd9EjKGNY KM3VqR7lv2yQHPYjIrx52Eusj2KL+5rJDYZ9Aj7U= 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 v9 4/8] dt-bindings: pwm: Support new PWM_USAGE_POWER flag Date: Thu, 15 Apr 2021 14:14:51 +0200 Message-Id: <20210415121455.39536-4-clemens.gruber@pqgruber.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210415121455.39536-1-clemens.gruber@pqgruber.com> References: <20210415121455.39536-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