From patchwork Sun Feb 19 14:22:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 655216 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1A4CC64ED6 for ; Sun, 19 Feb 2023 14:23:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229973AbjBSOXT (ORCPT ); Sun, 19 Feb 2023 09:23:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229729AbjBSOXS (ORCPT ); Sun, 19 Feb 2023 09:23:18 -0500 Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00090F773; Sun, 19 Feb 2023 06:23:16 -0800 (PST) Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 09DED830E9; Sun, 19 Feb 2023 15:23:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1676816593; bh=YwYuJ4THKrUqwaPaod5OY9KB6nlV+P65S9SXqydHM2I=; h=From:To:Cc:Subject:Date:From; b=QSkdYOWGMWwyCR1RiN85cJs9tCPNhqeanVHlsAPaYQ99w8crYwuBdEpZxBPtSNnYb ZCcX0L1XAiDXmNNhKekDgGAGYZwrm2wFdv6xRmbrUBE6R5d86aNV5jfqjOaHYV9lQo 04Ke/d3mI+6uBmc9gLh+E/4qbbeDX9KdwNb1Kd/5THePtGZBi6l+d2tFMlxbq7/5lS mP2QYcTL0hst5ayJxcrS91UonOhsnr6/PSm8A6tkGTuy+/qDRXwoGQATwUJq7zc9vZ 4cIuPqWm4XIu58xyQd5ADXY5dhTENIP/noAxjvGcMCHfZXZmnR4z9o6UYsppXep8xf /QSqLJjgaSoNw== From: Marek Vasut To: devicetree@vger.kernel.org Cc: Marek Vasut , Krzysztof Kozlowski , Fabio Estevam , Greg Kroah-Hartman , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: serial: imx: Document optional DMA properties Date: Sun, 19 Feb 2023 15:22:49 +0100 Message-Id: <20230219142250.10176-1-marex@denx.de> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The UART IP can be connected to DMA engine, document the properties in DT bindings. Update example to match Linux arch/arm/boot/dts/imx51.dtsi . Acked-by: Krzysztof Kozlowski Signed-off-by: Marek Vasut --- Cc: Fabio Estevam Cc: Greg Kroah-Hartman Cc: Krzysztof Kozlowski Cc: NXP Linux Team Cc: Pengutronix Kernel Team Cc: Rob Herring Cc: Sascha Hauer Cc: Shawn Guo Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-serial@vger.kernel.org --- V2: Add AB from Krzysztof --- .../devicetree/bindings/serial/fsl-imx-uart.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/fsl-imx-uart.yaml b/Documentation/devicetree/bindings/serial/fsl-imx-uart.yaml index 4cbe76e1715b7..c22aab8c55f83 100644 --- a/Documentation/devicetree/bindings/serial/fsl-imx-uart.yaml +++ b/Documentation/devicetree/bindings/serial/fsl-imx-uart.yaml @@ -49,6 +49,16 @@ properties: reg: maxItems: 1 + dmas: + items: + - description: DMA controller phandle and request line for RX + - description: DMA controller phandle and request line for TX + + dma-names: + items: + - const: rx + - const: tx + interrupts: maxItems: 1 @@ -100,6 +110,8 @@ examples: compatible = "fsl,imx51-uart", "fsl,imx21-uart"; reg = <0x73fbc000 0x4000>; interrupts = <31>; + dmas = <&sdma 18 4 1>, <&sdma 19 4 2>; + dma-names = "rx", "tx"; uart-has-rtscts; fsl,dte-mode; }; From patchwork Sun Feb 19 14:22:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 654940 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2897BC05027 for ; Sun, 19 Feb 2023 14:23:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229963AbjBSOXT (ORCPT ); Sun, 19 Feb 2023 09:23:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229613AbjBSOXS (ORCPT ); Sun, 19 Feb 2023 09:23:18 -0500 Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DA9CF778; Sun, 19 Feb 2023 06:23:17 -0800 (PST) Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id CB20285131; Sun, 19 Feb 2023 15:23:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1676816594; bh=xqUsQHaWM0qX+ei7lkSB1cjJ4zw6XOWlTC6EWJiXAQQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RpVs0b2D4a+/yys3PxAyHDlualGzidPIjpSbJGVVf7V8ejlGibz3F9OhK+cpXJGNv CRMXLhwyhS34iMi9TPJGtzHXcbqmRElccHnZpVaA6hmtVkLfKNSTKCj++rfQvrc4tz giAdsJ0c3dzrlYevrgg2sCZqLy7Wkady7yWqfbSjDB3P1Wm78bAg6H8pgCNEiMpCiI SmtP1nNX4HDL5Y8IJzyBOiu/j4fQUNDMeMjDow7AG9QlDcPmPF52MIMzYrs4CLV0TF EnYZnV/QaP5kS6C5c2CTdIP9X9yEosTWRSB/D7vwt9MejnyBFtxH7s/y0WE0b/LFhg qcJU0Zj/jVWZA== From: Marek Vasut To: devicetree@vger.kernel.org Cc: Marek Vasut , Fabio Estevam , Greg Kroah-Hartman , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org Subject: [PATCH v2 2/2] dt-bindings: serial: imx: Document mandatory clock properties Date: Sun, 19 Feb 2023 15:22:50 +0100 Message-Id: <20230219142250.10176-2-marex@denx.de> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230219142250.10176-1-marex@denx.de> References: <20230219142250.10176-1-marex@denx.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The UART IP must be connected to clock, document the properties in DT bindings. Update example to match Linux arch/arm/boot/dts/imx51.dtsi . Signed-off-by: Marek Vasut Acked-by: Krzysztof Kozlowski --- Cc: Fabio Estevam Cc: Greg Kroah-Hartman Cc: Krzysztof Kozlowski Cc: NXP Linux Team Cc: Pengutronix Kernel Team Cc: Rob Herring Cc: Sascha Hauer Cc: Shawn Guo Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-serial@vger.kernel.org --- V2: Drop the assigned-clock-* --- .../devicetree/bindings/serial/fsl-imx-uart.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/fsl-imx-uart.yaml b/Documentation/devicetree/bindings/serial/fsl-imx-uart.yaml index c22aab8c55f83..40414247d61a3 100644 --- a/Documentation/devicetree/bindings/serial/fsl-imx-uart.yaml +++ b/Documentation/devicetree/bindings/serial/fsl-imx-uart.yaml @@ -49,6 +49,14 @@ properties: reg: maxItems: 1 + clocks: + maxItems: 2 + + clock-names: + items: + - const: ipg + - const: per + dmas: items: - description: DMA controller phandle and request line for RX @@ -96,12 +104,16 @@ properties: required: - compatible - reg + - clocks + - clock-names - interrupts unevaluatedProperties: false examples: - | + #include + aliases { serial0 = &uart1; }; @@ -110,6 +122,9 @@ examples: compatible = "fsl,imx51-uart", "fsl,imx21-uart"; reg = <0x73fbc000 0x4000>; interrupts = <31>; + clocks = <&clks IMX5_CLK_UART1_IPG_GATE>, + <&clks IMX5_CLK_UART1_PER_GATE>; + clock-names = "ipg", "per"; dmas = <&sdma 18 4 1>, <&sdma 19 4 2>; dma-names = "rx", "tx"; uart-has-rtscts;