Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp427466pxf; Wed, 7 Apr 2021 03:04:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwC6z3/14n8AiF3I74hFV5MnTTBVVx6scIrYcDu4fjAwdPagByZR9ptsRvmEf62JNa3wNex X-Received: by 2002:aa7:d445:: with SMTP id q5mr3478012edr.318.1617789880119; Wed, 07 Apr 2021 03:04:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617789880; cv=none; d=google.com; s=arc-20160816; b=il0MsOV1YZ2B3BDx5HqL0C7GTBz6p5ZSOwRXoYPz8BjQNCRbtByg9Jg7Cd1UWllSYL 56DYp6VaBlP+q9QnK+dcYCInrUVWtJvTMyIALcCFm5fFr5rZhWngetT4HqvntEzzclnx joOdK5yBscyp1X1xLv5LTp9v/P3PwcDRUxffmh2/olwsVgGG1i6TCDon0HsQpvYqRJZn XaM7dtpRCuHO6jKI5OqAJDbgimqQ9nDzry3Fqo97tQbTMy/no0J59bS1tNmoVDdWTA7u RKuxWAVPoZ255MxsE3xHBkk4qYVAJOd25JSXgXBM0LynUQ+LpM16GV9NZf4fqXCC9Q/4 NF/Q== 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=YBVJEd4u8lXZ2VS38cZjFNDqDt6p6/zLjW/nqtuCXBg=; b=fkjZ5NrBuOogfVyvHhGRuux2xfmqGPkCMxQKb/BdwpQmdh/FGf2LwjMxVy387EwESJ ZdIZkJb3gAnx/fOD3S+0u9NMnWIlz/tc+LKBt8Oo9N9hp/wbRZaQV0PZtV42geiVUCLx lHjfFxEeA866SC7T9hgkfpfVshVHCEb5yO7Ug9xiUKVdTDa81KIOUgUQpE10tTBxV+VE R7MQwImchQP53ByaqKwads+pF1MxZ4rs7N98t0F/yGEg8F9ZtL0fLRk0Te+b/QrIldnD t/Gg8JDZmGKC9g+J2cszy9k0QGx1m5hUTYb09KCmkwvnKZNKDqrtG2F9hzryntRDRwP8 gGxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pqgruber.com header.s=mail header.b=PEkplOgd; 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 hc43si23230746ejc.21.2021.04.07.03.04.16; Wed, 07 Apr 2021 03:04:40 -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=PEkplOgd; 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 S1346556AbhDFQny (ORCPT + 99 others); Tue, 6 Apr 2021 12:43:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346562AbhDFQnv (ORCPT ); Tue, 6 Apr 2021 12:43:51 -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 B0CD1C061756; Tue, 6 Apr 2021 09:43:43 -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 3ADEEC6AEEE; Tue, 6 Apr 2021 18:43:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqgruber.com; s=mail; t=1617727422; bh=YBVJEd4u8lXZ2VS38cZjFNDqDt6p6/zLjW/nqtuCXBg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PEkplOgdRYf1MjYWcSAvqpiTRHJ9/EoealVw801SqqT770q/pyWXJKboBIwLhHnZ9 klLrmVvtoRKmRYi39sFGXqBYfWtXxDdhyHDrbtGmt7bsx4TyeBTnY+m/UvVbrTsA5E W1frFFSmT57BFbNiJDyLUoGeiI67i5JZ79QS0dDo= 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 v7 4/8] dt-bindings: pwm: Support new PWM_STAGGERING_ALLOWED flag Date: Tue, 6 Apr 2021 18:41:36 +0200 Message-Id: <20210406164140.81423-4-clemens.gruber@pqgruber.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210406164140.81423-1-clemens.gruber@pqgruber.com> References: <20210406164140.81423-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 the new PWM staggering mode feature. Cc: Rob Herring Signed-off-by: Clemens Gruber --- Documentation/devicetree/bindings/pwm/pwm.txt | 1 + include/dt-bindings/pwm/pwm.h | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/pwm/pwm.txt b/Documentation/devicetree/bindings/pwm/pwm.txt index 084886bd721e..11d539302398 100644 --- a/Documentation/devicetree/bindings/pwm/pwm.txt +++ b/Documentation/devicetree/bindings/pwm/pwm.txt @@ -46,6 +46,7 @@ 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_STAGGERING_ALLOWED: allow delayed ON-time for improved EMI 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..51d67dec1aad 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_STAGGERING_ALLOWED (1 << 1) #endif -- 2.31.1