From patchwork Fri Jul 8 14:39:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Conor Dooley X-Patchwork-Id: 12911241 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 09698C43334 for ; Fri, 8 Jul 2022 14:39:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dUR2LX/3BL7tlOVQ2ltbOTbt/F8khJhQZ9y0c+uecA4=; b=4zTNUY+ARxFnGL qsPQH0BgPRDSePSjujyzqwQfOReBz0WF3wOOAnlj/nw4F50F4zyo1HCv2XrVNa7lBVGQXktFggd8y 9FLYHJvmEuTW8RF1sAqcHSuVMI8/ndM5nDJFHsOIIRZYfW4nlVj5WOSuoHsPZ88D+nmp3XxexO9AE 0cx8HJuSvZpQlZSQUb/wCfQpqC1LsbAjoIjrNQRHstj4TKopCzd29q+zBr5bG63ktXzcQBKP3/Xxt H6FCpR3qRdjWN8VV3JD0RWTfwPloSBlCzcXkNA+hd+er0v1vjY4KkDErl8HfgZvpq9gTBjtFlHcwb msSMyjZyh+x7581c0nhw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o9p8i-004B7n-Vm; Fri, 08 Jul 2022 14:39:29 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o9p8g-004B69-8T for linux-riscv@lists.infradead.org; Fri, 08 Jul 2022 14:39:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1657291166; x=1688827166; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=zf+7kH8bgglyGlJ9EsT7S7ho3SnvVd1w2aOxWrS9FR4=; b=2aephHmPTelMxHOIEreu89388Z0Ub41K7RY079YsCd1BxxSLbEVq3M2c ixy3qWKP3FaKltTvYXofeMra7/9AbMKTs5+uLLlra3zxEHP0FPR9t86D8 HiHCDXjOSlCuqQQe2giuK1Ga4h2n7vkjJ6wzDD0yWMF+wLR9nka6uEdkC CQjsGqWqsr6c0WLPZiHZwqzuusZjJzXLoXieo1X+b3qW3iXr62nx7PfFl WtYa/59zPJhoa0130UxOgGLwIIWKuJQCiT+QsuR29EE98+pqJGEmadCWZ usxDy5q7KNZsEiSzjs+u1YZ2GWFcrbWmea9j1eQiCW1PdL7kW4LfM2+G+ A==; X-IronPort-AV: E=Sophos;i="5.92,255,1650956400"; d="scan'208";a="171611050" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 08 Jul 2022 07:39:25 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Fri, 8 Jul 2022 07:39:25 -0700 Received: from wendy.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Fri, 8 Jul 2022 07:39:23 -0700 From: Conor Dooley To: Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6n?= =?utf-8?q?ig?= , "Lee Jones" , Rob Herring , "Krzysztof Kozlowski" CC: Daire McNamara , , , , , Conor Dooley Subject: [PATCH v5 1/4] dt-bindings: pwm: fix microchip corePWM's pwm-cells Date: Fri, 8 Jul 2022 15:39:20 +0100 Message-ID: <20220708143923.1129928-2-conor.dooley@microchip.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220708143923.1129928-1-conor.dooley@microchip.com> References: <20220708143923.1129928-1-conor.dooley@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220708_073926_317204_32D23622 X-CRM114-Status: UNSURE ( 8.32 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org corePWM is capable of inverted operation but the binding requires \#pwm-cells of 2. Expand the binding to support setting the polarity. Fixes: df77f7735786 ("dt-bindings: pwm: add microchip corepwm binding") Signed-off-by: Conor Dooley Acked-by: Rob Herring --- Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml b/Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml index a7fae1772a81..cd8e9a8907f8 100644 --- a/Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml +++ b/Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml @@ -30,7 +30,9 @@ properties: maxItems: 1 "#pwm-cells": - const: 2 + enum: [2, 3] + description: + The only flag supported by the controller is PWM_POLARITY_INVERTED. microchip,sync-update-mask: description: |