From patchwork Mon Dec 26 06:28:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 13081639 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 90751C4332F for ; Mon, 26 Dec 2022 06:30:21 +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=LKEoV3rwrcvstwvamOi7IzJQI4RgJUXt8BkSRcVspWE=; b=bZ9Wa5XHSPwYVU QKMGwz9BKQZjtCHgaTVpmMkAMUdQe+4Y1fcQ6bxIanVVe7YNsti0KJI0OfKJULEEnCEWu9MCaxyxa /OD5ulMoXASEC3HGh4rk02uMIp6wIhCtJD69whvbKx7/QaArFkQUU97cmt0wfzQYbHwNRDHrniQEd rqOSaaM7dTxVaJ0fcpuebhmjmPSmRJuzBndvzhoBb3J89tQJi0cHHB/l5grNn4o/e4Z1taVT46DSk YSRWCo4fgAIH+LuPSDkFFU1qBkXoZiYu/K+lh4R5qky/40RQK6bdbAwgONoYFQwTqo43PLD2qcl9q IwbZNhcmUNjemDHDw/Mw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p9gym-002Eyl-P0; Mon, 26 Dec 2022 06:28:56 +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 1p9gyk-002Eww-FH for linux-arm-kernel@lists.infradead.org; Mon, 26 Dec 2022 06:28:56 +0000 Received: from toolbox.int.toradex.com ([213.55.224.88]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0LuOAL-1okpm2377n-011inR; Mon, 26 Dec 2022 07:28:42 +0100 From: Marcel Ziswiler To: linux-arm-kernel@lists.infradead.org Cc: Philippe Schenker , Max Krummenacher , Marcel Ziswiler , Fabio Estevam , Frank Li , Krzysztof Kozlowski , NXP Linux Team , Peng Fan , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/5] arm64: dts: freescale: imx8-ss-lsio: add support for lsio_pwm0-3 Date: Mon, 26 Dec 2022 07:28:19 +0100 Message-Id: <20221226062824.53113-2-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221226062824.53113-1-marcel@ziswiler.com> References: <20221226062824.53113-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:P91+qYFwfHs5E9F5IPNupBa1DowRFZ+tdLaKynRFGJQl0CSwQA5 HeRgLojoMwvQ0uQ6CosN4D1WpFVPVj33/KK7otjZvZY4UrrcFTcnsRrEfu3J1hVgikHPvK9 CjRtIKr2pKESQQw6qqRbF/SdKO/slAzszlHlikO+gSr6gFdF/wEYAxjdzAyi7zbHImJvTJ5 z0yLoWQZAa36gYCGZDWRw== UI-OutboundReport: notjunk:1;M01:P0:rd0Du2NqQck=;QrGmQwqhBGd9tb4oDE7YS42tE8R fOaqyBSm207HQtB1r1Y1VRlEWkXJ3EBiHfaAc2MLv2nkH+CHW+NlUe4KpqRB7GTtYOVD1A8Mt v3SFZREX9jqaYHspPZrZftv1doDpoFF2j2LM76JQixrHDNjcmoXmTR8cpNAAg5WCYtJ580SJm YxsD6xRcXlguq6ip23w8A/8ppQE6ugO0qkHUErSdBDZV7qmjGv/M5OdD964jKsLoSDut0r5Um z5ll9vaaG9yGkjKSTmuYcgQ8F6FZDJe2h8p/ELijI6nV1hEPDfoLKYyNXiCtdObdyv8hye/vo HNH77wpM0EAcpzNFnlpIdYIPlHVj93fuvID/KhSS7M9aO6w6SshpRnrN23wFrkwmVf48tzcjt Id90KyzuM0WD1c2oiKOfnSVxlehLZH61yFPIXgXGZYA2Q2F+qU5Y7eL/V0tnsvXrnXA3QPpTz WNAdCirckp5MFuCgWPzK+63uZRoUxiQW2SWBbrw0vVhmVNRM5/snvCNRyqb8r3V0ouTEMz9Zs CGsqXd2kM6mcJDv/nubvpbf19FvFHcl/CMLQr/ifklcADTz5h8GHlsmpYuqQScfr7MqesP7ml vAK/7GBCnUyabtrVcsnKpHHV/UhFIwojkoNegsSA7XWBq3IxPPzrdGvbqOuN4zoo6fBuPZwkM F79vKZ8Mq1AKXaP5lrg90revlAxKShcjuJeF8b8y4g== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221225_222854_623707_6BB65A53 X-CRM114-Status: UNSURE ( 7.52 ) 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: Philippe Schenker Add support for lsio_pwm0-3. Signed-off-by: Philippe Schenker Signed-off-by: Max Krummenacher Signed-off-by: Marcel Ziswiler --- .../boot/dts/freescale/imx8-ss-lsio.dtsi | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi index 1f3d225e64ec..62b7f7a3e1bc 100644 --- a/arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi @@ -28,6 +28,54 @@ lsio_bus_clk: clock-lsio-bus { clock-output-names = "lsio_bus_clk"; }; + lsio_pwm0: pwm@5d000000 { + compatible = "fsl,imx27-pwm"; + reg = <0x5d000000 0x10000>; + clock-names = "ipg", "per"; + clocks = <&pwm0_lpcg 4>, + <&pwm0_lpcg 1>; + assigned-clocks = <&clk IMX_SC_R_PWM_0 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <24000000>; + #pwm-cells = <2>; + status = "disabled"; + }; + + lsio_pwm1: pwm@5d010000 { + compatible = "fsl,imx27-pwm"; + reg = <0x5d010000 0x10000>; + clock-names = "ipg", "per"; + clocks = <&pwm1_lpcg 4>, + <&pwm1_lpcg 1>; + assigned-clocks = <&clk IMX_SC_R_PWM_1 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <24000000>; + #pwm-cells = <2>; + status = "disabled"; + }; + + lsio_pwm2: pwm@5d020000 { + compatible = "fsl,imx27-pwm"; + reg = <0x5d020000 0x10000>; + clock-names = "ipg", "per"; + clocks = <&pwm2_lpcg 4>, + <&pwm2_lpcg 1>; + assigned-clocks = <&clk IMX_SC_R_PWM_2 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <24000000>; + #pwm-cells = <2>; + status = "disabled"; + }; + + lsio_pwm3: pwm@5d030000 { + compatible = "fsl,imx27-pwm"; + reg = <0x5d030000 0x10000>; + clock-names = "ipg", "per"; + clocks = <&pwm3_lpcg 4>, + <&pwm3_lpcg 1>; + assigned-clocks = <&clk IMX_SC_R_PWM_3 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <24000000>; + #pwm-cells = <2>; + status = "disabled"; + }; + lsio_gpio0: gpio@5d080000 { reg = <0x5d080000 0x10000>; interrupts = ;