From patchwork Mon Nov 6 15:13:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13447099 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 7676FC4332F for ; Mon, 6 Nov 2023 15:14:04 +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=SVbNnbwLs6S+Kech0rI7X5wq2Qy3+jNfEQANT1kcc/Y=; b=GuOvw3cNDDEzx1 ywdS0Fir2dr/O8+9TL0LbNU+hZxPAZgqqQtWKNxiIzGM1bseO0Xn27jGQh9Az5/KeQHfP8ocFfY18 v8g3YE2rc72mErBaWYwSLRnr0pfrhOS220mlBbMkokt1ULwzW5EDCpe86+Px1rXtmCarB9jdeupd6 JqVK98oruIcHD/ZX9CK4urJXlO0yO2tFR4YNwEk40GzwEcVtM9idzTHgPObknWxpDqaPtg6h6ACct uxy/DP6DeSoke+DloIqGRZHPpYVavplLbMHkDwacjgOVMpccHcGq0nCOxQkTrrw0Iwswq5sFcoDL3 2gPZBqZlF9PJMuYm3KAA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r01IG-00Gxfi-0e; Mon, 06 Nov 2023 15:13:36 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r01ID-00Gxdb-2j for linux-arm-kernel@lists.infradead.org; Mon, 06 Nov 2023 15:13:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1699283613; x=1730819613; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=UOcqh7XEcNQ+w0d5dBR9IVF/Lbthrrvs8GT3OePqTPE=; b=SLSGpfe7mS7ZRKM7zoyOJfueuAiA71dcIBHDKutJ5ozlBP0RdW0m83m/ 6P4KbNwL/0ZqpAc4HVh6mcKXvJbEVUlY2xjmXXDs+u9fQk6q4FzaxeCkR MsumkbusoPqw0DT1x9nHfhxB5x1ie4HO2YwsQ86sNFARCabFcpdkL47/b Ngd2BUkz60Ltr7gYcVLjd03Kqbx9y/rNEwwB0xp8T8ADOSVkXcwhPY61R 2FKmzP2KgZyJzpZC4/Fj6GPV/AvpMVV5hncZ9samihmanWUtRh7cDnaeM zpI3dBYgvtEbKa+EwUHreCOmhwFT6ph4TWNT1WWVwOnaKQH3yR7iXTtoQ Q==; X-IronPort-AV: E=Sophos;i="6.03,281,1694728800"; d="scan'208";a="33832044" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 06 Nov 2023 16:13:27 +0100 Received: from steina-w.tq-net.de (steina-w.tq-net.de [10.123.53.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 227C6280084; Mon, 6 Nov 2023 16:13:27 +0100 (CET) From: Alexander Stein To: Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6n?= =?utf-8?q?ig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Alexander Stein , Pengutronix Kernel Team , NXP Linux Team , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 1/3] dt-bindings: pwm: imx-pwm: Unify #pwm-cells for all compatibles Date: Mon, 6 Nov 2023 16:13:24 +0100 Message-Id: <20231106151326.812099-2-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231106151326.812099-1-alexander.stein@ew.tq-group.com> References: <20231106151326.812099-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231106_071334_188130_077A0896 X-CRM114-Status: GOOD ( 12.13 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Use #pwm-cells for all i.MX variants. Only fsl,imx1-pwm does not support inverted PWM output. Keep it the same for consistency. Signed-off-by: Alexander Stein Reviewed-by: Uwe Kleine-König Acked-by: Conor Dooley --- Documentation/devicetree/bindings/pwm/imx-pwm.yaml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/pwm/imx-pwm.yaml b/Documentation/devicetree/bindings/pwm/imx-pwm.yaml index c01dff3b7f843..a84a240a61dc1 100644 --- a/Documentation/devicetree/bindings/pwm/imx-pwm.yaml +++ b/Documentation/devicetree/bindings/pwm/imx-pwm.yaml @@ -14,12 +14,10 @@ allOf: properties: "#pwm-cells": - description: | - Should be 2 for i.MX1 and 3 for i.MX27 and newer SoCs. See pwm.yaml - in this directory for a description of the cells format. - enum: - - 2 - - 3 + description: + The only third cell flag supported by this binding is + PWM_POLARITY_INVERTED. fsl,imx1-pwm does not support this flags. + const: 3 compatible: oneOf: From patchwork Mon Nov 6 15:13:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13447100 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 CACD6C4167D for ; Mon, 6 Nov 2023 15:14:05 +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=iLafEnGTLQ2UBfpPmfWI7H9HMi7pEC3Kstt4kfJ8Wlc=; b=MO/xgdMI9tIhzD xHoGyMkYhAuSbv64omYmP3XPNUtzfe/BwCZfeJrwiBBpIr4sNMXoXsTUFAiS2P5PRBpbMvc8Qcmuq xCsaU4yynyHmqIJ4kfFD3jZOsBifj+b3nqKmUIe3lXEeG1i+IPqmup+FzBqCy5PhkSGwG59nUdOM3 KoPyIDBCVTDJ9RlzKbHA0dEczOTrOa2rFdGZrR3/q0A2cQY/K+8pIrptW6etbzC62FzPAsLvWQL3e 0MR5M8h3jFOfM0M+CgULpoFFPPXIfhaIvgcZsCS+H6GkebyGE/LtK+zgxSjdYp+5RW35nab1qIYpy +dcKTyWhNthU/wKRmxKw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r01II-00GxgV-2g; Mon, 06 Nov 2023 15:13:38 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r01IE-00Gxek-30 for linux-arm-kernel@lists.infradead.org; Mon, 06 Nov 2023 15:13:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1699283615; x=1730819615; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Go4bFf2Eq4WAnebrcWBbjCoI6Mj9yt1yHNiWpgfAdOY=; b=cvkQH6+ArxaU4o/TBHnUdJpSMqL7coL2tukBMDatsrFGos33eyYzvk1N uzF3jFfWXcdmAdd0nH4Bo7UNW3wovot0vbxUCrnR4S3/C0I4J/8zDMsAx +mMPsjuQplJ1OMA6Xut0VQlbF4TCoYNS7UXvD0HaZjttOFsj+K4nFMpS1 FAnOlJe4i4kjklHd7UxE4B11B8cMFZgVugnGZ7Rgj2mq8gB5UfVGzXlQU UnRU74FjCzoHhlzx/TEW0NP+SGn205IV9w7ImD1j5Xh7zbowhWfuaQ+00 OBRq6BSjXS/0yFP3SAKpkNeTgExcvrwmXH70CO5//DWxIgqdxFp/2WlIA Q==; X-IronPort-AV: E=Sophos;i="6.03,281,1694728800"; d="scan'208";a="33832045" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 06 Nov 2023 16:13:27 +0100 Received: from steina-w.tq-net.de (steina-w.tq-net.de [10.123.53.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 6032328007F; Mon, 6 Nov 2023 16:13:27 +0100 (CET) From: Alexander Stein To: Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6n?= =?utf-8?q?ig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Alexander Stein , Pengutronix Kernel Team , NXP Linux Team , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 2/3] arm64: dts: freescale: imx8-ss-lsio: Fix #pwm-cells Date: Mon, 6 Nov 2023 16:13:25 +0100 Message-Id: <20231106151326.812099-3-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231106151326.812099-1-alexander.stein@ew.tq-group.com> References: <20231106151326.812099-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231106_071335_273832_2F960A3A X-CRM114-Status: GOOD ( 11.75 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org i.MX8QM/QXP supports inverted PWM output, thus #pwm-cells needs to be set to 3. Fixes: a05c329644d81 ("arm64: dts: freescale: imx8-ss-lsio: add support for lsio_pwm0-3") Signed-off-by: Alexander Stein Reviewed-by: Uwe Kleine-König --- arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi index 49ad3413db948..7e510b21bbac5 100644 --- a/arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi @@ -29,7 +29,7 @@ lsio_pwm0: pwm@5d000000 { <&pwm0_lpcg 1>; assigned-clocks = <&clk IMX_SC_R_PWM_0 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <24000000>; - #pwm-cells = <2>; + #pwm-cells = <3>; interrupts = ; status = "disabled"; }; @@ -42,7 +42,7 @@ lsio_pwm1: pwm@5d010000 { <&pwm1_lpcg 1>; assigned-clocks = <&clk IMX_SC_R_PWM_1 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <24000000>; - #pwm-cells = <2>; + #pwm-cells = <3>; interrupts = ; status = "disabled"; }; @@ -55,7 +55,7 @@ lsio_pwm2: pwm@5d020000 { <&pwm2_lpcg 1>; assigned-clocks = <&clk IMX_SC_R_PWM_2 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <24000000>; - #pwm-cells = <2>; + #pwm-cells = <3>; interrupts = ; status = "disabled"; }; @@ -68,7 +68,7 @@ lsio_pwm3: pwm@5d030000 { <&pwm3_lpcg 1>; assigned-clocks = <&clk IMX_SC_R_PWM_3 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <24000000>; - #pwm-cells = <2>; + #pwm-cells = <3>; interrupts = ; status = "disabled"; }; From patchwork Mon Nov 6 15:13:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13447097 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 A0429C4167B for ; Mon, 6 Nov 2023 15:14:01 +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=XwL5F28No8Wsy3LNFP79dpgAdqTWCbaW1RUU/Z1a9xs=; b=d76ugWE4DXu1tW mWCsWvEBWAjxFY1XqztybQhaNjD/0MjgnhvPcnK5nCuU8jdobwhxBvhzVXaE6pJV9hXO5lTk5R3GW A5Vj7F7Hu2QUogBG1RDvn/yjMe1GOzrFAp457foYnKPSHgaAC1SB9BEju8jUJLZ0dTdYREmZAbOOE cO89aBEl4R/wBg8zyBS7ZRWBcn8f2+mThIbVmrcUbP+BtgwonV0lA1fwwdyON6k29COYV9mwx9stX 1eLclwlz+h36K/oaf3tGDfJ7O16D5MhLP5pbmtyNp1pdcEzcuOwzi/fkJsJCOggVzlYQHyDdDInqg NI6JvLI9pGvUqWofelzg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r01IJ-00GxhE-1I; Mon, 06 Nov 2023 15:13:39 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r01IF-00Gxdb-2c for linux-arm-kernel@lists.infradead.org; Mon, 06 Nov 2023 15:13:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1699283615; x=1730819615; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=NwGOpTGCH6jlDrZDokQHvKzUAiE0do2u0szr8vr6TcM=; b=MwWGOT81i2WDFvBrHFoNWPHu963k6MSoHZ3Y6ZiXSFSMjs/KSHbcKG24 1uK9xMkevJuEzSx3XwTY4ccb//I9t7exxSzZy2aBiln/d0t6KfNhJpblc C8Sj1HaVe14xJQcGgQFV++XeS7k6TmMaq159z4fNPf0zSRAhVZTgb4kEr ccwzxY5uxk720LFtfFYlFuUxadleUosMta+qHhF/yD/99wzrn7QaCSkCs QtsDLOKPQXrXVSYDUXtk4H7YxzlD5+NCUDCohvEo1IGub9ouK7sHtNti7 yB38Wistp3duVyNtIX7VqhtsrTQGpWXcZMlinhubSCq9PVe1VdjzMHZ75 A==; X-IronPort-AV: E=Sophos;i="6.03,281,1694728800"; d="scan'208";a="33832046" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 06 Nov 2023 16:13:27 +0100 Received: from steina-w.tq-net.de (steina-w.tq-net.de [10.123.53.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 9A04B280084; Mon, 6 Nov 2023 16:13:27 +0100 (CET) From: Alexander Stein To: Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6n?= =?utf-8?q?ig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Alexander Stein , Pengutronix Kernel Team , NXP Linux Team , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 3/3] arm64: dts: freescale: imx8-ss-dma: Fix #pwm-cells Date: Mon, 6 Nov 2023 16:13:26 +0100 Message-Id: <20231106151326.812099-4-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231106151326.812099-1-alexander.stein@ew.tq-group.com> References: <20231106151326.812099-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231106_071336_156439_C4F303FD X-CRM114-Status: GOOD ( 12.91 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org i.MX8QXP supports inverted PWM output, thus #pwm-cells needs to be set to 3. Fixes: f1d6a6b991ef9 ("arm64: dts: imx8qxp: add adma_pwm in adma") Signed-off-by: Alexander Stein Reviewed-by: Uwe Kleine-König --- arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi index ce66d30a4839b..b0bb77150adcc 100644 --- a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi @@ -149,7 +149,7 @@ adma_pwm: pwm@5a190000 { clock-names = "ipg", "per"; assigned-clocks = <&clk IMX_SC_R_LCD_0_PWM_0 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <24000000>; - #pwm-cells = <2>; + #pwm-cells = <3>; power-domains = <&pd IMX_SC_R_LCD_0_PWM_0>; };