From patchwork Mon May 2 09:49:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 12834081 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 97CE1C433F5 for ; Mon, 2 May 2022 09:51:03 +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=9Y/ffbakCGmPYrR2k17VAg3p2Gfpbe36R435d9YQ+Rk=; b=YJU/lRNV+3ovAF PCuhTgarJn6Yaya0rvdygtT94vrtFhjwp5TzsRp+k1ktaMVAyyYORJAU8mJawm8UIvDgUrhPhQMO6 dgxTZUelt6jT39LxG/f5NwxlgeOGS/Y7ro9Huc69cLazTzRCtglOxAlTPsQTTR5D1gyOPo1mfcNyS /gsEVpIYPeuuMsRk4FFH1shwLd2MWOmhEbEur94eZ8viXecQdJ31H4yDqHgGWfYtfHYAvAjT46VC6 jv8w0iYrrCQQaGxn0RED3eedoO666Q29mYkj7luUgTgRyFNJbSNl0Q4LC7RJQ7FWAyck/8RmpZeXu 8R2Y3GlQlVNNSMcjBy8Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlSgn-000gMm-Hb; Mon, 02 May 2022 09:49:57 +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 1nlSgA-000g7x-KW for linux-arm-kernel@lists.infradead.org; Mon, 02 May 2022 09:49:20 +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=1651484958; x=1683020958; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ci02NB4QGci9pTeqTiLS0Ke/DzJkZ60fO1FMVNrrSdU=; b=PTaA09BRlOXVxbIgjtE3n2WInM6/pxJJy75GfwruGU7wLFkMEkCDQt+Q JlzTvsnbJ7iWh8RRdOTaubJdQr9BvIUulRQbbn8ybN7vEQWxaFw2g+Xen M7BiadNCc5WXpoGMo7BbnJAFB/iTeygoza6Qjr0xFa1E3cjJZS+Kk6TjH uP9u/pcBFranXFiVXKMsqvN1PrbTxe8V/Ab8VASZAjezVOBKuAPxMCD6h 6XTZK2PrXW1yqpFBe/Q0xotLl2rP2d4ow48ZIzIpmLgENjdqaybtwcBPC Qu6Fh6dPLsBe6UBtI4gpCJbfd3vmrtNb7Nw0JVqGGUOf51cAfDAT/uFfe Q==; X-IronPort-AV: E=Sophos;i="5.91,190,1647298800"; d="scan'208";a="23608917" 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=ci02NB4QGci9pTeqTiLS0Ke/DzJkZ60fO1FMVNrrSdU=; b=Ns6FB/gL5wXWiMMAB+Dc0nw82reyemAUdjK4lfKN16g642ETONF1EvXB /hO2CKx/tg+zPPSffA7pD1q1XKa5Z5LCWn+Euz9Fo2FbVDD+LRYsez3K+ 87GvnC5lpyGbUReGpOOT45C+cCc0NoRkoz6iD92hiHuOPmDPvGqRhVD5w HBsF6Lx7wSNkhUShMZsq5GP9NHl1X95pcgb9CKR22if408SriNpeUmOwC gLC1bhQq/9KOyDYVnVNtVZF83iW5HKPWT4jMZINvEEXSTjfXVTUv4J3D8 4/7CCsO9p+iqVZKEGsoKbzQym4bAmB+DMjMRXwlzoxF4xtQDhGhoIAFfF w==; X-IronPort-AV: E=Sophos;i="5.91,190,1647298800"; d="scan'208";a="23608916" 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 64B7F28007C; 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 4/4] arm64: dt: imx8mp: support pwm polarity inversion Date: Mon, 2 May 2022 11:49:01 +0200 Message-Id: <20220502094901.251310-5-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_024919_047594_D7A0D0EB 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 Plus 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. Tested on MBa8MPxL mainboard. Signed-off-by: Markus Niebel Signed-off-by: Alexander Stein --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index 7ad824e6b820..89ef26399bfa 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -567,7 +567,7 @@ pwm1: pwm@30660000 { clocks = <&clk IMX8MP_CLK_PWM1_ROOT>, <&clk IMX8MP_CLK_PWM1_ROOT>; clock-names = "ipg", "per"; - #pwm-cells = <2>; + #pwm-cells = <3>; status = "disabled"; }; @@ -578,7 +578,7 @@ pwm2: pwm@30670000 { clocks = <&clk IMX8MP_CLK_PWM2_ROOT>, <&clk IMX8MP_CLK_PWM2_ROOT>; clock-names = "ipg", "per"; - #pwm-cells = <2>; + #pwm-cells = <3>; status = "disabled"; }; @@ -589,7 +589,7 @@ pwm3: pwm@30680000 { clocks = <&clk IMX8MP_CLK_PWM3_ROOT>, <&clk IMX8MP_CLK_PWM3_ROOT>; clock-names = "ipg", "per"; - #pwm-cells = <2>; + #pwm-cells = <3>; status = "disabled"; }; @@ -600,7 +600,7 @@ pwm4: pwm@30690000 { clocks = <&clk IMX8MP_CLK_PWM4_ROOT>, <&clk IMX8MP_CLK_PWM4_ROOT>; clock-names = "ipg", "per"; - #pwm-cells = <2>; + #pwm-cells = <3>; status = "disabled"; };