From patchwork Wed Jan 18 07:26:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 13105756 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 01089C38159 for ; Wed, 18 Jan 2023 07:32:10 +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=FTE/ReGxdKdVtgtSPf8X9wTRfQB6tDA1l7DsQjsdfMs=; b=ksb9KuwFEIG2rw KX3vP+5Y1NxXOUzD9Y/hIMBQoZ9wFg9hf8S32tR8/i+arTEmlXsDYaVuvObHuFmlpcRWZ52RY1Xlv cAnnncT4D2zI/kFPWLzhuaTucK8ZaG84rmVvSwpJoOw+BcesrRpiyWfyoBJnYD3tAr/Wd2VcmWoGE 1IhVoJXs9wmyJ+kVrG/3XxILz2SFniWw9lLzZJDWTSJFdQNhECwgjmpGRKArjZQImZeIFGeuylEmb AwzwxrRDX9fH5ZiIA9UmNl3L+v1K8aK2XIt0HPz2u+KM2prOflVZRiae2LOYRQlbPVYzVtX9XhLyt 59BA2vgww+NXsAUu8Cxg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2uX-00HDjp-Ha; Wed, 18 Jan 2023 07:31:05 +0000 Received: from mout.perfora.net ([74.208.4.196]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2rn-00HCNC-Q3 for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2023 07:28:20 +0000 Received: from toolbox.int.toradex.com ([213.55.225.137]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MStu7-1p7y8h4BYT-00Rrds; Wed, 18 Jan 2023 08:28:07 +0100 From: Marcel Ziswiler To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, Marcel Ziswiler , Fabio Estevam , Krzysztof Kozlowski , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo Subject: [PATCH v4 13/17] arm64: dts: freescale: apalis-imx8: add bkl1_pwm functionality Date: Wed, 18 Jan 2023 08:26:51 +0100 Message-Id: <20230118072656.18845-14-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230118072656.18845-1-marcel@ziswiler.com> References: <20230118072656.18845-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:XPfPxjgcJ4c9YMwmnfVzwRE9rjbrVlToLd7OpFT8+yt+S2ZAZ++ XsWm04PSs/8GWEO1DuLWSJUcNDlnfpcKOlhCfqtLxndRyQuKhr6Y9hBJ6AJ9eFfg08BOtEx zSkL9VYv7exGPlsyRGAeZ7lbbw4QFUQZKwwUsiCsy3e3tgUz+RD0MNtzQWRLLWPnydkPzjZ YBUbKingi91r6uE0nqAFg== UI-OutboundReport: notjunk:1;M01:P0:KxClaBHLYUg=;tkUyzOBxosW9CbSOLe4xIU31wks M8etEV2BZwqGX5VR8mSBY9l2QzlRm4Pm9qvB9dH46f6uUX64+sWb2mw72cSaNCvkrOCzGfDSJ ZQcgmVjrE/NaIG673sqSexkYriviYLNWHFSrJ1x22JaeaNpTGJ5g/NUcl0XueV2fy7qkB8RPx tfoZFZw8YkpxYUc9Szkq/PouvkypbubAgD2C2Tc0mZ+8zH7TRMlJvH7nalfLICooutmVKkPDf Sz5h8SpEYJ5Ql36///qD2D5jJ8pL5yy6PioFhu301mDMWtp2qOvy9lHe/Uj6zIZFfhZw7y6cQ k1/1u2Rzmc0L+l2qRDMo8jtwl1IUE2fp5d2b4vwt4/FGfFmai7EUnB+h7YWL4ikJXBANmIi87 Va152OEPKa7YdeFpiE9oT5r7XU7xtsIS5rmhaitWUwO3xlgGWk80lzGZlHnsc2OsgUim/AXTv j1Q3giAQiuPppNaaP2SfWQTlckXLJ8WQcXGTLmJoGNZGx6Wxp4ZKTwLuk4iG7ATXmrQvSHIHG b/b5A6KxQ1DhYHZsBMHNaRs7+mXixO/6xD7aVScprZiy+8Eb6f3y/3BEYs8Ugx/+/VDu2VyZD u9phrIsGYvsi52EQDrMioLGa4yrkly7AS4l4DNh7nqHf4pp9QJY56EUszibqNLZ39kpjogAK/ +3GnLgtsb9wo1o2iFXs9NCNtQjbjhWV/qBk8dtUEQA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230117_232816_018913_69296B5F X-CRM114-Status: UNSURE ( 8.97 ) X-CRM114-Notice: Please train this message. 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: Marcel Ziswiler Add Apalis BKL1_PWM functionality. Signed-off-by: Marcel Ziswiler --- Changes in v4: - New patch adding Apalis BKL1_PWM functionality. arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi | 7 ++++++- .../arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi | 7 ++++++- .../arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi | 7 ++++++- arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi | 9 +++++++-- 4 files changed, 25 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi b/arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi index 060454f25c98..003bc5377ce7 100644 --- a/arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi @@ -106,7 +106,12 @@ &lsio_pwm3 { /* TODO: Apalis PCIE1 */ -/* TODO: Apalis BKL1_PWM */ +/* Apalis BKL1_PWM */ +&pwm_lvds1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm_bkl>; + status = "okay"; +}; /* TODO: Apalis DAP1 */ diff --git a/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi b/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi index caaafc9900a6..97a7db1f875b 100644 --- a/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi @@ -182,7 +182,12 @@ &lsio_pwm3 { /* TODO: Apalis PCIE1 */ -/* TODO: Apalis BKL1_PWM */ +/* Apalis BKL1_PWM */ +&pwm_lvds1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm_bkl>; + status = "okay"; +}; /* TODO: Apalis DAP1 */ diff --git a/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi b/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi index 5bc55a58db97..4186c6c9d5ec 100644 --- a/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi @@ -227,7 +227,12 @@ &lsio_pwm3 { /* TODO: Apalis PCIE1 */ -/* TODO: Apalis BKL1_PWM */ +/* Apalis BKL1_PWM */ +&pwm_lvds1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm_bkl>; + status = "okay"; +}; /* TODO: Apalis DAP1 */ diff --git a/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi b/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi index 4c88678e2bc7..5508f0daf579 100644 --- a/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi @@ -18,7 +18,7 @@ backlight: backlight { enable-gpios = <&lsio_gpio1 4 GPIO_ACTIVE_HIGH>; /* Apalis BKL1_ON */ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio_bkl_on>; - /* TODO: hook-up to Apalis BKL1_PWM */ + pwms = <&pwm_lvds1 0 6666667 PWM_POLARITY_INVERTED>; status = "disabled"; }; @@ -678,7 +678,12 @@ &lsio_pwm3 { /* TODO: On-module Wi-Fi */ -/* TODO: Apalis BKL1_PWM */ +/* Apalis BKL1_PWM */ +&pwm_lvds1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm_bkl>; + #pwm-cells = <3>; +}; /* TODO: Apalis DAP1 */