From patchwork Tue May 18 07:58:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 12264039 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A772AC433B4 for ; Tue, 18 May 2021 08:01:02 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2AD806124C for ; Tue, 18 May 2021 08:01:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2AD806124C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=Or0Eb5NFV9Z7wjQ3vLdBgy4WJ3b7HKv8xEGCAcKuT3k=; b=ZCSW4vTD5EyALjj5Jtp8UCMlf shRdNoDNXBK1DEim2PZsHE3xFSP4wonqjnBtxoh3AG545iY4TPBVkmtyExquucPWVDYItbJw3a/Ze sjmrSl6zTxm2I8X5WqCfwwxHDJpvEQyWdAh1buDXgDn2SwJFEWozIDXaTVeweUXRf8kXxbGO5N+6m LBDlweXHM9gjKiymhLhtMgN57zz7AA8EjyIN/8zYfCx22gK5nEoL3WRWyoy1tZSIt05DeQxcAbXXV QoeK0m1PHGrH0qjQrLH/uzz4xiB2b6+MthzzfCLs0mZ7WUVfp6TH+Gn/2TtUaw/G+d+aTdWoful+K qNhJEURVA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liuct-00HTyf-GM; Tue, 18 May 2021 07:58:51 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liucp-00HTxd-Qj for linux-arm-kernel@desiato.infradead.org; Tue, 18 May 2021 07:58:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=5P13XdRJ5R/5Y8xqS3/eplu5G6R3raia4VI6wdvH9Ik=; b=WVlZ/kwP1FfHDPYKomLsvzLdKD /cCMR3Qq3HbVBP7aEoN8XusMwMS3+MW8qX4RgL2NtyL3jA0SUB809f57XulcH1rSwrR4LcRdCEuOb qH2T60ff0x0ZnplLkkOWzZ63gwF/uQh+swvi55o00tisRcifXeslqQs+doqkDJSqDemmtpx0nczWO 21e/lDuUzawn6aRHtkCuquj99qBw3LFh4hhmhAIrMyKwbrpBKe1qp6CtnIw4J5DNP0jnE7mwKMhHZ 227rYlxCQeH7GxPTTFm6xv1snGQlqz3TsjTH+lq3jouXTkOvet7vST7buBVC/Ob0LILJ3WqIr3xIB SjlsCQFw==; Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liucm-00ERDj-7o for linux-arm-kernel@lists.infradead.org; Tue, 18 May 2021 07:58:46 +0000 Received: by mail-wr1-x429.google.com with SMTP id h4so9056924wrt.12 for ; Tue, 18 May 2021 00:58:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5P13XdRJ5R/5Y8xqS3/eplu5G6R3raia4VI6wdvH9Ik=; b=nAIosDiI0M9zpMXy6SmYuUyikkN2Y5kzizB4+p6bL4/wXwW5XJNJDGPWDpFnp7wlLk JzsGYf5zr/W/7m17ExyVWK98IK9y/BbfFTN6yzvmFJyhlzvyUunbbHgTSAbs35DCFatV qn3Rw+ngZJJhZYN60GnE2L9Vfy9hAkKii/YFy1sXXtjB0aKaK7CMdBdLu8lVbuuzAh2z Z4MLKQrjbyYAP8eZzIXywV52v6jFL9EoWVNDNH+VL3Z8K/DEQwJ0FdckuCeTfhF+jYwU q7vnCZkpPeNAm/3LciIj/uce9L3JiNl28LwOAyD7tBOYVkjyvZJlk2SOOJpJx2pOrFeS cjVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5P13XdRJ5R/5Y8xqS3/eplu5G6R3raia4VI6wdvH9Ik=; b=ZTXLYXF/8UtGAERFcPuxFxTNLkXjVFUOy5qsI6Q6lOV1wYuIfrGBM1C7ivoASYj7rl LP1AZFHK9ZmX1mv6yqT4ymp8c6MXdgmG2mSEMSIsbq5XdRQgt0Fvwyi0Q8P261LF+3N8 zItypubl9L4ewnodEQ07R96HP3L9/2f8tHKJUmKjmtLlCa4bjFB1ToYCnwvxnRe/CzjW VrXqlTUjOJKBmSkopidlOy+8OsHCeRp7pt/SCIJZqtXdQjwPt4I67VIRTtvrhyBMxx3i iyUFelbb4paNW+W9unvW0MqaH8Tsy3M93mzf0rEV1dZ2GFbU7fW1qcIUwd6XeVxdSesr CwXw== X-Gm-Message-State: AOAM532TX3DKTdXtLnhKIsJTuvBkMuqTgU5dehhdXHf4g9DMOwi4zWrf e85jq/SNZTpnuDqad5wxnb4+5A== X-Google-Smtp-Source: ABdhPJyRndly5u8TalfalAaQOTRDWC6iTH+suIZiJ9ud2vBJ0tW6ZTaoSfgolwkhjrOWeedIvdsnJA== X-Received: by 2002:a5d:53c4:: with SMTP id a4mr5156417wrw.195.1621324722285; Tue, 18 May 2021 00:58:42 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:90c:e290:842:2d82:a1ae:1a91]) by smtp.gmail.com with ESMTPSA id v16sm735448wml.6.2021.05.18.00.58.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 00:58:41 -0700 (PDT) From: Neil Armstrong To: gregkh@linuxfoundation.org, jirislaby@kernel.org, devicetree@vger.kernel.org Cc: linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Neil Armstrong , Martin Blumenstingl Subject: [PATCH 1/3] dt-bindings: serial: amlogic, meson-uart: add fifo-size property Date: Tue, 18 May 2021 09:58:31 +0200 Message-Id: <20210518075833.3736038-2-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210518075833.3736038-1-narmstrong@baylibre.com> References: <20210518075833.3736038-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210518_005844_285134_176DC862 X-CRM114-Status: GOOD ( 11.95 ) 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 On most of the Amlogic SoCs, the first UART controller in the "Everything-Else" power domain has 128bytes of RX & TX FIFO, so add an optional property to describe a different FIFO size from the other ports (64bytes). Signed-off-by: Neil Armstrong Reviewed-by: Martin Blumenstingl Reviewed-by: Rob Herring --- .../devicetree/bindings/serial/amlogic,meson-uart.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml b/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml index 75ebc9952a99..7487aa6ef849 100644 --- a/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml +++ b/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml @@ -55,6 +55,11 @@ properties: - const: pclk - const: baud + fifo-size: + description: The fifo size supported by the UART channel. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [64, 128] + required: - compatible - reg From patchwork Tue May 18 07:58:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 12264041 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 734E1C43460 for ; Tue, 18 May 2021 08:01:15 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 051AA61285 for ; Tue, 18 May 2021 08:01:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 051AA61285 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=TKy4YsesYbp8oljK2oJf9PBiJnIO3Qn1fV7OHx+HULU=; b=IhxF04KHBdPOkODJss6oullD2 GJ6OEcZl39S+ylqjGHhcMloQRkJNrsnnHJDHpTPy2NwcHNkpFWhXCFbITber72gMcSmBR1I4NzlLP 3H8aygAqBS27PbRun+ACV2nS0dLQHwR4WZG1s09d/Sk28Qn+Rgig5CW7dCHg/VtFCTqjHXJb+LsOp tUf+v9jG2C5qfrQ9T2OLG1ghjOxu/5KxPdp9aw4CfwtIjFBivHt38YtBaewdKj341CG4DlZIpQexw HV4YcqKRVhmCT8B/k5+QMtEnhXjoCkMGSBLx3dZgb8yeq52NLx33zHIYEqJ0hNAKGh+WaQUCvH27P RLFNV/ekg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liudI-00HU4p-Bx; Tue, 18 May 2021 07:59:16 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liucq-00HTyA-T9 for linux-arm-kernel@desiato.infradead.org; Tue, 18 May 2021 07:58:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=mHKyhnmvKk11GFq9mc3k0CCB5T2Yy23YqL5vTU1rIHM=; b=lEYab3eCY1Pf87n8ZNiFrmLGkB FCeMR85yFGeNlFPeQDvxiOvvTwkhPpdymeCfjfyHxbIM7zI6q4S4O2hMGhj295VbgIcVbk//K9lBb tYIORoxuJJZvY0dFBXtKKGO+d2Qp5wLfy66kS1JllyDIIy3hJjbn3oceekojkbTPksoLNs9x1TnJ+ swxClpTGKWd32pCnu+tWL8JkTbE+l8c00K3kgmAX4NG4/erfLec4TpDRVcPfGw0SYTXJZAM4kmIxd WqH43LzbbBpftXXfFiNYIrIm7jkZkG2Ywkb/BVEP7HhRFN2Mgq2FIIPqRxinjXro3wfE+Vcggh4GS ndUfm45A==; Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liuco-00ERF1-6g for linux-arm-kernel@lists.infradead.org; Tue, 18 May 2021 07:58:47 +0000 Received: by mail-wm1-x334.google.com with SMTP id 62so3846275wmb.3 for ; Tue, 18 May 2021 00:58:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mHKyhnmvKk11GFq9mc3k0CCB5T2Yy23YqL5vTU1rIHM=; b=TLzVMRaU60Ry1jl2TTo02UAb+xMSS4f1u7+jzg+ygsfwvJE5Bh/NW1LW0cTasWyxOb 3XhMx0Cr3ufsX9oWrbxxqzE/UzMpnlExQuMvv+nFH91wqpXYwLRmsxos3omvkWO4ekEL TnxH3FwZOYqQkEboz/d2UU6zCT7aSRIFotUlfI1R3jum6CgTh9TPUXqqntnA4PYyVPYQ 6XofKqconWPPcPgyX/jomdi0ES/9rJbLgfsij9uj3qRSOGhsjfWM51r975BGdgAGylTJ Sa9gxjFLMKdLV3ctIERAQ+ekJHaPW7hCS0Q1bfbGA7N+zdmllqXjfPBQ09QPWzDzduJ5 eFhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mHKyhnmvKk11GFq9mc3k0CCB5T2Yy23YqL5vTU1rIHM=; b=Bx81l2g5PPplFd33zw6M4GUQECdST6Zsfa+ktivspYUFieq9NZg08XHxK6QxBXNvtv skdI9q3UId8+ILWewMpV2orpvovTEqcvrsyIqG+ZhFUsQy6WJQJhTDTXDqhXayYVDOJj UePNOKmylpHngjJLNijOG+VSL2VySg6/dHqSbLU1UNQbRuRyyv38UkTfohBg55vGyJHa vvuG4jp38VgU9ppBjv21C2Szss3sYfWbc6ahtx3o0wNPQxux73HTpeHz9fnZCTTTc0B2 dGzePMvPo6hrEZc8mUfCZP6IqWwU03zss+TtVGMMAkQsZizs+ifbeG/NI4VGb07OhNJc xpMA== X-Gm-Message-State: AOAM532Aj7hwZAqcR+rKRNIRKBxT2oxnkC9ecbjT9D4pcheH9n1M3axH ALuLjF8AFCch6YKgeuzYGdOs4Q== X-Google-Smtp-Source: ABdhPJxvxIvNsm1JFAqKsBRZuZmJ3qDWkvq6GK0i82QVya6OwYocA4vbi1aiTE7jdaPnG0jVMyxHRg== X-Received: by 2002:a05:600c:4ec9:: with SMTP id g9mr3821136wmq.173.1621324724424; Tue, 18 May 2021 00:58:44 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:90c:e290:842:2d82:a1ae:1a91]) by smtp.gmail.com with ESMTPSA id v16sm735448wml.6.2021.05.18.00.58.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 00:58:43 -0700 (PDT) From: Neil Armstrong To: gregkh@linuxfoundation.org, jirislaby@kernel.org Cc: linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Neil Armstrong , Kevin Hilman Subject: [PATCH 2/3] tty: serial: meson: retrieve port FIFO size from DT Date: Tue, 18 May 2021 09:58:32 +0200 Message-Id: <20210518075833.3736038-3-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210518075833.3736038-1-narmstrong@baylibre.com> References: <20210518075833.3736038-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210518_005846_268736_B0E6A0B0 X-CRM114-Status: GOOD ( 16.05 ) 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 Now the DT bindings has a property to get the FIFO size for a particular port, retrieve it and use to setup the FIFO interrupts threshold. Signed-off-by: Neil Armstrong Reviewed-by: Kevin Hilman --- drivers/tty/serial/meson_uart.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/meson_uart.c b/drivers/tty/serial/meson_uart.c index 529cd0289056..10bb29202e43 100644 --- a/drivers/tty/serial/meson_uart.c +++ b/drivers/tty/serial/meson_uart.c @@ -715,6 +715,7 @@ static int meson_uart_probe(struct platform_device *pdev) { struct resource *res_mem, *res_irq; struct uart_port *port; + u32 fifosize = 64; /* Default is 64, 128 for EE UART_0 */ int ret = 0; int id = -1; @@ -741,6 +742,8 @@ static int meson_uart_probe(struct platform_device *pdev) if (!res_irq) return -ENODEV; + of_property_read_u32(pdev->dev.of_node, "fifo-size", &fifosize); + if (meson_ports[pdev->id]) { dev_err(&pdev->dev, "port %d already allocated\n", pdev->id); return -EBUSY; @@ -770,7 +773,7 @@ static int meson_uart_probe(struct platform_device *pdev) port->type = PORT_MESON; port->x_char = 0; port->ops = &meson_uart_ops; - port->fifosize = 64; + port->fifosize = fifosize; meson_ports[pdev->id] = port; platform_set_drvdata(pdev, port); From patchwork Tue May 18 07:58:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 12264043 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D639C433B4 for ; Tue, 18 May 2021 08:01:23 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A2FF26124C for ; Tue, 18 May 2021 08:01:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A2FF26124C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=u2ZAFCpmSccvcLjCmJ5eqg8z2hK9dpMHh1HzE90zV5Q=; b=ZNS8hnK3np1cOjkj/TSc+n0Lh dYbPUtxoqbo7yUCtPwlzRB5LaNfqyn5osU+E3QPgVYQISB8wI3jgJBcMpuUpSHHGuZIuuwO1mKYMy Brgz8GBjIT+1/xyIMibXfZThArjVZfixYtw5RFmfVi+LxFBWh/yTZrmLCsYaRwfuchGIunpdubEZb 6ZBz0MdRpEaG4erDqdhKz6BvN2SUGUSpGwT9L6CLNzAPFlQnogFDU0hUYXsAO8+a9pZm3wTbUFXc9 9qkTE8M4vUyZI3zyMlwJFqI1FKM82jd8A0r22l/crQLZIwFRpzMxDiJZPJyjFlcDbfGsIgWJX72Ro wjnGT0i8Q==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liudY-00HU9L-QK; Tue, 18 May 2021 07:59:33 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liucs-00HTyK-63 for linux-arm-kernel@desiato.infradead.org; Tue, 18 May 2021 07:58:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=UVZto4g6Wsxu+4WPtlJ/ny9aJEsfvT/s2hR41/jSqcM=; b=sbhzOR7DPG6MBwYHnHHuknIn/s vrR3KAVPdEBlcdczaPg6/h38rmOUlzHWHW0rEirPUDyl2eebrR0atXfDghsdPr8OXncPABun5Q3RP sfpf594OgMwCg6f6LSfeIgEAkwGbYvuyibZHqznkkGZSplIF5p0cR2gKUewfclYqDyMxU3cHdqG0d DRC152zB+gfYytgyYBLo4y1pWSBf12J95Qb7rjW4LEchn9M/pjDwhO2lQNq6q99S8KDPKKzpVBXFx AecRGJsAHfZqh15/HJ6UEiMvpIG8Uobv6pRxQqrIZWrSlQrAR/FM+jCHYdfYpadDTvp37846ggyO4 B7c9O25A==; Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liucp-00ERFf-9d for linux-arm-kernel@lists.infradead.org; Tue, 18 May 2021 07:58:48 +0000 Received: by mail-wr1-x429.google.com with SMTP id h4so9057092wrt.12 for ; Tue, 18 May 2021 00:58:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UVZto4g6Wsxu+4WPtlJ/ny9aJEsfvT/s2hR41/jSqcM=; b=q/zVbBc8de/ZHaVlbkXtflSU9Y6r05ipflZJPEJMidMnL6VU4nk75xdR8qzzIyGvIk GPRztw2VRKTfvAPTWNBbUVxz1eZOAoPnhwthMU19UODq2two5XpYbaJoyRUJzDpfGyMo 7b4DtMErwdRVN7HkifwHY8Lqg6dKGQdlZcQBkftjfCsY8Xqr1dSLa11uFelUy6eU1ew0 g6yEy/U5syvHBNsLdJWV6gf06ICAqDUCtsrPbYouVwj9PuW5nrtabchPnhZxIx6Sq/Kh Gyw9T1lkBzA3/IDFB3lFrXiFqajKwsuq/HwsAf30PeGHdKvFg/s2BGDN51IT6D+QI2YP c3Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UVZto4g6Wsxu+4WPtlJ/ny9aJEsfvT/s2hR41/jSqcM=; b=mUHhRLZ8eSmc/RvSLcOZqF0fepRrphZgBYdQ6YT3RlYl36R2aY+4CXVxQOyS1yZgBy 9VRhrBFdHavCtWV9BgaA6GOatohPJi8ZFcarQC5uyFX7KKzbJnOOgKiXTu/n20MODTQn klgRHuEcSeHuTPNNpMPZOhymS788S8aWON7jWB3KpKzui9ciCqthBVIs6BjrdKLeFJ71 X4gIYLiszPum4uyXDw751jFa+X4HT4yd9eHXJJTNoBW8QlnDk6zw2aOrJ4WjGbihugPJ kyoWlq7vrfhSzo/rK01Pr9DpohY5R125g0Nn2lC3osH7oaBJzy7zjZ/1FsGg2tbegISx 4r8Q== X-Gm-Message-State: AOAM532aeyENsKDqdAQlbROJnk49x17eFfFlfjrOOfqQj2/R0xGPEr6K HrgBIi/cYo6P935tL8k6NO23PQ== X-Google-Smtp-Source: ABdhPJwIn4TUckWjyOGKmOz5dzsQpoXw/XnPgmeXj7aq688o9TKoq0ZTOggr/wiZltQtLTx5ttg/GQ== X-Received: by 2002:a5d:40cd:: with SMTP id b13mr5180323wrq.356.1621324726026; Tue, 18 May 2021 00:58:46 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:90c:e290:842:2d82:a1ae:1a91]) by smtp.gmail.com with ESMTPSA id v16sm735448wml.6.2021.05.18.00.58.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 00:58:45 -0700 (PDT) From: Neil Armstrong To: gregkh@linuxfoundation.org, jirislaby@kernel.org Cc: linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Neil Armstrong Subject: [PATCH 3/3] arm64: dts: meson: set 128bytes FIFO size on uart A Date: Tue, 18 May 2021 09:58:33 +0200 Message-Id: <20210518075833.3736038-4-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210518075833.3736038-1-narmstrong@baylibre.com> References: <20210518075833.3736038-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210518_005847_376301_5A700102 X-CRM114-Status: GOOD ( 11.32 ) 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 first UART controller in "Everything-Else" power domain, usually used for Bluetooth HCI has 128bytes FIFO depth. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 1 + arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 1 + arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 1 + 3 files changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi index 895c43c7af9f..3f5254eeb47b 100644 --- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi @@ -1871,6 +1871,7 @@ uart_A: serial@24000 { status = "disabled"; clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>; clock-names = "xtal", "pclk", "baud"; + fifo-size = <128>; }; }; diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi index 793d48f72390..00c6f53290d4 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi @@ -2317,6 +2317,7 @@ uart_A: serial@24000 { clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>; clock-names = "xtal", "pclk", "baud"; status = "disabled"; + fifo-size = <128>; }; }; diff --git a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi index 3d00404aae0f..6b457b2c30a4 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi @@ -301,6 +301,7 @@ uart_A: serial@84c0 { reg = <0x0 0x84c0 0x0 0x18>; interrupts = ; status = "disabled"; + fifo-size = <128>; }; uart_B: serial@84dc {