From patchwork Mon May 2 09:49:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 12834080 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 BDA0FC433F5 for ; Mon, 2 May 2022 09:50:57 +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=zTLnrzE7AneWpV9MmyGzxvDOM4OPMGTaidfmWIecs1s=; b=FfHYyvPU4Shhec iW7ZrF7SL3X9c2yGQZhmctVMEfzrlV6OvWOkmKgqKLYTKrfHRzo+cZpxqd3QGtrFP/N8NoSGOTQul eAEZWsqN2hor0k2slWC5dITbEeO1RTF+F75FjE1XTtzjlo+7jk6rJt8/A+YpImdySauxSzr/Ji7aa kKvWFWIWQvumx97HtoKSM/TOFCHV8WxYAOSinOpdvP63dIE6wVs2Rvwn9rDgymRVHZ5YWoJAI1PR9 omXkXUHXhlPklv2Mh/jHg94HvNjz8KipirLXb3A7reZCmwJjPTn4eXiBrLISsCtBmNC2f2KjLhWA/ IPhJCYgVOn2qHxPj05Yw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlSgc-000gHn-Dg; Mon, 02 May 2022 09:49:46 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlSg9-000g3x-Fk for linux-arm-kernel@lists.infradead.org; Mon, 02 May 2022 09:49:19 +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=1651484957; x=1683020957; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hg61ERVzrL5sBOFYdRQ0uFMW1DGo0Jl96d3Qgjw0SdU=; b=fAjujaLVjk06GthVK4jGip5/RZaUXVAguvfSrTBFemygjx4nc3cj1/B1 vGH3hKPn2koZd5T4SXPf9x29C3cSO+8QjWbzAM1RwM3j1lzPygwrKiGSL PrBiXSYCXqj27WD2Tf6hR1qEq8RqXd3pGuFcjZFCvoj+F4dJkczW7hjpR aE5dCPfTcoGNs043/qMFls2NBEZVMQ0UkwEjHCbuiYwrY0muzR0BrcMka POa1jAJZAE+spubvRgu4jZNI3J/G9CXpbqdCgpKXP2eOOJ/dMO8EdeXdi 6xhwx6ukaNJKwAYzZMp8Mp1DXUwDZk0NM+6OZWq3C8LTaDzlTwTZqz1US g==; X-IronPort-AV: E=Sophos;i="5.91,190,1647298800"; d="scan'208";a="23608915" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 02 May 2022 11:49:07 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Mon, 02 May 2022 11:49:07 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Mon, 02 May 2022 11:49:07 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1651484947; x=1683020947; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hg61ERVzrL5sBOFYdRQ0uFMW1DGo0Jl96d3Qgjw0SdU=; b=JyxszQcHf9ywHpShM3+wKm3bKGT/kQ/kP4fqET4hAeDbOhr1OdgRdwsB YLAVgdwTFNNn5sGquE0DzQMiQLr/RhMeJ987/eaYt49qC0xoGO5OF0UcF 0oQ3buYLEczNoA8jnURMD9G7sr7625Yr4K388DMYeCI6LRIpYD7MO59I2 T/VHE1f1kp9DvWxsIXPzyIzTvL+IBZcfUzUdv/zciZKU5JgrpwNw4L7VT fCsBZ55wp2Ec7zmrAOLW7KKxSYJBajcVmK0arcWlVktT/u9j2HcbJ/pi1 itF/FLwUCBLXBJPF2rQKaWkEyn1+AZ/g+H2lLcFAtflQW0nCxOT6LVhlh Q==; X-IronPort-AV: E=Sophos;i="5.91,190,1647298800"; d="scan'208";a="23608914" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 02 May 2022 11:49:07 +0200 Received: from steina-w.tq-net.de (unknown [10.123.49.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 2B911280070; Mon, 2 May 2022 11:49:07 +0200 (CEST) From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Markus Niebel , Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Alexander Stein Subject: [PATCH 3/4] arm64: dt: imx8mn: support pwm polarity inversion Date: Mon, 2 May 2022 11:49:00 +0200 Message-Id: <20220502094901.251310-4-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220502094901.251310-1-alexander.stein@ew.tq-group.com> References: <20220502094901.251310-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-20220502_024917_909695_C24B3817 X-CRM114-Status: GOOD ( 12.77 ) 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 From: Markus Niebel The i.MX8M Nano has the same PWM IP as i.MX6 / i.MX7. This IP and the driver supporting pwm polarity inversion. Switch CPU device tree fragment to use 3 pwm-cells. Signed-off-by: Markus Niebel Signed-off-by: Alexander Stein --- arch/arm64/boot/dts/freescale/imx8mn.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index 8def5d679e7e..e41e1d56f980 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -705,7 +705,7 @@ pwm1: pwm@30660000 { clocks = <&clk IMX8MN_CLK_PWM1_ROOT>, <&clk IMX8MN_CLK_PWM1_ROOT>; clock-names = "ipg", "per"; - #pwm-cells = <2>; + #pwm-cells = <3>; status = "disabled"; }; @@ -716,7 +716,7 @@ pwm2: pwm@30670000 { clocks = <&clk IMX8MN_CLK_PWM2_ROOT>, <&clk IMX8MN_CLK_PWM2_ROOT>; clock-names = "ipg", "per"; - #pwm-cells = <2>; + #pwm-cells = <3>; status = "disabled"; }; @@ -727,7 +727,7 @@ pwm3: pwm@30680000 { clocks = <&clk IMX8MN_CLK_PWM3_ROOT>, <&clk IMX8MN_CLK_PWM3_ROOT>; clock-names = "ipg", "per"; - #pwm-cells = <2>; + #pwm-cells = <3>; status = "disabled"; }; @@ -738,7 +738,7 @@ pwm4: pwm@30690000 { clocks = <&clk IMX8MN_CLK_PWM4_ROOT>, <&clk IMX8MN_CLK_PWM4_ROOT>; clock-names = "ipg", "per"; - #pwm-cells = <2>; + #pwm-cells = <3>; status = "disabled"; };