Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp824429rwb; Fri, 7 Oct 2022 04:48:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM75i7nBlYgaUcLD6DHNL/ziP8kIDNAXepBvKc0H2XzYnRB6u1Oq9wEEgC60srbM8Uasv6qF X-Received: by 2002:a05:6a00:1248:b0:548:2e34:65e1 with SMTP id u8-20020a056a00124800b005482e3465e1mr5016792pfi.82.1665143317246; Fri, 07 Oct 2022 04:48:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665143317; cv=none; d=google.com; s=arc-20160816; b=QtRdsQe89gmCvb0+OCo/N2jFySDL4c/FjnPV5M+MEjweb1dTEzX6sk3hl83HD8/scx NQ6v7cGHjSvhKBdqY8rD+c2OppzYMEOVYjIFIWe0CyTYm63OOdbCQTeXp3h5wh68XCTo nEjyZKgJAHk1Cq8nsn8CVe1iqxZulEJmo6pEaOKQ0LBbstruDidiH1NySfnNMIDY5Uvh FlUMo2w4dm1PJbsNtZ0PBmnJKE7TH5W0FQpUPZ3KBK1eEdV0u3U+okSqL+GcP63HADh0 2DmHj1yNLvuhQNwp5QpfbG1aM/482CP9/NMjfDKy/DHg8wGkX3jhuMXsra9PVoMp9WFo Onpg== 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=ciuXIZJJuo6/g/u2dADnuU+e4X6iBjorE8VPJsTCorc=; b=jbDPnwJZW66+G7RDQey9R4EWXhhYnRKb1+KQC0oL2+dQb5eeTwpLZOtPSTefttI6ep Ei+0JeAlkQEQzH33Oppf6UXKjg58A2VNoohRDkvcMPC/hTDV5lXVr1JIyhPvTxDKGMl/ H1PltChjRXjRw2z4FuhppvatezI4Pd7VYhiFHuhKL5sCXYfMr+XQelgMkN026UXo1fqH 20jkb34p/8/wlb3rWMeEQGM/INbPMGimkXWwwe1o/N6Ck1UAcUlD/+1Gn/9DhUy2Za1w VqQquHX5HRq0bk5XH19UeWB9w9kqXM7Ak3aDtZiKn2V0mFMqEZpj6SQg8OJ2TsqL4j1Q FOEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=Rn07sl5Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z18-20020a63b912000000b0045a88522c02si2251399pge.692.2022.10.07.04.48.25; Fri, 07 Oct 2022 04:48:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=Rn07sl5Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229763AbiJGLfw (ORCPT + 99 others); Fri, 7 Oct 2022 07:35:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229747AbiJGLft (ORCPT ); Fri, 7 Oct 2022 07:35:49 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A51BDC90C2; Fri, 7 Oct 2022 04:35:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1665142548; x=1696678548; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=MHG2thRoVjC0ho07WGF50KRaA5/RfSwJFArrPBDrMJ4=; b=Rn07sl5YzfG0je2QR/v0OV7fgOkU79/P8EDGwAqcgjQ6LhY0Mq9MJG6T M5QATJYWK3sw2Ia8ekIstdIOFD+O5nvK76jGGCUYC5TQwOpUN2hm36bOz cJFf89aysdDdlzrsszy1PSCyfL60Pr78hcDvFP+OziteFSB4ubWYX1VM5 7/jCDiuOE55gi265iKkHC5FX+Y5Q4uB/ciehqsbvckR03E3QaGDXPP9ko s6ntmNN+85mTAsqpuQD2M9WY67DmT81LjHSdgmLfi36XOf+ClxlDK8x6H kGRxhYNpmKDk+fSE1dWoNVcQeCK935/6GUjoivVuF8pI7s0K8mXAkvwr0 A==; X-IronPort-AV: E=Sophos;i="5.95,166,1661842800"; d="scan'208";a="177501339" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 07 Oct 2022 04:35:48 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Fri, 7 Oct 2022 04:35:44 -0700 Received: from wendy.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Fri, 7 Oct 2022 04:35:42 -0700 From: Conor Dooley To: Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , "Rob Herring" , Krzysztof Kozlowski CC: Daire McNamara , , , , , Conor Dooley , Rob Herring Subject: [PATCH v11 1/4] dt-bindings: pwm: fix microchip corePWM's pwm-cells Date: Fri, 7 Oct 2022 12:35:10 +0100 Message-ID: <20221007113512.91501-2-conor.dooley@microchip.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221007113512.91501-1-conor.dooley@microchip.com> References: <20221007113512.91501-1-conor.dooley@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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") Acked-by: Rob Herring Acked-by: Uwe Kleine-König Signed-off-by: Conor Dooley --- 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: | -- 2.37.3