From patchwork Sat Feb 18 22:39:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 13145747 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 BD644C636CC for ; Sat, 18 Feb 2023 22:41:25 +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=csRO/p6Vtz0SyVkJbYVU9ey6d55mrJpGhMKF94L2nJc=; b=MTrAaHau4Kv5n2 ksi2OfirUMVYaSPsHh7xic2JIqfhxZVfpKaMwPI6i3dhaQlcvrmQYPuCRJwJKpklYC5GCL/1weHx+ wyJAnPLBIpBO61BRVhYmjWBmyYaTt/HVrCYIcXfdGrDDbrEFuAD/j4+luy+S9Kfs+CinOWPWGdJpn lhmdF2xmE7FbO/CnxpgTUXruDpbtsrCDzkZyVQGzEOZkyjo/56DQpwr5yRMmp78WvqvCxiMgmL17m r6BoEF14WIZnW0BBNTx01/+5estGYnIeDv5G0+IUplCdRzXUPJD8URyFLMW4sZhoLauO4fxPNZ16P EpOTrPC/iJ8upuTi9P5Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pTVsa-000IWf-U7; Sat, 18 Feb 2023 22:40:29 +0000 Received: from phobos.denx.de ([85.214.62.61]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pTVsQ-000IUF-Dn for linux-arm-kernel@lists.infradead.org; Sat, 18 Feb 2023 22:40:20 +0000 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 E3A0685754; Sat, 18 Feb 2023 23:40:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1676760012; bh=w44yS3t8CrsWkl32S0qz3S+DPitSF+ixPZhyPD5jjGc=; h=From:To:Cc:Subject:Date:From; b=E9Ytg+TMWnlN8cJYWgxx2zh4VxdglTn67PPIngVIkTJ1xt2C0fHjz+EfCMaGl9hNk Np2bJxCdHiQd7GsKfQ3f+g57CkQZ20LKig4v+NZyB3s5Wd2n2SEuRX3Ac6iTqmWT5H +4vmeU1Q7WbCbpPCypNt5aAMJk2OZt5HSSqaxIn+Qe2Eg2w939fyJYwa0PAGiOcZ8w 0eXMsiZhG1KiQV8m1FOv/VRiQiOubvhCNyhNyT1FW5+mHIvcEiB+fnKFevYe3YUvV1 mKVrO+LlMGC0EC4Sk1mhdIvj4221OBBY9ksqAfvrJBMLoxK7QF2Lqvg1ZwU6x36RXA hos8EqtuqKToQ== 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 1/2] dt-bindings: serial: imx: Document optional DMA properties Date: Sat, 18 Feb 2023 23:39:58 +0100 Message-Id: <20230218223959.116358-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230218_144018_713794_20801352 X-CRM114-Status: GOOD ( 10.03 ) 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 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 . 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 --- .../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 Sat Feb 18 22:39:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 13145748 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 D8DB3C61DA4 for ; Sat, 18 Feb 2023 22:41:26 +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=MlPB3T/5uYYkJDaLXMaSBYIIWt3lJdU/QqLiHgbXjqk=; b=BYihifTnYzga8O PYS29eeEqOrtwHcRrVcA6sGo6bUXO06JvE4M3VP6kNx/0i37UCcEv2FRpk+I/aM7Cq3VhF9ig063+ 9tOVl3ngDnyfffGrdRzXsVKLxz/FXdmGx7Q9eYdXKqewjs/Ou8SkG5XE08PV1MHAyn9d5eljrWHdC 1BoDLKvhGFFx3O0DaZ3dfwnJf7NWUXmVrZKdNLJPY2u9Z7XzepXqdi0UdX+tYOMApKA7coQJXVoIT G17xS9Z2ecKCBB9nUQVWTENsfEgL/GnkJumMruDEbc7RCWUYXHfx7U9ZJPJd+jBzQZtNMsl3Wb2UC eZYjrhUQWFjpY35q9Sjg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pTVsT-000IVL-IP; Sat, 18 Feb 2023 22:40:21 +0000 Received: from phobos.denx.de ([85.214.62.61]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pTVsQ-000IUG-Ct for linux-arm-kernel@lists.infradead.org; Sat, 18 Feb 2023 22:40:20 +0000 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 9E7AE8575D; Sat, 18 Feb 2023 23:40:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1676760013; bh=i66OwvU88QCAVFI+NzcpInratk+LIJ9Xg5770zvPt48=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D9Wx9YAgUPH2g/dLQ7W/cwsGf8CLP46Jx5yGj921OGvUFq+CBkxiFTxNHXIgHvta0 krlZybUmX/+Snb7SWUZZ6QTlJH2lbQEVlvAmTcw7ljlBBvLnXWSJKWgoxzgwi/Pa9p 3W7Tm0ZNF+itDQaPa9sS7Z8ZvDaAJ/k+zf4NqHR4U3ZOK9VbvwOoupo/dCSBO+vBew Cnv+gqnFHvWy71D6B+sjcmVGVWvigZPNw9LF7+ZgKOFvOzk4B3NigWb8K+ed5Jj9io /f2LKbB9VBOfpa1h6ohzaONWR3sUSLN55xow4NkMRIeXqkkLVrZpbZ06onCzbqWNe7 LSaOi2YwD+Zfg== 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 2/2] dt-bindings: serial: imx: Document mandatory clock properties Date: Sat, 18 Feb 2023 23:39:59 +0100 Message-Id: <20230218223959.116358-2-marex@denx.de> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230218223959.116358-1-marex@denx.de> References: <20230218223959.116358-1-marex@denx.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230218_144018_713630_236177E1 X-CRM114-Status: GOOD ( 10.40 ) 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 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 --- 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 --- .../bindings/serial/fsl-imx-uart.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/fsl-imx-uart.yaml b/Documentation/devicetree/bindings/serial/fsl-imx-uart.yaml index c22aab8c55f83..d42061331aba3 100644 --- a/Documentation/devicetree/bindings/serial/fsl-imx-uart.yaml +++ b/Documentation/devicetree/bindings/serial/fsl-imx-uart.yaml @@ -49,6 +49,18 @@ properties: reg: maxItems: 1 + assigned-clocks: true + assigned-clock-rates: true + assigned-clock-parents: true + + clocks: + maxItems: 2 + + clock-names: + items: + - const: ipg + - const: per + dmas: items: - description: DMA controller phandle and request line for RX @@ -96,12 +108,16 @@ properties: required: - compatible - reg + - clocks + - clock-names - interrupts unevaluatedProperties: false examples: - | + #include + aliases { serial0 = &uart1; }; @@ -110,6 +126,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;