From patchwork Mon Apr 24 08:21:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13221837 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 64689C77B61 for ; Mon, 24 Apr 2023 08:22: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: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:In-Reply-To:References: List-Owner; bh=0BjuUkylSR8w1vkxOvvW5QdpvrjOwQkf5GY3b7sWeDA=; b=2cFUGWOA8Mdjqu GKxSHjUH4g7wiwIID7nfb0Ritk2yB3Z3cQF6tUr87LHfJwHrV7aQDEBBciB334dFoo2XPOqcr26VD RnH1LA/15YsIzSRCi9omMK4jy9OjsWYBLNbo/Lk9ZX9IOOkTMvfuQLS6kE4gsv1ZhEdnIiaVvB77R pLhK/g73ak9mgW81r41MDYTAlboDtgNp6jjvNZSfu26poibfH5zGGq4Za2VKdXZ3Crt9Bh5NgtSc0 op3hXRJZP6DnoReHURG+AcBJegV4Um85hpde4eos7QRUg7iWxYvQhZ9dftMQ97W5TMIQnWALut9O1 rk1rED9MEUdnzPm2CCFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pqrRp-00Fg0C-2W; Mon, 24 Apr 2023 08:21:21 +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 1pqrRk-00Ffxq-2k for linux-arm-kernel@lists.infradead.org; Mon, 24 Apr 2023 08:21: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=1682324476; x=1713860476; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=nj8t15/BuaSEIZBoe6wzlupOsHZekY7oQAB+lRrkXCY=; b=KzA4i5jCcCOKPacUuD8FDZK5gwsDO11IOHwqUgmeoFch0oARthG841/i Gi6NxGGRx829o1+VeTxd6KHwsJ8Zl77QqFGgw/Qw6LqJn7ZWcnOtF1WT9 iuJ0Ad8PB/7DCvQsHwvH2s5hBTlfm3YGf4sgekLWKFTD5oYiPWJz+EoHk DR/Y+969KgfhDUZ3Nke894sS9MN/PboNjx8EM8ogisnufEJ8zxhlPY889 zp1cTMeHB0HURG0MHrAlseRwMrpnSzJmky9Uq1tOb4EIF+Vs6T5tXmbl0 bAPkU8yZdoSkqS6fdvSAcDx8IQPagCXwDg+u9WRm2frLuAI5DkRg11KBk g==; X-IronPort-AV: E=Sophos;i="5.99,222,1677538800"; d="scan'208";a="30508608" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 24 Apr 2023 10:21:14 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Mon, 24 Apr 2023 10:21:14 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Mon, 24 Apr 2023 10:21:14 +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=1682324474; x=1713860474; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=nj8t15/BuaSEIZBoe6wzlupOsHZekY7oQAB+lRrkXCY=; b=fNbjXZt0yJE8W3+4OfEsIe6V6ZdAfRkrHVI/w/OLdg+MFW8/BzOOmdoH C6VKmOnjuHjsi+aA85ojwK0wS6wTvIwMO7mozy+DnCf5JmOMYJSu7xoiG dTbw5sBrqLlfaAvCe2ndzriNdpgzm9StAIAu5LD4aLtNousqJZIHzBD87 lD3CEsRnUS3DPJ9hx6sZyzcAIgNjHnvv1lFCq5WORnbY5vYROZbqaEPwb GeEjbokrc1oj26v6FHcoSDSqn3A++87Q0BY8aRw3Jodu8rKpQgC3SdFDR 043jTBwWh74YyAIAdrVhxwFn/bW9WjbUFOOqABTF05KQBTEeTVA8ITGqp w==; X-IronPort-AV: E=Sophos;i="5.99,222,1677538800"; d="scan'208";a="30508604" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 24 Apr 2023 10:21:14 +0200 Received: from steina-w.tq-net.de (unknown [10.123.53.21]) (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 386EF280056; Mon, 24 Apr 2023 10:21:14 +0200 (CEST) From: Alexander Stein To: Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6n?= =?utf-8?q?ig?= , Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Fabio Estevam , Philipp Zabel 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/2] dt-bindings: pwm: imx: add i.MX8QXP compatible Date: Mon, 24 Apr 2023 10:21:07 +0200 Message-Id: <20230424082108.26512-1-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230424_012117_513600_D55AF90B X-CRM114-Status: GOOD ( 10.96 ) 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 compatible is missing in the list, add it. Signed-off-by: Alexander Stein Acked-by: Krzysztof Kozlowski Acked-by: Uwe Kleine-König --- Changes in v2: * Add power-domains property Documentation/devicetree/bindings/pwm/imx-pwm.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/pwm/imx-pwm.yaml b/Documentation/devicetree/bindings/pwm/imx-pwm.yaml index b3da4e629341..c01dff3b7f84 100644 --- a/Documentation/devicetree/bindings/pwm/imx-pwm.yaml +++ b/Documentation/devicetree/bindings/pwm/imx-pwm.yaml @@ -43,6 +43,7 @@ properties: - fsl,imx8mn-pwm - fsl,imx8mp-pwm - fsl,imx8mq-pwm + - fsl,imx8qxp-pwm - const: fsl,imx27-pwm reg: @@ -61,6 +62,9 @@ properties: interrupts: maxItems: 1 + power-domains: + maxItems: 1 + required: - compatible - reg From patchwork Mon Apr 24 08:21:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13221838 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 3287CC7618E for ; Mon, 24 Apr 2023 08:22:14 +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=9WgwzvQ5ejDTzWim/HLFg3HkWkBbLYwCMnnmP2w3Tek=; b=ArnM1kkVNAjeoE BY0yrsRH6Nr03REwnWeVcWOOrrmP74QNsoCnbf1j/Vo8tHEdDmKa32wFcSS95cBc53QXRlXrQtQpm Xkx29vHjn3Gtw9azp6gbO6nVJLo3pRsHs9WxLb4ySVjCheBl/5qCziOS2rx236AOrEgceKVbIHL/p bcbmY4UpiZHzboxE5xCGgkMVaG4hdExi93pgGrqtMZXcvF3uW1P8LRQ+PliILR65Q/1XfVpa9pm7I FPBmih/Aj0e+51xN0w8i5M19Q5pNO0LMjMNCX7NpaWzXkrgbceaH1NE9P/nbgMrkjnNFk3Ey+epko XSK9GArQHE0M7RXwzAPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pqrRw-00Fg2K-1t; Mon, 24 Apr 2023 08:21:28 +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 1pqrRn-00Ffxq-2t for linux-arm-kernel@lists.infradead.org; Mon, 24 Apr 2023 08:21:21 +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=1682324479; x=1713860479; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JAX1fjmfBWI5Iew7C17ekaAOJQ1f2iQJMkxaSn3l/sg=; b=JchfWP3XCT/iKMBDDRTonzVRhd5UkrEeYoT9WPQXKN0Qb0A5ZpUAnD7N vzP3Xzc28xqommVm8zW1I6y2YBRGF99LjaUHbQZRc1W2pWkfHFfN8tw+r 9szF1EHt6eWtisnHOC0f6qaltOe1GIRPvPCp0uk7Vih6i4eHlw3Mr4uUy HTn0IHAvvRHQmUap4SWTR/hWY/yqiufb0hFxNRSl8zXSUnLXBLLMS9VwN 1IODVwa1xnXNC+UorQ/7GOv8K7f41DL7tQ6NXIRgUMRVgMygNVyMsWU9v q187uMX5K9ir7l+3WfiDEJPabEN501UugG+Jtu7etSoraVDsbZPlju4I8 A==; X-IronPort-AV: E=Sophos;i="5.99,222,1677538800"; d="scan'208";a="30508609" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 24 Apr 2023 10:21:14 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Mon, 24 Apr 2023 10:21:15 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Mon, 24 Apr 2023 10:21:15 +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=1682324475; x=1713860475; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JAX1fjmfBWI5Iew7C17ekaAOJQ1f2iQJMkxaSn3l/sg=; b=YrhEMgMJAW1I+JkWNqsmUBg5HvW2rtLG/QPsgUI6MsX7udGQeCIX7hOc JMhnIa4PAvNfUkYoDIeU7jHJC6hzGSt4ZuuOKtnJHWoddBhMGgRpItD2S j+dEHJ/JSXrsXtHan/IP9lJINgCofGeT4+gENbMClez4YBrpIGjz8jZYd qS/XlariHQeHINSJbKxgZaQtQX23taB4gUyP4B3dmAsbklSMCpUuPTmkr LrLksp57HyOo2yfcj92Uxke3E+lWKx8o+oPxNlHwthh5vvxG4uHrdNZ4Z aMB7z+Iijw0vebgsyK3yJj4K86xNPgSgsvPZ8hYeZURD5usqqTZ7GTboK g==; X-IronPort-AV: E=Sophos;i="5.99,222,1677538800"; d="scan'208";a="30508607" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 24 Apr 2023 10:21:14 +0200 Received: from steina-w.tq-net.de (unknown [10.123.53.21]) (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 78F35280072; Mon, 24 Apr 2023 10:21:14 +0200 (CEST) From: Alexander Stein To: Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6n?= =?utf-8?q?ig?= , Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Fabio Estevam , Philipp Zabel 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/2] arm64: dts: imx8qxp: add adma_pwm in adma Date: Mon, 24 Apr 2023 10:21:08 +0200 Message-Id: <20230424082108.26512-2-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230424082108.26512-1-alexander.stein@ew.tq-group.com> References: <20230424082108.26512-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-20230424_012120_260108_692225A8 X-CRM114-Status: GOOD ( 11.59 ) 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 Add PWM device and the corresponding clock gating device in adma subsystem. Signed-off-by: Alexander Stein --- * New in v2 .../arm64/boot/dts/freescale/imx8-ss-dma.dtsi | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi index 2dce8f2ee3ea..7d5f96c99020 100644 --- a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi @@ -124,6 +124,19 @@ lpuart3: serial@5a090000 { status = "disabled"; }; + adma_pwm: pwm@5a190000 { + compatible = "fsl,imx8qxp-pwm", "fsl,imx27-pwm"; + reg = <0x5a190000 0x1000>; + interrupts = ; + clocks = <&adma_pwm_lpcg 1>, + <&adma_pwm_lpcg 0>; + 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>; + power-domains = <&pd IMX_SC_R_LCD_0_PWM_0>; + }; + spi0_lpcg: clock-controller@5a400000 { compatible = "fsl,imx8qxp-lpcg"; reg = <0x5a400000 0x10000>; @@ -220,6 +233,18 @@ uart3_lpcg: clock-controller@5a490000 { power-domains = <&pd IMX_SC_R_UART_3>; }; + adma_pwm_lpcg: clock-controller@5a590000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5a590000 0x10000>; + #clock-cells = <1>; + clocks = <&clk IMX_SC_R_LCD_0_PWM_0 IMX_SC_PM_CLK_PER>, + <&dma_ipg_clk>; + clock-indices = , ; + clock-output-names = "adma_pwm_lpcg_clk", + "adma_pwm_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_LCD_0_PWM_0>; + }; + i2c0: i2c@5a800000 { reg = <0x5a800000 0x4000>; interrupts = ;